You must define a user defined function inside your report. See jasperreport
documentation. 
I bought the E-Book from them and found everything i need.....



Regards,
Henner

> -----Urspr�ngliche Nachricht-----
> Von: Ivan Codarin [mailto:[EMAIL PROTECTED] 
> Gesendet: Samstag, 4. Oktober 2003 22:16
> An: Henner Kollmann
> Cc: 'Ivan Codarin'; [EMAIL PROTECTED]
> Betreff: Re: AW: AW: [dbforms] JasperReports + dbforms: an example?
> 
> 
> Dear All,
> I hope this will be my last question about jasperreports.
> But I need to display in the report the values dispalyed by 
> select tags (normaly these values are taked from tableData or 
> queryData db:tags).
> 
> In the report I create a field like "grade" (that is a 
> foreign key to a table tbl_Grade.id_grade)  but I wanna 
> display also the "decoded form" of that attribute (so not the 
> code but the value displayed to the user).
> 
> In the db:form I have something like this:
> 
>       <db:select fieldName="grade" styleClass="selectGrades" >
>                                                               
>                                               <db:tableData
>                                                               
>                                                       name="ac_grade"
>                                                               
>                                                       
> foreignTable="tbl_grade"
>                                                               
>                                                       
> visibleFields="textualnumber"
>                                                               
>                                                       
> storeField="id_grade"                                         
>                               />
>                                                               
>                                       </db:select>
> 
> How can send it to the Report? Have I to configure different 
> types of fields in the Report (xml)? Have I to put others 
> particluar tags in dbforms?
> 
> Thanks
> Ivan
> 
> 
> > Hi Ivan,
> >
> > You have no field in your report which contains the current key 
> > position. In your page you must have an assosiated radio 
> button or an 
> > hidden field named currentRow with the current key postion
> >
> > <db:associatedRadio name="currentRow" />
> >
> > Contents of hidden field could be rendered by <db:pos> tag.
> >
> >
> > Regards,
> > Henner
> >
> >
> >
> 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DbForms Mailing List

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

Reply via email to