Duplicate value & custom message
Hello, using asp.netmk 10 (vb.net)
Need to set custom message on check duplicate values, i mean different messages for different fields, not only lang.xml value.
Any help?
thanks for support.
Hello, using asp.netmk 10 (vb.net)
Need to set custom message on check duplicate values, i mean different messages for different fields, not only lang.xml value.
Any help?
thanks for support.
You can customise the phrase in any server event in language load like below
//set the duplicate indicator
SetPhrase("dupindex","A '%f' called '%v' already exists");
But the customisation you want per field is not yet supported since i think they all use the global phrase for all fields.
If you want it customised to that level I suggest you manually add your code in row_inserting to check each duplicate value ad return desired specific error message
thks, can't find any "language load" event....
Could you clarify please?
you dont have to use language load, you can event put it in page_load of your add/edit pages or in global page load event.
BUt as i said that still sets it globally, you need to add checks in row_inserting for a more custom one
Got it!!
Thks