sapui5

How to update the rows of a table using dialog box

百般思念 提交于 2020-03-06 09:30:41
问题 I have been going through the below Plunker, plunker link here Here If I try to edit , the new record is added above instead of updating the current , How can I update the current edited row for the same example instead adding a new one? I have tried deleting the row and update the new in the deleted place , but this idea is not correct tmk Any guiding links or any help is much appreciated ....TIA 回答1: From your code I understand you want to update the model (variable aData ). It would be a

oData model operation mode

二次信任 提交于 2020-03-06 03:56:17
问题 I am trying to use the Auto operation mode in v2 oData model. In manifest file I have set the operation mode to "auto" and count mode to "inline". Then on the gateway side I have added the following: lv_has_inlinecount = io_tech_request_context->has_inlinecount( ). IF lv_has_inlinecount = abap_true. DESCRIBE TABLE et_entityset LINES es_response_context-inlinecount. ENDIF. But when I fetch the initial data and then sort it I would expect the sorting to happen on the client side but it keeps

Retrieving the id from a control to use in navigation

梦想的初衷 提交于 2020-03-05 21:43:58
问题 I have a view with tiles, each of which have an id="foo" property, and a press property pointing to a function in the controller. The problem is I can get the id of the tile, but it is appended automatically to the view name, __xmlview1--foo1 . This can change if other views have already been created; there's no guarantee it will always be xmlview1, it could be xmlview2 or any higher number. How do I retrieve the pure id as it appears in the tile's id property? Is this switch statement the

Retrieving the id from a control to use in navigation

坚强是说给别人听的谎言 提交于 2020-03-05 21:43:36
问题 I have a view with tiles, each of which have an id="foo" property, and a press property pointing to a function in the controller. The problem is I can get the id of the tile, but it is appended automatically to the view name, __xmlview1--foo1 . This can change if other views have already been created; there's no guarantee it will always be xmlview1, it could be xmlview2 or any higher number. How do I retrieve the pure id as it appears in the tile's id property? Is this switch statement the

How to add the rows at last and perform drag and drop accordingly for the demo sample from documentation

守給你的承諾、 提交于 2020-03-03 13:59:07
问题 Here is the link for the sample from DOCS for Drag and Drop For adding the rows down to each other from table1 to table2 I have changed(line 149 in controller Before to After ) moveToTable2: function() { this.getSelectedRowContext("table1", function(oSelectedRowContext) { var oTable2 = this.byId("table2"); var oFirstRowContext = oTable2.getContextByIndex(0); // insert always as a first row var iNewRank = this.config.defaultRank; if (oFirstRowContext) { iNewRank = this.config.rankAlgorithm

Difference between attributes id and uri within _metadata node of a OData request/response?

眉间皱痕 提交于 2020-03-01 18:26:09
问题 What is the difference between attributes id and uri within _metadata node of a OData request/response? All request/response sent by UI5 app contain those both attributes which are every time equal. Isn't this an unwanted redundancy? Is there any configuration in the gateway server which corresponds to those attributes? I would expect here only one attribute containing key which relates service part only i.e. SERVICE_ID/Entity_Name/keys I'm currently working with version 1.71 let

Why SAPUI5 loads similar fragment several times?

瘦欲@ 提交于 2020-03-01 04:44:53
问题 I have an XML fragment and use it in several places in an XML view. <IconTabFilter text="ABC" key="1" icon="sap-icon://alphabetical-order"> <content> <Table id="table1" width="auto" items="{path:'/ContactSet',parameters:{expand:'BusinessAddress,HomeAddress,OtherAddress,Photo'},filters:[{path:'Surname',operator:'StartsWith',value1:'A'},{path:'Surname',operator:'StartsWith',value1:'B'},{path:'Surname',operator:'StartsWith',value1:'C'}]}" noDataText=" {worklistView>/tableNoDataText}"

Why SAPUI5 loads similar fragment several times?

天大地大妈咪最大 提交于 2020-03-01 04:44:25
问题 I have an XML fragment and use it in several places in an XML view. <IconTabFilter text="ABC" key="1" icon="sap-icon://alphabetical-order"> <content> <Table id="table1" width="auto" items="{path:'/ContactSet',parameters:{expand:'BusinessAddress,HomeAddress,OtherAddress,Photo'},filters:[{path:'Surname',operator:'StartsWith',value1:'A'},{path:'Surname',operator:'StartsWith',value1:'B'},{path:'Surname',operator:'StartsWith',value1:'C'}]}" noDataText=" {worklistView>/tableNoDataText}"

Loading OData without Table or List object in SAPUI5

落爺英雄遲暮 提交于 2020-02-29 05:05:11
问题 I have 2 weeks looking for an example to understand how the OData works. I have defined in the Manifest.json my url with the OData service { "_version" : "1.7.0", "sap.app" : { "id" : "test", "type" : "application", "i18n" : "i18n/i18n.properties", "applicationVersion": { "version" : "1.0.0" }, "title" : "{{appTitle}}", "description" : "{{appDescription}}", "sourceTemplate": { "id" : "servicecatalog.connectivityComponent", "version" : "0.0.0" }, "dataSources" : { "Test" : { "uri" : "/sap/opu

Loading OData without Table or List object in SAPUI5

僤鯓⒐⒋嵵緔 提交于 2020-02-29 05:03:49
问题 I have 2 weeks looking for an example to understand how the OData works. I have defined in the Manifest.json my url with the OData service { "_version" : "1.7.0", "sap.app" : { "id" : "test", "type" : "application", "i18n" : "i18n/i18n.properties", "applicationVersion": { "version" : "1.0.0" }, "title" : "{{appTitle}}", "description" : "{{appDescription}}", "sourceTemplate": { "id" : "servicecatalog.connectivityComponent", "version" : "0.0.0" }, "dataSources" : { "Test" : { "uri" : "/sap/opu