Please NOTE:
In this post, I am asking for assistance in defining grid control properties, not grid properties.
I know there are several methods for overriding grid properties in the A5W containing the grid. But I am looking for a method that will allow me to override grid control properties with Xbasic.
Specifically, I am passing session variables to an A5W page. This A5W page contains a grid component that has three fields, with each field assigned a textbox control. By default, I have set each field control to enable Hide Row (.Column.Hide=.t.)
On the basis of if-then-else tests of the value of the session variables passed to this A5W page, I want to either keep the .Column.Hide for each field control set to TRUE (.t.) or change the .Column.Hide properties to FALSE (.f.)
I know that the Grid Events allows the insertion of Xbasic that will conditionally set grid control properties. BUT, as far as I understand, every Grid Event only occurs after the user has clicked the submit button. I want to be able to execute Xbasic code that will allow overrides of the grid control properties before the page is generated by the WAS. Therefore:
Question 1: Is it possible to override/define grid control properties with Xbasic before the WAS calculates the HTML and sends it to the user's browser?
Question 2: If the answer to Question 1 is yes, where in the A5W page containing the grid would I insert the Xbasic?
As always, thanks in advance for any help you can offer.
In this post, I am asking for assistance in defining grid control properties, not grid properties.
I know there are several methods for overriding grid properties in the A5W containing the grid. But I am looking for a method that will allow me to override grid control properties with Xbasic.
Specifically, I am passing session variables to an A5W page. This A5W page contains a grid component that has three fields, with each field assigned a textbox control. By default, I have set each field control to enable Hide Row (.Column.Hide=.t.)
On the basis of if-then-else tests of the value of the session variables passed to this A5W page, I want to either keep the .Column.Hide for each field control set to TRUE (.t.) or change the .Column.Hide properties to FALSE (.f.)
I know that the Grid Events allows the insertion of Xbasic that will conditionally set grid control properties. BUT, as far as I understand, every Grid Event only occurs after the user has clicked the submit button. I want to be able to execute Xbasic code that will allow overrides of the grid control properties before the page is generated by the WAS. Therefore:
Question 1: Is it possible to override/define grid control properties with Xbasic before the WAS calculates the HTML and sends it to the user's browser?
Question 2: If the answer to Question 1 is yes, where in the A5W page containing the grid would I insert the Xbasic?
As always, thanks in advance for any help you can offer.
Comment