Assign global variable for each row

Hi, Not sure can do this or not.

I create a link in a column and I want to pass the value to another form.
I’ve tried declare global variable on ‘onRecord’ events like [glo_page_no] = {page_no};
But I get the returned result 10 as this value is the last record in my database.

How should I do to get the different values to pass to another form?

Thanks in advance
Weng

On that another form you must use a global get var [] and then at linking application you will be to prompted to choose linking vars

Hi Clauu,

I already using get global var [] at the linking application. I created the link using sc_link() on onRecord events and pass the global var[] from this function to the linking application.

The global get var[] is declare at that column’s onclick ajax events.

What I want to achieve is like when I click the second row on grid with value ‘2’, this value ‘2’ is the global var[] i want to pass to the linking form application.
But what I done for now is the global var [] pass to the linking application is ‘10’ which is the last record in my sql statement.

Any help is appreciated.

Thanks
Weng