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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]