Make Hyperlink dinamically using window.location.origin
I'm using Analytics Designer to make reports into D2 application.
My organization has several environments as DEV, TEST, QA… my question is below.
I have a table with a Data item that is linked to hyperlink URI as → "http://mydevD2/D2?…"
I'm trying to change the literal “mydevD2” dinamically using a script onCreate handler in the data Item as:
this.action.setHyperlink("http://" + window.location.origin + "/D2…, "_blank");
Seems that window.location.origin (DOM)) is not accessible from here. Anyone can suggest how it could be implemented?
- All Categories
- 102 Developer Announcements
- 50 Articles
- 89 General Questions
- 118 IM Services
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.8K Extended ECM
- 893 Cloud Fax and Notifications
- 75 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 90 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
OpenText CE Products
Magellan Text Mining
Docs & APIs