- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 03:04 AM
Hi Expert,
Can any one help me on this? I'd like to get display value of catalog variable by business rule to insert into another table while user submit a form. The form is on HR table and I need to copy a value to another table for report purpose.
thanks for your support.
Regards,
Cheng
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 03:18 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 03:18 AM
Try
current.variables.<variable_name>.getDisplayValue();
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 07:59 PM
Hi Vignesh,
Thanks for your help, it's working for me.
Regards,
Cheng
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2020 10:21 AM
Hi, your solution returns me a value of undefined
(function executeRule(current, previous /*null when async*/) {
var nonAlphanumeric = "#!%&$*-+/";
var numbers = "0123456789";
var lowercaseLetters = "abcdefghijklmnstuvwxyz";
var uppercaseLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var stringLength = 3;
var randomString = "";
var randomNum = 0;
var regExp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})";
gs.info("P: " + current.variables.user_password.getDisplayValue()); //undefined
gs.info("FN: " + current.variables.first_name.getDisplayValue()); //undefined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 03:20 AM
Hi chenglo,
Refer this:-
I hope this helps. Please mark correct/helpful based on impact....!!!!!
Warm Regards,
Priyanka
www.dxsherpa.com