how can i provide soft warning for any particular field before save? But it should not stop user from save .
Note : Server method is required as want to add it onBeforeAdd.
Hi Mily,
The issue with using Server Events to display warnings in the client is that Server Events will be used even if the item is edited only through AML outside of the client. That being said, it sounds like you're trying to display a warning if the User enters an invalid value for a particular property of an item. There are a few different ways to approach this problem.
Attach an onChange Field Event to the appropriate fields on the Form that will check that the value entered is valid
Set the Pattern of the Property on the ItemType. This is a regular expression that the value of the property will be validated against each time the property is edited either on the Form or through AML. If the property is edited on the Form, an error dialog will display immediately indicating that the value is invalid. If the property is being edited through AML, an error will prevent the item from being saved, so this solution may violate your use case.
Chris
Christopher Gillis
Aras Labs Software Engineer
Hi Mily,
The issue with using Server Events to display warnings in the client is that Server Events will be used even if the item is edited only through AML outside of the client. That being said, it sounds like you're trying to display a warning if the User enters an invalid value for a particular property of an item. There are a few different ways to approach this problem.
Attach an onChange Field Event to the appropriate fields on the Form that will check that the value entered is valid
Set the Pattern of the Property on the ItemType. This is a regular expression that the value of the property will be validated against each time the property is edited either on the Form or through AML. If the property is edited on the Form, an error dialog will display immediately indicating that the value is invalid. If the property is being edited through AML, an error will prevent the item from being saved, so this solution may violate your use case.
Chris
Christopher Gillis
Aras Labs Software Engineer