Question
Accenture
IN
Last activity: 6 Sep 2016 17:09 EDT
Can we run a SafeURL into the dynamic container?
I m working on PEGA 7, This question is regarding composite portal,
From the left panel of composite portal, I am running a SafeURL , through which a activity is getting called which loads a harness.
The problem is that the harness is diplayed on the entire screen intead of the dynamic container present in the work area.
Is there a way to display the harness in the work area (dynamic container) using SafeURL?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 26 Nov 2015 3:16 EST
Accenture
IN
My Team mate has implemented this using openSpace, instead of OpenURLInSpace and it is working fine
Pegasystems Inc.
IN
Hi
I believe you can do it. We have some out of the box areas where same kind of design has been implemented. For example the section Data-Portal. pyRecents. It is used to show the recent items on the left navigation panel on click of link , it opens the selected item ( rule or data ) on the right side panel inside a dynamic container. The key function here is : removeScreenLayoutMask() which is defined in the pega_desktop_api.js . So this should be your starting point for checking configuration.Please explore the files to get a good picture on the same.
Accenture
IN
Function like OpenWorkByHandle function opens the workobject in the dynamic container.
But OpenURLInSpace does not open the url in the dynamic container but opens it in a popup.
Did some trial and error and found that pega.desktop.getCurrentSpaceName() is returning null.
May b that is the reason that it is getting opened in a popup instead of the dynamic container.
Any idea how to create a workspace?
If i raise a ticket with pega for this will they help?
Updated: 16 Nov 2015 15:01 EST
Pegasystems Inc.
US
Rassaiya,
Based on our current policies, if you raise an SR, you'll most likely get directed back here. Let's see if you get any feedback to your follow-up question. We'll keep an eye on this in case you don't.
Thanks.
B.
Pegasystems Inc.
IN
Hi
Let me do some research and get back to you on this.
Pegasystems Inc.
IN
Hi
Sorry for getting back late on this. Did some more research on this ( but not able to find a concrete solution yet ).
Summary below
1. OpenURLinSpace takes mainly three parameters : URL, Space ( name of the space where you want to open the URL ) and bringtoFocus ( Boolean variable ).
2. Space is nothing but name of the frame. So for example if I provide "_parent " for this as input, then it is repainting my entire screen and opening the new URL
With this, the question rises that how we can give the frame name to the Dynamic Container so that at runtime the script identifies the container and open the URL there.
I will continue by investigation on this and will pull in some of the UI experts to get their opinion on this and keep you posted.
Accenture
IN
Hi Santanu, I have used Dynamic container in the workarea.
If I use something else will the openurlinspace work there?
Pegasystems Inc.
IN
Hi
I will check it and get back to you !
Pegasystems Inc.
IN
Hi Rasaiya,
I am afraid I dont think that it is possible to achieve. Vinayak Kuraku may be you can share your thoughts here.
Accenture
IN
Another method found around this is to find the frame and load the url into it
Accenture
IN
Thanks for your effort âº, Please let me know if you find any thing around it.
I m also trying workaround for the same and exploring the same..
PEG
IN
Hi Rasaiya,
I think it is not possible to achieve the requirement by calling an activity. The reason behind it is the DynamicContainer has two options, first is the Single Document and Multi Document. Now in your case, you are trying to call an activity using SafeURL which will present you finally with a Show-Harness method to display the stream. Instead configure the Harness option available as an OOTB feature on Actions tab of link or button which also have the options to call an activity or datatransform and finally displays the Harness. This can be done an OOTB button or link.
If this is not possible, then use the following script -
pega.desktop.showHarnessWrapper(target,className,harnessName,preActivity,activityParameters,"",tabName,"",readOnly,dataTransform,"false","","","","true","true" );
Parameters for the above script:
target - newDocument - Use if you have chosen the Multi Document Mode.
- current - which replaces the current harness
- popup - Opens in a popup
tabName - Name of the tab
harnessName - Name of the Harness
className - Class of the Harness that is belongs
Thanks,
Vinayak
Accepted Solution
Updated: 26 Nov 2015 3:16 EST
Accenture
IN
My Team mate has implemented this using openSpace, instead of OpenURLInSpace and it is working fine
ScotiaBank
CA
Hi All,
My application is upgraded to 7.1.7. We replaced work area control with Dynamic containers. when we click on a row in the list view in derfault screen case is opening in a pop-up instead of opening in a tab. the list view single click function is using safeurl. How ca i achieve this.