2016-10-19 5 views
-1

こんにちは私はそれを展開し、テキスト/ラベルやテキストを含む別のコントローラを表示するパネルを含むダイアログウィッチを持っています。 パネルのものを管理しましたが、拡張パネル内にラベルを表示する方法がわかりません(xslでjsで作成した例は見つかりません)拡張パネルの内側にラベルを追加する方法

ここは私のコードです:

var panel = new sap.m.Panel("panel-1", { 
      /*  justifyContent : sap.m.FlexJustifyContent.Center,*/ 
        headerText:(oError.message), 
        width : '100%', 
        expandable: true 
       }); 
var dialog = new Dialog({ 
       title: "There was an error while trying to resend the message", 
       contentWidth: "500px", 
       resizable: true, 
       type: 'Message', 
       state: 'Error', 
       /*content: new sap.m.Label({ 
        id : 'labeldialog', 
        justifyContent : sap.m.FlexJustifyContent.Center, 
        text: JSON.parse(oError.response.body).error.message.value, 
       }),*/ 
       content: [panel], 

      beginButton: new sap.m.Button({ 
       text: 'Close', 
       press: function() { 
        dialog.close(); 
       } 
      }), 

      afterClose: function() { 
       dialog.destroy(); 
      } 
     }); 

     dialog.open(); 

私は折りたたま一部の文字列またはパラメータを置くように制御を達成するために何を使用する必要があります。ありがとうございました。

enter image description here

答えて

0

これを試しましたか?

var panel = new sap.m.Panel("panel-1", { 
       headerText:(oError.message), 
       width : '100%', 
       expandable: true, 
       content: [ new sap.m.Text("someId", { "Your message here" })] 
      }); 
関連する問題