Hi,
My question is , in interface design to edit a expression level, to enter a dob automatically to display a age field??? Is it possible give me a solution
Discussion posts and replies are publicly visible
As mike mentioned in your question you haven't provided much details. I am guessing this is what you are looking for.
a!localVariables( local!dob, local!age, { a!dateField( label: "DOB", value: local!dob, saveInto: { local!dob, a!save( local!age, if( a!isNullOrEmpty(local!dob), null, int(tointeger(tointervalds(today()) - tointervalds(local!dob))/365) ) ) } ), a!textField( label: "Age", value: local!age, readOnly: true ) } )