HOWTO: Add Vendor and Catalog Number to the AML Tab?

rated by 0 users
This post has 1 Reply | 0 Followers

Top 75 Contributor
Posts 22
Points 80
MMarcial Posted: Wed, Mar 14 2007 5:12 PM

GIVEN: The following excerpt from plm_Parts.htm

If the Part is bought, the AML stores the corresponding manufactured part, as well as the manufacturer who produces it and the vendor who sells it. Of course there may be more than one manufacturer or vendor for any given Part.

PROBLEM: There is no reference to Vendors on the AML tab when viewing the Part form.

QUESTION: How do I add in the Vendor and Vendor Catalog Number to the AML tab?

  • | Post Points: 0
Top 50 Contributor
Posts 39
Points 105
snnicky replied on Thu, Mar 15 2007 5:01 AM

Note: I write comments and  explanations in brackets.

First of all I have to say I would draw "Data Model for a Part" another way (comparing to drawn on ProductEngineering/plm_parts.htm).
I'd draw an arrow from Vendor to Manufactured Part instead of arrow from Manufactured Part to Vendor. The same thing with a model on ProductEngineering/Sourcing.htm page. An arrow should go from Vendor to Manufactured Part and not from Manufactured Part to Vendor.
Because this corresponds to Data Model I see in Innovator. (Check Vendor and Manufactured Part to see the dependencies.)

You see Part AML relationship and related Manufactured Part on the AML tab. Manufacturer is a property of a Manufactured Part. Thus you see it on the tab.

 However according to the actual Innovator Data Model the Manufactured Part is a related item in Vendor -> Manufactured Part dependency. The tab (this is a "relationships grid" UI component) does not provide an ability to display "where used" for a related item (related item is an item referenced bya  relationship via related_id property).

If you need this you may do the following:
1) add a new federated property my_vendors to Manufactured Part ItemType (set data_type=federated);
2) implement onAfterGet server event handler for Manufactured Part ItemType.
    in that event handler for each Manufactured Part find where that used (who are vendors) and populate the my_vendors property joining vendors' names with ";" or new line;
3) ensure Hidden2 is false for property my_vendors in Manufactured Part ItemType definition;

When done you'll see a new column my_vendors in AML tab populated with data you set in onAfterGet handler.
The column will be read-only because of the data type (federated).

Page 1 of 1 (2 items) | RSS