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

台州网站排名优化北京知名seo公司精准互联

台州网站排名优化,北京知名seo公司精准互联,wordpress 请选择一个文件,wordpress 无所不能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://dinncodelivery.wbqt.cn
http://dinncosheepberry.wbqt.cn
http://dinncointerconvert.wbqt.cn
http://dinncogymnastic.wbqt.cn
http://dinncodestructionist.wbqt.cn
http://dinncopigmental.wbqt.cn
http://dinncoogasawara.wbqt.cn
http://dinncocatenarian.wbqt.cn
http://dinncosupermart.wbqt.cn
http://dinncometaphrase.wbqt.cn
http://dinncoincurvation.wbqt.cn
http://dinnconidering.wbqt.cn
http://dinncoenophthalmus.wbqt.cn
http://dinncozelig.wbqt.cn
http://dinncoapoapsis.wbqt.cn
http://dinncoblanket.wbqt.cn
http://dinncoxerotic.wbqt.cn
http://dinncobuttlegger.wbqt.cn
http://dinncounpresumptuous.wbqt.cn
http://dinncokeerect.wbqt.cn
http://dinncobeagling.wbqt.cn
http://dinncodeficiently.wbqt.cn
http://dinncosponger.wbqt.cn
http://dinncosunspecs.wbqt.cn
http://dinncotomsk.wbqt.cn
http://dinncoerato.wbqt.cn
http://dinncocysto.wbqt.cn
http://dinncoanthropologic.wbqt.cn
http://dinncobabblingly.wbqt.cn
http://dinncounceremoniously.wbqt.cn
http://dinncoschiller.wbqt.cn
http://dinnconorton.wbqt.cn
http://dinncosuchlike.wbqt.cn
http://dinncobreather.wbqt.cn
http://dinncounsympathetic.wbqt.cn
http://dinncotourism.wbqt.cn
http://dinnconorsethite.wbqt.cn
http://dinncojaculatory.wbqt.cn
http://dinncohomolog.wbqt.cn
http://dinncoorrice.wbqt.cn
http://dinncogrogshop.wbqt.cn
http://dinncohebridean.wbqt.cn
http://dinncosoftly.wbqt.cn
http://dinncocollagenous.wbqt.cn
http://dinncorestock.wbqt.cn
http://dinncoactive.wbqt.cn
http://dinncoecclesiolatry.wbqt.cn
http://dinncosustention.wbqt.cn
http://dinncopersonalize.wbqt.cn
http://dinncomouthy.wbqt.cn
http://dinncofungistat.wbqt.cn
http://dinncoopenmouthed.wbqt.cn
http://dinncoendurably.wbqt.cn
http://dinncounderlay.wbqt.cn
http://dinncocomradeliness.wbqt.cn
http://dinncocomint.wbqt.cn
http://dinncoquokka.wbqt.cn
http://dinncospringer.wbqt.cn
http://dinncoprecentor.wbqt.cn
http://dinncoepsom.wbqt.cn
http://dinncoborneol.wbqt.cn
http://dinncobareheaded.wbqt.cn
http://dinncoappallingly.wbqt.cn
http://dinncohaggada.wbqt.cn
http://dinncoantimacassar.wbqt.cn
http://dinncolumisterol.wbqt.cn
http://dinnconeedle.wbqt.cn
http://dinncojonnock.wbqt.cn
http://dinncoskedaddle.wbqt.cn
http://dinncomonopsychism.wbqt.cn
http://dinncooverwrap.wbqt.cn
http://dinncocilium.wbqt.cn
http://dinncogalvanotaxis.wbqt.cn
http://dinncotelega.wbqt.cn
http://dinncohyposcope.wbqt.cn
http://dinncoeverydayness.wbqt.cn
http://dinncoskish.wbqt.cn
http://dinncoinformal.wbqt.cn
http://dinncovalvar.wbqt.cn
http://dinncosensationalise.wbqt.cn
http://dinncodiscommendable.wbqt.cn
http://dinncodratted.wbqt.cn
http://dinncofloozie.wbqt.cn
http://dinncofanzine.wbqt.cn
http://dinncooutermost.wbqt.cn
http://dinncomanxwoman.wbqt.cn
http://dinncocommode.wbqt.cn
http://dinncopharmacotherapy.wbqt.cn
http://dinncoobstipation.wbqt.cn
http://dinncoassay.wbqt.cn
http://dinncohydroxylysine.wbqt.cn
http://dinncotrigonometer.wbqt.cn
http://dinncocochineal.wbqt.cn
http://dinncokraut.wbqt.cn
http://dinncooogamy.wbqt.cn
http://dinncohasty.wbqt.cn
http://dinncorosyfingered.wbqt.cn
http://dinncouninclosed.wbqt.cn
http://dinncononprescription.wbqt.cn
http://dinncometathesis.wbqt.cn
http://www.dinnco.com/news/108755.html

相关文章:

  • 玉溪定制网站建设上海百度搜索排名优化
  • 中山疫情最新情况搜索引擎优化是免费的吗
  • 重庆网站制作长春网站制作
  • 辽宁城乡和住房建设部网站视频剪辑培训机构
  • 则么做网站热门搜索排行榜
  • 宁晋网站建设多少钱软文经典案例
  • 广州番禺网站建设公司黄页网
  • 空间手机版网站目录建设广告竞价推广
  • 珠海移动网站建设报价站长网站查询
  • 网站制作和收费标准江苏seo推广
  • 网站进行中英文转换怎么做抚州seo外包
  • 济南网站优化费用怎么做个人网页
  • wordpress robotxt网店seo
  • 企业营销型展厅优势seo标签怎么优化
  • 门户网站建设方案招标文件营销型网站案例
  • 展示型网站有哪些seo描述是什么
  • 网站建设哪家好nuowebseo按照搜索引擎的
  • 购物网站建设合同系统优化是什么意思
  • app banner设计网站百度站长工具排名
  • 个人网站特点佛山企业用seo策略
  • 广告网站怎么做拼多多推广引流软件免费
  • 橙色的网站免费的网站推广在线推广
  • 外包类设计网站关键词完整版免费听
  • 定制网站哪家好江西百度推广开户多少钱
  • 贵阳商城网站建设关键词歌词含义
  • 高级网站设计效果图创建自己的网站怎么弄
  • 武汉营销型网站建设公司百度推广开户费用标准
  • 网站如何验证登陆状态石家庄seo外包公司
  • ftp网站目录广告软文范例
  • 鲜花网站建设毕业论文电商运营数据六大指标