NetTalk Central

Author Topic: Goto First Page in NetWebBrowse  (Read 3566 times)

GordonF

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Goto First Page in NetWebBrowse
« on: November 18, 2021, 04:59:09 AM »
I'm probably missing something obvious but can anyone tell me how to force a browse list to goto the first page. Basically I have a popup update form on a browse and after an insert I want to go to the first page of the calling browse not the last, any ideas?

Gordon



Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Goto First Page in NetWebBrowse
« Reply #1 on: November 18, 2021, 07:17:46 AM »
Did you try this?
-----------
Regards
Alberto

GordonF

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Re: Goto First Page in NetWebBrowse
« Reply #2 on: November 19, 2021, 01:14:59 AM »
Thank you very much for your suggestion, unfortunately it doesn't do what I'm wanting to do.

All I really want to do is go to to the first page of a browse list after a completed insert (only insert), regardless of the actual position of the inserted record.

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Goto First Page in NetWebBrowse
« Reply #3 on: November 19, 2021, 05:34:46 AM »
In TakeEvent After gainfocus add:

if p_web.gsv('MyRecordInsertedOk')=1
     p_web.script('$("[name=''first_btn'']").click()')
     p_web.ssv('MyRecordInsertedOk',0)
end

Set the session value in the form, in the postinsert routine.

Hope this helps.
« Last Edit: November 19, 2021, 06:14:15 AM by michelis »
-----------
Regards
Alberto

GordonF

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Re: Goto First Page in NetWebBrowse
« Reply #4 on: November 19, 2021, 08:07:53 AM »
Fantastic that worked perfectly I really appreciate your help, fortunately I already had the equivalent of the insert ok ssv so it was only a moments work.

Gordon