NetTalk Central

Author Topic: Update LineItem option in Accounts example  (Read 4059 times)

Richard I

  • Sr. Member
  • ****
  • Posts: 398
    • View Profile
    • Email
Update LineItem option in Accounts example
« 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

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Re: Update LineItem option in Accounts example
« Reply #1 on: February 24, 2024, 04:34:50 PM »
I suggest that you check if that option actually works.
Last time I tried it didn't

Richard I

  • Sr. Member
  • ****
  • Posts: 398
    • View Profile
    • Email
Re: Update LineItem option in Accounts example
« Reply #2 on: February 24, 2024, 07:34:59 PM »
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
 
« Last Edit: February 24, 2024, 08:27:49 PM by Richard I »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Update LineItem option in Accounts example
« Reply #3 on: February 24, 2024, 11:52:11 PM »
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

Richard I

  • Sr. Member
  • ****
  • Posts: 398
    • View Profile
    • Email
Re: Update LineItem option in Accounts example
« Reply #4 on: February 25, 2024, 03:13:16 PM »
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


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Update LineItem option in Accounts example
« Reply #5 on: February 25, 2024, 09:21:54 PM »
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

Richard I

  • Sr. Member
  • ****
  • Posts: 398
    • View Profile
    • Email
Re: Update LineItem option in Accounts example (attached)
« Reply #6 on: February 27, 2024, 03:25:15 PM »
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
« Last Edit: February 27, 2024, 03:30:24 PM by Richard I »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Update LineItem option in Accounts example
« Reply #7 on: February 28, 2024, 10:15:42 PM »
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?

Richard I

  • Sr. Member
  • ****
  • Posts: 398
    • View Profile
    • Email
Re: Update LineItem option in Accounts example
« Reply #8 on: February 28, 2024, 10:44:04 PM »
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?





Richard I

  • Sr. Member
  • ****
  • Posts: 398
    • View Profile
    • Email
Re: Update LineItem option in Accounts example
« Reply #9 on: February 28, 2024, 10:46:34 PM »
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
« Last Edit: February 28, 2024, 10:55:51 PM by Richard I »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Update LineItem option in Accounts example
« Reply #10 on: February 29, 2024, 07:03:39 PM »
thanks, I'll keep you posted.