NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Richard I on February 23, 2024, 09:59:33 PM
-
Hi
In the Update lineitem General Tab
There is the option "On Save. when Inserting to either "Return to Browse" or "Insert Another"
I want to provide a check box session value option to the user, to either "Return to Browse" or "Insert Another"
I cannot find the right spot in the embeditor
Nothing appears to stand out in PostInsert
Thanks
Richard
NT 14.18
-
I suggest that you check if that option actually works.
Last time I tried it didn't
-
Sean
Im using Clarion EE 13855 and NT 14.18
and I can assure you that both options "Return to Browse" and "Insert Another" do work , at least for me.
So the question remains please
"I want to provide a check box session value option to the user, to either "Return to Browse" or "Insert Another" "
but I cannot locate the correct embed to place the session value, nor can I find the value of "Return to Browse or Insert another"
I have noted that the Insert Another option on subsequent insertion happens after the prime so caution is required if using.
Cheers
Richard
-
I don' think it's designed to be a session value. The decision is made elsewhere.
Feel free to make an example and post here. I'll take a look, but I'm not sure it's possible to do without writing some JavaScript.
Cheers
Bruce
-
Thanks for the reply Bruce
The Update Browse examples have the option to "Insert another" or "Return to Browse"
I am unable to create an example, I have nothing to send, because as discussed, I cannot locate the option in the update browse embeditor.
notwithstanding, I believe the option is a good one but it should not, in my opinion, be "set in stone" but be available to the user when required for obvious reasons.
So are you able to give it some consideration, please, and perhaps enable the user to select at run time by the use of a value, but as it is, it worries me that the "insert another" option cycles after the priming.
Regards,
Richard
-
sure, adapt the example to include the user interface you have in mind.
A "Save, Insert Another" button, or a checkbox, or a global setting, or whatever other UI you think is appropriate.
Then from that UI I can make suggestions as to what might work, or where an alternate UI might be better.
Cheers
Bruce
-
Hi Bruce,
Attached modified Accounts 31 Example
In the BrowseInvoices I have added a local variable loc:InsertAnother ( byte 1,0)
On a button ServerSide Code
I have
loc:InsertAnother = 1
p_web.SetSessionValue('InsertAnother',Loc:InsertAnother)
STOP('p_web.GSV(InsertAnother) =' & p_web.GSV('InsertAnother'))
The stop displays 1
Thanks
Richard
-
I see you're just setting a session value.
So your UI for this feature is a "global setting" of some sort (for the user) - not something on the form itself?
-
The question is how close to the Invoice Browse or the Update lineitems form does the setting have to be?
I have a user login screen and the session value can be set there, but thats pretty inconvenient if there is one batch of records to be added one day and on another, only one or two.
So Im thinking that the setting of the sessionvalue can be anywhere prior, but, where is prior?
-
Bruce ,
the UI is the Browse Invoices page
there is a button there which sets the session value, and then , hopefully determines whether the "InsertAnother" occurs or "return to Browse" is triggered.
Cheers
Richard
-
thanks, I'll keep you posted.