NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: JohanR on August 06, 2023, 09:47:06 AM

Title: Add new client using button from UpdateForm
Post by: JohanR on August 06, 2023, 09:47:06 AM
Hi,

Update FORM on order table has a button that add a new client via UpdateClient FORM , a popup.

In the GotFocusBack routine I need to retrieve the client_id of the newly added client.
I query "_refresh_" for "saved", but the are no table values in the value queue,
so currently am setting a p_web.SSV('tmp_client_isn') in the save embed on the ClientUpdate form and then use that on FocusBack.

Is there a better alternative?

Below the value queue

[TVCWEB] Value Q Name=_action_ Value=1
[TVCWEB] Value Q Name=_ajax_ Value=1
[TVCWEB] Value Q Name=_calledfrom_ Value=weborder
[TVCWEB] Value Q Name=_equate_ Value=btn_add_new_client
[TVCWEB] Value Q Name=_event_ Value=gainfocus
[TVCWEB] Value Q Name=_from_ Value=updvendorclient
[TVCWEB] Value Q Name=_parentpage Value=
[TVCWEB] Value Q Name=_popup_ Value=0
[TVCWEB] Value Q Name=_refresh_ Value=saved
[TVCWEB] Value Q Name=_rid_ Value=
[TVCWEB] Value Q Name=viewstate Value=
[TVCWEB] Value Q Name=weborder_form:inited_ Value=1


thanks

Johan

Title: Re: Add new client using button from UpdateForm
Post by: Bruce on August 07, 2023, 07:40:49 PM
>> I need to retrieve the client_id of the newly added client.

It's in the session value

Cheers
Bruce