I need an "OnClick" Event of a link in a grid

I have created a grid with 3 columns. I added a link, which appears in the first column (which means the grid now has 4 columns). When the user clicks the link, I can get my other “form” style app to open up. All good. However, I need an “OnClick” event of the link, so that when the user clicks the link, the code in my OnClick event gets executed FIRST, and THEN the linked application opens. I need to update a table, just before the linked app opens. Is this possible? If so, how?

Re: I need an “OnClick” Event of a link in a grid

Have you tried writing your code to update the table from Events -> onApplicationInit of the linked applications?

Sincerely,
Masino Sinaga

Re: I need an “OnClick” Event of a link in a grid

I need to know which row the user clicked on. I could send the selected row’s field values to global variables if I had an OnClick event. You got me thinking tho, I’ll snoop around in the init event. Thanks.

Re: I need an “OnClick” Event of a link in a grid

In the called app, I made an OnScriptInit that contained a couple of global variables ( I need to test using an IF() statement before I take a certain action). In the calling app, I made a link to the called app, and in the link properties the global variables showed up as items I could set to field values. This worked. SCv6 does a good job of keeping the majority of basic coding tasks handled for the user. I’m just learning how to us SCv6 so that instead of fighting it because I’m trying to use it like a 3GL like Delphi, I have to allow it to help me by setting up things it needs first, then I have to learn where all the stuff I set up, will appear in the vast tree menu on the left.