Re: Reusing a D2WQueryPage' result?
Re: Reusing a D2WQueryPage' result?
- Subject: Re: Reusing a D2WQueryPage' result?
- From: Pascal Robert <email@hidden>
- Date: Mon, 26 Mar 2012 15:32:52 -0400
Le 2012-03-26 à 15:09, James Cicenia a écrit :
> I have a very custom D2WQueryPage.
>
> I would like to reuse the results of this querypage.
>
> Is this possible?
>
> I am instantiating it as such:
>
> TOSD2WQueryPage queryPage = new TOSD2WQueryPage(context());
> queryPage.setEntityName("PortfolioProject");
BTW, that should be PortfolioProject.ENTITY_NAME instead of "PortfolioProject", if you rename that entity, your life will be much easier.
> However, I get a null exception:
>
> at com.webobjects.directtoweb.D2WComponent.setEntity(D2WComponent.java:336)
> at com.webobjects.directtoweb.D2WComponent.setEntityName(D2WComponent.java:356)
> at com.tos.tab.TabSystem.changeReportProject(TabSystem.java:403)
>
> Why? I am setting the Entity Name? Or is this just not possible?
>
> Thanks
> James
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden