I would like the average user to only be able to enter one record in a browse. Based on a previous post of mine, I'm trying to use the loc:found variable. In the End of BrowseTable routine, I embed code to test this variable and set a session variable to be used on the Insert button conditional display field in the templates. For example:
If loc:found = 0
p_web.SSV('DisableInsertButton', 'No')
END
This seems to work within a specific session, but if I close everything and start again, the Insert button shows again. Basically I want the Insert button to appear if there are no records and then be disabled if there is one record entered. Is there a better embed to use? Maybe an alternative solution?
Thanks,
Jeff King