View Single Post
  #2  
Old 10-14-2018, 07:08 AM
ludw ludw is offline
Registered User
 
Join Date: Dec 2006
Location: France
Posts: 86
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.
Attached Thumbnails
Click image for larger version

Name:	Capture20181014170300.PNG
Views:	444
Size:	113.4 KB
ID:	1980  
Reply With Quote