What can a Dynamic Creation Script access?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2014 11:15 AM
I have enabled the dynamic creation script in the Asset form's reference to Cost Center. I want to create a Cost Center when an unknown value is entered. But I have a twist: I want to copy a type field's value from the Asset form to the new Cost Center record.
My dynamic creation script works fine when it is like this:
current.u_type = "wbs";
current.name = value;
current.insert();
But I want to get the type from the form. It doesn't work for me like this:
current.u_type = g_form.getValue("u_charge_type");
current.name = value;
current.insert();
A related question. How do I log from this script? I tried jslog() and gs.log() but can't find the output.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2019 07:28 AM
I was wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2020 01:31 PM
Awesome, "parent" is in scope for the dynamic creation script, cool. 🙂