Open a table directly n add new record mode

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
fgazza
Veteran Member
Posts: 205
Joined: 2019-04-30 17:37

Open a table directly n add new record mode

Post by fgazza » 2020-04-30 22:14

Hi everyone,
is there a way to open a table directly in "add new record" mode (i intend with a new empy record ready to fill)?

If yes, how can i do it only for sore users?

Last: is possiblo to create a link to go directly to an "add new record" mode of a table (a page with new record ready to be filled)?

Thanks!

Fabiano

patsd102
Veteran Member
Posts: 142
Joined: 2013-01-15 19:59

Re: Open a table directly n add new record mode

Post by patsd102 » 2020-04-30 23:18

This will open the detail view,

Tablename_view.php?addNew_x=0
23.17

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Open a table directly n add new record mode

Post by jsetzer » 2020-05-01 13:50

Hmmm... does this work? Shouldn't it be addNew_x=1 instead of =0?

Code: Select all

TABLENAME_view.php?addNew_x=1

In docs it says "any non-zero value":

https://bigprof.com/appgini/help/advanc ... parameters

I'm wondering if this means "any not-empty value". I cannot test it right now.
Kind regards,
<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 readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

patsd102
Veteran Member
Posts: 142
Joined: 2013-01-15 19:59

Re: Open a table directly n add new record mode

Post by patsd102 » 2020-05-01 15:29

In Doc it says x=0
23.17

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Open a table directly n add new record mode

Post by jsetzer » 2020-05-01 15:40

That's funny because for other parameters it says "non-zero" or "=1".

As long as it works, it's fine!
Kind regards,
<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 readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply