Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    pickListCriteria in ds.xml

    Can pickListCriteria be specified in the data source xml? If so, can you give an example of the syntax when there are multiple fields involved? This is the sort of thing I would imagine being able to do, but obviously this won't work with multiple "field" attributes in the same element.
    Code:
    <field name="DRSN" type="text" title="Reason" length="3" detail="true"
    optionDataSource="IPATTDS" valueField="ATTDDSI" displayField="ATTDDSD">
    	<pickListCriteria field="ATTDTPI" value="007" field="ATTDCTI" value="001"/>
    </field>
    I first tried this, which had no effect on the generated SELECT.

    <pickListProperties pickListCriteria="{ATTDTPI:007, ATTDCTI:001}"/>
    Last edited by jay.l.fisher; 15 Mar 2010, 06:21.

    #2
    Nevermind. A little more experimenting and I figured it out.

    <pickListCriteria>
    <ATTDTPI>007</ATTDTPI>
    <ATTDCTI>001</ATTDCTI>
    </pickListCriteria>

    Comment


      #3
      Hello Jay,

      Sorry for interrupting this thread. @Jay, Actually i was bit in trouble with using smartGWT EE so was finding you for help.

      Please have a look at following thread posted by you. I am following the same way for on the fly edit of datasource descriptors.
      http://forums.smartclient.com/showthread.php?t=8573

      But somehow i cant go that far as you did. I mentioned my problems in same thread.

      Please have a glance at it and if possible give your valuable suggestion on it. Your already generated code sample can also provide much clarification.

      Comment

      Working...
      X