Hi All,
My screen is linked to a link which is running a client action doing some logic and redirecting to a screen.
But when I try to open that link with the option 'Open link in a new tab' it didn't work.
What I need 'if' user is going with the option 'Open link in a new tab' then it should run my logic and then go-to new tab otherwise the link should open in same tab with doing all logic.
I read many posts regarding this, but not able to do both things at same time.
Hey saransh, I am not sure I get you requirement correctly or not but if you are option to click the links I have create two link you can able to check this coding and customize with you requirement I have attached the OML and DEMO -(ignore everything except that two links) There is only 1 action I am using for both link (you can used single link as well)Thanks and Regards, Akshay Deshpande
@Akshay Deshpande 🚀 , but Open in a new tab while the right click of a mouse, which I was not getting with the link.
means
1st Scenario :- (When we click the link)
Then it'll open the link in same tab.
2nd Scenario :- (When we try to open the link in new tab by right click of mouse.)
Then it is not opening.
@Dorine Boudry
Hi @Saransh ,
on a link widget, you can just use target property to choose between current or other tab, so one of the things you could do is
If part of your client action is some sort of decision on what screen to link to, you'll have to have such a hidden link for each screen you might want to go to.
see attached oml,
Dorine
thanks, Dorine but Open in new tab while right click of mouse, that I was not getting with the link.
seems like href is missing that's why it is not going to new tab by right click of mouse.
Aaah, ok,
you are talking about the option from the browser context menu that appears when right clicking a link element. That doesn't work with links that are bound to a screen action (which is probably why the href is empty, because in effect, it is no longer a real link element).
I don't think we have access to the browser generated context menu, so you can't have both, it being a real link and at the same time it starting a screen action.
If you only want to avoid confusion for you users, just hide the browser context menu. If you really want this functionality in exactly this form (right clicking on the link), then you'll probably have to do some more work.
But the thing is, all problems start with having a link execute an action, I know it is an option available, but then it stops being a real link and all this type of problems emerge.
Yes dorine, you are right we can't do both things at a time.
Need to run that action in another way.
Hi @Dorine BoudryI am facing this issue in 2024 with exact functionality of any browser "open link in new tab"(I use google chrome) not working. It opens same screenHow can solve this problem, target="_blank" is not making it work properlyRegards, Yerassyl Serikov