11-17-2011 05:19 PM
Conditional Rule - how do you setValue for Person type fields
In the old ISF world, I used to code the following to reset a person (select) type field:
serviceForm.INT_SHAREPOINT_NEWSITE_REQUEST.SecondaryAdmin_disp.setValue(['']);
You had to specify <dictionary>.<fieldname>_disp.setValue
the _disp was critical.
I am trying to code the similar function using Conditional rules. I tried the set Value action to null/blank, but it didn't work on the person field.
Is there anyway to do this with Conditional Rules? I hope i don't have to go back to ISF for this one.
Please help!!
11-17-2011 05:19 PM
Hi Richards,
I tried the same thing with conditional rules and accomplished it. I didnt do much apart from setting the value to null. See the snapshot below.
I set the literal value empty and triggered the rule on some field click.
Jegan
11-17-2011 05:19 PM
Thanks the response. I think we are on a different version of Request Center (2008.3). We have the radio button for literal and a radio button for null/blank, but neither seem to work to clear out the person field. It is on an onClick event. Probably a "defect". I'll file a case. What version of RC are you on?
Our literal option wouldn't let us submit it as empty had to put a "space" char in it, but that didn't work either.
11-17-2011 05:19 PM
here's the conditional rule setting from RC2008.3
11-17-2011 05:19 PM
Hi Patti,
We're on 2008.3 and I'm having the same issue as you - the 'set value' option works for all field types except the person field. I'm going to file a case for this too.
11-17-2011 05:19 PM
We are in 2008.1 and do not have a specific radio for null/blank. And yes I just tried triggering a rule on click event for testing.
11-17-2011 05:19 PM
Good news! We installed service pack 6 in our dev environment, and it has fixed the problem. If you look at the release notes with service pack 6- Bug ID # 26360 Customer Issue ID #11682. We just tested it out today.
11-17-2011 05:19 PM
Hi Ed,
Is it possible to be set to Other values; not just Null?
Thanks,
Ant
11-17-2011 05:19 PM
There was a reported bug regarding this behavior which has been fixed in Service Pack 6 for newScale 2008.3. Here is the information on this item from the release notes for that Service Pack:
Bug ID | Customer Issue ID | Resolution Summary |
11-17-2011 05:19 PM
>Is it possible to be set to Other values; not just Null?
Hi Ant,
It sure is! The Set Value conditional rule action will allow you to set the value to a literal, to a value in another field, or to Null/Empty/Blank.
11-17-2011 05:19 PM
Hi Ed,
When one is setting a Person type field to a value using Conditional rules; how does one map it to the Person object in the RequestCenter database?
Thanks,
Ant
11-17-2011 05:19 PM
Thanks Leslie; that'd explain it - we're on 2008.1, and using legacy Dictionaries that aren't Person-based.
Will keep that mind moving forward.
Thanks again,
Ant
11-17-2011 05:19 PM
You need to copy a PersonID to the person_search field in a person based dictionary. That will trigger the pre-fill of other fields in the dictionary, based on that personID. This works in versions 2008.2 and above.
11-17-2011 05:19 PM
does this approach stil work with the latest version of newScale? I am copying a supervisorID to this field via a conditional rule in hopes it would populate the rest of the person based dictionary information and it does not seem to work.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide