Question
Maantic
US
Last activity: 19 Mar 2024 11:44 EDT
How to change pxObjClass of a list type Data Page?
My requirement is to change the pxObjClass of a list type editable Data Page during runtime on click of hyperlink from a modal dialog.
Actually I have a Table layout with Add Question button in the action bottom area of the table. On click of Add Question the modal dialog will open up having hyperlink on the modal dialog. e.g. Question, Question Group. The section is in say for example ABC-Data-Element.
So, if I click on Question, then the pxObjClass for this added item (in the respective pxResults index) will be changed at runtime to ABC-Data-Element-Question.
Similarly if I click on Question Group then the class will change at runtime to ABC-Data-Element-Group.
I tried to change the pxObjClass using Page-change-class method but it's not allowing to change the class and stating that the <data page>. pxResults can't be modified as it's read only, however I am using an editable Data Page.
Can anyone help in resolving this issue?
***Edited by Moderator Marije to add Capability tags***