We are calling pxAttachContent on a repeat grid and the attachment category we needed to hold a dynamic value. When loading the repeat grid, we determine which value needs to be for the attachment category (loaded categories are already built on the system)
On the controllers settings ( attachment settings ) Category we have set as property reference and passing the property which contains the actual category value.
This will actually store the reference of the property given above ($PpyWorkPage$pDocList$l1$pDocCategory), Is there any way to map the value inside of the property or above approach needs to be changed ?
We used a regex to get the page path only and on a DT using as a step page and get the actual value we needed to map and on the OOTB attachment pop up, we updated the “draganddrop” page which holds the uploaded attachments.
This is a GenAI-powered tool. All generated answers require validation against the provided references.
To achieve dynamic attachment categories in a repeat grid ensure that the property reference for the attachment category is correctly set to the property that holds the desired category value. If the property reference is correctly configured it should dynamically map the value as intended. However if the value is not being populated as expected consider reviewing the configuration of the property reference and ensuring that the property is being correctly set before the repeat grid is rendered. Additionally you may need to implement custom logic to ensure that the property is updated with the correct category value during the loading of the repeat grid.