- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 04:51 PM
In Order Management:
How can I script a Relationship from the 'Oder Line Item' to the 'Product Order'?
System Defenition > Relationships
Order Line Item: sn_ind_tmt_orm_order_line_item
Product Order: sn_ind_tmt_orm_product_order
Field on Order Line Item table: order_line_item
Field on Product Order Table: number
See attached.
I need to create a Related List on the Product Order table that displays the associated Order Line Items.
Greatly appreciate help!!!
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 07:22 PM
No worries @Su522,
I see, so you want to show all the Order Line Items under the same Order. I don't have much experience with Order Management but I don't think this is how you should be using it. An Order Line Item should be linked to a Product Order and the PO shouldn't be shared across multiple OLIs.
But once again, you can use the below script:
(function refineQuery(current, parent) {
current.addEncodedQuery('order=' + parent.order_line_item.order);
})(current, parent);
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 11:16 AM
Hi James,
Could you please help me again?
How do I do this same query in a Client Script?
(function refineQuery(current, parent) { current.addEncodedQuery('order=' + parent.order_line_item.order); })(current, parent);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2024 01:55 AM
Hey @ssellmeyer,
Sorry, what are you trying to do with a client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 11:18 AM
How can I do that same query in a Client Script?
(function refineQuery(current, parent) {
current.addEncodedQuery('order=' + parent.order_line_item.order);
})(current, parent);
I really appreciate your help!
Thank you