We have a couple services where depending on the option chosen, a select person field appears and is mandatory. If they select a person, the form fields are populated. But when the customer changes to another option where the select person field is not needed. The problem arises...normally, I would hide the field and clear the vaules. But the value in a select person field is held by the information choosen from the Select Person Popup window.
If your use case is that you are looking up the approver in an external system and never need/want the user to select the approver, I wouldn't use a person field at all. It would be far easier to create text fields for each piece of info you want to store (maybe hide the identifier fields), make the visible ones read-only, and user DDR to fill in the fields appropriately. The other thing you might want to explore is using the person-based dictionaries. I'm pretty sure if you set the person identifier
The thing to note is that for person fields the basic field is "hidden" an contains the person ID selected. If you are going to manipulate the selection you have to update both the value and the display value to keep them in sync.
Have you used ISF or DDRs in RC 2008 to be able set a Person-type field using a set or look-up? I'm doing some noodling now to try and determine that and saw this article. Looking at your comments above, you seem familiar with the person type fields! Any advice you could give would be appreciated.
I've tried setting the value to the RC database Person ID based on your comments above using DDR but with no luck. We're trying to hook in to a remote Identity Management database to d
The person select for some reason conatains personid,select. For some reason select is appended on the end. So when you hit the "select" button the field contains the following:
Its very strange and we used an alert to grab the data so we could actually see what it contained. If we want to prefill some fields based on the person selected we use the following SQL in data retrieval:
(The following gets the person selected email adress)