Fair enough...  I will use the following (i've tested it and it works fine):


<input type="button" 
       name="return" 
       value="<db:message key='button.return'></db:message>"
       onClick="self.location.href='<db:linkURL 
                         href="<%= dest %>" 
                         tableName="<%= table %>" 
                         position="<%= pos %>"/>'"/> 


Thanks for your help

-----Message d'origine-----
De : Henner Kollmann [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 1 février 2006 01:04
À : Grunikiewicz, Philip
Objet : RE: Using goto button instead of linkUrl

That's a feature not a bug. With this you can transport a filter from one page 
to another!
I use it often....

I really do not know what'S happening if we apply the filter only if there is 
no position tag in the button.



Henner
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 01, 2006 12:02 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Using goto button instead of linkUrl
> 
> OK!  Figured it out!  My request object still contains search filters 
> from the previous page.  These values are used when building the query 
> for the new page!  Using a linkURL, a have a new request object 
> (sendRedirect).  Can I apply a redirect to a gotoButton???  If I can't 
> - I think we should!
> 
> 
> -----Message d'origine-----
> De : Grunikiewicz, Philip
> Envoyé : mardi 31 janvier 2006 17:50
> À : 'Henner Kollmann'
> Objet : RE: Using goto button instead of linkUrl
> 
> I decided to debug this thing first - why should you do all the work!  
> Here is what I have found so far...
> 
> When I use a linkUrl, the query generated has NO where clause.
> When I use a gotoButton, a filter (mergedFieldValues) is set. 
>  So basically, my result set contains 1 element: hence no navigation!
> 
> Why is their a filter being applied to my query when I link via a 
> gotoButton but not a linkUrl???
> 
> 
> -----Message d'origine-----
> De : Henner Kollmann [mailto:[EMAIL PROTECTED] Envoyé : 
> mardi 31 janvier 2006 15:59 À : Grunikiewicz, Philip Objet : 
> RE: Using goto button instead of linkUrl
> 
> Try to build a bookstore example to reproduce!
> 
> Henner
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, January 31, 2006 9:58 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Using goto button instead of linkUrl
> > 
> > Actually, my problem is not positioning, the goto button returns to 
> > the right position!  My problem is that navigation
> (NavNext, etc...)
> > is lost when using goto instead of linkUrl.
> > 
> > -----Message d'origine-----
> > De : Henner Kollmann [mailto:[EMAIL PROTECTED] Envoyé : 
> > mardi 31 janvier 2006 15:43 À : Grunikiewicz, Philip Objet : 
> > RE: Using goto button instead of linkUrl
> > 
> > Is this reproducable in the bookstore example?
> > 
> > Henner
> > 
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] 
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, January 31, 2006 9:34 PM
> > > To: jdbforms-interest@lists.sourceforge.net;
> [EMAIL PROTECTED]
> > > Subject: Using goto button instead of linkUrl
> > > 
> > > When specifying a position (position_tableName) the following is 
> > > rendered.  The first is the goto button and this does'nt
> work!  The
> > > second is the linkUrl.  Notice the difference between the 2 
> > > representations of destPos.  Is this a bug or am I using it wrong?
> > >  
> > >  
> > >     <div>
> > >                               <input type="hidden" 
> > > name="dataac_new_2_161_fu" value ="/PURCHASE_single.jsp"/>
> > >     <input type="submit"  value="Ajouter"  name="ac_new_2_161"/>
> > >  
> > >     <input type="hidden" name="dataac_goto_2_162_fu" value 
> > > ="/CLIENT_single.jsp"/>
> > >     <input type="hidden" name="dataac_goto_2_162_destTable" 
> > > value ="CLIENT"/>
> > >     <input type="hidden" name="dataac_goto_2_162_destPos" 
> > > value ="0%3A1%3A2"/>
> > >     <input type="hidden" name="dataac_goto_2_162_srcTable" 
> > > value ="PURCHASE"/>
> > >     <input type="hidden" name="dataac_goto_2_162_singleRow" 
> > > value ="false"/>
> > >     <input type="submit"  value="Retour"  style="width:90" 
> > > name="ac_goto_2_162"/>
> > >  
> > >  
> > >  
> > >    <a class="buttonsim" 
> > >     href="/HQWebiLeger/servlet/control
> > >      ?ac_goto_x=t
> > >      &dataac_goto_x_fu=/CLIENT_single.jsp
> > >      &dataac_goto_x_destTable=CLIENT
> > >      &dataac_goto_x_destPos=0%253A1%253A2
> > >      &dataac_goto_x_srcTable=PURCHASE
> > >      &dataac_goto_x_singleRow=false" >
> > >                               Retour</a>
> > >                            </div>
> > > 
> > 
> 



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to