Skip to Content

sap.m.SelectDialog - Junk values in search field

Hi

I created a search help option for an Input(sap.m.Input). When it is triggered, i am calling a select dialog. Once it is open , I am getting some junk values automatically in the search fields . Any one faced this before ?

Sreehari

scn.JPG (37.3 kB)
scn2.JPG (26.3 kB)
scn3.JPG (27.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 18, 2015 at 07:22 PM

    The reason for the junk values is due to,

    this._oDialog.open(this);
    
    
    

    If you want no values in the search field, it has to be,

    this._oDialog.open();
    
    
    

    open method takes an argument which will be set as the value for the search field. In your case as you're passing *this* as an argument, the Object is converted into String and set as the value for search field.

    JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.SelectDialog

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 18, 2015 at 03:28 PM

    no junk, those are values from your EmployeeSearch entity set. GW implements no filter scenario and returns you some unexpected stuff

    Add comment
    10|10000 characters needed characters exceeded