Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

DateTime not displaying in SelectItem

$
0
0
I am using SmartClient version 3.0 power NB 20120828. Using Firefox 10.4 esr. I have a SelectItem that I want to contain a list of timestamps. I have it connected to a datasource file and it retrieves the timestamps but they never display in the select item. When it is set as a datetime field in the datasource file, it shows blank selections. Do I have to set the width? I tried changing the type to text but it still did not show, it only showed the loading icon, but when I use Firebug to track the request, the response has been completed but it never shows. What I am trying to accomplish is to let the user chose a timestamp from the dropdown to then populate a list grid with records that have that timestamp. Any help is appreciated.
Code:

TextItem detectorItem = new TextItem();
        detectorItem.setTitle("Detector");
        SelectItem sceneSelector = new SelectItem();
        sceneSelector.setTitle("Time Start");
        sceneSelector.setOptionDataSource(DataSource.get("TimestampDataSource"));
        sceneSelector.setAutoFetchData(true);
        sceneSelector.setDefaultToFirstOption(true);
        sceneSelector.setDisplayFormat(DateDisplayFormat.TOUSSHORTDATETIME);
        sceneSelector.setWidth("*");
        chooseValueForm.setFields(possibleValuesItem, timeFrame, detectorItem, sceneSelector);

Here is what the datasource file looks like.
Code:

<operationBindings>
  <OperationBinding>
          <operationType>fetch</operationType>
                          <selectClause>distinct SCENE_TIMESTAMP</selectClause>
            <whereClause>ROWNUM &lt; 10</whereClause>
            <orderClause>SCENE_TIMESTAMP DESC</orderClause>
        </OperationBinding>           
  </operationBindings>


Attached Images
File Type: png loading.png (3.8 KB)
File Type: png loading2.png (17.7 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles