Hi,
Is there a way in scriptcase that each row(grid) in a table is clickable that will redirect to different applications.
Thanks
ishey
Hi,
Is there a way in scriptcase that each row(grid) in a table is clickable that will redirect to different applications.
Thanks
ishey
Re: Row make clickable to redirect
Dear Ishey,
Yes you can using macro sc_link.
to make all row click-able, you need use this macro to all column.
Regards,
Jos? Arteiro Teixeira Cavalcanti.
Support Netmake.
Re: Row make clickable to redirect
As mentioned, you can use the sc_link, but for each link in each row to a different app, you will have to setup a condition in the OnRecord event
based on a KEY value
If ({key_value} == myvalue) {sc_link(…)}
elseif (…)
Regards,
Scott.
Re: Row make clickable to redirect
Hi,
Thanks for replying… I have 2 other questions anyway…
What would be the value of my key?
How do I get the current row number being pointed to by the mouse pointer in my grid?
Thanks a lot!
ishey
Re: Row make clickable to redirect
The value of your key would be a unique/primary value in the table for each record.
If you have a unique key in your table, and you should (create one if you do not), then you really do not need a row number.
Regards,
Scott.
Re: Row make clickable to redirect
The onRecord event will get the clicked row.
V?tor Jamil
Re: Row make clickable to redirect
Thanks…
but what if the link is calling only 1 form…but with different primary keys?..
I already tried it, yet it’s only getting the first row
thanks
ishey
Re: Row make clickable to redirect
I think you should use “Links>>New Link” option. Then select an Application link or Field link.
Re: Row make clickable to redirect
Hi,
In sc_link the parameters i am getting it from tables.
I could able to Redirect Dynmically using sc_link.but i have another constraint while passing the parameter
I have formname and parameters in the database table.Let us say
$pagename =dataset[0][0];
$param = dataset[0][1];
Now I am using sc_link macro in the OnRecord event to convert the field as a Link.
I am passing sc_link parameter as follows
sc_link(Fieldname,$pagename,$param,“Test Hint”)
the $param is not accepted since it is a string. but when i give the parameter as direct string it accepts
sc_link(WFI_RefCode, $pagename,v_pono={WFI_RefCode},“Open and check”,“grid_WF_view”);
Anybody can help…?
Thanks & Regards
Dhana