Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can't use 5 textbox in javascript

Hi friends,

Actually I am trying to use 5 textbox to set some values, this is working fine in the window properties, but I can't read it in javascript.

The definition.xml looks as this:

<?xml version="1.0" encoding="utf-8"?>

<ExtensionObject Label="Geo Map Mexico R1.0" Description="Geographical Map Mexico DIQ. R1.0" PageHeight="100000">

  <Dimension Initial="" />

  <Measurement Initial="" />

  <Text Label="Color Ok" Type="color" Initial="" Expression="#439400"/>

  <Text Label="Color +-" Type="color" Initial="" Expression="#fff"/>

  <Text Label="Color mal" Type="color" Initial="" Expression="#d4d4d4"/>

  <Text Label="Fx Ok" Initial="" Expression="" />

  <Text Label="Fx +-" Initial="" Expression="" />

  <Text Label="Fx mal" Initial="" Expression="" />

  <Initiate Name="Chart.Title" value="Geographic Heat Map Mex" />

  <Initiate Name="Caption.Text" Value="Geographic Heat Map Mex" />

  <Initiate Name="Chart.BgColor.ColorHex" value="#FFF" />

</ExtensionObject>

In Script.js

When I try to get the 4th text, I get an undefined error, this the line code that I am using

                alert(this.Layout.Text3);

I'll appreciate any comments.

Thanks in advance.

Karim

0 Replies