NetTalk Central

Author Topic: Button in Browse  (Read 2570 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 668
    • View Profile
    • Email
Button in Browse
« on: December 14, 2013, 01:54:20 PM »
I have a problem with custom button in a browse, when click the first time open the correct record but if press any other button in a list return the last record selected, only work is select the record and then press button.

I attach a demo, this demo is created by jking but with my modified..

[attachment deleted by admin]

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Button in Browse
« Reply #1 on: December 15, 2013, 05:52:38 PM »
If you are opening the record using a URL set on your custom button that refers to the row ID it won't work because the link is called at the same time that the row id is updated.

osquiabro

  • Hero Member
  • *****
  • Posts: 668
    • View Profile
    • Email
Re: Button in Browse
« Reply #2 on: December 16, 2013, 02:14:00 AM »
my call is a procedure no url..

osquiabro

  • Hero Member
  • *****
  • Posts: 668
    • View Profile
    • Email
Re: Button in Browse
« Reply #3 on: December 16, 2013, 03:40:55 AM »
i change the call to url like this http://localhost:88/servedocument?Record=1 and work but how i can encrypt the url?? or call without expouse de record id??

I need to prevet that user enter the value directly into the url..


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Button in Browse
« Reply #4 on: December 16, 2013, 09:41:48 PM »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Button in Browse
« Reply #5 on: December 16, 2013, 09:44:50 PM »
Incidentally, if you set the PROCEDURE field for the button to ServeDocument, and tick on the option "Include Row ID field" then the bidv value is included in the link for you. This is a better approach than using the URL field.

cheers
Bruce


osquiabro

  • Hero Member
  • *****
  • Posts: 668
    • View Profile
    • Email
Re: Button in Browse
« Reply #6 on: December 17, 2013, 05:04:33 AM »
but how i can retreive the Row ID field value in my ServerDocument procedure??

thanks.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Button in Browse
« Reply #7 on: December 17, 2013, 05:09:23 AM »
it's automatically primed from the bidv into the session value for you.
ie if the browse is on the CUSTOMER table, and the "Unique ID Key" for that table is set to the CUS:IDKEY, wihch contains the component CUS:ID then
p_web.GetSessionValue('cus:Id')
is primed for you in the destination.

cheers
Bruce

osquiabro

  • Hero Member
  • *****
  • Posts: 668
    • View Profile
    • Email
Re: Button in Browse
« Reply #8 on: December 17, 2013, 05:38:36 AM »
not work at all, my destination is a Netwebpage no NetwebForm and in my browse i have a unique id key CRF:CRF_ID

the problem is when click in the button the first time is work but if i press the button in other row then return the last record selected in a browse.


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Button in Browse
« Reply #9 on: January 20, 2014, 02:15:53 AM »
fixed in 7.33 I think.