Custom Default Automatic Value

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
Chris
Posts: 3
Joined: 2017-03-12 08:51

Custom Default Automatic Value

Post by Chris » 2019-03-15 18:30

Hello All!

What would be the proper way to add more default automatic values? For example, (%%creatorFullname%%> pulling data from the custom1 column in the membership_users table.

Thank you.

bescott53

Re: Custom Default Automatic Value

Post by bescott53 » 2019-03-27 14:35

if you take a look at the /incCommon.php file and go to the function parseCode. you should be able to add it from there?

'<%%creatorFullname%%>' => sqlValue("select membership_users.custom1 where memberID=' {$_SESSION['custom1']}'")

IMPORTANT - this is a file that is overwritten so maybe someone can provide a better way?

Chris
Posts: 3
Joined: 2017-03-12 08:51

Re: Custom Default Automatic Value

Post by Chris » 2019-03-27 23:41

Thank you. I will take a look there. Maybe there is a way to do this with a hook.

Post Reply