<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Refreshing a ViewObject on view in JHeadstart</title>
	<atom:link href="http://technology.amis.nl/2005/04/01/refreshing-viewobject-on-view-in-jheadstart/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2005/04/01/refreshing-viewobject-on-view-in-jheadstart/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=refreshing-viewobject-on-view-in-jheadstart</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Wouter van Reeven</title>
		<link>http://technology.amis.nl/2005/04/01/refreshing-viewobject-on-view-in-jheadstart/#comment-1976</link>
		<dc:creator>Wouter van Reeven</dc:creator>
		<pubDate>Mon, 09 May 2005 09:25:22 +0000</pubDate>
		<guid isPermaLink="false">/?p=487#comment-1976</guid>
		<description><![CDATA[Hi Thim,


I suppose you mean that you have added the method to the ADF action class that is created when dragging and dropping the datapage to the visual editor? Or did you add the method to the jsp page? In either case, can you please provide us with some code so we can see where it goed wrong?


Thanks, Wouter]]></description>
		<content:encoded><![CDATA[<p>Hi Thim,</p>
<p>I suppose you mean that you have added the method to the ADF action class that is created when dragging and dropping the datapage to the visual editor? Or did you add the method to the jsp page? In either case, can you please provide us with some code so we can see where it goed wrong?</p>
<p>Thanks, Wouter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thim</title>
		<link>http://technology.amis.nl/2005/04/01/refreshing-viewobject-on-view-in-jheadstart/#comment-1975</link>
		<dc:creator>Thim</dc:creator>
		<pubDate>Mon, 09 May 2005 07:40:41 +0000</pubDate>
		<guid isPermaLink="false">/?p=487#comment-1975</guid>
		<description><![CDATA[This method does not seems to be working or at least not in the way we implemented it.
We use JDeveloper 1.0.12. We added the method to our datapage were the ViewObject is located but it does not
seems to refresh our ViewObject. Our doQury() is located in the java class of our ModuleImpl. Were did we
go wrong?]]></description>
		<content:encoded><![CDATA[<p>This method does not seems to be working or at least not in the way we implemented it.<br />
We use JDeveloper 1.0.12. We added the method to our datapage were the ViewObject is located but it does not<br />
seems to refresh our ViewObject. Our doQury() is located in the java class of our ModuleImpl. Were did we<br />
go wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leon van Tegelen</title>
		<link>http://technology.amis.nl/2005/04/01/refreshing-viewobject-on-view-in-jheadstart/#comment-1974</link>
		<dc:creator>Leon van Tegelen</dc:creator>
		<pubDate>Fri, 01 Apr 2005 21:42:45 +0000</pubDate>
		<guid isPermaLink="false">/?p=487#comment-1974</guid>
		<description><![CDATA[I see several issues here.
First of all in case you use a view with Bind parameters, which you specify through the JHeadStart Query Bind Parameters mechanism, these will not be set yet as this is done in the JHSDataAction prepare Model method. So you probably should call super.prepareModel(daContext) before executing the query.
Secondly I personnaly feel it is beter to call a method on the ApplicationModule via a control action binding on the UImodel of the page.
But actually I think you should solve it more generically by calling the executeQuery method on all or even selective IteratorBindings in the binding container. No need for the appModule method then and it keeps your code more in line with ADF.
&lt;pre&gt;
    public void prepareModel(DataActionContext da) throws Exception
  {
    super.prepareModel(da);
    // all iteratorBindings
    ArrayList bindings =   da.getBindingContainer().getIterBindingList();
    for (Iterator it = bindings.iterator(); it.hasNext();)
    {
      ((DCIteratorBinding ) it.next()).executeQuery();
    }
    // specific iteratorBinding
    //da.getBindingContainer().findIteratorBinding(&quot;myBinding&quot;).executeQuery();
  }
&lt;/pre&gt;


There might be some unexpected situations with specified search criteria and the resultset. For example in a table layout if you create a new row which would not fall within the critera , the transaction would succeed but the row would not be shown  as it doesn&#039;t fall in the view criteria]]></description>
		<content:encoded><![CDATA[<p>I see several issues here.<br />
First of all in case you use a view with Bind parameters, which you specify through the JHeadStart Query Bind Parameters mechanism, these will not be set yet as this is done in the JHSDataAction prepare Model method. So you probably should call super.prepareModel(daContext) before executing the query.<br />
Secondly I personnaly feel it is beter to call a method on the ApplicationModule via a control action binding on the UImodel of the page.<br />
But actually I think you should solve it more generically by calling the executeQuery method on all or even selective IteratorBindings in the binding container. No need for the appModule method then and it keeps your code more in line with ADF.</p>
<pre class="wp-code-highlight prettyprint">
    public void prepareModel(DataActionContext da) throws Exception
  {
    super.prepareModel(da);
    // all iteratorBindings
    ArrayList bindings =   da.getBindingContainer().getIterBindingList();
    for (Iterator it = bindings.iterator(); it.hasNext();)
    {
      ((DCIteratorBinding ) it.next()).executeQuery();
    }
    // specific iteratorBinding
    //da.getBindingContainer().findIteratorBinding(&quot;myBinding&quot;).executeQuery();
  }
</pre>
<p>There might be some unexpected situations with specified search criteria and the resultset. For example in a table layout if you create a new row which would not fall within the critera , the transaction would succeed but the row would not be shown  as it doesn&#8217;t fall in the view criteria</p>
]]></content:encoded>
	</item>
</channel>
</rss>
