- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2015 06:04 AM
Hi,
I am trying to do a simple thing (in project mgmt module):
I am inserting some values in a string field (called 'Owner') and I want that in accordance to this values, some values will fill another field (called 'Department'), AUTOMATICALLY.
I know it should be a business rule, but I'm not having success with this script:
if (current.u_owner=="owner_name")
{
current.u_lead_bus_sub_dept="department_name";
}
Thank you all for any help,
Skender
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2015 07:40 AM
BR Details
Active = true
Insert/Update
Before
Script:
if (current.u_owner.getDisplayValue()=="owner_name")
{
current.u_lead_bus_sub_dept="Any string"+ current.department;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2015 06:10 AM
HI Skender,
You can use the on change client script if you want the other field to be populated as soon as the field is changed. Also I am assuming that you are using the before business rule here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2015 06:31 AM
Thank you Pradeep,
Could you be more precise? I 'm applying the business to the pm_project table.
The operation is only an kind of association: anytime I insert or update the Owner field (with a name), the field Department is being populated automatically, because of a (business) rule I set.
But I do not know the flags and options to choose (insert or update or both) and what to say to Condition, When and Actions?
Thank you again,
Skender

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2015 06:42 AM
Hey Skender,
If I understand your requirement correctly here, You want the user department to be autopopulated as and when you enter the username in the owner(string field). Please confirm.
If you can replicated on what you want in any demo instance that will be helpful. I can take a look and help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2015 06:56 AM