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

Actionable button parameter "value" can not be set leading to error "Resource not found" #32

Closed sschoute closed 6 months ago

sschoute commented 6 months ago

When i configure the Actionable Button, i dont get the option to specify the pzInsKey. When i only specify the flowaction I get the error "Resource not found"

Documentation: image

Design time configuration: image

Error at runtime: { "errorClassification": "Resource not found", "localizedValue": "The resource cannot be found.", "errorDetails": [ { "message": "Error_Case_Not_Found", "erroneousInputOutputFieldInPage": "", "erroneousInputOutputIdentifier": "", "errorClassification": "", "localizedValue": "Case not found for the given parameter ID", "messageParameters": [] } ] }

ricmars commented 6 months ago

Screenshot 2024-03-06 at 12 23 14 PM

You should see the 'Instance Handle Key' in any case type - if not, check if the pzInskey is a relevant record for Work-

ricmars commented 6 months ago

Note that you should use promoted action if you want to show a button in the case view https://academy.pega.com/topic/optional-actions/v5#:~:text=The%20promoted%20Action%20is%20the,the%20first%20Case%2Dwide%20Action.

sschoute commented 6 months ago

Oh ok, so this only works when you use this control on the pzInsKey field? I guess I then misunderstood the instructions in the documentation.

Op wo 6 mrt 2024 om 18:24 schreef Richard Marsot @.***>

Screenshot.2024-03-06.at.12.23.14.PM.png (view on web) https://github.com/pegasystems/constellation-ui-gallery/assets/29442140/9bee6946-eed6-444b-8fde-db922c9a64ec

You should see the 'Instance Handle Key' in any case type - if not, check if the pzInskey is a relevant record for Work-

— Reply to this email directly, view it on GitHub https://github.com/pegasystems/constellation-ui-gallery/issues/32#issuecomment-1981400673, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGJLJ5PW452KUI7YE2KCJGDYW5GMPAVCNFSM6AAAAABEJIWVOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBRGQYDANRXGM . You are receiving this because you authored the thread.Message ID: @.***>

sschoute commented 6 months ago

Note that you should use promoted action if you want to show a button in the case view https://academy.pega.com/topic/optional-actions/v5#:~:text=The%20promoted%20Action%20is%20the,the%20first%20Case%2Dwide%20Action.

Yes I am well aware of (and really appreciate) this option and will use it whenever I am able to.

sschoute commented 6 months ago

Screenshot 2024-03-06 at 12 23 14 PM

You should see the 'Instance Handle Key' in any case type - if not, check if the pzInskey is a relevant record for Work-

Yes, I tried it and it works. Note that you can only use this control/component on a field that contains the pzInsKey. Perhaps something to add to the documentation to make it more clear? thanks for your support!

ricmars commented 6 months ago

you can also use it on data object with pyGUID - I have updated the doc and added screenshot - hope it help - the action button is also showcases in the application provided here https://github.com/pegasystems/constellation-ui-gallery/releases

sschoute commented 6 months ago

you can also use it on data object with pyGUID - I have updated the doc and added screenshot - hope it help - the action button is also showcases in the application provided here https://github.com/pegasystems/constellation-ui-gallery/releases

Thanks! Are there plans to enable the use of this actionable button inside a Gallery tile? I have a use case to make something similar to this: image

For this use case, the promoted action is not available nor is the regular actions menu. The only option i have now is to use the preview and show the custom action button in the preview (because also the promoted action is not available in the preview).

ricmars commented 6 months ago

there is no plan right now but you can build it as a constellation DX component - look at the kanban example - each card is a view - the view can contain the actionable button.

ricmars commented 6 months ago

I released last week a new component called Card Gallery that would implement this use case - you use a view and the view can have an actionable button - it also have the built-in edit capability https://pegasystems.github.io/constellation-ui-gallery/?path=/docs/widgets-card-gallery--docs

sschoute commented 5 months ago

thanks Richard, is this already included in the ConstellationUIGallery ruleset in the package that is downloadable?

Op di 12 mrt 2024 om 12:23 schreef Richard Marsot @.***

:

I released last week a new component called Card Gallery that would implement this use case - you use a view and the view can have an actionable button - it also have the built-in edit capability https://pegasystems.github.io/constellation-ui-gallery/?path=/docs/widgets-card-gallery--docs

— Reply to this email directly, view it on GitHub https://github.com/pegasystems/constellation-ui-gallery/issues/32#issuecomment-1991423214, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGJLJ5PJSYYFU3YARK3XZTTYX3QSLAVCNFSM6AAAAABEJIWVOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJRGQZDGMRRGQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Vriendelijke groeten,

Sander Schouten T. +31683921155

vbhardwaj84 commented 5 months ago

Is the Pega jar also updated Rich with this component?

ricmars commented 5 months ago

@vbhardwaj84 and @sschoute - new release publish https://github.com/pegasystems/constellation-ui-gallery/releases/tag/1.0.8 with the Card gallery - Hope it helps!