• 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
rules rules!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rules rules!!


  • Subject: rules rules!!
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 22 Dec 2011 09:16:52 -0800 (PST)

I am finally getting somewhere with D2W.

I have a list page that I am bringing is with this:

public WOActionResults listGrid() {

ListPageInterface lpi = (ListPageInterface) D2W.factory().pageForConfigurationNamed("ListGrid", session());

EODatabaseDataSource ds = new EODatabaseDataSource(ERXEC.newEditingContext(), Grid.ENTITY_NAME);

ERXFetchSpecification<Grid> fs = new
ERXFetchSpecification<Grid>(Grid.ENTITY_NAME, ERXQ.is("isComplete", false), null);

ds.setFetchSpecification(fs);

lpi.setDataSource(ds);
lpi.setNextPage(this.context().page());

return (WOComponent)lpi;
}

and a simple user rules file:

(
    100 : *true* => isEntityEditable = true [com.webobjects.directtoweb.Assignment],
    100 : pageConfiguration = 'ListGrid' => displayPropertyKeys = (materialsClose,center,jobNumber
) [com.webobjects.directtoweb.Assignment]
)

this is a 'should i' question.

Should I be qualifying the datasource or (1) is there a way to do this in the rules, and if yes should it be done there?

Ted


 _______________________________________________
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

  • Prev by Date: Re: Best type of machine
  • Next by Date: Re: Best type of machine
  • Previous by thread: Merry Christmas
  • Next by thread: Wiki and WOCommunity users
  • Index(es):
    • Date
    • Thread