Re: D2WQuery Component Frustration
Re: D2WQuery Component Frustration
- Subject: Re: D2WQuery Component Frustration
- From: Guido Neitzer <email@hidden>
- Date: Mon, 30 Jan 2006 16:35:21 +0100
On 30.01.2006, at 15:19 Uhr, James Cicenia wrote:
Bottom line is, I just can't figure out how get what the user
entered for their query.
If I understand you correctly, you have added (in WOBuilder) a
D2WQuery component in your own component, have set up some bindings
for it and let it call your own action:
Query: D2WQuery {
queryDataSource = datasource;
action = myAction;
entityName = "Test";
}
datasource is a variable in my component Java file:
protected EODatabaseDataSource datasource;
public Main(WOContext context) {
super(context);
datasource = new EODatabaseDataSource (session
().defaultEditingContext(), "Test");
}
public WOComponent myAction () {
System.out.println ("Test");
System.out.println (datasource.fetchSpecification());
return null;
}
This gives me this output:
...
<class com.webobjects.eocontrol.EOFetchSpecification(entityName=Test,
qualifier=(name caseinsensitivelike 'adsfasdf*'),
isDeep=true, usesDistinct=false,
sortOrdering=null,
hints=null,
_prefetchingRelationshipKeyPaths = null)>
...
Perhaps this helps ...
cug
--
PharmaLine, Essen, GERMANY
Software and Database Development
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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