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

"ID" of the element is not rendered in the application

SA-22762

Summary



The "ID" of the element provided in the advanced tab of the repeat grid is not present in the generated html. Due to this, users are unable to locate the xpath of the element.

Error Messages



No error message.

Steps to Reproduce

  1. Add the ID field in the grid's property panel.
  2. Run the usecase.
  3. At run time check the Date of Month (DOM) for that grid.


Root Cause



There are two ID's generated one for GridLayoutTable and the other which user mention in the grid's property panel.
The browser eventually accepts one and honors gridlayouttable id. This is the expected behavior.

Resolution



Perform the following workaround:
  1. Add the unique id in the grid's propert panel.
  2. To uniquely identify a particular grid, add a custom format for the grid layout and also a HTML fragment and inside this fragment, add a div tag with the unique id (say BasicGrid).
  3.  Now this Div tag completely wraps the grid Div.
  4. And then use the above unique id (BasicGrid).
As a sample add a CSS (to change background color of the grid) in UserWorkForm rule:

<style>
div#BasicGrid div.gridDefault tr.cellCont td {
background-color:coral;
}
</style>

In the HTML fragment just add <div id="BasicGrid">.
Suggest Edit

Published May 4, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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