Question
Hopkins Software Pvt. Ltd.
IN
Last activity: 29 Mar 2023 4:41 EDT
How to open External website on button click?
Hi Everyone,
I have a drop down control and having options like Increase immunity, skin glow and so on. My requirement is when I was select the drop down control and click on button then related websites are opened this not a local action. How to do this
-
Like (0)
Sridhar Khetavath Meera Narayanan -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 29 Mar 2023 1:45 EDT
Bits in Glass
IN
@NagarjunaS16644648
Here our aim is set a property with URL from a data page.
1. Create a dpage
Source Data Transform->
Parameter -> Type
When Param.Type=="Diabetes"
Set property-> .URL = "Diabetes related URL you have"
When Param. Type=="skin"
"Skin related URL you have"
2. Open your dropdown cell-> action set->
--->Post Value
----> Run Data transform, here set URL from dpage
.pyNote=Dpage [parameter:.yourselecteditem].URL
So if Diabetes, diabetes URL will be set, if skin, skin related
3. Now in open URL in new window -> use. pyNote in alternate domain.
Updated: 23 Mar 2023 2:07 EDT
Bits in Glass
IN
@Nagarjuna Saidu Please refer to the below URL for reference. You can try giving the URL directly without dpage.prop also. But dpage.prop is the better approach
-
Nagarjuna Saidu
Hopkins Software Pvt. Ltd.
IN
Hi Anoop Krishna. I was tried like your posted link. But I was failed. Can tell me once again
Accepted Solution
Updated: 29 Mar 2023 1:45 EDT
Bits in Glass
IN
@NagarjunaS16644648
Here our aim is set a property with URL from a data page.
1. Create a dpage
Source Data Transform->
Parameter -> Type
When Param.Type=="Diabetes"
Set property-> .URL = "Diabetes related URL you have"
When Param. Type=="skin"
"Skin related URL you have"
2. Open your dropdown cell-> action set->
--->Post Value
----> Run Data transform, here set URL from dpage
.pyNote=Dpage [parameter:.yourselecteditem].URL
So if Diabetes, diabetes URL will be set, if skin, skin related
3. Now in open URL in new window -> use. pyNote in alternate domain.
-
Nagarjuna Saidu Shiv Shakti Kumar
Hopkins Software Pvt. Ltd.
IN
Hi Anoop Krishna. Thank You for your response. when I'm Creating Data page source is Data Transfer. Here my problem is creating data transfer under Code-pega-List class or our actual information class Apollo-Data-AdditionalInfo class.
Bits in Glass
IN
@Nagarjuna Saidu you can make your dpage as page(not list) structure and class Apollo-Data-AdditionalInfo.
Hopkins Software Pvt. Ltd.
IN
@Anoop Krishna : Can you tell me this more dynamic way?
Bits in Glass
CA
@Nagarjuna Saiduadd on click event on your button and use Open URL in window
-
Nagarjuna Saidu
Hopkins Software Pvt. Ltd.
IN
@Nagarjuna SaiduAll the required details are maintained in a table how to open this urls on button "View Tipps" click
Updated: 24 Mar 2023 3:12 EDT
Virtusa
IN
Hi @Nagarjuna Saidu ,
On click of button,
On change of Dropdown,
D_Links[RequestAdditionaInfo: .RequestAdditionalInfo].Url
Thanks
-
Nagarjuna Saidu
Hopkins Software Pvt. Ltd.
IN
@UdayReddyGunthala where did I call this Data transfer? I'm not able set this D_Links[RequestAdditionaInfo: .RequestAdditionalInfo].Url
Pegasystems Inc.
GB
@Nagarjuna Saidu You need to create a data page for your links table. Name the data page as D_Links with request additional information as the parameter. Then as @UdayReddyGunthala suggested, on click of view tips button, add an action for opening the url in a window, in alternate domain url field you should load the url from table using the data page that you created with following config:
D_Links[RequestAdditionaInfo: .RequestAdditionalInfo].Url
Assuming RequestAdditionalInfo is the property used for the drop down. You may also need to do a post value action for change event for the dropdown control.