36
Views
3
Comments
Solved
Open block in new tab

Hi All,

I want to open block in new tab on current link in prev block,

The block opens but in current tab

Thank you

2020-11-10 07-09-26
Dadi
Solution

Hi @ujwala T 

On screen you need have input parameter for know which block that needs to show, lets say BlockId (Input Parameter)

On parent block also you need input parameter that consume BlockId values, then name it as ex: BlockId2, when this BlockId2 = 1 then open block 1, if BlockId2 = 2 then open block 2.

You can use html attributes target="_blank". Follow this solution to open new tab https://www.outsystems.com/forums/discussion/54897/reactive-app-how-to-open-an-external-site-in-a-new-tab/#Post206420

Dont forget to set the BlockId parameter in the URL, ex: ..../Screen?BlockId=2, so the BlockId2 will turn to 2 and show the block number 2 in the new tab


Regards


2018-06-05 16-54-03
Maria da Graça Peixoto

Hi! 

What you call block is a Screen?

Or 

A you have a screen with 2 tabs and you want to click on a link in a tab and open a WebBlock in the other?

Regards

Graça

UserImage.jpg
ujwala T

Hi,

I have blocks to be displayed based on conditions from parent block,so need to open block in new tab on link of previous block

2020-11-10 07-09-26
Dadi
Solution

Hi @ujwala T 

On screen you need have input parameter for know which block that needs to show, lets say BlockId (Input Parameter)

On parent block also you need input parameter that consume BlockId values, then name it as ex: BlockId2, when this BlockId2 = 1 then open block 1, if BlockId2 = 2 then open block 2.

You can use html attributes target="_blank". Follow this solution to open new tab https://www.outsystems.com/forums/discussion/54897/reactive-app-how-to-open-an-external-site-in-a-new-tab/#Post206420

Dont forget to set the BlockId parameter in the URL, ex: ..../Screen?BlockId=2, so the BlockId2 will turn to 2 and show the block number 2 in the new tab


Regards


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.