Hi Team,
Does anybody have the code snippet to open a new Webpage in a seperate tab from a button action in BPMOnline?
I have a field with link in the Accounts section, I have created a custom button with name "Open Webpage". When user clicks on this button, the link in the custom field has to open in a new seperate tab on the same page.
Please share if you have any code snippet.
Thanks,
Venkat.
Like
2 comments
15:10 Feb 16, 2018
Dear Venkat,
Please find the following example:
1. I bind my button to the custom method:
//button insert code "values": { "itemType": Terrasoft.ViewItemType.BUTTON, "click": {"bindTo": "openWindow"} }
2. Method:
openWindow: function() { var path = this.get("CustomFieldWithURL"); window.open(path, '_blank'); }
Hope this will help you.
Regards,
Anastasia
16:13 Feb 16, 2018
Hi Anastasia,
It worked for me. Thanks for the reply.
Thanks,
Venkat.
Show all comments