sap-fiori

GCM Error - googleCloudMessaging.register

蓝咒 提交于 2019-12-04 00:25:30
I have the problem that the android application says. "The application xxxx Sorry stopped" to work with the push notificaction, when performing the debugger that happens when it passes: method 1 InstanceID InstanceId = InstanceID.getInstance (context); token = instanceID.getToken (key_id.toString () GoogleCloudMessaging.INSTANCE_ID_SCOPE); getToken error, method 2 Both an the same mistake if (googleCloudMessaging == null) { googleCloudMessaging = GoogleCloudMessaging.getInstance(context); } token = googleCloudMessaging.register(key_id); note that the token is generated but the application is

adding element with duplicate id

落爺英雄遲暮 提交于 2019-12-01 07:28:19
问题 I am creating a SAP Fiori application. I have input in a dialog box in that I have to fetch the input value. I am defining the dialog in fragment view . When I try to give the id for input I am getting an error as adding element with duplicate id. ------ Fragment View------ <core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:app="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"> <Dialog title="Title" class="sapUiPopupWithPadding" > <content> <HBox> <items>

Enable/disable checkbox of sap.ui.table.TreeTable depending on model data

筅森魡賤 提交于 2019-12-01 01:19:40
I use SAP UI5 version 1.52.6. Depending on model data, I would like to enable/disable a sap.ui.table.TreeTable view accordingly. see view: <t:TreeTable id="tree"> <t:columns> <t:Column> <t:label> <Label text="{i18n>serviceName}"/> </t:label> <t:template> <Label text="{Description}" /> </t:template> </t:Column> </t:columns> <t:Column> <Label text="{i18n>serviceTechName}"/> <t:template templateShareable="true"> <Text text="{Id}"/> </t:template> </t:Column> </t:TreeTable> Problem is that there is no method to enable the checkbox in TreeTable, see a similar topic being asked here : How can one

Enable/disable checkbox of sap.ui.table.TreeTable depending on model data

做~自己de王妃 提交于 2019-11-30 21:36:13
问题 I use SAP UI5 version 1.52.6. Depending on model data, I would like to enable/disable a sap.ui.table.TreeTable view accordingly. see view: <t:TreeTable id="tree"> <t:columns> <t:Column> <t:label> <Label text="{i18n>serviceName}"/> </t:label> <t:template> <Label text="{Description}" /> </t:template> </t:Column> </t:columns> <t:Column> <Label text="{i18n>serviceTechName}"/> <t:template templateShareable="true"> <Text text="{Id}"/> </t:template> </t:Column> </t:TreeTable> Problem is that there

UsingjQuery.sap.includeScript().then() in HCP Firori Launchpad

允我心安 提交于 2019-11-29 17:28:38
I'm trying to include googlemaps in sapui5 jQuery.sap.includeScript({ url: "https://maps.googleapis.com/maps/api/js?key=XXXX", promisify: true }).then(function() { ... } ) This Promise works fine when I run in hanatrial webide, But when I deploy it to hana cloud platform it is not working. The error message it gives me is : InterceptService.js:1 Uncaught (in promise) TypeError: u.indexOf is not a function(…) sap.ushell.cloudServices.interceptor.InterceptService._invokeFilters @ InterceptService.js:1 jQuery.sap.includeScript @ InterceptService.js:1 onAfterRendering @ Worklist.controller.js:37

Adding a custom library as a dependency in SAP Fiori

主宰稳场 提交于 2019-11-28 19:58:51
I have a custom library com.foo.library I would like to include as a dependency of a Fiori-like app I have built. SAP Fiori Launchpad for Developers -> Best Practices for Launchpad Apps Declare configuration information, like the location of icons, and library dependencies in the component.js configuration file makes sense, adding my library as a dependency would look like dependencies: { libs: ["sap.m", "sap.ui.layout", "com.foo.library"], components: [] }, with Fiori you have the constraint that you must use relative paths. eg for my dependency to work it must be found at /resources/com/foo

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

我的梦境 提交于 2019-11-27 23:12:29
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.getProperty("itemPress")); inside the controller, it throws Uncaught Error: Property "itemPress" does not

Fiori - Cross Application Navigation

二次信任 提交于 2019-11-27 16:59:58
问题 I want to navigate between the applications in launchpad. I have found with lot of searching that, through CrossApplicationNavigation in ushell is the way. Here is the link to documentation (SAPUI5 SDK - Demo Kit) Each application in launchpad has 'semantic object' and 'action' for further navigation. I have followed documentation and written following piece of code to create CrossApplicaionNavigation service. var fgetService =sap.ushell && sap.ushell.Container && sap.ushell.Container