Question
Murex
LB
Last activity: 27 Sep 2017 2:51 EDT
Snapstart Show Harness generating "Empty Work Item Handle"
Hello,
We are utilizing SnapStart module outside of the Pega Mobile SDK to show a harness whose id is CaseSearch and it is under class MX-FW-CSFW-Work-Case
We have constructed the below URL for that:
=D_GlobalParam.PegaCSURL+"/?pyActivity=SnapStartCustom&Action=showHarness&ClassName=MX-FW-CSFW-Work-Case&Purpose=CaseSearch&ReadOnly=false"
However the harness is not being displayed and we are getting a popup that says "Empty Work Item Handle"
Note we are able to use a SnapStart url to Open a Work Object by using the below URL:
=D_GlobalParam.PegaCSURL+"/?pyActivity=SnapStartCustom&Action=openWorkByHandle&InsHandle=MX-FW-CSFW-WORK-PROJECT P-00123&pyShowFullPortal=true&pyPhoneNavRuleMainVisible=true"
where =D_GlobalParam.PegaCSURL represents https://pegacsdevap.murex.com/prweb/PRServletContainerAuth/
Any help will be greatly appreciated.
Thank you,
Mariane
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Murex
LB
Any idea about the above ?
Many Thanks,
Mariane
Murex
LB
Any idea about the above ?
Many Thanks,
Mariane
Pegasystems Inc.
US
Hi Mariane,
In your example, you are calling SnapStartCustom and not pyMobileSnapstart. What have you customized in that activity?
In your example, you have the harness set as editable (readOnly=false), but you do not specify the clipboard page that you want the harness rendered against. Typically, top-level harnesses are rendered against system pages, such as pyPortal (Data-Portal). Assuming you first called &Action=openWorkByHandle, and now wish to make a second call to display the harness against the work object, you would want to add &pzPrimaryPageName=pyWorkPage to the URL calling showHarness.
However, my recommendation if you want to show a harness rendered against the work object is to instead modify or circumstance the Review harness for your application to display the content you wish to be displayed in the mobile mashup, and then just use the &Action=openWorkByHandle to open the work object and display the Review harness.
- James
Murex
LB
Hello James,
Many thanks for your reply and your input.
Please find below the our customized activity SnapStartCustom:
Our need is not opening a work object. We simply want to open a harness which contains a section holding a repeat grid.
For more visibility, I am attaching below the Harness we want to display:
Is it possible to accomplish this requirement ?
Thank you in advance,
Mariane
Pegasystems Inc.
US
Hi Mariane,
In your example, you are redirecting to Data-Portal.ShowDesktop rather than calling it directly. This will cause an HTTP 303 redirect response that only contains the pyActivity parameter to be passed, dropping all other parameters. I recommend returning to calling ShowDesktop directly, passing all parameters.
Also, the scope of the activity at this point is pyPortal (Data-Portal). Trying to render a work harness meant to be used against a work page might yield unwanted results. I recommend refactoring our portal to Data-Portal if it is not meant to be used as a view of a work object.
- James
Murex
LB
Hello James,
Many thanks you for you reply. It is much appreciated :)
I tried calling the ShowDesktop directly, passing all parameters but it didn't work. I am not sure if it is because I am wrongly passing the parameters.
That is the URL I was using:
I would really appreciate it if you can show me a concrete example on how to construct the URL that allows me to view a harness in another Pega environment.
To give you more details about my requirement:
In Pega Environment #1 we will have a link. Once clicked on, we will be redirected to a harness/section in Pega environment #2
I am attaching below a Live UI view of the harness/section under Pega environment #2 that must be opened on click of the link:
Hello James,
Many thanks you for you reply. It is much appreciated :)
I tried calling the ShowDesktop directly, passing all parameters but it didn't work. I am not sure if it is because I am wrongly passing the parameters.
That is the URL I was using:
I would really appreciate it if you can show me a concrete example on how to construct the URL that allows me to view a harness in another Pega environment.
To give you more details about my requirement:
In Pega Environment #1 we will have a link. Once clicked on, we will be redirected to a harness/section in Pega environment #2
I am attaching below a Live UI view of the harness/section under Pega environment #2 that must be opened on click of the link:
Thank you in advance for your help :)
Mariane
Murex
LB
Additional Info:
Please note that from Pega environment #1, I can be redirected to Pega environemnet #2 and open a Work Object (that only exists in Pega environment #2) by using the below url:
https://pegacsdevap.murex.com/prweb/PRServletContainerAuth/?pyActivity=SnapStartCustom&Action=openWorkByHandle&InsHandle=MX-FW-CSFW-WORK-PROJECT P-00123&pyShowFullPortal=true&pyPhoneNavRuleMainVisible=true
where:
1) the pzInsKey of the Work object is: MX-FW-CSFW-WORK-PROJECT P-00123
2) the activity SnapStartCustom was previously shared with you in an earlier reply
I hope this additional information helps.
Many Thanks :)
Mariane
Pegasystems Inc.
US
Hi Mariane,
In your redirect, you are dropping all of the parameters except for pyActivity. You need to pass all of the other parameters along in your redirect's query string.
- James
Murex
LB
Hello James,
Thank you for your reply.
I would really appreciate it if you can give me an example of how to construct the URL with the right query strings as I am not sure what you mean ?
Thank you,
Mariane