Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
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
-
- Posts: 4
- Joined: Sat Aug 15, 2015 3:16 pm
change the value of a field before it is displayed
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!
-
- Site Admin
- Posts: 2786
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 3 times
Re: change the value of a field before it is displayed
Tom_24409,
Do you mean on a Browse Form (eg. a certain row or column).
or An Edit Form field.
Steven
Do you mean on a Browse Form (eg. a certain row or column).
or An Edit Form field.
Steven
-
- Posts: 4
- Joined: Sat Aug 15, 2015 3:16 pm
Re: change the value of a field before it is displayed
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
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
-
- Site Admin
- Posts: 2786
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 3 times
Re: change the value of a field before it is displayed
Tom,
You can do this on Before Browse..
Steven
You can do this on Before Browse..
Code: Select all
$s = "UPDATE customer SET cus_name = 'Bob' WHERE cus_name = 'Rob'";
nuRunQuery($s);