Hello. I have some questions about returning values from the server to the client.
I have downloaded the UIServerDataTF.fdf that Jo-Anne provided on the topic “GUI and Events issues” (March 11).
1- Issue with integer and float
The UIFunction is attached to the On Exit field for Field1. This works fine when Field1 is a Text type. But when the field type is an integer or a float, context.DataToServer returns on the server side the value “undefined”. How can I solve this issue? I tried to sort of cast the value to text with no success.
2- JavaScript vs TypeScript
The same code does not seem to work on Typescript. The function ‘sender’ is not recognized. Can you tell me what is the problem?
3- Set a field that has no Data Source
Is there a way to set a Form Field that has no Data Source? I just want to display the value received from the server in a Form Field, but not to save it in the database. The setValueByName method does not seem to work when ‘EmptyField’ has no data Source.
sender.dataManager.setValueByName(‘EmptyField’, serverData.ValueFromServer);
Thanks for your help! Jean