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

@NagarjunaS16644648 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

https://support.pega.com/question/open-url-new-tab

@NagarjunaS16644648 add on click event on your button and use Open URL in window

@NagarjunaS16644648 All the required details are maintained in a table

how to open this urls on button “View Tipps” click

Hi @Nagarjuna Saidu ,

On click of button,

On change of Dropdown,

D_Links[RequestAdditionaInfo: .RequestAdditionalInfo].Url

Thanks

Hi Anoop Krishna. I was tried like your posted link. But I was failed. Can tell me once again

@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”

  1. 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

  1. Now in open URL in new window → use. pyNote in alternate domain.

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.

@Anoop Krishna : Can you tell me this more dynamic way?

@UdayReddyGunthala where did I call this Data transfer? I’m not able set this D_Links[RequestAdditionaInfo: .RequestAdditionalInfo].Url

@NagarjunaS16644648 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.

@NagarjunaS16644648 you can make your dpage as page(not list) structure and class Apollo-Data-AdditionalInfo.