SlideShare a Scribd company logo
1 of 7
Detailsview:
createContent : function(oController) {
var oForm = new sap.ui.layout.form.SimpleForm(
"sf1",
{
maxContainerCols: 1,
editable: false,
content:[
new sap.ui.core.Title({text:"RRF
Details"}),
new sap.ui.commons.Label({text:"RRF
ID",design:sap.ui.commons.TextViewDesign.Bold}),
new
sap.ui.commons.TextField({value:"{item>/Rrfid}", id:"Rrfid", editable:false}),
new
sap.ui.commons.Label({text:"Start
Date",design:sap.ui.commons.TextViewDesign.Bold}),
new
sap.ui.commons.TextField({value:"{item>/StartDate}", id:"StartDate" ,
editable:false}),
new sap.ui.commons.Label({text:"End
Date",design:sap.ui.commons.TextViewDesign.Bold}),
new
sap.ui.commons.TextField({value:"{item>/EndDate}", id:"EndDate" ,
editable:false}),
new sap.ui.core.Title({text:"Job
Description"}),
new sap.ui.commons.Label({text:"Job
Title",design:sap.ui.commons.TextViewDesign.Bold}),
new
sap.ui.commons.TextField({value:"{item>/Jobtitle}", id:"Jobtitle",
editable:false}),
new sap.ui.commons.Label({text:"Work
Experience",design:sap.ui.commons.TextViewDesign.Bold}),
new
sap.ui.commons.TextField({value:"{item>/Workexperience}", id:"Workexperience",
editable:false}),
new
sap.ui.commons.Label({text:"No.of
Vacancy",design:sap.ui.commons.TextViewDesign.Bold}),
new
sap.ui.commons.TextField({value:"{item>/NoOfVacancy}", id:"NoOfVacancy",
editable:false}),
new sap.ui.commons.Label({text:"Work
Location",design:sap.ui.commons.TextViewDesign.Bold}),
new
sap.ui.commons.TextField({value:"{item>/Worklocation}", id:"Worklocation",
editable:false}),
new
sap.ui.core.Title({text:"Qualification"}),
new
sap.ui.commons.Label({text:"Qualification",design:sap.ui.commons.TextViewDesign.Bo
ld}),
new
sap.ui.commons.TextField({value:"{item>/Qualification}", id:"Qualification",
editable:false}),
new sap.ui.core.Title({text:"Manager
Details"}),
new
sap.ui.commons.Label({text:"Personnel
Officer",design:sap.ui.commons.TextViewDesign.Bold}),
new
sap.ui.commons.TextField({value:"{item>/PersonnelOfficer}", id:"PersonnelOfficer"
, editable:false}),
new sap.ui.commons.Label({text:"Line
Manager",design:sap.ui.commons.TextViewDesign.Bold}),
new
sap.ui.commons.TextField({value:"{item>/LineManager}", id:"LineManager" ,
editable:false}),
new
sap.ui.commons.Label({text:"Status",design:sap.ui.commons.TextViewDesign.Bold}),
new
sap.ui.commons.TextField({value:"{item>/Status}", id:"Status" , editable:false}),
new sap.ui.core.Title({text:""}),
new sap.ui.commons.Button({
id:"b4",
text: "Accept",
style:
sap.ui.commons.ButtonStyle.Accept,
press: function()
{
oController.accept1();
}
}),
new sap.ui.commons.Button({
id:"b5",
text: "Reject",
style:
sap.ui.commons.ButtonStyle.Reject,
press: function()
{
oController.reject1();
}
}),
new sap.ui.commons.Button({
id:"b6",
text: "Home",
style:
sap.ui.commons.ButtonStyle.Emph,
press: function()
{
var app =
sap.ui.getCore().byId("idapp");
app.to("masterid");
}
})
]
});
return new sap.m.Page({
title: "RRF APPROVAL PAGE",
content: [oForm]
});
}
});
Details.controller:
accept1: function() {
var oEntry = {};
oEntry.Rrfid= sap.ui.getCore().byId("Rrfid").getValue();
oEntry.Jobtitle= sap.ui.getCore().byId("Jobtitle").getValue();
oEntry.Workexperience=
sap.ui.getCore().byId("Workexperience").getValue();
oEntry.NoOfVacancy= sap.ui.getCore().byId("NoOfVacancy").getValue();
oEntry.Qualification= sap.ui.getCore().byId("Qualification").getValue();
oEntry.Worklocation= sap.ui.getCore().byId("Worklocation").getValue();
oEntry.StartDate= sap.ui.getCore().byId("StartDate").getValue();
oEntry.EndDate= sap.ui.getCore().byId("EndDate").getValue();
oEntry.PersonnelOfficer=
sap.ui.getCore().byId("PersonnelOfficer").getValue();
oEntry.LineManager= sap.ui.getCore().byId("LineManager").getValue();
oEntry.Status= sap.ui.getCore().byId("Status").getValue();
oEntry.Approvaldate= "";
OData.request({
requestUri :
"proxy/http/192.168.100.13:8000/sap/opu/odata/sap/ZHCM_REC_CEORRF_SRV/ZHCM_REC_CEO
PROCESSSet",
method : "GET",
headers : {
"X-Requested-With" :
"XMLHttpRequest",
"Content-Type" :
"application/atom+xml",
"DataServiceVersion" : "2.0",
"X-CSRF-Token" : "Fetch"
}
},
function(data, response) {
header_xcsrf_token =
response.headers['x-csrf-token'];
var oHeaders = {
"x-csrf-token" :
header_xcsrf_token,
'Accept' :
'application/json',
};
OData.request({
requestUri :
"proxy/http/192.168.100.13:8000/sap/opu/odata/sap/ZHCM_REC_CEORRF_SRV/ZHCM_REC_CEO
PROCESSSet",
method : "POST",
headers : oHeaders,
data:oEntry
},
function(data,request) {
alert("RRF Approved Successfully ");
location.reload(true);
}, function(err) {
alert("RRF Approved Successfully ");
location.reload(true);
});
}, function(err) {
var request = err.request;
var response = err.response;
alert("Error in Get -- Request " +
request + " Response " + response);
});
},
//Reject
reject1: function() {
var oEntry = {};
oEntry.Rrfid=
sap.ui.getCore().byId("Rrfid").getValue();
OData.request({
requestUri :
"proxy/http/192.168.100.13:8000/sap/opu/odata/sap/ZHCM_REC_CEORRF_SRV/ZHCM_REC_CEO
PROCESSSet",
method :
"GET",
headers
: {
"X-Requested-With" : "XMLHttpRequest",
"Content-Type" : "application/atom+xml",
"DataServiceVersion" : "2.0",
"X-CSRF-Token" : "Fetch"
}
},
function(data, response) {
header_xcsrf_token = response.headers['x-csrf-token'];
var oHeaders = {
"x-csrf-token" : header_xcsrf_token,
'Accept' : 'application/json',
};
OData.request({
requestUri :
"proxy/http/192.168.100.13:8000/sap/opu/odata/sap/ZHCM_REC_CEORRF_SRV/ZHCM_REC_CEO
PROCESSSet('" + oEntry.Rrfid + "')",
method : "PUT",
headers : oHeaders,
data:oEntry
},
function(data,request) {
alert("Rejected Performed");
location.reload(true);
}, function(err) {
alert("Rejection Failed");
});
},
function(err) {
var request = err.request;
var response = err.response;
alert("Error in Get -- Request " + request + " Response " + response);
});
}
});
Master view:
createContent : function(oController) {
var oList = new sap.m.List({
id: "listid",
mode: sap.m.ListMode.SingleSelect,
select: function(){
oController.itemSelected();
}
});
var oitemTemplate = new sap.m.StandardListItem({
id: "sList",
title:"{Rrfid}",
description:"{Jobtitle}"
});
oList.bindAggregation("items","/results",oitemTemplate);
return new sap.m.Page({
title: "Open RRF Details",
content: [oList]
});
}
});
Master Controller:
onInit: function() {
var oModel = new
sap.ui.model.odata.ODataModel("proxy/http/192.168.100.13:8000/sap/opu/odata/sap/ZH
CM_REC_CEORRF_SRV", true);
var oJsonModel = new sap.ui.model.json.JSONModel();
oModel.read("/ZHCM_REC_CEOPROCESSSet?",null,null,true,function(oData,response){
oJsonModel.setData(oData);
});
sap.ui.getCore().setModel(oJsonModel);
},
onExit: function() {
//
// }
itemSelected: function()
{
var app= sap.ui.getCore().byId("appid");
var list= sap.ui.getCore().byId("listid");
var sItem=list.getSelectedItem();
var spath = sItem.oBindingContexts.undefined.sPath;
var item = sap.ui.getCore().getModel().getProperty(spath);
var oModel1 = new sap.ui.model.json.JSONModel(item);
sap.ui.getCore().setModel(oModel1,'item');
app.to('detailid',"flip","duration:'slow'");
}
});
Topview:
createContent : function(oController) {
return new sap.m.Page({
title: "RRF APPROVALS",
content: [
new sap.ui.commons.TextView({
text: "RRF APPROVAL HOME PAGE",
design: sap.ui.commons.TextViewDesign.WS
})
]
});
}});
Topview controller:
No coding
Index.html:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
<script src="resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.m,sap.ui.commons,sap.ui.layout"
data-sap-ui-theme="sap_bluecrystal">
</script>
<!-- only load the mobile lib "sap.m" and the "sap_bluecrystal"
theme -->
<script>
sap.ui.localResources("sapliappjs");
var osplitapp = new sap.m.SplitApp("appid",{});
var oIntrapage = sap.ui.view({
id: "introId",
viewName: "sapliappjs.topview",
type: sap.ui.core.mvc.ViewType.JS
});
var oMasterpage = sap.ui.view({
id: "masterid",
viewName: "sapliappjs.Master",
type: sap.ui.core.mvc.ViewType.JS
});
var oDetailpage = sap.ui.view({
id: "detailid",
viewName: "sapliappjs.Details",
type: sap.ui.core.mvc.ViewType.JS
});
osplitapp.addDetailPage(oIntrapage).addDetailPage(oDetailpage);
osplitapp.addMasterPage(oMasterpage);
osplitapp.setInitialDetail("introId");
osplitapp.setInitialMaster("masterid");
osplitapp.setMode("PopoverMode");
osplitapp.placeAt("content");

More Related Content

What's hot

MongoDB - Aggregation Pipeline
MongoDB - Aggregation PipelineMongoDB - Aggregation Pipeline
MongoDB - Aggregation PipelineJason Terpko
 
MongoDB Aggregation
MongoDB Aggregation MongoDB Aggregation
MongoDB Aggregation Amit Ghosh
 
JavaScript client API for Google Apps Script API primer
JavaScript client API for Google Apps Script API primerJavaScript client API for Google Apps Script API primer
JavaScript client API for Google Apps Script API primerBruce McPherson
 
Func dyn title_set.c
Func dyn title_set.cFunc dyn title_set.c
Func dyn title_set.calbertinous
 
Do something in 5 with gas 8-copy between databases
Do something in 5 with gas 8-copy between databasesDo something in 5 with gas 8-copy between databases
Do something in 5 with gas 8-copy between databasesBruce McPherson
 
Google apps script database abstraction exposed version
Google apps script database abstraction   exposed versionGoogle apps script database abstraction   exposed version
Google apps script database abstraction exposed versionBruce McPherson
 
Web client security
Web client securityWeb client security
Web client securityZiv Birer
 
Joins and Other Aggregation Enhancements Coming in MongoDB 3.2
Joins and Other Aggregation Enhancements Coming in MongoDB 3.2Joins and Other Aggregation Enhancements Coming in MongoDB 3.2
Joins and Other Aggregation Enhancements Coming in MongoDB 3.2MongoDB
 
Do something useful in Apps Script 5. Get your analytics pageviews to a sprea...
Do something useful in Apps Script 5. Get your analytics pageviews to a sprea...Do something useful in Apps Script 5. Get your analytics pageviews to a sprea...
Do something useful in Apps Script 5. Get your analytics pageviews to a sprea...Bruce McPherson
 
HeadCouch - CouchDB PHP Client
HeadCouch - CouchDB PHP ClientHeadCouch - CouchDB PHP Client
HeadCouch - CouchDB PHP ClientDimitar Ivanov
 
Nodejs do teste de unidade ao de integração
Nodejs  do teste de unidade ao de integraçãoNodejs  do teste de unidade ao de integração
Nodejs do teste de unidade ao de integraçãoVinícius Pretto da Silva
 
Asynchonicity: concurrency. A tale of
Asynchonicity: concurrency. A tale ofAsynchonicity: concurrency. A tale of
Asynchonicity: concurrency. A tale ofJoel Lord
 
Asynchronicity: concurrency. A tale of
Asynchronicity: concurrency. A tale ofAsynchronicity: concurrency. A tale of
Asynchronicity: concurrency. A tale ofJoel Lord
 

What's hot (20)

MongoDB - Aggregation Pipeline
MongoDB - Aggregation PipelineMongoDB - Aggregation Pipeline
MongoDB - Aggregation Pipeline
 
Mongo db for C# Developers
Mongo db for C# DevelopersMongo db for C# Developers
Mongo db for C# Developers
 
teste
testeteste
teste
 
Mongo db presentation
Mongo db presentationMongo db presentation
Mongo db presentation
 
MongoDB Aggregation
MongoDB Aggregation MongoDB Aggregation
MongoDB Aggregation
 
Mongo db for c# developers
Mongo db for c# developersMongo db for c# developers
Mongo db for c# developers
 
JavaScript client API for Google Apps Script API primer
JavaScript client API for Google Apps Script API primerJavaScript client API for Google Apps Script API primer
JavaScript client API for Google Apps Script API primer
 
Func dyn title_set.c
Func dyn title_set.cFunc dyn title_set.c
Func dyn title_set.c
 
Do something in 5 with gas 8-copy between databases
Do something in 5 with gas 8-copy between databasesDo something in 5 with gas 8-copy between databases
Do something in 5 with gas 8-copy between databases
 
Phpfunction
PhpfunctionPhpfunction
Phpfunction
 
Google apps script database abstraction exposed version
Google apps script database abstraction   exposed versionGoogle apps script database abstraction   exposed version
Google apps script database abstraction exposed version
 
Web client security
Web client securityWeb client security
Web client security
 
Joins and Other Aggregation Enhancements Coming in MongoDB 3.2
Joins and Other Aggregation Enhancements Coming in MongoDB 3.2Joins and Other Aggregation Enhancements Coming in MongoDB 3.2
Joins and Other Aggregation Enhancements Coming in MongoDB 3.2
 
MongoDB and RDBMS
MongoDB and RDBMSMongoDB and RDBMS
MongoDB and RDBMS
 
Do something useful in Apps Script 5. Get your analytics pageviews to a sprea...
Do something useful in Apps Script 5. Get your analytics pageviews to a sprea...Do something useful in Apps Script 5. Get your analytics pageviews to a sprea...
Do something useful in Apps Script 5. Get your analytics pageviews to a sprea...
 
HeadCouch - CouchDB PHP Client
HeadCouch - CouchDB PHP ClientHeadCouch - CouchDB PHP Client
HeadCouch - CouchDB PHP Client
 
MongoDB
MongoDBMongoDB
MongoDB
 
Nodejs do teste de unidade ao de integração
Nodejs  do teste de unidade ao de integraçãoNodejs  do teste de unidade ao de integração
Nodejs do teste de unidade ao de integração
 
Asynchonicity: concurrency. A tale of
Asynchonicity: concurrency. A tale ofAsynchonicity: concurrency. A tale of
Asynchonicity: concurrency. A tale of
 
Asynchronicity: concurrency. A tale of
Asynchronicity: concurrency. A tale ofAsynchronicity: concurrency. A tale of
Asynchronicity: concurrency. A tale of
 

Similar to Splitapp coding

Bonnes pratiques de développement avec Node js
Bonnes pratiques de développement avec Node jsBonnes pratiques de développement avec Node js
Bonnes pratiques de développement avec Node jsFrancois Zaninotto
 
jSession #4 - Maciej Puchalski - Zaawansowany retrofit
jSession #4 - Maciej Puchalski - Zaawansowany retrofitjSession #4 - Maciej Puchalski - Zaawansowany retrofit
jSession #4 - Maciej Puchalski - Zaawansowany retrofitjSession
 
node.js and the AR.Drone: building a real-time dashboard using socket.io
node.js and the AR.Drone: building a real-time dashboard using socket.ionode.js and the AR.Drone: building a real-time dashboard using socket.io
node.js and the AR.Drone: building a real-time dashboard using socket.ioSteven Beeckman
 
Aplicacoes dinamicas Rails com Backbone
Aplicacoes dinamicas Rails com BackboneAplicacoes dinamicas Rails com Backbone
Aplicacoes dinamicas Rails com BackboneRafael Felix da Silva
 
Understanding backbonejs
Understanding backbonejsUnderstanding backbonejs
Understanding backbonejsNick Lee
 
GraphQL, Redux, and React
GraphQL, Redux, and ReactGraphQL, Redux, and React
GraphQL, Redux, and ReactKeon Kim
 
Open Source Search: An Analysis
Open Source Search: An AnalysisOpen Source Search: An Analysis
Open Source Search: An AnalysisJustin Finkelstein
 
Bare-knuckle web development
Bare-knuckle web developmentBare-knuckle web development
Bare-knuckle web developmentJohannes Brodwall
 
NoSQL meets Microservices - Michael Hackstein
NoSQL meets Microservices - Michael HacksteinNoSQL meets Microservices - Michael Hackstein
NoSQL meets Microservices - Michael Hacksteindistributed matters
 
Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015
Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015
Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015NoSQLmatters
 
FwDays 2021: Metarhia Technology Stack for Node.js
FwDays 2021: Metarhia Technology Stack for Node.jsFwDays 2021: Metarhia Technology Stack for Node.js
FwDays 2021: Metarhia Technology Stack for Node.jsTimur Shemsedinov
 
Specification-Driven Development of REST APIs by Alexander Zinchuk
Specification-Driven Development of REST APIs by Alexander Zinchuk   Specification-Driven Development of REST APIs by Alexander Zinchuk
Specification-Driven Development of REST APIs by Alexander Zinchuk OdessaJS Conf
 
Spring data iii
Spring data iiiSpring data iii
Spring data iii명철 강
 
NodeJs
NodeJsNodeJs
NodeJsdizabl
 
Developing web-apps like it's 2013
Developing web-apps like it's 2013Developing web-apps like it's 2013
Developing web-apps like it's 2013Laurent_VB
 
NoSQL meets Microservices - Michael Hackstein
NoSQL meets Microservices -  Michael HacksteinNoSQL meets Microservices -  Michael Hackstein
NoSQL meets Microservices - Michael Hacksteindistributed matters
 

Similar to Splitapp coding (20)

Ajax - a quick introduction
Ajax - a quick introductionAjax - a quick introduction
Ajax - a quick introduction
 
Bonnes pratiques de développement avec Node js
Bonnes pratiques de développement avec Node jsBonnes pratiques de développement avec Node js
Bonnes pratiques de développement avec Node js
 
jSession #4 - Maciej Puchalski - Zaawansowany retrofit
jSession #4 - Maciej Puchalski - Zaawansowany retrofitjSession #4 - Maciej Puchalski - Zaawansowany retrofit
jSession #4 - Maciej Puchalski - Zaawansowany retrofit
 
node.js and the AR.Drone: building a real-time dashboard using socket.io
node.js and the AR.Drone: building a real-time dashboard using socket.ionode.js and the AR.Drone: building a real-time dashboard using socket.io
node.js and the AR.Drone: building a real-time dashboard using socket.io
 
Aplicacoes dinamicas Rails com Backbone
Aplicacoes dinamicas Rails com BackboneAplicacoes dinamicas Rails com Backbone
Aplicacoes dinamicas Rails com Backbone
 
Understanding backbonejs
Understanding backbonejsUnderstanding backbonejs
Understanding backbonejs
 
GraphQL, Redux, and React
GraphQL, Redux, and ReactGraphQL, Redux, and React
GraphQL, Redux, and React
 
Open Source Search: An Analysis
Open Source Search: An AnalysisOpen Source Search: An Analysis
Open Source Search: An Analysis
 
Bare-knuckle web development
Bare-knuckle web developmentBare-knuckle web development
Bare-knuckle web development
 
NoSQL meets Microservices - Michael Hackstein
NoSQL meets Microservices - Michael HacksteinNoSQL meets Microservices - Michael Hackstein
NoSQL meets Microservices - Michael Hackstein
 
NoSQL meets Microservices
NoSQL meets MicroservicesNoSQL meets Microservices
NoSQL meets Microservices
 
Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015
Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015
Michael Hackstein - NoSQL meets Microservices - NoSQL matters Dublin 2015
 
FwDays 2021: Metarhia Technology Stack for Node.js
FwDays 2021: Metarhia Technology Stack for Node.jsFwDays 2021: Metarhia Technology Stack for Node.js
FwDays 2021: Metarhia Technology Stack for Node.js
 
Mug17 gurgaon
Mug17 gurgaonMug17 gurgaon
Mug17 gurgaon
 
Specification-Driven Development of REST APIs by Alexander Zinchuk
Specification-Driven Development of REST APIs by Alexander Zinchuk   Specification-Driven Development of REST APIs by Alexander Zinchuk
Specification-Driven Development of REST APIs by Alexander Zinchuk
 
Spring data iii
Spring data iiiSpring data iii
Spring data iii
 
NodeJs
NodeJsNodeJs
NodeJs
 
Developing web-apps like it's 2013
Developing web-apps like it's 2013Developing web-apps like it's 2013
Developing web-apps like it's 2013
 
CouchDB-Lucene
CouchDB-LuceneCouchDB-Lucene
CouchDB-Lucene
 
NoSQL meets Microservices - Michael Hackstein
NoSQL meets Microservices -  Michael HacksteinNoSQL meets Microservices -  Michael Hackstein
NoSQL meets Microservices - Michael Hackstein
 

Recently uploaded

VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on DeliveryCall Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Deliverybabeytanya
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一3sw2qly1
 
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With RoomVIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Roomgirls4nights
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
Denver Web Design brochure for public viewing
Denver Web Design brochure for public viewingDenver Web Design brochure for public viewing
Denver Web Design brochure for public viewingbigorange77
 

Recently uploaded (20)

VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on DeliveryCall Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
 
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With RoomVIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-
sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-
sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
Denver Web Design brochure for public viewing
Denver Web Design brochure for public viewingDenver Web Design brochure for public viewing
Denver Web Design brochure for public viewing
 

Splitapp coding

  • 1. Detailsview: createContent : function(oController) { var oForm = new sap.ui.layout.form.SimpleForm( "sf1", { maxContainerCols: 1, editable: false, content:[ new sap.ui.core.Title({text:"RRF Details"}), new sap.ui.commons.Label({text:"RRF ID",design:sap.ui.commons.TextViewDesign.Bold}), new sap.ui.commons.TextField({value:"{item>/Rrfid}", id:"Rrfid", editable:false}), new sap.ui.commons.Label({text:"Start Date",design:sap.ui.commons.TextViewDesign.Bold}), new sap.ui.commons.TextField({value:"{item>/StartDate}", id:"StartDate" , editable:false}), new sap.ui.commons.Label({text:"End Date",design:sap.ui.commons.TextViewDesign.Bold}), new sap.ui.commons.TextField({value:"{item>/EndDate}", id:"EndDate" , editable:false}), new sap.ui.core.Title({text:"Job Description"}), new sap.ui.commons.Label({text:"Job Title",design:sap.ui.commons.TextViewDesign.Bold}), new sap.ui.commons.TextField({value:"{item>/Jobtitle}", id:"Jobtitle", editable:false}), new sap.ui.commons.Label({text:"Work Experience",design:sap.ui.commons.TextViewDesign.Bold}), new sap.ui.commons.TextField({value:"{item>/Workexperience}", id:"Workexperience", editable:false}), new sap.ui.commons.Label({text:"No.of Vacancy",design:sap.ui.commons.TextViewDesign.Bold}), new sap.ui.commons.TextField({value:"{item>/NoOfVacancy}", id:"NoOfVacancy", editable:false}), new sap.ui.commons.Label({text:"Work Location",design:sap.ui.commons.TextViewDesign.Bold}), new sap.ui.commons.TextField({value:"{item>/Worklocation}", id:"Worklocation", editable:false}), new sap.ui.core.Title({text:"Qualification"}), new sap.ui.commons.Label({text:"Qualification",design:sap.ui.commons.TextViewDesign.Bo ld}),
  • 2. new sap.ui.commons.TextField({value:"{item>/Qualification}", id:"Qualification", editable:false}), new sap.ui.core.Title({text:"Manager Details"}), new sap.ui.commons.Label({text:"Personnel Officer",design:sap.ui.commons.TextViewDesign.Bold}), new sap.ui.commons.TextField({value:"{item>/PersonnelOfficer}", id:"PersonnelOfficer" , editable:false}), new sap.ui.commons.Label({text:"Line Manager",design:sap.ui.commons.TextViewDesign.Bold}), new sap.ui.commons.TextField({value:"{item>/LineManager}", id:"LineManager" , editable:false}), new sap.ui.commons.Label({text:"Status",design:sap.ui.commons.TextViewDesign.Bold}), new sap.ui.commons.TextField({value:"{item>/Status}", id:"Status" , editable:false}), new sap.ui.core.Title({text:""}), new sap.ui.commons.Button({ id:"b4", text: "Accept", style: sap.ui.commons.ButtonStyle.Accept, press: function() { oController.accept1(); } }), new sap.ui.commons.Button({ id:"b5", text: "Reject", style: sap.ui.commons.ButtonStyle.Reject, press: function() { oController.reject1(); } }), new sap.ui.commons.Button({ id:"b6", text: "Home", style: sap.ui.commons.ButtonStyle.Emph, press: function() { var app = sap.ui.getCore().byId("idapp"); app.to("masterid"); } }) ] });
  • 3. return new sap.m.Page({ title: "RRF APPROVAL PAGE", content: [oForm] }); } }); Details.controller: accept1: function() { var oEntry = {}; oEntry.Rrfid= sap.ui.getCore().byId("Rrfid").getValue(); oEntry.Jobtitle= sap.ui.getCore().byId("Jobtitle").getValue(); oEntry.Workexperience= sap.ui.getCore().byId("Workexperience").getValue(); oEntry.NoOfVacancy= sap.ui.getCore().byId("NoOfVacancy").getValue(); oEntry.Qualification= sap.ui.getCore().byId("Qualification").getValue(); oEntry.Worklocation= sap.ui.getCore().byId("Worklocation").getValue(); oEntry.StartDate= sap.ui.getCore().byId("StartDate").getValue(); oEntry.EndDate= sap.ui.getCore().byId("EndDate").getValue(); oEntry.PersonnelOfficer= sap.ui.getCore().byId("PersonnelOfficer").getValue(); oEntry.LineManager= sap.ui.getCore().byId("LineManager").getValue(); oEntry.Status= sap.ui.getCore().byId("Status").getValue(); oEntry.Approvaldate= ""; OData.request({ requestUri : "proxy/http/192.168.100.13:8000/sap/opu/odata/sap/ZHCM_REC_CEORRF_SRV/ZHCM_REC_CEO PROCESSSet", method : "GET", headers : { "X-Requested-With" : "XMLHttpRequest", "Content-Type" : "application/atom+xml", "DataServiceVersion" : "2.0", "X-CSRF-Token" : "Fetch" } }, function(data, response) { header_xcsrf_token = response.headers['x-csrf-token']; var oHeaders = { "x-csrf-token" : header_xcsrf_token, 'Accept' : 'application/json', }; OData.request({ requestUri : "proxy/http/192.168.100.13:8000/sap/opu/odata/sap/ZHCM_REC_CEORRF_SRV/ZHCM_REC_CEO PROCESSSet", method : "POST",
  • 4. headers : oHeaders, data:oEntry }, function(data,request) { alert("RRF Approved Successfully "); location.reload(true); }, function(err) { alert("RRF Approved Successfully "); location.reload(true); }); }, function(err) { var request = err.request; var response = err.response; alert("Error in Get -- Request " + request + " Response " + response); }); }, //Reject reject1: function() { var oEntry = {}; oEntry.Rrfid= sap.ui.getCore().byId("Rrfid").getValue(); OData.request({ requestUri : "proxy/http/192.168.100.13:8000/sap/opu/odata/sap/ZHCM_REC_CEORRF_SRV/ZHCM_REC_CEO PROCESSSet", method : "GET", headers : { "X-Requested-With" : "XMLHttpRequest", "Content-Type" : "application/atom+xml", "DataServiceVersion" : "2.0", "X-CSRF-Token" : "Fetch" } }, function(data, response) { header_xcsrf_token = response.headers['x-csrf-token']; var oHeaders = { "x-csrf-token" : header_xcsrf_token,
  • 5. 'Accept' : 'application/json', }; OData.request({ requestUri : "proxy/http/192.168.100.13:8000/sap/opu/odata/sap/ZHCM_REC_CEORRF_SRV/ZHCM_REC_CEO PROCESSSet('" + oEntry.Rrfid + "')", method : "PUT", headers : oHeaders, data:oEntry }, function(data,request) { alert("Rejected Performed"); location.reload(true); }, function(err) { alert("Rejection Failed"); }); }, function(err) { var request = err.request; var response = err.response; alert("Error in Get -- Request " + request + " Response " + response); }); } }); Master view: createContent : function(oController) { var oList = new sap.m.List({ id: "listid", mode: sap.m.ListMode.SingleSelect, select: function(){ oController.itemSelected(); } }); var oitemTemplate = new sap.m.StandardListItem({
  • 6. id: "sList", title:"{Rrfid}", description:"{Jobtitle}" }); oList.bindAggregation("items","/results",oitemTemplate); return new sap.m.Page({ title: "Open RRF Details", content: [oList] }); } }); Master Controller: onInit: function() { var oModel = new sap.ui.model.odata.ODataModel("proxy/http/192.168.100.13:8000/sap/opu/odata/sap/ZH CM_REC_CEORRF_SRV", true); var oJsonModel = new sap.ui.model.json.JSONModel(); oModel.read("/ZHCM_REC_CEOPROCESSSet?",null,null,true,function(oData,response){ oJsonModel.setData(oData); }); sap.ui.getCore().setModel(oJsonModel); }, onExit: function() { // // } itemSelected: function() { var app= sap.ui.getCore().byId("appid"); var list= sap.ui.getCore().byId("listid"); var sItem=list.getSelectedItem(); var spath = sItem.oBindingContexts.undefined.sPath; var item = sap.ui.getCore().getModel().getProperty(spath); var oModel1 = new sap.ui.model.json.JSONModel(item); sap.ui.getCore().setModel(oModel1,'item'); app.to('detailid',"flip","duration:'slow'"); } }); Topview: createContent : function(oController) { return new sap.m.Page({ title: "RRF APPROVALS", content: [ new sap.ui.commons.TextView({ text: "RRF APPROVAL HOME PAGE", design: sap.ui.commons.TextViewDesign.WS
  • 7. }) ] }); }}); Topview controller: No coding Index.html: <!DOCTYPE HTML> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/> <script src="resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-libs="sap.m,sap.ui.commons,sap.ui.layout" data-sap-ui-theme="sap_bluecrystal"> </script> <!-- only load the mobile lib "sap.m" and the "sap_bluecrystal" theme --> <script> sap.ui.localResources("sapliappjs"); var osplitapp = new sap.m.SplitApp("appid",{}); var oIntrapage = sap.ui.view({ id: "introId", viewName: "sapliappjs.topview", type: sap.ui.core.mvc.ViewType.JS }); var oMasterpage = sap.ui.view({ id: "masterid", viewName: "sapliappjs.Master", type: sap.ui.core.mvc.ViewType.JS }); var oDetailpage = sap.ui.view({ id: "detailid", viewName: "sapliappjs.Details", type: sap.ui.core.mvc.ViewType.JS }); osplitapp.addDetailPage(oIntrapage).addDetailPage(oDetailpage); osplitapp.addMasterPage(oMasterpage); osplitapp.setInitialDetail("introId"); osplitapp.setInitialMaster("masterid"); osplitapp.setMode("PopoverMode"); osplitapp.placeAt("content");