Hi All,
Getting a bit frustrated here.
I have a login screen, and I want to allow users to register before logging in, so I have a button on the login form page to achieve this.
Under the code for the button I put this code and it seems to work.
sc_apl_conf(“form_accts”,“start”,“new”);
sc_redir(“form_accts”);
Once they have registered and have logged in, I present them with a grid and on the toolbar of the grid I have a button to allow them to edit their “registered” information.
Under the code for the button I put this code and it just does not work.
sc_apl_conf(“form_accts”,“insert”,“off”);
sc_apl_conf(“form_accts”,“update”,“on”);
sc_redir(form_accts,acct_id=[acct_id]);
The [acct_id] is a global variable that contains the primary key field to locate their record, and in the SQL menu item on the IDE left pane for the actual form, I inserted a WHERE clause
ac_id = [acct_id]
However, when I click on the button to edit the record, the form appears, empty, with no Update button.
What am I doing wrong? I just want two buttons, one on each application toolbar, one to add a new record in one application and another button on another application, to allow the record to be updated.
Thanks
Tony
PS. Also is there a way to detect inside form application if it a “new” or “update” that is being requested?