I have a client who, as a requirement, needs the application to automatically write a series of records to a specific table upon startup. The detail is that, by requirement (it is a financial entity), they need it to be hard-coded How can I achieve this? How can I write 3 records to a specific table and then work with those records later inside de Application as a normal record?"
Any help is welcome.
A3
Hard coded entries for later use (client requeriment)
-
- Veteran Member
- Posts: 104
- Joined: 2018-12-10 21:52
-
- Veteran Member
- Posts: 104
- Joined: 2018-12-10 21:52
Re: Hard coded entries for later use (client requeriment)
I was thinking in using the after login hookup... any ideas?
Re: Hard coded entries for later use (client requeriment)
I usually do that kind of stuff like auto inserting master data, if not exist, or auto creating groups and setting permissions by executing sql statements or method-calls in __global.php or in header-extras.php, sometimes also in TABLENAME.php hooks file if this is table related.
I usually execute those scripts if getLoggedAdmin(), not every time, because after update usually I reload the page as admin and so the scripts get executed by myself on first run.
Sometimes it makes sense to have a separate setup or migration or update file for the required update steps, which can be included.
I usually execute those scripts if getLoggedAdmin(), not every time, because after update usually I reload the page as admin and so the scripts get executed by myself on first run.
Sometimes it makes sense to have a separate setup or migration or update file for the required update steps, which can be included.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
-
- Veteran Member
- Posts: 104
- Joined: 2018-12-10 21:52
Re: Hard coded entries for later use (client requeriment)
Hi, very nice approach, I will hand draw a analisis of this aproach to port it after as code!
thanks again!
a3
thanks again!
a3