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 - Use property with another Keyed Name Order

myothet - Friday, June 24, 2016 8:34 AM:

Hello Community,

 

I have an itemtype with property id and name.

I set keyed name order for id to show id in all forms.

I referenced this itemtype in other itemtypes.

But, at specific itemtype, i want to show name instead of id in main grid, also in form.

how can i do that ?

I appreciate any ideas from you.

 

Thanks, in advance



dewing - Friday, June 24, 2016 9:11 AM:

 

"I referenced this itemtype in other itemtypes."


Did you use a relationship item or an item property to make the references?

 

 



myothet - Friday, June 24, 2016 9:18 AM:

I use as an item property to make reference.



dewing - Friday, June 24, 2016 12:03 PM:

2 ways to do this:

 

Simple way is to just turn off "hidden1" attribute on the id property of the first item - this will show the ID in the grid.  Then your item property can call Item2's Keyed Name (which you would set to use the name property)

 

More involved way is to create a foreign property.  To do this you need to create the initial item property to point to item1 and the foriegn property uses the item property to access that items properties.