Modifying a parameterized lookup via XOG to make it not parameterized breaks the attribute in the New User Experience (UX / MUX), and leaves an "orphaned" parameter mapping. This modification is not allowed via the UI. It may be working in one environment, but in another environment, it's not working even though you are using the same exact query. Examples of attributes where this can be reported include:
- Project category
- Project Type
STEPS TO REPRODUCE:
- Go to Administration > Studio > Objects
- Create an object called Garment and API enable it for use on the Modern UX
- On the attributes list, create a string type attribute called: printmethod
- Add it to the object Properties and object List views
- Administration > data Administration > Lookups
- Create a Dynamic query lookup called "Garment Lkp" with the following query:
SELECT
@SELECT:garment.printmethod:printmethod@
FROM ODF_CA_GARMENT garment
WHERE @FILTER@
AND (@WHERE:PARAM:USER_DEF:STRING:GARMENT@ IS NULL OR @WHERE:PARAM:USER_DEF:STRING:GARMENT@ = garment.name)
- Go to Administration > Studio > Objects > Project object
- Create a lookup type attribute (My Garment) and link it to the "Garment Lkp"
- On the Attribute Lookup Parameter Mappings, select "Name" as Object Attribute ID
- Add the attribute to the object Properties and object List views
- Go to Home > Custom Objects > Garment
- Create two instances of the object
- Name:Garment A ID:Garment_A Printmethod: Garment A Printer
- Name:Garment B ID:Garment_B Printmethod: Garment B Printer
- Create a project in Classic called Garment A
- On the project properties view, click on the My Garment attribute binoculars
- Garment A Printer value can be selected
- Do the same on the project list view. The lookup value is selectable
- Go to the Modern UX (MUX)
- Add the project attribute My Garment to a project blueprint
- On the Grid view add the column to it
- The Garment A value is selectable on both views.
- XOG out the lookup
- Change the lookup code from:
SELECT
@SELECT:garment.printmethod:printmethod@
FROM ODF_CA_GARMENT garment
WHERE @FILTER@
AND (@WHERE:PARAM:USER_DEF:STRING:GARMENT@ IS NULL OR @WHERE:PARAM:USER_DEF:STRING:GARMENT@ = garment.name)
TO
SELECT
@SELECT:garment.printmethod:printmethod@
FROM ODF_CA_GARMENT garment
WHERE @FILTER@
- Flush the Clarity caches
- On the Classic UI, using the same project, check the properties and list views
- As the parameter mapping has been removed both values can be seen: Garment A Printer and Garment B Printer
- Do the same on the Modern UX: Check the Project properties and grid view
Expected Results: As the parameter mapping has been removed both values can be seen: Garment A Printer and Garment B Printer
Actual Results: No values can be selected. None is displayed