dwidgit - Tuesday, June 11, 2013 1:57 PM:
I was trying to customize the "BOM Structure" tab on the part form to show additional part information. It doesn't appear to behave the same way as most of the tabs in that it doesn't automatically show or hide columns based on the "hidden" or "hidden2" properties for the part. I can't seem to figure out where the selection of which properties to display is controlled. Can anyone point me in the right direction? Thanks,
Derek.
Brian - Tuesday, June 11, 2013 5:29 PM:
Hi Derek,
Go to Relationship views under Administration. Search for Part Multilevel BOM. Open the item. Look on Relationship View Tab. Here you will see whether the view comes from an external start page, a grid or a form.
In this case it is a form. Open the form and you will see that it is a single HTML field on the form that completely defines the functionality that is displayed. You will also have to have a look at the Form Events to see where most of the Javascript code is kept.
Hope this helps,
Brian.
dwidgit - Wednesday, June 19, 2013 10:18 AM:
Thank you Brian. This has gotten me a bit closer. As you noted, the javascript is located in the form "Part MultiLevel BOM". I modified the XSL template code to add the additional columns, and it does succesfully pull in the new column names. Populating those columns with the data isn't working for me yet. From my experience with modifying other forms, the most likely culprit is that the query does not include the required data. From what I understand, it appears that the query is based in the C# function PE_GetMultilBom. Within this function, I believe the key line is:
callframe.setProperty("name", "MultiBom_GetCompleteBom1");
Any thoughts on where "MultiBom_GetCompleteBom1" would be located? Thanks!
Derek.
dwidgit - Wednesday, June 19, 2013 11:13 AM:
Found it! "MultiBOM_GetCompleteBom1" is located under the Administration/SQLs if anyone else is looking for it. I added the required queries, and all is working now. Thanks!
Derek.