반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- n+1
- optional
- Testcode
- abap
- spring MVC
- springSecurityFilterChain 오류
- controller
- for all entries in
- 김영한
- 구글 보안 api 활용
- SpringMVC
- SAP
- MVC
- jpa
- 신문법 abap
- .orelseThrow
- new syntax
- memory변수명 변경
- memory 정리
- spring
- abap memory
- mapping corresponding
- Validation
- value base corresponding
- @Controller
- application-properties
- abap면접
- BindingResult
- abap value in field Data Class error
- sap memory
Archives
- Today
- Total
SAP공장
sap ui5 popup, FragMent 본문
반응형
1> PopUp
<!-- PopUp -->
<Button text="POPUP Button" press="onPopup"></Button>
<core:FragmentDefinition
xmlns= "sap.m"
xmlns:core="sap.ui.core"
>
<Dialog id="idPopup" title="Popup">
<buttons>
<Button text="Close" press="onClose"/>
</buttons>
<content>
<Text text="Popup View"/>
</content>
</Dialog>
</core:FragmentDefinition>
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/ui/core/Fragment"
],
/**
* @param {typeof sap.ui.core.mvc.Controller} Controller
*/
function (Controller, Fragment) {
"use strict";
return Controller.extend("Train.zse0706.controller.View1", {
onInit: function () {
},
onMain: function () {
let oInpMain = this.getView().byId("inpMain");
let oInpFrag = this.getView().byId(
Fragment.createId("idFragView","inpFrag")
);
alert( oInpMain.getValue());
alert( oInpFrag.getValue());
},
onFrag: function (){
alert("fragment Button");
let oInpMain = this.getView().byId("inpMain");
let oInpFrag = this.getView().byId(
sap.ui.core.Fragment.createId("idFragView", "inpFrag")
);
alert( oInpMain.getValue());
alert( oInpFrag.getValue());
},
onPopup: function (){
let oView = this.getView();
if(!this.byId( "idPopup" )){
Fragment.load({
id: oView.getId(),
name: "Train.zse0706.view.Popup",
type: "XML",
controller: this
}).then(
function ( oPopup ){
oView.addDependent( oPopup );
oPopup.open();
}
);
} else {
this.byId( "idPopup").open();
}
},
onClose: function (){
this.getView().byId( "idPopup" ).close();
}
});
});
2> Fragment
<!-- Fragment -->
<core:Fragment
id="idFragView"
fragmentName="Train.zse0706.view.Frag"
/>
<core:FragmentDefinition
xmlns= "sap.m"
xmlns:mvc="sap.ui.core.mvc"
xmlns:core="sap.ui.core"
>
<Label text="Fragment"/>
<Input id="inpFrag" value="WH"/>
<Button text="Frag Button" press="onFrag"/>
</core:FragmentDefinition>
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/ui/core/Fragment"
],
/**
* @param {typeof sap.ui.core.mvc.Controller} Controller
*/
function (Controller, Fragment) {
"use strict";
return Controller.extend("Train.zse0706.controller.View1", {
onInit: function () {
},
onMain: function () {
let oInpMain = this.getView().byId("inpMain");
let oInpFrag = this.getView().byId(
Fragment.createId("idFragView","inpFrag")
);
alert( oInpMain.getValue());
alert( oInpFrag.getValue());
},
onFrag: function (){
alert("fragment Button");
let oInpMain = this.getView().byId("inpMain");
let oInpFrag = this.getView().byId(
Fragment.createId("idFragView", "inpFrag")
);
alert( oInpMain.getValue());
alert( oInpFrag.getValue());
},
onPopup: function (){
let oView = this.getView();
if(!this.byId( "idPopup" )){
Fragment.load({
id: oView.getId(),
name: "Train.zse0706.view.Popup",
type: "XML",
controller: this
}).then(
function ( oPopup ){
oView.addDependent( oPopup );
oPopup.open();
}
);
} else {
this.byId( "idPopup").open();
}
},
onClose: function (){
this.getView().byId( "idPopup" ).close();
}
});
});
반응형
'[SAP]ABAP > ABAP 강의 SYNC' 카테고리의 다른 글
bit cockpit 과 abap system 연결하기(Terminal code + sicf) (0) | 2022.08.26 |
---|---|
web dynpro (update) (0) | 2022.08.16 |
abap screen. (0) | 2022.08.04 |
abap module에 변수를 선언하지 말것 (0) | 2022.08.03 |
alv change( event ) (0) | 2022.08.01 |