![]() |
|
![]() |
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
#1
|
|||
|
|||
Use existing Masterdata attribute to create new one
I would like to create a Masterdata attribute that contains a link to some data in a web based system of my company.
The link would be "http://docsNNN.NNN.com/parts/XXX-XXXXX" The first part of the address "http://docsNNN.NNN.com/parts/" will always be the same. The "XXX-XXXXX" is the part number and is stored in the Masterdata NAME attribute of the part. Is there a way to create a smart Masterdata attribute that would take the first part of the address and append the NAME attribute at the end automatically? We are using Model Manager 19.0M050.95 Thanks for the help. |
#2
|
|||
|
|||
Re: Use existing Masterdata attribute to create new one
It's a matter of pseudo attribute.
In your custom.xml, for your masterdata class, let add the following pseudo attribute: ... <Attribute>CUSTOM_ATTRIBUTE <IsPseudoAttribute>true</IsPseudoAttribute> <DisplayName>Custom attribute</DisplayName> <BusinessObjectClass>com.osm.datamgmt.biz.ExpressionAttribute</BusinessObjectClass> <Expression>'http://docsNNN.NNN.com/parts/%NAME%'</Expression> </Attribute> … This piece of XML declare a pseudo attribute which value is calculaded as the Expression. The resulting value is not stored in the database, but displayed anytime you're viewing your masterdata. |
#3
|
|||
|
|||
Re: Use existing Masterdata attribute to create new one
Thank you for your help. I appreciate it.
|
![]() |
Tags |
attributes, customization, links, model manager |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|