B
Bernd Fischer
Guest
Hi,
I want to enable disable a button box form field
dynamically depending on the value of a cyclic field
of the same form.
Something similar to the snipped code attached, but this does not
work! Any ideas?
FYI the form was only created once.
Thanks Bernd
l_windowSetupFields =
tconc(
l_windowSetupFields
list(
hiCreateCyclicField(
?name 'r_layoutWindowField
?choices cons( "New" l_layoutWindowIdList )
?prompt "Layout window"
?value "New"
)
( x_xInitalPos x_yInitalPos + 40 ) )
( x_setupFieldWidth:25 )
160
)
)
l_windowSetupFields =
tconc(
l_windowSetupFields
list(
hiCreateButtonBoxField(
?name 'r_createField
?prompt " "
?choices '( " Create " )
?callback list( "printf( \"DEBUG\" )" )
?enabled
hiGetCurrentForm( )~>r_tabField~>page1~>r_layoutWindowField->value == "New"
)
( ( x_xInitalPos + 280 ) x_yInitalPos + 40 ) )
( 100:25 )
10
)
)
I want to enable disable a button box form field
dynamically depending on the value of a cyclic field
of the same form.
Something similar to the snipped code attached, but this does not
work! Any ideas?
FYI the form was only created once.
Thanks Bernd
l_windowSetupFields =
tconc(
l_windowSetupFields
list(
hiCreateCyclicField(
?name 'r_layoutWindowField
?choices cons( "New" l_layoutWindowIdList )
?prompt "Layout window"
?value "New"
)
( x_xInitalPos x_yInitalPos + 40 ) )
( x_setupFieldWidth:25 )
160
)
)
l_windowSetupFields =
tconc(
l_windowSetupFields
list(
hiCreateButtonBoxField(
?name 'r_createField
?prompt " "
?choices '( " Create " )
?callback list( "printf( \"DEBUG\" )" )
?enabled
hiGetCurrentForm( )~>r_tabField~>page1~>r_layoutWindowField->value == "New"
)
( ( x_xInitalPos + 280 ) x_yInitalPos + 40 ) )
( 100:25 )
10
)
)