Written by

Question Mark OReilly · Jul 31, 2024

How to get value from Zenpage component from Chrome/edge addon JS

Hi:

I have been adapting the IRIS WHIZ addon as part of the contest. I will soon fork the code on github so the changes are available. 

The next phase is I am storing the date from and to time for a more complete search cache 

zenPage.getComponent(36).value

it works in the chrome console ok 

I'm not sure in external JS how to set the page it is on as a zenpage to use the zenpage functions

Product version: HealthShare 2023.1
$ZV: IRIS for Windows (x86-64) 2023.1.4 (Build 580U) Fri Apr 19 2024 11:16:07 EDT [Health:5.1.0-3.m4]

Comments

Robert Cemper · Jul 31, 2024

ZENpages load a bunch of dedicated js libraries + scripts in browser for it's communication
Suggestion: create a simple ZEN page and check js libraries and scripts used. 

0
Mark OReilly  Aug 2, 2024 to Robert Cemper

I had a look but still couldn't see where exactly zenPage is defined to be able to call one of the scripts to use the getComponent function from an external js script

0
Robert Cemper  Aug 2, 2024 to Mark OReilly
  • a zen page definition creates a class (just like CSP)
  • the runtime of this class is an INT routine.
  • Anr there is hidden the truth of JS and COS

     

0