sap-fiori

How to handle the itemPress of sap.m.Table?

柔情痞子 提交于 2019-12-17 16:28:50
问题 I've written an XML view. Inside it there is a table: <Table xmlns="sap.m" id="myTable" select="" selectionChange="" swipe="" growingStarted="" growingFinished="" updateStarted="" updateFinished="" itemPress="console.log('clicked on item')" > <columns> <!-- sap.m.Column --> </columns> <items> <!-- sap.m.ListItemBase --> </items> </Table> I insert the row to the table using the onInit of the controller, but when I click on a row, the message is not shown. If I use console.log(tablePippo

How to customise Shell container in SAPUI5

浪尽此生 提交于 2019-12-14 03:48:00
问题 I've a shell container and on big screens i want to utilize full with of screen. i want to cover full area. how i can customize it. 回答1: When working with a manifest.json file and the UI5-framework instantiates a shell control, do the following (appWidthLimited="false" cannot be used as you don't have a xml containing a shell 'tag'). manifest.json ... "sap.ui5": { "config": { "fullWidth": true }, ... ... 回答2: I assume you are using XML for your views. Add the following attribute

How to send email - SAPUI5

99封情书 提交于 2019-12-14 03:32:42
问题 I am trying to send sample email in SAPUI5. I have used sap.m.URLHelper.triggerEmail(["dummy@mail.com"], ["sample Subject"], ["Hi"]); . But it is not working. I have also tried using window.top.location = "mailto:" + email + "&subject=" + subject + "&body=" + message; . But no luck. 回答1: Try this: sap.m.URLHelper.triggerEmail("dummy@mail.com", "sample Subject", "Hi"); It should be without the [ ] because the parameters that triggerEmail expects are of type string 来源: https://stackoverflow.com

How to create a Smart Field control with ValueHelp feld

落爺英雄遲暮 提交于 2019-12-13 22:41:39
问题 I need to implement a Smart Field control with Value Help in my form. I am getting json response from ODATA service. And I am setting it to a JSONModel. I have tried a sample code refering this link but I don't know how to bindElement. Please refer this JsBin 回答1: SmartControls rely on OData! However, you are using a JSONModel! Also, as @matbtt mentioned you are binding a single field to an array, but you should do it the way he mentioned above... This jsbin is the correction but still only

How to set Number of Dynamic Tile in HCP portal service?

℡╲_俬逩灬. 提交于 2019-12-13 06:49:29
问题 I just want to use number from my server to change tile number, such as using URL http://10.59.XXX.100:8080/Map/dynamicTileOnlyNo In SCN blog, they use /sap/fiori/employees/destinations/northwind/V3/Northwind/Northwind.svc/Employees/$count to set dynamic data which stand for /<fiori proxy>/<application id>/destinations/<destination name>/<path to OData service>/<OData collection>/<query string> But I tried http://services.odata.org/Northwind/Northwind.svc/Employees/$count , returned: Failed

Drill down functionality in SAP FIORI

…衆ロ難τιáo~ 提交于 2019-12-13 04:11:08
问题 I want to create 3 charts for 5 models of car. The charts data is present for National & Regionwise. Can I drill down the National data to regional data using SAP FIORI? To get a single chart for National data for car models which can be drilled down to Region wise data 来源: https://stackoverflow.com/questions/55866404/drill-down-functionality-in-sap-fiori

Functionality of using filter in charts. Is it possible in SAP FIORI?

强颜欢笑 提交于 2019-12-13 02:42:57
问题 I am preparing an SAP FIORI layout where i have 5 car models & for each car i have 3 charts. I want to have a single dashboard screen, where just one car's 3 charts will be shown & rest car's charts can be seen using a filter for cars To get a dashboard with filters for car types 来源: https://stackoverflow.com/questions/55862268/functionality-of-using-filter-in-charts-is-it-possible-in-sap-fiori

difference between toggle button and switch

大城市里の小女人 提交于 2019-12-12 18:53:48
问题 What is the difference between a toggle button and switch? As they provide same feature, what is the specific use case to use a toggle button or a switch? Toggle button: Switch: 回答1: This is more of a User Experience question than just Coding. Here is my answer: The description of the control says it: Toggle is a button : sap.m.ToggleButton whereas switch is a user input. sap.m.Switch However, the main difference lies in the User Experience and usage. Here is what the Fiori Guideline says:

Fiori : Could not open App

人走茶凉 提交于 2019-12-12 04:31:21
问题 I am implementing Manage Journal Entries App in S/4Hana 1610 (App ID : F0717 as per Fiori App Library) and followed the guide given in the Fiori App Library. When I click on it ,encounters Console error1 , Console error2 . i.e. Error: failed to load 'sap/ssuite/fnd/om/outputcontrol/library.js' Thanks in Advance. 回答1: In case anyone is still looking for this error. The resolution is to Activate SICF Service FND_OM_OUT_CLS1(Pre-requisite for this service is software component UIS4HOP1 200 SP

Stick with generic ErrorHandler.js while allowing custom errormessage handling per request and not have double message boxes

眉间皱痕 提交于 2019-12-12 03:41:41
问题 The generic ErrorHandler which is an extension and hooked onto every component's main model request is useful for unexpected errors. However, when I'm creating new entities I want to report with user friendly messages. These messages are composed in the gateway and passed in the RAISE clause. Currently this causes to seperate message boxes to popup, one from the ErrorHandler, one from my onErrorHanlder that I pass to oModel.create(). How can I keep the generic one, but not use it in this case