sap-fiori

How to run SAPUI5 Fiori application with mock data

我们两清 提交于 2019-12-12 03:37:18
问题 I have a Fiori application in my local PC and I see it has a model folder with a bunch of json files with mock data. I would like to run this app in a browser with this mock data but cannot find any documentation on how to do this. Do you know what is the parameter sapui5 is expecting to read data locally instead of from Odata server? I am not using SAP Web IDE, (which i know has an option "run with mock data") but nowhere it is said what this does behind the scenes. Thank you very much. Best

How to navigate from Fiori Overview Page (OVP)?

流过昼夜 提交于 2019-12-12 03:26:41
问题 Trying to make a POC on Overview Page Cards with navigation. I have followed a few tutorials in setting up the cards and annotations using the Northwind OData service. I want to navigate to another app by clicking on the cards. The docs say this is done using intent-based navigation . This app I am trying to navigate to is registered in Fiori Launchpad with semantic object of "Northwind" and action as "Display" I have the Employees card setup in the manifest.json and it displays the records

How to trigger click event for html anchor tag on xml view SAP UI5

…衆ロ難τιáo~ 提交于 2019-12-12 03:03:39
问题 I am trying to combine XMLView & standard html. On xml view, we can use press="onDoSomething" attribute & onDoSomething : function(){} on app.controller.js to trigger click event. But how to trigger it on html. Here is my code <mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" controllerName="banalyzer.controller.App" xmlns:html="http://www.w3.org/1999/xhtml" displayBlock="true"> <App id="BA_APP"> <pages> <HBox width="100%" height="100%" id="header_container"> <items> <Image class="logo" src

How to add browser cache autocomplete in SAPUI5 Input field?

荒凉一梦 提交于 2019-12-12 02:26:19
问题 How to add browser cache autocomplete in SAPUI5 Input field? I have a SAPUI5 form with input fields. I want these input fields to display autocomplete from browser history like any other website. Any idea? 回答1: Your question is a little vague, but I guess that you want to enable browser-level form field autocomplete. Something like in this question: Make text input fields remember previously entered data. The main catch is that the browser saves information regarding to field values under

Design of SAP Fiori/UI5 Application

ⅰ亾dé卋堺 提交于 2019-12-11 05:56:13
问题 I’m trying to develop my first SAP Fiori App. Now I have some question about themes and background. In my index.html sap_belize_plus is the selected theme. In the SAP Fiori Launchpad you can chose between different SAP themes. Does the chosen theme in the Launchpad affect my app or will it be displayed exactly as implemented (only belize theme)? Should I do custom CSS? I saw apps with the standard #EBEBEB background and others with the picture background. On what does this depend? Thanks for

Failed to load UI5 component with properties .. Fiori Launchpad

你离开我真会死。 提交于 2019-12-08 04:14:14
问题 I've a custom control in my app. it run as a web application fine. but when i'm running with sap fiori launchpad it give me error. I've registered my control in my index.html file <script> sap.ui.localResources("sap.custom"); sap.ui.localResources("sap.ui.codetools"); sap.ui.localResources("libs"); </script> the structure of file directory is If i remove my custom control then i can run my app in launchpad. Do I need to add some settings in my manifest file? What could be the reason for this

Filter on more than one column

久未见 提交于 2019-12-07 12:03:45
问题 I have a table that I can filter from one column: handleSearch: function(oEvent) { var sValue = oEvent.getParameter("value"); var oFilter = new sap.ui.model.Filter("RAG_SOC_1", sap.ui.model.FilterOperator.Contains, sValue); var oBinding = oEvent.getSource().getBinding("items"); oBinding.filter([oFilter]); }, How can I filter from more columns? For example if I have the columns A, B, C and D, if I write "hello" in the search bar, I want all results that have in fields A or B or C or D the word

Failed to load UI5 component with properties .. Fiori Launchpad

Deadly 提交于 2019-12-07 07:33:28
I've a custom control in my app. it run as a web application fine. but when i'm running with sap fiori launchpad it give me error. I've registered my control in my index.html file <script> sap.ui.localResources("sap.custom"); sap.ui.localResources("sap.ui.codetools"); sap.ui.localResources("libs"); </script> the structure of file directory is If i remove my custom control then i can run my app in launchpad. Do I need to add some settings in my manifest file? What could be the reason for this error Nafees Abbasi The common configuration for a Fiori tile is to point to the Component.js file. So

Filter on more than one column

ε祈祈猫儿з 提交于 2019-12-05 20:55:34
I have a table that I can filter from one column: handleSearch: function(oEvent) { var sValue = oEvent.getParameter("value"); var oFilter = new sap.ui.model.Filter("RAG_SOC_1", sap.ui.model.FilterOperator.Contains, sValue); var oBinding = oEvent.getSource().getBinding("items"); oBinding.filter([oFilter]); }, How can I filter from more columns? For example if I have the columns A, B, C and D, if I write "hello" in the search bar, I want all results that have in fields A or B or C or D the word "hello". Please see the following code: var oFilter1 = new sap.ui.model.Filter("A", sap.ui.model

Fiori — Cross application navigation; Handling startup parameters?

[亡魂溺海] 提交于 2019-12-04 17:34:09
This question is related to: Fiori - Cross Application Navigation http://help.sap.com/saphelp_uiaddon10/helpdata/en/07/9561b716bb4f2f8ae4e47bacbdb86d/content.htm Remove URL params on routing My use case is like this: I have multiple applications that should link to others (deep). Since documentation of cross navigation mention to avoid deep links I decided to use a startup parameter. For example: Application A has a list of some items in the detail view of one item there is a reference to another application B that contains some other details. Assume A shows article details and B shows some