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:
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.
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.
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.
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.
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.
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.
Is it possible to be set to Other values; not just Null?
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:
Customer Issue ID
>Is it possible to be set to Other values; not just Null?
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.
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 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.
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.
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.