Hi Matt,
I was finally able to get this to work. It took a while for me to
realize the hard coded forwards in BaseAction. this was after I created
a new action class just for the lookup. once that was working I decided
to try and add the functionality to the original action. so. to doit,
I turned on QBE in the DAO. added a new forward to BaseAction called
lkup. created a lkupInventoryType.jsp based on the edit and leaving only
the lookup fields and added a lkup and find method to the Action and a
Lookup button to the list.
I guess it would be nice to have search functionality built in during
appgen. however, once you get past the "real newbie" stage it's not that
hard to do. :)
Thanx a bunch
Fred
Matt Raible wrote:
I don't believe there's a tutorial. However, with the code in the DAO,
it shouldn't be too difficult. Just populate the object in your
Controller (from your form) and then pass it down to your DAO layer.
Worst case, you can just use request.getParameter() to populate your
object manually. Getting it working is the most important, making it
clean is secondary IMO. ;-)
Matt
On 7/20/07, Fred Forester <[EMAIL PROTECTED]> wrote:
Sorry about that.
I guess the question is this.
is there a write up on how to implement the Query By Example. i.e. front
ending the list with a search form and have the DaoHibernate class use
the QBE API using the criteria specified on the search form.
Thanx
Fred
Matt Raible wrote:
> There's no question in this message. ;-)
>
> Matt
>
> On 7/20/07, Fred Forester <[EMAIL PROTECTED]> wrote:
>>
>> Hi All,
>>
>> a newbie to appfuse/struts/hibernate so have what is probably a stupid
>> questiom.
>>
>> I noticed this comment in my DaoHibernate class.
>>
>> /*
>> Remove the line above and uncomment this code block if you want
>> to use Hibernate's Query by Example API.
>> */
>>
>>
>> I have about 4 fields in this table I would like to do a select
distint
>> on and use that to create the select boxes for the search criteria.
>> I'm hoping that once the "Pdf" option in then selected on that list
>> only the searched for items will appear in the pdf.
>>
>> Thanx
>> Fred
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]