sapui5

SAPUI5 Create OData entity with dates - generates incorrect request payload that ends in CX_SXML_PARSE_ERROR

人走茶凉 提交于 2020-01-07 08:22:52
问题 We are trying to create an entity that has date attributes via an odata service. Backend is an sap system. This entity has only 3 key attributes plus a bunch of other attributes. We have identified that dates in the keys are the root cause of the problem. Keys: Pernr type string, begda type datetime endda type datetime. The code below, (which does not work), has been severely simplified when trying to troubleshoot the issue. At the moment, it reads an entity from an entity set and immediately

How do i write Infinite Row-repeater in an Xml View in SAPUI5

你。 提交于 2020-01-07 06:49:12
问题 I am trying to display the complex json data in SAPUI5. Here is my Complex Data: results:{ "name" : "sample", "child" : [ "name" : "sample", "child" : [ "name" : "sample", "child" : [ "name" : "sample", "child" : [ ] ] ] ] } Here the inner child is infinite. These are depending on my data. So here is my question is how do i display this type of data in xml view. Previously i displayed this type of data by using the Row repeater. There the data has only 3 levels. But Now it has infinite. So

how to display formatted text containing html tags using RichTooltip in UI5

≡放荡痞女 提交于 2020-01-07 05:00:32
问题 I want to set tooltip text for each grid of table in UI5 using RichTooltip control. Also I want the text to be proper formatted like if text containing bold or italic html tags, then it should display the data in same fashion. E.g.: text="<b>hello</b> <i>world</i>" should display hello in bold and world in italics. 回答1: RichTooltip should not be used anymore since its library sap.ui.commons is deprecated. Instead, go for the Popover. You can combine Popover with onmouseover if you really have

onAfterRendering hook for smartform in UI5

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-07 02:23:26
问题 In my app i have an XML view that consists of a smartform. I have a need to access an input element(via sap.ui.getCore().byId() ) that becomes available after the smartform is parsed and rendered. The onAfterRendering in the controller for my view triggers as soon as the view is rendered(i get all my non-smartform elements like title etc.), but before the smartform is parsed and rendered. A rudimentary test via an alert also proved this visually. Is there any event that is triggered after the

onAfterRendering hook for smartform in UI5

旧巷老猫 提交于 2020-01-07 02:23:08
问题 In my app i have an XML view that consists of a smartform. I have a need to access an input element(via sap.ui.getCore().byId() ) that becomes available after the smartform is parsed and rendered. The onAfterRendering in the controller for my view triggers as soon as the view is rendered(i get all my non-smartform elements like title etc.), but before the smartform is parsed and rendered. A rudimentary test via an alert also proved this visually. Is there any event that is triggered after the

Bug after update TreeTable

ぐ巨炮叔叔 提交于 2020-01-07 01:55:09
问题 I got a problem after updating the a TreeTable, as i understand this is because model is not refreshed, tried to refresh it but it doesnt help. Here is what i see after update: (erased headers by myself) No rows added, but if i scroll horizontally, the rows are added and seen. Here is my update code: if (events) { tEvents.unbindAggregation("rows"); tEvents.bindAggregation("rows",{ path: "events>/prg_years(ID_SCENARIO=" + filterKRVR.scenario + ",I_YEAR=" + filterKRVR.year + "m)" + "/HisGTO",

upload a file in SAPUI5 and send to Gateway server

做~自己de王妃 提交于 2020-01-07 01:13:20
问题 I am having difficulties trying to figure out a way to send uploaded file and send it to a Gateway server. I am using the basic FileUploader control. ***<u:FileUploader id="fileUploader" name="myFileUpload" uploadUrl="upload/" width="400px" tooltip="Upload your file to the local server" uploadComplete="handleUploadComplete"/> <Button text="Upload File" press="handleUploadPress"/>*** And in the controller I have the following event handler ***handleUploadPress: function(oEvent) { var

upload a file in SAPUI5 and send to Gateway server

拟墨画扇 提交于 2020-01-07 01:12:21
问题 I am having difficulties trying to figure out a way to send uploaded file and send it to a Gateway server. I am using the basic FileUploader control. ***<u:FileUploader id="fileUploader" name="myFileUpload" uploadUrl="upload/" width="400px" tooltip="Upload your file to the local server" uploadComplete="handleUploadComplete"/> <Button text="Upload File" press="handleUploadPress"/>*** And in the controller I have the following event handler ***handleUploadPress: function(oEvent) { var

Uncaught TypeError: Cannot use 'in' operator to search for 'position' in undefined

爷,独闯天下 提交于 2020-01-06 20:09:52
问题 I've got a problem with this code snippet: <script> $.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-core'); $.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-widget'); $.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-mouse'); $.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-draggable'); $.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-sortable'); </script> <script> jQuery.sap.includeStyleSheet("resources/css/dashboard.css"); sap.ui.localResources("dashboard"); var view = sap.ui

Changing the bindings of a Table by clicking on a button

杀马特。学长 韩版系。学妹 提交于 2020-01-06 20:04:08
问题 I want to change the binding of a table I have right now, for example on a column I have this binding: <t:Column id="orderId" hAlign="Center"> <Label id="labelOrderId" text="{i18n>transactionId}"/> <t:template> <Text text="{id}"/> </t:template> </t:Column> by Pressing a button I want to change this to this binding: <t:Column id="orderId" hAlign="Center"> <Label id="labelOrderId" text="{i18n>transactionId}"/> <t:template> <Text text="{newTransactionId}"/> </t:template> </t:Column> is there any