rules rules!!
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