Page 2 of 2

Re: Delete Script assigned to a column or whatever

Posted: Sun Oct 16, 2022 9:49 pm
by aetaylorBUSBnWt
richmond62 wrote: Sun Oct 16, 2022 9:14 pm
where do you put this code?
How about in a button?
Well, I finally figured that when I populate the Data Grid is when I should go and set various properties such as not editing.

I have a script on the card that contains the Data Grid.
That is where I make the calls to get data from the database to load the Data Grid.
So before those calls get made I put in place all the property modifications on the columns.

Code: Select all

local tRecords;
    set the dgColumnIsEditable["clnID"] of group "fCondoList" to "false"
    set the dgColumnIsEditable["clnCondo"] of group "fCondoList" to "false"
    put condoSortedList() into tRecords;
    set the dgText of group "fCondoList" to tRecords

Re: Delete Script assigned to a column or whatever

Posted: Mon Oct 17, 2022 9:39 am
by Klaus
Since these datagrid properties get saved with the stack, you only need to set this once!
Maybe with a (temporary) button or the message box.

And do not use QUOTES for boolean values!

Code: Select all

... "fCondoList" to FALSE
The eingine might mix it with the string "false"!