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

Images do not render in a grid in a modal dialog

SA-65212

Summary



When a grid with customized pzBinaryImage control is opened in a modal dialog, images display in the first row only. The image does not render in the rest of the rows and the rows have empty columns.


Error Messages



Not Applicable


Steps to Reproduce

  1. Save pzBinaryImage control in the local ruleset.
  2. Add a link with an onClick open local action in modal dialog.
  3. In the modal section, add a grid with one column using the customized control from Step1.
  4. Run the case.
  5. Click the link.


Root Cause



A software use or operation error 

The pzBinaryImage control was overriden to make the DIV's ID containing the image, unique for each row. In the out-of-the-box pzBinaryImage control DIV's ID is static.

At the end of the script, a single line comment is present. As a result, at run time when the script is executed for the first row, the rest of the rows of that script are commented out.



Resolution



Perform either of the following local-changes:
  • Remove the commented statement.
  • Include the statement in a multi-line comment (for example, /* Statement */).

Published December 25, 2018 - 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