This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - onAfterGet property link

scottmahr - Wednesday, May 11, 2011 1:32 PM:

I want to put a "ball in court" property on my ECO itemType.  I added the property with a Data Type of Item and a Data Source of Identity.  I use an onAfterGet server method to find who is next up in the workflow.  I then fill in the ball_in_court field.  I would like to have it display the identity name, but link to the identity when clicked.  If I fill in the field with the identity ID, the link works fine, but it displays the ID.  If I fill in the name, it looks fine, but doesn't link.  The identity item type has the correct Keyed Name Order set, as all my other identity fields work fine.  I think the issue is me setting the property after it is received.  

 

Any help would be great, thanks,

 

Scott



scottmahr - Wednesday, May 11, 2011 1:50 PM:

Figured it out, for anyone who might have the same question:

Looking in an AML response I found

<permission_id keyed_name="In Work Change" type="Permission">AEBC0BC7518F4CF58936EACDAAD2AB8E</permission_id> 

Obviously, I needed to set attributes of the property and leave the id as the value.  
workflowItem.setProperty("ball_in_court", iden.getProperty("id"));
workflowItem.setPropertyAttribute("ball_in_court","keyed_name",iden.getProperty("name"));
workflowItem.setPropertyAttribute("ball_in_court","type","Identity");
Scott