You could save yourself some parenthesis with 
enclosingComponentOfClass(ERD2WListPage.class)

On Dec 4, 2014, at 4:04 PM, James Cicenia <[email protected]> wrote:

> 
> I used Ramsey’s solution. I got the listPages display group, I then did the 
> following to export to excel
> 
>       public WOActionResults toExcel() {
>               
>               ListPageInterface lpi = (ListPageInterface) 
> D2W.factory().pageForConfigurationNamed("ListExcelCategory", session());
>               EOArrayDataSource ds = new EOArrayDataSource(null, 
> session().defaultEditingContext());
>               
> ds.setArray(((ERD2WListPage)ERD2WUtilities.parentListPage(this)).displayGroup().allObjects());
>               lpi.setDataSource(ds);
>               return (WOActionResults)lpi;    
>       
>       }
> 
> seems to work great.
> Thanks
> 
> 
> 
> 
>> On Dec 4, 2014, at 4:58 PM, David Holt <[email protected]> wrote:
>> 
>> This is pretty vague.
>> 
>> 
>> On Dec 4, 2014, at 2:34 PM, James Cicenia <[email protected]> wrote:
>> 
>>> I have a d2w vlisting page.
>>> I have put a custom component to be displayed on the top with 
>>> “aboveDisplayPropertyKeys”
>>> 
>>> How do I get the list page’s  display group? 
>>> 
>>> Thanks
>>> James
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>>> 
>>> This email sent to [email protected]
>> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to