'D Object' as Inventory Content value? Or other way to show web page in Custom Tab?

Hello all,

I am setting up a custom tab in the Performance Information area to show a relevant web page to the operator.

My idea was for the URL to be saved as a Content entry in the Production Elements (with a new content type created in TR_INV_CONTENT), then have custom tab display the web page. 

But I cannot work out a way to set this up in TR_CUST_TAB.

Has anyone tried something similar? 

Thanks, 

Nicholas 

  • Have you looked at LP_PREPROCESS_URL ? That procedure takes a URL as a parameter (I think it's automatically called whenever a URL for a custom tab is loaded.) and it returns a URL as the results. 

    So in TR_CUSTOM_TAB if you set your URL to include the token <<key>> - that token will be replaced with the inv_no for the performance or production number. You can then do a little processing in your LP to grab whatever you need based on the inv_no and return your new URL. 

    For our tab, we just needed to replace the inv_no with the description from t_inventory, but it would be pretty much the same process to take the inv_no and go grab something from tr_inv_content.

    Hope that helps,

    Brian