Current.update() after insert business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2022 09:28 AM
Hi All,
I have field A (currency type). While creating a record I give some value it has to copy on field B(current field).
After insert
current.b = current.A;
current.update();
is there any option without using current.update();
Regards,
Rushi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2022 09:37 AM
Hello,
You can also use a before insert BR with below code;-
current.b = current.A;
OR
write a Onchnage client script and copy the value from field a to field b whenver field a changes.
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2022 09:54 AM
Hi Saurav,
current.b = current.A; - field B is not updating value
Only once time it has to update. Value A will keep changing. I want to see the first value of A in B .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2022 10:00 AM
Is Did you change the BR to before insert and is before insert BR not working? If yes,
As I mentioned earlier you can maybe use onchnage client script
add the condition:-
If(g_form.getvalue('field')=='')
{
//then set the value
}
this way you will only set the value when field b is empty after that is will not be updated.
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2022 11:11 AM
Please post a screenshot of your BR settings.