• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: getting the display group of the list page for a custom component?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the display group of the list page for a custom component?


  • Subject: Re: getting the display group of the list page for a custom component?
  • From: Ramsey Gurley <email@hidden>
  • Date: Thu, 04 Dec 2014 16:11:39 -0700

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

On Dec 4, 2014, at 4:04 PM, James Cicenia <email@hidden> 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@hidden> wrote:

This is pretty vague.


On Dec 4, 2014, at 2:34 PM, James Cicenia <email@hidden> 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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >getting the display group of the list page for a custom component? (From: James Cicenia <email@hidden>)
 >Re: getting the display group of the list page for a custom component? (From: David Holt <email@hidden>)
 >Re: getting the display group of the list page for a custom component? (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: getting the display group of the list page for a custom component?
  • Next by Date: Model the Query Bindings
  • Previous by thread: Re: getting the display group of the list page for a custom component?
  • Next by thread: Model the Query Bindings
  • Index(es):
    • Date
    • Thread