pegasystems / constellation-ui-gallery

This open-source repository provides a collection of ready-to-use and customizable Constellation DX components. Use this resource to gain inspiration, best practices, and a solid foundation for implementing custom components.
https://pegasystems.github.io/constellation-ui-gallery/
Apache License 2.0
30 stars 22 forks source link

Issues With Dynamic Hierarchical Form Template #64

Closed Prudhvi1109 closed 2 months ago

Prudhvi1109 commented 2 months ago

Please find below issues for Dynamic Hierarchical Form Template.

  1. Once we delete option in Check box combo, it is not getting populated again in the auto complete
  2. Property message is not displaying on the property.

Step to reproduce for Issue 1:

  1. We have imported ConstellationUIGallery:01-01 for using Dynamic Hierarchical Form Template
  2. Created a view using Dynamic Hierarchical Form Template
  3. Configured all details
  4. Once we delete option in Check box combo, it is not getting populated again in the auto complete

Step to reproduce for Issue 2:

  1. Setting error message on some property in the tab, message is not getting populated on the proper

Dynamic Hierarchical Form Template Issue.docx

ricmars commented 2 months ago

several questions 1 - Did you try with the demo application provided on Github and the example shipped in this application 2 - Are you running on 23.1? 3 - Why do you have the same field 'role' exposed twice on the screenshot - the selection field should only present once on the UI otherwise it will conflict and map to the same property in the client store 4 - Is there any network error or javascript error in the console on delete? 5- If you expand the dropdown of role, do you see all the available options? do you see the list of roles coming back correctly from the dx api response (see screenshot) Screenshot 2024-06-20 at 9 12 30 AM

For issue #2 - this is currently a known limitation - the UI is not rendered when there is a validation error to show the field validation error - I will try to enhance this component to add support for this functionality

Prudhvi1109 commented 2 months ago

Hi,

With z-index 6999 it is not showing up, now we have updated that to 7000 then it is showing. Please find attached screen shot for reference. image image

ricmars commented 2 months ago

I cannot reproduce this issue on 23.1 with a regular work portal , a z-index of 1 should work fine too - are you using web-embed?

for issue #2 - this is a known limitation and will see if the implementation can be enhanced

Prudhvi1109 commented 2 months ago

Hi, We are using it in Create View Modal of a case Type.

Prudhvi1109 commented 2 months ago

Hi, There is another issue with Dynamic Hierarchical Form Template, where even if we make selection field as required always, component is not showing asterisk symbol besides to that field. Please find below screen shots for reference.

image image

ricmars commented 2 months ago

https://github.com/pegasystems/constellation-ui-gallery/pull/65 will fix 2 of the reported issues (required missing on the product combobox + issue with combobox z-index in create modal)

To fully validate that the products are required and you need at least one product, you need a validate activity on the post-processing of the flow action to validate that at least one product is selected

The other request which is to perform field validation on the embedded tab content - this is not possible in 23.1 - There might be a way to achieve this in 24.1, but this will require extra effort.

closing this issue since all issues have been answered- please open a new issue for reporting other issues - Also this project is an open source project and if you find bugs or issues, you are welcome to contribute this project and provide the fix.