Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

change the value of a field before it is displayed

Post Reply
Tom_24409
Posts: 4
Joined: Sat Aug 15, 2015 3:16 pm

change the value of a field before it is displayed

Unread post by Tom_24409 »

how can I change the value of a field before it is displayed (i.e. using custom code before brows) ? ... I don't want to store the changed value in the database; its just for presentation purposes!
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: change the value of a field before it is displayed

Unread post by admin »

Tom_24409,

Do you mean on a Browse Form (eg. a certain row or column).

or An Edit Form field.

Steven
Tom_24409
Posts: 4
Joined: Sat Aug 15, 2015 3:16 pm

Re: change the value of a field before it is displayed

Unread post by Tom_24409 »

Steven, thanks for your reply!

I want to change the DB content of a particular field before it is shown in the Browse-Form ... preferably using PHP code on the server.

Thanks
Tom
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: change the value of a field before it is displayed

Unread post by admin »

Tom,

You can do this on Before Browse..

Code: Select all


$s = "UPDATE customer SET cus_name = 'Bob' WHERE cus_name = 'Rob'";

nuRunQuery($s);


Steven
Post Reply