Detecting if on new record

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
dlee
Veteran Member
Posts: 168
Joined: 2020-04-14 00:21
Location: South Carolina, USA
Contact:

Detecting if on new record

Post by dlee » 2025-01-28 01:36

How can I detect if the table-view page is on a new record?

TD

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1709
Joined: 2018-04-01 10:12

Re: Detecting if on new record

Post by pbottcher » 2025-01-28 22:36

Hi,can you be a bit more specific, in the table - view you do not have a record, unless you have the tableview & detailview together.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

dlee
Veteran Member
Posts: 168
Joined: 2020-04-14 00:21
Location: South Carolina, USA
Contact:

Re: Detecting if on new record

Post by dlee » 2025-02-01 03:50

My apology for just now explaining this better. There are three attached screen captures of my app. The inspections tv.jpg and the inspections dv.jpg both show a "Add New" button on those screens. The third one, inspections new record.jpg does not have a "Add New" button so I have js code that detects the button is missing and this is how I know this is a new record being adding.

That is the only way I know of to detect a new record being added, does anyone have a better solution? Mine works but there might be a better one.
TD
Attachments
inspections tv.jpg
inspections tv.jpg (51.1 KiB) Viewed 7944 times
inspections new record.jpg
inspections new record.jpg (51.51 KiB) Viewed 7944 times
inspections dv.jpg
inspections dv.jpg (70.34 KiB) Viewed 7944 times

Post Reply