2017-03-03 1 views
0

Guten Morgen!Suchfeld in einem Dialog - SAPUI5

ich einen Start mit SAPUI5 Arbeits

Wie kann ich ein Suchfeld (sap.m.SearchField) auf einem Dialog eingestellt?

Danke

+0

Bitte geben Sie Ihren Code. StackOverflow ist eine Plattform, die Ihnen hilft, Ihren Code zum Laufen zu bringen und Probleme nicht für Sie zu lösen. – Technotronic

Antwort

0

Ich schlage vor:

new Dialog({ 
       title: 'Available Products', 
       content: new List({ 
        items: { 
         path: '/ProductCollection', 
         template: new StandardListItem({ 
          title: "{Name}", 
          counter: "{Quantity}" 
         }) 
        } 
       }), 
       beginButton: new Button({ 
        text: 'Close', 
        press: function() { 
         that.pressDialog.close(); 
        } 
       }), 
       subHeader: [ 
        new sap.m.Bar({ 
         contentMiddle: [ 
          new sap.m.SearchField({ 
           width: "100%", 
           value: "Search Term" 
          }) 
         ] 
        }) 
       ] 
      });