Hi,
I have a Search page with a combobox with some values from a DO.
Currently this ComboBox has different Query operators. I need to
bind this Combobox to different DOs based on certain conditions.
So I call getDisplayFieldValue and add the criterion to the
correct DO. How do I catch the Query Operator that the user has
selected before adding the critereon to the DO??
My code looks something like this -
CSpSelect drDo = (CSpSelect) CSpider.getDataObject("do1");
String whereDRStr = "";
whereDRStr = "dradmin.table1.field2 " + (CSpDisplayField) getQBEControl("cmbCDE") + "
\"" + getDisplayFieldValue("cmbCDE").stringValue() + "\"";
drDo.addDynamicCriterion("field2", CSpSelect.QBE_CRITERIA_TYPE,
new CSpString(whereDRStr));
As you can see, I am trying to call the getQBEControl method within my select string
but I am not able to complile this succesfully let alone run and test it.
Thanks in advance for all your help.
Nilima Desai
408-970-2236
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]