I want to add a certain number of zero to the left of an integer number and save it to an Integer rule input..I was using text(value,"0000") this function which gave me exact format but when I save that to an Integer variable , all zeros had been removed.
Id type is Number(Integer)for ref:
{ a!textField( label: "Text", labelPosition: "ABOVE", value: text(tostring(ri!Id), "0000"), saveInto: ri!Id, refreshAfter: "UNFOCUS", validations: {} ), a!buttonArrayLayout( buttons: { a!buttonWidget(label: "save", style: "OUTLINE") }, align: "START", marginBelow: "NONE" )}
Discussion posts and replies are publicly visible
prashamas6791 said:.is that possible to save the said format into an integer field.
It's not possible , Just like others suggested the only two possibilities are
1. Changing the data type of the field to string
2. On interface level show it in a text field by adding the zeros .
Appreciate the suggestion , thank you venkat Avuluri