Question


Wipro Ltd
IN
Last activity: 25 May 2021 10:52 EDT
Button properties
Hi,
In my screen i have a one button called Reject,when i click on this button its need to call some property field like comments should be mandatory.Any one can you give me suggestion
Both are in the same screen
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 25 May 2021 10:52 EDT


Wipro Ltd
IN


Cognitonic Systems Australia
AU
@janardhanr0050 On click of button specify Refresh This section and trigger an activity/DT.
Using Activity: In side activity do Property-Set-Message to field on UI and add your message or do Page-Set-Message to primary page. Once the section is refreshed this message will appear.
Using DT: By leveraging OOTB function @Default.pxAddMessageToPage("Message",Page_Name) message can be added.


Wipro Ltd
IN
How to configure comment field is mandatory(error message should also display in the field) after submitting reject button.
Means after submit reject button screen will stay in the same section and should show comment field is required one.
In flow action post Activity we can do its activity or DT
How can we do this one to comment field


Wipro Ltd
IN


Cognitonic Systems Australia
AU
@janardhanr0050 If this comment field is as part of the work object/ any page that is displayed on UI, when submit/Reject is clicked this Post activity is triggered and in the post-activity, if we specify to add a message to the comments field/Page then it is considered as an error message and the flow doesn't proceed further until the Error message is resolved.
-
janardhan rao


Wipro Ltd
IN
i am done this section by post activity--- property-set-messages and its stopping Section and showing error message .After enter sample message in comment field and click on the button its showing below error and how many times i entered the messages the count value increases like -1,-2,-3...etc. How to stop this message and why it is coming.
-
The cover open count is incorrect; it is -1


AASEYA IT SERVICES PVT LTD
IN
-
"The cover open count is incorrect; it is -1"
-
In general these kind of erreor message will comes when you are working with the child case and populating data back to parent case during the post processing.
Can you please confirm that are you doing any data propagation back to parent case?


Wipro Ltd
IN
Yes I am doing data propogation from parent to child(pagelist properties).
We have any other option to do by validations


Cognitonic Systems Australia
AU
@janardhanr0050 Conditionalize the Property-Set-Message in the activity by using when condition by checking comments field Value is blank or not. This message should be triggered only when the Comments field is blank. In addition before doing Page-Set-Message/Property-Set-Message include Page-Clear-Message so that every time the first message will be cleared and if the comments field is blank error message will be added else not.
Coming to the cover count -1,-2issue which is caused due to pxCoveredCountOpen value, this is a different issue that pertains to child case resolving and status update issues. Following links might be useful with respect to cover count issue
https://collaborate.pega.com/question/pxcoveredcountopen-going-negative
https://community.pega.com/support/support-articles/cover-count-error-negative-values-cover-count
https://community.pega.com/support/support-articles/cover-count-open-1-error-while-withdrawing-cases
Accepted Solution
Updated: 25 May 2021 10:52 EDT


Wipro Ltd
IN