I have several foreign-key fields in my table, whose display values are generated on the fly as appgini builds the page. I would like to conditionally change the formatting of the field values (e.g. "Closed" in bold red, "Open" in default format) but the standard method in the tablename_INIT() function (inside tablename.php) won't work since the child table db values are NULL (being stored by reference in the parent table instead).
Question: Is there another php (or other type) of file in which I can insert a formatting statement (css, javascript, or ??) that will update the formatting of this field's contents after the page is rendered?
Thanks,
~Bob
possible to reformat value referenced from parent table?
Re: possible to reformat value referenced from parent table?
I'll try to write a tutorial soon on formatting fields based on their values.
AppGini plugins to add more power to your apps:
- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.