CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > Data Management

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 09-27-2018, 08:07 AM
m.epp m.epp is offline
Registered User
 
Join Date: May 2011
Posts: 6
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.
Reply With Quote
  #2  
Old 10-14-2018, 08:08 AM
ludw ludw is offline
Registered User
 
Join Date: Dec 2006
Location: France
Posts: 83
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:	14
Size:	113.4 KB
ID:	1980  
Reply With Quote
  #3  
Old 12-05-2018, 07:35 AM
m.epp m.epp is offline
Registered User
 
Join Date: May 2011
Posts: 6
Re: Use existing Masterdata attribute to create new one

Thank you for your help. I appreciate it.
Reply With Quote
Reply

Tags
attributes, customization, links, model manager


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:57 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.