In v11, we can use grids on the desktop form exploiting a new supercontrol that allows to place them on a form. I have been working with that feature for several weeks now, but have not yet come to " a healthy level of understanding" on that technique. Maybe someone with more experience or knowledge on this matter can step in here and offer some advice.
Normally, the grid runs in a browser that will interpret your javascript etc etc. However, the new supercontrol runs in something called "working preview mode" that obviously exploits a special handler to make this possible on the form. This means, since the application server does not run, that javascript is not working and you will need to use xbasic to make things happen. In video M55 Selwyn shows how to place a button on a grid running in working preview mode on a form that uses a method to call xbasic from there. Good video, good feature.
However, most of the normal xbasic we are used to write use in a context like "form" or "browse" and do not seem to work in the context of a grid, running on a form or not.
What I like to accomplish does not seem to be difficult, but still I have not got it going yet.
I have a button on the grid, and can run xbasic from there. In the grid, the field previous to the button holds a value that is a file location in character format. I would like this button to open the file in the windows associated application. There is even an action script button for that (open a non Alpha Five file), but the xbasic behind that action does not run in the grid whilst it DOES run on the form. I can see that the context evaluation is different.
But how to accomplish this from the grid, running on the form??
Normally, the grid runs in a browser that will interpret your javascript etc etc. However, the new supercontrol runs in something called "working preview mode" that obviously exploits a special handler to make this possible on the form. This means, since the application server does not run, that javascript is not working and you will need to use xbasic to make things happen. In video M55 Selwyn shows how to place a button on a grid running in working preview mode on a form that uses a method to call xbasic from there. Good video, good feature.
However, most of the normal xbasic we are used to write use in a context like "form" or "browse" and do not seem to work in the context of a grid, running on a form or not.
What I like to accomplish does not seem to be difficult, but still I have not got it going yet.
I have a button on the grid, and can run xbasic from there. In the grid, the field previous to the button holds a value that is a file location in character format. I would like this button to open the file in the windows associated application. There is even an action script button for that (open a non Alpha Five file), but the xbasic behind that action does not run in the grid whilst it DOES run on the form. I can see that the context evaluation is different.
But how to accomplish this from the grid, running on the form??
Comment