• 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
d2w query question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

d2w query question


  • Subject: d2w query question
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 25 Sep 2013 15:23:19 -0400

I have an entity 'Grid' that has an attribute 'isBillboard'. I created the list billboard tab with:

  public WOComponent listBillboardAction() {

    EOEditingContext ec = ERXEC.newEditingContext();
    ListPageInterface lpi = (ListPageInterface) D2W.factory().pageForConfigurationNamed("ListGrid", session());

    EODatabaseDataSource ds = new EODatabaseDataSource(ec, "Grid");

    ERXFetchSpecification<Grid> fs =  new ERXFetchSpecification<Grid>(Grid.ENTITY_NAME, Grid.IS_COMPLETE.eq(false).and(Grid.IS_BILLBOARD.eq(true)), null);

    ds.setFetchSpecification(fs);

    lpi.setDataSource(ds);

    ((D2WComponent) lpi).d2wContext().takeValueForKey("ListBillboard", "navigationState");

    return (D2WPage) lpi;
  }


How can I apply the same limit to a Query page? I don't want to put a control on the page to select 'isBillboard', i want isBillboard to be true


  public WOComponent queryBillboardAction() {
    QueryPageInterface qpi = (QueryPageInterface) D2W.factory().queryPageForEntityNamed("Grid", session());

    ((D2WComponent) qpi).d2wContext().takeValueForKey("ListBillboard", "navigationState");

    return (WOComponent) qpi;

  }
 _______________________________________________
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


  • Follow-Ups:
    • Re: d2w query question
      • From: Johnny Miller <email@hidden>
    • Re: d2w query question
      • From: David Holt <email@hidden>
  • Prev by Date: Re: FileMaker
  • Next by Date: Re: d2w query question
  • Previous by thread: Re: iCloud UI
  • Next by thread: Re: d2w query question
  • Index(es):
    • Date
    • Thread