how to patch a property in pyWorkCover of a child case?
usually we patch properties in only pyWorkPage.
we need patch pxCoveredCountOpen in pyWorkCover to fix "cover open count -1 " issue.
how to patch a property in pyWorkCover of a child case?
usually we patch properties in only pyWorkPage.
we need patch pxCoveredCountOpen in pyWorkCover to fix "cover open count -1 " issue.
To patch a property in pyWorkCover from a child case, you can directly reference the cover object using tools.getPrimaryPage().getParentPage() or pyWorkCover and then update the property you need. In your case, you want to fix the pxCoveredCountOpen issue. You can do this by opening the cover object with Obj-Open-By-Handle using .pxCoverInsKey from the child case, then use Property-Set to patch pyWorkCover.pxCoveredCountOpen with the correct value, and finally do an Obj-Save followed by a commit if needed. This way, the property is updated at the cover level, not just in the child. Make sure this is done in an activity step or a utility shape after the resolution of the child case so the count stays consistent.