Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Definition.xml help

Is it possible to refer to a text that you have created in the xml. Here is an example to what I mean:

    <Text Name= "Title" Label="Title" Type="text" Initial="" Expression="TitleStatements"/>

     <Text Name= "Statement" Label="Statements" Type="text" Initial="" Expression="RegStatements"/>

Now I want to make one more Text field to use for my scrolling ticker, but I do not know the syntax. In this field I would want the Expression to look something like this

     Expression = "=concat( "+Title +" & " +Statements+". '.....')

where Title and Statements have already been filled.

The reason I am trying to do it this way is because I have the Title field in bold in the script and the statement to not be in bold.

Thanks,

Kevin

3 Replies
Clever_Anjos
Employee
Employee

fields inside your definition.xml are not accessible as fields.

They can be accessed using javascript API

this.Layout.Text1.text.toString() returns your first Text tag and so on

Not applicable
Author

Yes that is what I thought. Problem occurs that when I create a function string in the script (ie. concat(Field1,'...') I am just going to see this function, where in if I put it in the xml file it will run appropriately.

Ok thanks for the reassurance

Clever_Anjos
Employee
Employee

Unfortunately those values are not visible into QlikView scope