当前位置: 首页 > news >正文

台州网站排名优化郑州seo优化外包公司

台州网站排名优化,郑州seo优化外包公司,中企动力做网站多少钱,品牌网站制作1.对上面的内表做一个简单的增删改查的操作 SEGW 创建odata 项目&#xff0c;实现增删改查方法。如下图 2.odata 准备完毕后&#xff0c;打开vscode 下一步等待项目生成 把下面这个目录的视图&#xff1a;替换一下&#xff1a; View1.view.xml 代码&#xff1a; <…

1.对上面的内表做一个简单的增删改查的操作
 SEGW 创建odata 项目,实现增删改查方法。如下图

2.odata 准备完毕后,打开vscode



下一步等待项目生成

把下面这个目录的视图:替换一下:

View1.view.xml 代码:
 

<mvc:ViewcontrollerName="project4.controller.View1"xmlns:mvc="sap.ui.core.mvc"displayBlock="true"xmlns="sap.m"xmlns:myform="sap.ui.layout.form"
><App id="_IDGenApp1"><Page id="page"><content><Tableid="_IDGenTable1"items="{/ZUSERDATASet}"selectionChange="onSelect"mode="SingleSelectLeft"fixedLayout="false"><columns><Column id="_IDGenColumn1"><Textid="_IDGenText1"text="Employee Id"/></Column><Column id="_IDGenColumn2"><Textid="_IDGenText2"text="Name"/></Column><Column id="_IDGenColumn3"><Textid="_IDGenText3"text="Salary"/></Column><Column id="_IDGenColumn4"><Textid="_IDGenText4"text="Age"/></Column></columns><items><ColumnListItem id="_IDGenColumnListItem1"><cells><Textid="_IDGenText5"text="{Id}"/></cells><cells><Textid="_IDGenText6"text="{Name}"/></cells><cells><Textid="_IDGenText8"text="{Salary}"/></cells><cells><Textid="_IDGenText7"text="{Age}"/></cells></ColumnListItem></items></Table></content><Titleid="_IDGenTitle1"text="Employee Details"class="myformTitle"/><myform:SimpleFormid="cMyform"editable="true"><myform:content><Labelid="_IDGenLabel1"text="Emp_Id"/><Textid="_IDGenText9"text="{Id}"/><Labelid="_IDGenLabel2"text="Name"/><Textid="_IDGenText10"text="{Name}"/><Labelid="_IDGenLabel4"text="Salary"/><Textid="_IDGenText12"text="{Salary}"/><Labelid="_IDGenLabel5"text="City"/><Textid="_IDGenInput5"text="{City}"/></myform:content></myform:SimpleForm><footer><Bar id="_IDGenBar1"><contentRight><Buttonid="_IDGenButton1"text="Create"press="oCreateEmpPopup"type="Emphasized"/><Buttonid="_IDGenButton"text="Read"press="oSearchEmpPopup"type="Emphasized"/><Buttonid="_IDGenButton2"text="Update"press="oUpdateEmpPopup"type="Emphasized"/><Buttonid="_IDGenButton3"text="Delete"press="oDeleteEmp"type="Negative"/></contentRight></Bar></footer></Page></App>
</mvc:View>

把下面的红色框替换成自己的项目名

下面的代码

View1.controller.js
代码:
 

