<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to start an ivy script method from the main panel in a component?</title><link>https://answers.axonivy.com/questions/1520/how-to-start-an-ivy-script-method-from-the-main-panel-in-a-component</link><description>&lt;p&gt;Hello everybody!&lt;/p&gt;
&lt;p&gt;I have a problem in my ivy-project. 
In my main HTMl dialog panel, I add dynamically 8 rows(component)(ui:repeat). &lt;br&gt;
I would like to call a ivy script method(in the component) from the main panel with a button click event.&lt;/p&gt;
&lt;p&gt;Is this possible and if so how can i make this? &lt;/p&gt;
&lt;p&gt;Thanks for your help,
Patrick&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1520/how-to-start-an-ivy-script-method-from-the-main-panel-in-a-component" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 19 Oct 2015 14:29:38 -0400</lastBuildDate><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/1520/how-to-start-an-ivy-script-method-from-the-main-panel-in-a-component/1521</link><description>&lt;p&gt;It is not possible to call an ivy script method because ivy script does not know methods. &lt;/p&gt;
&lt;p&gt;What you can do is call a method of your component Html Dialog that is mapped to a logic process. In the logic process use a script step to execute your ivy script. Use &lt;code&gt;#{logic.myMethod()}&lt;/code&gt; to call your method from JSF.&lt;/p&gt;
&lt;p&gt;Or, use a manged bean java class with a method and call this from JSF with &lt;code&gt;#{myBean.myMethod()}&lt;/code&gt;. &lt;/p&gt;
&lt;p&gt;See chapter &lt;a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.userinterface.html#ivy-htmldialogs"&gt;Html Dialog&lt;/a&gt; in the Designer Guide for more information and the Html Dialog Demo project delivered with the Designer.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Mon, 19 Oct 2015 14:29:38 -0400</pubDate><guid>https://answers.axonivy.com/questions/1520/how-to-start-an-ivy-script-method-from-the-main-panel-in-a-component/1521</guid></item></channel></rss>