NetTalk Central

Author Topic: Addin g a button to a browse and embedding code....  (Read 1853 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 278
    • View Profile
    • Email
Addin g a button to a browse and embedding code....
« on: May 28, 2009, 01:26:59 PM »
Hi,
Several questions!

1) How do I  create a button on a page and where do I embed code to get the highlighted record in the brwose ?
2) How do I get the values of the currently highlighted item ?  Since it is not a real browse nor a queue, how can I get the values of several fields in the highlighted line?   

TIA,
Ron Jolda

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Addin g a button to a browse and embedding code....
« Reply #1 on: May 28, 2009, 06:01:09 PM »
I think adding buttons outside a browse is hard work but can be done.

The easy way is to add a form (memory) and then embed the browse in the form. You can then add buttons where you want.

The highlighted record will always have that unique value in the session Q. eg if unique value is say INV:ID then p_web.gsv('INV:ID') will be the value you want.

To get the value of other fields simply do a file fetch based on the unique ID to return the file record to the buffer.

INV:ID = p_web.gsv('INV:ID')
.....

There may be a better way to do it but it works for me!

Kevin