Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Data page parameter default value missing

SA-28732

Summary



User noticed that activity is removing quotes of default parameters of data page populated in a Page list . In a case where an Activity invokes the PageList and the Page List has Data Page as its Data Access and the Data Page is sourced from Report Definition).

Error Messages



Not Applicable

Steps to Reproduce

  1. Create a Data Page which is sourced from a Report Definition.
  2. Provide a default input parameter in the Data Page of type “abc”,”xyz” ( 2 strings separated by comma).These parameters are inturn passed to the RD.
  3. Create a Page List for which, choose the data access as “Copy data from a data page”.
  4. Refer the above created DataPage in this and you should be able to see the default parameters.
  5. Refer the Page list created, as the step page of the activity.


Root Cause



The Datapage sends the parameter("abc","xyz") to RD as a single string only. Since our parameter has comma separated values, at run time when RD constructs a query, it treats this parameter as a inline cause expression and understands it as two different values. So these are in turn populated in the pyPreparedValues which made user feel the data page by default sending the two  strings to RD. More over, description mentioned in the Summary is an expected behaviour.

Resolution



Perform the following local-change:  Extra double quotes are appended to the parameter(""abc","xyz"") in the default value. So, when activity removes the extra quotes ("abc","xyz"), it is send to RD, RD treats it as inline clause and takes it as abc and xyz two different values.

 

Published October 7, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us