Stagging List
Hi Team,
Please help me with the below requirement,
I am using two list items
1. Product List (Stagging List with Hierarchy)
Ex:
2) Key Products(Flat List)
Ex: Having only one Product: PRODUCT A
In the Product Hierarchy list, I am maintaining one attribute called Key Product ? with the boolean format.
Now, in Product Hierarchy "Key Product?" attribute should tick. Whatever the PRODUCTs exit under "Key Product" list those list item should TRUE others FALSE.
I am using FIND ITEM Function but it's not working because the PRODUCT list is a numbered list and this list has duplicates.
Please suggest the same.
Thanks and Regards,
Uma
Best Answer
-
@g.mahesh Uma
Great question. Numbered lists take a while to get used to. Short answer: when you use FINDITEM on a numbered list you look up the ITEM by referring to the CODE, not the display name.
Longer answer: Example.
In this case we have a numbered list with a code and display name.
Blueprint.
Only the line item using code finds the item
Even Longer Answer:
When you have a child branch that has two parents, you have a couple of options. The first is to create an entirely different structured list. Problem with that is that you have to keep the lists in sync. The other options is to create a smart code for the items, something like CODE = PARENT | CHILD, like 1234 | 999999. Then you can parse the code in a calculations module to create the hierarchy dynamically.
Anyway, just some ideas for you.
1
Answers
-
I assume your staging list with hierarchy is numbered list since you have the same items/products that roll up to the different parent(s). In this case, as @JaredDolich mentioned, find-item with code should work not with the display name.
Hope this should help.
Thanks,
Sandeep
1