Question

functionality "obj-open-by-handle" how to create the structure "pyWorkPage.PxCoveredInsKeys" with the references of the children.

Hi,

In an activity I am using the functionality "obj-open-by-handle" and I see that in the object that creates appears the data structure "pyWorkPage.PxCoveredInsKeys (property type "value list")", with the children of the incident, but when looking at the functionality "obj-open-by-handle" I see no code, only appears that is a method.

¿Can you help me to know how to create the structure "pyWorkPage.PxCoveredInsKeys" with the functionality "obj-open-by-handle"?

Attached capture of the "obj-open-by-handle" functionality definition in file "Obj-Open-By-Handle.png".

Correct Answer
December 5, 2018 - 9:23am

Hi CarissaW_GCS,

You're right partly.

After your answer, I have executed a query on DataBase to check what you say. I found that to consult this property "pxCoveredInsKeys" must be referenced in the clause "select" like this: 

 

To get the first child of the casepegadata.pr_read_from_stream('pxCoveredInsKeys(1)',pzInsKey, pzpvstream)

To get the second child of the casepegadata.pr_read_from_stream('pxCoveredInsKeys(2)',pzInsKey, pzpvstream)

 

... and successively

 

¿Do you think it's right?

 

Thanks so much.

Regards.

 

Miguel.

Comments

Keep up to date on this post and subscribe to comments

December 5, 2018 - 8:11am

pxCoveredInsKeys is a property on the work object stored in the blob. When the work object is opened using Obj-Open-by-Handle, it will open the blob from the database and put the data on the Clipboard page.

December 5, 2018 - 9:23am
Response to CarissaW_GCS

Hi CarissaW_GCS,

You're right partly.

After your answer, I have executed a query on DataBase to check what you say. I found that to consult this property "pxCoveredInsKeys" must be referenced in the clause "select" like this: 

 

To get the first child of the casepegadata.pr_read_from_stream('pxCoveredInsKeys(1)',pzInsKey, pzpvstream)

To get the second child of the casepegadata.pr_read_from_stream('pxCoveredInsKeys(2)',pzInsKey, pzpvstream)

 

... and successively

 

¿Do you think it's right?

 

Thanks so much.

Regards.

 

Miguel.

December 5, 2018 - 9:44am
Response to Miguel Calderon

These statements are using the UDFs to read the pxCoveredInsKeys values from the blob. What is the reason for trying to read these particular properties from the blob?

December 5, 2018 - 9:54am
Response to CarissaW_GCS

The reason for reading this property of the BLOB is that when you open the child case the error message is displayed:

"Work object " + .pzInsKey + " is not covered by " + .pxCoverInsKey

Which is defined in step 21 of the activity "Work-Open in RS: Paste-ProcessEngine: 07-10-27", see attached capture "Activity_Work-Open_ RS_Paste-ProcessEngine07-10-27.png"

 

Regards.

Miguel.

Pega
December 6, 2018 - 2:14am
Response to Miguel Calderon

May i know the exact use case that you are trying to achieve here by reading this property using UDF?

December 10, 2018 - 3:32am
Response to rawap

Hi Rawap,

    I've solved the issue.
I needed to read this property using UDF to know the cases dependent children of a parent case.

 

Thanks so much.
Miguel.