yenidegeral : function(field) {
var
new_value;
var
that = this;
var
oDialog1 = new sap.m.Dialog();
oDialog1.setTitle("
Yeni Değer");
var
oTextArea = new sap.m.TextArea();
oTextArea.setWidth("100%");
oDialog1.addContent(oTextArea);
oDialog1.addButton(new
sap.m.Button( {
text :
"KAYDET",
press :
function() {
new_value =
oDialog1.mAggregations.content["0"].mProperties.value;
switch
(field) {
case
"softana":
new_sw
= new_value;
model.oData.d.results[0].softana
= new_value;
break;
case
"pcf":
new_pcf
= new_value;
model.oData.d.results[0].pcf
= new_value;
break;
case
"mboot":
new_mboot
= new_value;
model.oData.d.results[0].mboot
= new_value;
break;
case
"cdf":
new_cdf
= new_value;
model.oData.d.results[0].cdf
= new_value;
break;
case
"svn":
new_svn
= new_value;
model.oData.d.results[0].svn
= new_value;
break;
}
model.setData(model.oData);
that.byId(field).setText(
new_value);
that.getView().setModel(model);
that.getView().getModel()
.refresh(true);
oDialog1.close();
} }));
oDialog1.addButton(new
sap.m.Button({
text
: "CANCEL",
press
: function() {
oDialog1.close();
}
}));
oDialog1.open();
Hiç yorum yok:
Yorum Gönder