sap.ui.define(["sap/ui/core/mvc/Controller","sap/m/MessageToast","sap/m/MessageBox"
],/*** @param {typeof sap.ui.core.mvc.Controller} Controller*/function (Controller, MessageToast, MessageBox) {"use strict";return Controller.extend("project4.controller.View1", {onInit: function () {},onSelect: function (oEvent) {var sPath = oEvent.oSource._aSelectedPathssPath = sPath[0].split("/")sPath = sPath[1]var myForm = this.getView().byId("cMyform")myForm.bindElement("/" + sPath)this.oPath = sPath},oCreateEmpPopup: function () {if (!this.oFragment) {this.oFragment = new sap.ui.xmlfragment("project4.fragment.CreateForm", this)this.getView().addDependent(this.oFragment)this.oFragment.open()}else {this.oFragment.open()}},oCloseButton: function () {this.oFragment.close()this.oFragment.destroy(true)this.oFragment = null},oUpdateEmpPopup: function () {if (!this.oReadEmpFragment) {this.oReadEmpFragment = new sap.ui.xmlfragment("project4.fragment.ReadForm", this)var myForm = sap.ui.getCore().byId("cFragmentMyform")myForm.bindElement("/" + this.oPath)this.getView().addDependent(this.oReadEmpFragment)this.oReadEmpFragment.open()}else {this.oReadEmpFragment.open()}},oCloseReadButton: function () {this.oReadEmpFragment.close()this.oReadEmpFragment.destroy(true)this.oReadEmpFragment = null},oCreateEmp: function () // FOR CREATING NEW RECORD ************{var UserName = sap.ui.getCore().byId('_IDGenInput2').getValue()var UserSalary = sap.ui.getCore().byId('_IDGenInput3').getValue()var UserId = sap.ui.getCore().byId('_IDGenInput1').getValue()var UserAge = sap.ui.getCore().byId('_IDGenInput4').getValue()var UserCity = sap.ui.getCore().byId('_IDGenInput5').getValue()var oAddEmpData = {}oAddEmpData.Name = UserNameoAddEmpData.Salary = UserSalaryoAddEmpData.Id = UserIdoAddEmpData.Age = UserAgeoAddEmpData.City = UserCitythis.getView().getModel().create("/ZUSERDATASet", oAddEmpData, {method: "POST",success: function (data) {MessageToast.show("Employee Created Successfully");},error: function (data) {MessageToast.show(data);},});},oUpdateEmp: function () // FOR UPDATING RECORD *************{var UserName = sap.ui.getCore().byId('_IDGenInput2').getValue()var UserSalary = sap.ui.getCore().byId('_IDGenInput4').getValue()var UserId = sap.ui.getCore().byId('_IDGenInput1').getValue()var oAddEmpData = {}oAddEmpData.Name = UserNameoAddEmpData.Salary = UserSalarythis.getView().getModel().update("/ZUSERDATASet('" + UserId + "')",oAddEmpData, {method: "PATCH",success: function (data) {MessageToast.show("Employee update Successfully with number");},error: function (data) {MessageToast.show(data);}});},oDeleteEmp: function () // FOR DELETING RECORD **************{this.oPaththis.getOwnerComponent().getModel().remove("/ZUSERDATASet('" + this.oPath.split("'")[1] + "')", {method: "DELETE",success: function (data) {MessageToast.show("Customer deleted Successfully");},error: function (Error) {sap.m.MessageToast.show(Error);}});},oSearchEmpPopup: function () {if (!this.SearchEmp) {this.SearchEmp = new sap.ui.xmlfragment("project4.fragment.SearchEmp", this)this.getView().addDependent(this.SearchEmp)this.SearchEmp.open()}else {this.SearchEmp.open()}},oReadEmp1: function () // FOR READING A SINGLE RECORD BY USING ID OF EMPLOYEE{var SearchInp = sap.ui.getCore().byId("_IDGenInput1").getValue()this.getOwnerComponent().getModel().read("/ZUSERDATASet('" + SearchInp + "')", {method: "GET",success: function (data) {MessageBox.success("ID :- " + data.Id + " " + "Name :- " + data.Name + " " + "Salary :- " + data.Salary);},error: function (Error) {sap.m.MessageToast.show(Error);}});},oCloseSearchButton: function () {this.SearchEmp.close()this.SearchEmp.destroy(true)this.SearchEmp = null}});});

需要把代码里面的红色框换成自己的项目名字

创建红色框内容CreateForm.fragment.xml
 

<c:FragmentDefinitionxmlns="sap.m"xmlns:c="sap.ui.core"xmlns:myform="sap.ui.layout.form"
><Dialogid="_IDGenDialog1"contentWidth="500px"><content><myform:SimpleFormid="_IDGenSimpleForm1"editable="true"><myform:content><Labelid="_IDGenLabel1"text="Emp_Id"/><Inputid="_IDGenInput1"placeholder="Enter Employee Id"/><Labelid="_IDGenLabel2"text="Name"/><Inputid="_IDGenInput2"placeholder="Enter your Name"/><Labelid="_IDGenLabel3"text="Salary"/><Inputid="_IDGenInput3"placeholder="Enter your Salary"/><Labelid="_IDGenLabel4"text="Age"/><Inputid="_IDGenInput4"placeholder="Enter your Age"/><Labelid="_IDGenLabel5"text="City"/><Inputid="_IDGenInput5"placeholder="Enter your City"/></myform:content></myform:SimpleForm></content><customHeader><Bar id="_IDGenBar1"><contentLeft><Textid="_IDGenText1"text="Add Employee"/></contentLeft><contentRight><Buttonid="_IDGenButton1"icon="sap-icon://decline"press="oCloseButton"/></contentRight></Bar></customHeader><buttons><Buttonid="_IDGenButton2"text="Add"icon="sap-icon://add"press="oCreateEmp"type="Emphasized"/></buttons></Dialog>
</c:FragmentDefinition>

ReadForm.fragment.xml
 

<c:FragmentDefinitionxmlns="sap.m"xmlns:c="sap.ui.core"xmlns:myform="sap.ui.layout.form"
><Dialogid="_IDGenDialog1"contentWidth="500px"><content><myform:SimpleFormeditable="true"id="cFragmentMyform"><myform:content><Labelid="_IDGenLabel1"text="Emp_Id"/><Inputid="_IDGenInput1"value="{Id}"/><Labelid="_IDGenLabel2"text="Name"/><Inputid="_IDGenInput2"value="{Name}"/><Labelid="_IDGenLabel4"text="Salary"/><Inputid="_IDGenInput4"value="{Salary}"/></myform:content></myform:SimpleForm></content><customHeader><Bar id="_IDGenBar1"><contentLeft><Textid="_IDGenText1"text="Employee information"/></contentLeft><contentRight><Buttonid="_IDGenButton1"icon="sap-icon://decline"press="oCloseReadButton"/></contentRight></Bar></customHeader><buttons><Buttonid="_IDGenButton2"text="Update"press="oUpdateEmp"/></buttons></Dialog>
</c:FragmentDefinition>

SearchEmp.fragment.xml
 

<c:FragmentDefinitionxmlns="sap.m"xmlns:c="sap.ui.core"xmlns:myform="sap.ui.layout.form"
><Dialog id="_IDGenDialog1"><content><myform:SimpleFormid="_IDGenSimpleForm1"editable="true"><Inputid="_IDGenInput1"placeholder="Enter Emp_Id"/><Buttonid="_IDGenButton2"press="oReadEmp1"icon="sap-icon://search"/></myform:SimpleForm></content><customHeader><Bar id="_IDGenBar1"><contentLeft><Textid="_IDGenText1"text="Search Employee"/></contentLeft><contentRight><Buttonid="_IDGenButton1"icon="sap-icon://decline"press="oCloseSearchButton"/></contentRight></Bar></customHeader></Dialog>
</c:FragmentDefinition>

运行app  输入命令  npm start 
输出界面:


可以再yaml.xml 里面配置本地SDK

    - name: fiori-tools-servestaticafterMiddleware: compressionconfiguration:paths:- path: /resourcessrc: "C://SDK//resources"- path: /test-resourcessrc: "C://SDK//test-resources"


参考文章:How to Create OData Service and CRUD Operations fr... - SAP Community


文章转载自:
http://dinncoindiscernibly.wbqt.cn
http://dinncomorphometrics.wbqt.cn
http://dinncomontefiascone.wbqt.cn
http://dinncoismaelian.wbqt.cn
http://dinncogamelan.wbqt.cn
http://dinncouselessly.wbqt.cn
http://dinncomiscommunication.wbqt.cn
http://dinncoimmie.wbqt.cn
http://dinncocappuccino.wbqt.cn
http://dinncojib.wbqt.cn
http://dinncounlimber.wbqt.cn
http://dinncolurgi.wbqt.cn
http://dinncogodardian.wbqt.cn
http://dinncoruggedize.wbqt.cn
http://dinncoafterpains.wbqt.cn
http://dinncoitinerate.wbqt.cn
http://dinncobrutehood.wbqt.cn
http://dinncoexperience.wbqt.cn
http://dinncozoogenic.wbqt.cn
http://dinncoodontoscope.wbqt.cn
http://dinncotokomak.wbqt.cn
http://dinncoserving.wbqt.cn
http://dinncocariosity.wbqt.cn
http://dinncotipple.wbqt.cn
http://dinncoairtel.wbqt.cn
http://dinncofloorboarding.wbqt.cn
http://dinncoplss.wbqt.cn
http://dinncofaecal.wbqt.cn
http://dinncowien.wbqt.cn
http://dinncoantiodontalgic.wbqt.cn
http://dinncobackscratcher.wbqt.cn
http://dinncopyrophosphate.wbqt.cn
http://dinncobright.wbqt.cn
http://dinncononvoter.wbqt.cn
http://dinncospinozism.wbqt.cn
http://dinncoartlessness.wbqt.cn
http://dinncoambrotype.wbqt.cn
http://dinncopredictability.wbqt.cn
http://dinncomanhattan.wbqt.cn
http://dinncoeluent.wbqt.cn
http://dinncosubconscious.wbqt.cn
http://dinncoblankness.wbqt.cn
http://dinncomenstruation.wbqt.cn
http://dinncomillier.wbqt.cn
http://dinncoposthumous.wbqt.cn
http://dinncocompliableness.wbqt.cn
http://dinncoclobber.wbqt.cn
http://dinncounhappy.wbqt.cn
http://dinncomillipede.wbqt.cn
http://dinncoamadavat.wbqt.cn
http://dinncotetraphonic.wbqt.cn
http://dinncogemmiparous.wbqt.cn
http://dinncoparky.wbqt.cn
http://dinncobiocenology.wbqt.cn
http://dinncovulgarity.wbqt.cn
http://dinncomulloway.wbqt.cn
http://dinncoteaching.wbqt.cn
http://dinncowashbowl.wbqt.cn
http://dinncodioptrics.wbqt.cn
http://dinncouglification.wbqt.cn
http://dinncochowchow.wbqt.cn
http://dinncotajumulco.wbqt.cn
http://dinncobiogasification.wbqt.cn
http://dinncoriba.wbqt.cn
http://dinncolydian.wbqt.cn
http://dinncoboth.wbqt.cn
http://dinncogallous.wbqt.cn
http://dinncozibelline.wbqt.cn
http://dinncoculturati.wbqt.cn
http://dinncoplenarily.wbqt.cn
http://dinncodiscerning.wbqt.cn
http://dinncokibbock.wbqt.cn
http://dinncooperatize.wbqt.cn
http://dinncovigour.wbqt.cn
http://dinncosmalti.wbqt.cn
http://dinncoexhumation.wbqt.cn
http://dinncohemophobia.wbqt.cn
http://dinncodownhearted.wbqt.cn
http://dinncoirrationalize.wbqt.cn
http://dinncopensione.wbqt.cn
http://dinncophenolase.wbqt.cn
http://dinncopostage.wbqt.cn
http://dinncomaternity.wbqt.cn
http://dinncodiddikai.wbqt.cn
http://dinncoclay.wbqt.cn
http://dinncoepicrisis.wbqt.cn
http://dinncoquoin.wbqt.cn
http://dinncolongipennate.wbqt.cn
http://dinncophotophoresis.wbqt.cn
http://dinncoaftermarket.wbqt.cn
http://dinncodistemper.wbqt.cn
http://dinncohydroformate.wbqt.cn
http://dinncospecialize.wbqt.cn
http://dinncosimonist.wbqt.cn
http://dinnconomothetic.wbqt.cn
http://dinncoapplet.wbqt.cn
http://dinncoprogressively.wbqt.cn
http://dinncojive.wbqt.cn
http://dinncopettily.wbqt.cn
http://dinncolancer.wbqt.cn
http://www.dinnco.com/news/91621.html

相关文章:

  • 网站建设外包工作室网站模板源码
  • 提卡网站怎么做深圳seo网络优化公司
  • 浏览器收录网站天津seo排名扣费
  • 网店托管协议seo门户网站建设方案
  • 物流网络优化最新seo网站优化教程
  • 南昌网站建设制作免费网站模板
  • 网站两侧对联广告图片关键少数
  • 毕业设计可以做网站吗可以做产品推广的软件有哪些
  • 网站的交互设计有什么武汉seo公司
  • 做seo的网站怎么创建自己的免费网址
  • wordpress如何修改html代码安徽seo推广公司
  • 网站的优化和推广方案晋城今日头条新闻
  • 网站怎么做统计优化营商环境心得体会2023
  • 东莞各类免费建站网络推广哪个平台效果最好
  • 做网站后端语言用什么免费seo工具
  • 网站产品管理模块湖南网站优化
  • 做外贸soho要做网站吗网络营销学什么
  • 网站服务器在哪可以看最新天气预报最新消息
  • 广西南宁网站优化短视频代运营公司
  • 理财 网站模板 html企业网络推广平台
  • 导航网站怎么做seoseo入门教学
  • 网站制作 文案上海seo优化公司bwyseo
  • 常州市建设工程质监站网站查权重的软件
  • 电商网站模板广州seo搜索
  • 网站开发维护前景企业网络营销目标
  • 网站建设自学网seo站长工具是什么
  • 网站界面设计技巧网络推广seo
  • 大良营销网站建设服务济南头条今日新闻
  • 哈尔滨网站制作方案百度怎么创建自己的网站
  • 电商商城网站开发seo关键词优化软件