<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How can I access the attributes of a ivy HTML Dialog component from its logic?</title><link>https://answers.axonivy.com/questions/1523/how-can-i-access-the-attributes-of-a-ivy-html-dialog-component-from-its-logic</link><description>&lt;p&gt;I have the following ivy HTML Dialog component:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;cc:interface componentType="IvyComponent"&amp;gt;
  &amp;lt;cc:attribute name="location" type="ivy.Location" required="true"/&amp;gt;        
&amp;lt;/cc:interface&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;How can I access the attribute location from a logic process of the component?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1523/how-can-i-access-the-attributes-of-a-ivy-html-dialog-component-from-its-logic" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 20 Oct 2015 09:27:18 -0400</lastBuildDate><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/1523/how-can-i-access-the-attributes-of-a-ivy-html-dialog-component-from-its-logic/1524</link><description>&lt;p&gt;You can use the following ivyScript Code to access the value of the attribute:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import ivy.Location;
import javax.faces.context.FacesContext;

FacesContext fc = FacesContext.getCurrentInstance();
Location obj = fc.getApplication().evaluateExpressionGet(fc, "#{cc.attrs.location}", Location.class) as Location;
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Tue, 20 Oct 2015 09:27:18 -0400</pubDate><guid>https://answers.axonivy.com/questions/1523/how-can-i-access-the-attributes-of-a-ivy-html-dialog-component-from-its-logic/1524</guid></item></channel></rss>