Excuse my ignorance again, because I’m new to all this.
I have a number field called “mode”
I have a Calculated Text field called “mode_display” with a calc of "If (mode=1, Return “TextA”, else, Return “TextB”.),
The script is valid.
Now when I go to my Form, I expect to be able to change “mode” from 1 to 0 and have Mode_display change appropriately. Instead, mode constantly resets to 1, and I can’t edite Mode_display either (which I would expect). So why can’t I change mode and see mode_display update?
Also, if I wanted to have Mode be a radio button that toggles between 1 and zero, but displays “TextA” and “TextB” as the options, how do I do that? In Filemaker I make a 1/0 lookup and hid the text values by shrinking the field and then putting my own “text labels” next to the values. In servoy, when I try to shrink the Radio Button field, I get big scroll bars.
I’m sure I’m missing basic things here, just have to learn Servoys tricks.
create a method,
select the field (in designer mode)
attach the method to the on the ‘focus lost’ property
as far as a radio button in your value list you can set the data provider to a property other then what displays in the list, I believe you do it with a pipe
value list:
Mode A | 1
Mode B | 1
to trigger a method when the focus is lost from a filed:
create a method (field_A = null),
select the field (in designer mode)
attach the method to the on the ‘focus lost’ property
not sure if this is what you are trying to accomplish
ebrandt:
create a method,
select the field (in designer mode)
attach the method to the on the ‘focus lost’ property
as far as a radio button in your value list you can set the data provider to a property other then what displays in the list, I believe you do it with a pipe
value list:
Mode A | 1
Mode B | 1
to trigger a method when the focus is lost from a filed:
create a method (field_A = null),
select the field (in designer mode)
attach the method to the on the ‘focus lost’ property
not sure if this is what you are trying to accomplish
ebrandt:
Thanks, it’s someplace to start. I understand the property, but what do I need to put in the method to cause the Calculated field to recalculate?