- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2022 07:14 AM
Hi Team,
There is an string field "X", I need to restrict the updation of negative values from table list view.
I have "ONSUBMIT" client script which is restricting from form level and same restriction is not applying for list view.
How can I achieve this?
Thanks,
Aahitha
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2022 10:53 PM
Hi
This may help you
Write OnCell edit client script on your 'X' field
function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
var saveAndClose = true;
//Type appropriate comment here, and begin script below
if (newValue <= 0) {
alert('Not poosible');
saveAndClose = false;
}
callback(saveAndClose);
}
Thanks
Murthy
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2022 07:18 AM
Hi,
If you need to validate on list view too, just do it via a before Insert/update BR.
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2022 10:41 PM
Hi Anurag,
I have tried using before Insert/update BR, but not working.
Thanks,
Aahita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2022 12:22 AM
Can you show the BR you have written?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2022 10:53 PM
Hi
This may help you
Write OnCell edit client script on your 'X' field
function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
var saveAndClose = true;
//Type appropriate comment here, and begin script below
if (newValue <= 0) {
alert('Not poosible');
saveAndClose = false;
}
callback(saveAndClose);
}
Thanks
Murthy
Murthy