Constellation UI Custom Component how to send a parameter to Data Page
We are trying to set the datasource of a custom component as a Data Page so we can retrieve 2 properties from each result (Option and CustomDescription) but we don't know how to pass a parameter to the Data Page.
So far we've solved that in order to avoid breaking the UI we could use the word "params" as shown in the image to send a custom obj that would hold certain values but those don't seem to be connected to the datapage's behavior.
We've also tested multiple combinations using different annotations as well as sending it as part of the syntax e.g. (@DATASOURCE D_page[param:.val].pxResults or param: @P .val, source: "@associated .$this.name" as well as "fields:{...}, etc.) but so far nothing seems to work.
We've looked into the tutorials and PEGA docs but the few examples that use a Data Page don't use one with parameters.
We are trying to set the datasource of a custom component as a Data Page so we can retrieve 2 properties from each result (Option and CustomDescription) but we don't know how to pass a parameter to the Data Page.
So far we've solved that in order to avoid breaking the UI we could use the word "params" as shown in the image to send a custom obj that would hold certain values but those don't seem to be connected to the datapage's behavior.
We've also tested multiple combinations using different annotations as well as sending it as part of the syntax e.g. (@DATASOURCE D_page[param:.val].pxResults or param: @P .val, source: "@associated .$this.name" as well as "fields:{...}, etc.) but so far nothing seems to work.
We've looked into the tutorials and PEGA docs but the few examples that use a Data Page don't use one with parameters.