Can't make Set_Property(...."LIST") wok (OpenInsight 32-Bit)
At 28 OCT 2009 02:47:46PM David Nicol wrote:
I am not able to figure out why SET_PROPERTY(…"LIST",table) is not updating a table. Using 'Debug', I see that the value of table is correct but it doesn't seem to get to the display screen. The following routine is called from the Default Value for the column in the array. Anyone have a suggestion?
Project_Validate:
table =Get_Property(@window:".ACCOUNTS", "LIST")selPos=Get_Property(@window:".ACCOUNTS", "SELPOS")Property=Get_Property(@window:".PROPERTY", "TEXT")selCol=selPosselRow=selPosIf not(selRow) then selRow=1key=Property:"*":tableProject=Xlate("PROJECTS", key, "PROJECT", "X" )If Project "" Thenconvert @vm to "," in projectproject:=,None"Message="Message=Pick a Project"Message=B":Projectretval=Msg("", Message)Selected=Field(Project,",",retval)If Selected ne "None" thentable=Selecteddisplay=Set_Property(@window:".ACCOUNTS", "LIST", table)debugendEndReturn
At 29 OCT 2009 09:46AM Bob Orsini wrote:
David, if this routine is called from the default value then the result must be the return value for the cell.
RETURN SELECTED
At 29 OCT 2009 09:46AM Bob Orsini wrote:
David, if this routine is called from the default value then the result must be the return value for the cell.
RETURN SELECTED
At 29 OCT 2009 05:34PM David Nicol wrote:
Thank you Bob. That fixed it.
Dave