标签: sap-fiori

GCM错误 - googleCloudMessaging.register

我有Android应用程序说的问题."应用程序xxxx抱歉停止"使用推送通知,执行调试时,它通过时发生:

方法1

InstanceID InstanceId = InstanceID.getInstance (context);

 token = instanceID.getToken (key_id.toString ()

GoogleCloudMessaging.INSTANCE_ID_SCOPE); getToken error,
Run Code Online (Sandbox Code Playgroud)

方法2

两个都是同一个错误

 if (googleCloudMessaging == null) {
googleCloudMessaging = GoogleCloudMessaging.getInstance(context);
                    }
                    token = googleCloudMessaging.register(key_id);
Run Code Online (Sandbox Code Playgroud)

请注意,生成令牌但应用程序已关闭,错误:

"The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir (android.content.Context)' was expected to be of type virtual but was found to be Instead of direct type (declaration of 'java.lang .reflect.ArtMethod 'appears in /system/framework/core-libart.jar)"
Run Code Online (Sandbox Code Playgroud)

我正在使用android studio,用于cdvCompileSdkVersion = android-22 cdvBuildToolsVersion = 22.0.1

错误:

"FATAL EXCEPTION: main
Process:  PID: 11989
java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to …
Run Code Online (Sandbox Code Playgroud)

android push-notification google-cloud-messaging sap-fiori gcmlistenerservice

13
推荐指数
2
解决办法
8505
查看次数

NWBC的自定义主题在Fiori创造问题

我为NWBC创建了一个自定义主题(只是使用不同的背景图像),事实证明这也与Fiori有关.该主题的创建方式与此链接上的教程类似:scn.sap.com/community/netweaver-business-client/blog/2014/05/26/nwbc-and-theme-designer--how-to-create-and -assign定制主题到NWBC

当我尝试运行Fiori时,我收到以下错误:

GET http://<machine_name>/sap/public/bc/themes/~client-200/~cac…p1hMouOcijKd4xZRPUAZhLJ3E/UI5/sap/m/themes/zsap_goldreflection/library.css 404 (Not found) 
Run Code Online (Sandbox Code Playgroud)

我的新自定义主题的名称是zsap_goldreflection,并且,如图所示,找不到文件library.css(也是library-parameters.json).

知道为什么吗?

谢谢.

此致,伊娃

sap themes sap-fiori

8
推荐指数
1
解决办法
968
查看次数

需要从SAP Fiori中的其他主机加载UI5模块

我们有2个应用之一是部署在SAP ABAP资源库,这是写OpenUI5另一个应用程序,所以我们已经部署在Apache Tomcat上未涉及到SAP的SAP应用菲奥里.

我们需要整合这两个应用程序,比如点击Fiori应用程序中的按钮需要打开OpenUI5应用程序.

问题是部署在Tomcat上的模块(App)是无法打开的,因为当我们注册模块路径时,fiori没有使用domian

    jQuery.sap.addUrlWhitelist("http", "tomcat.server.host", "7070", "/tomcatapp/resources/js/ui5widgets");

    jQuery.sap.registerModulePath("com.xxx.yyy", "http://tomcat.server.host:7070/tomcatapp/resources/js/ui5widgets");
Run Code Online (Sandbox Code Playgroud)

当我需要的时候

错误是

core-min-0-dbg.js:17351 Uncaught Error: failed to load 'com/xxx/yyy/aaa/bbb.js' from /sap/bc/ui5_ui5/ui2/ushell/resources/~20151006101200~/com/xxx/yyy/aaa/bbb.js: 

0 - AbortError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://sap.netweaver.net:2020/sap/bc/ui5_ui5/ui2/ushell/resources/~20151006101200~/com/xxx/yyy/aaa/bbb.js'.(…)
Run Code Online (Sandbox Code Playgroud)

tomcat custom-controls sapui5 sap-fiori

8
推荐指数
1
解决办法
435
查看次数

如何处理表的itemPress?

我写了一个XML视图.里面有一张桌子:

<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>
Run Code Online (Sandbox Code Playgroud)

我使用onInit控制器将行插入表中,但是当我单击一行时,消息不会显示.

sapui5 sap-fiori

7
推荐指数
1
解决办法
2万
查看次数

如何在 UI5 1.38 中重用另一个应用程序的组件?

环境

框架:SAPUI5 V1.38.39
IDE:SAP WEB IDE

问题

我想在另一个应用程序中使用 SAPUI5 应用程序,为此我找到了以下资源:https ://blogs.sap.com/2017/04/05/sapui5-how-to-reuse-parts-of- a-sapui5-application-in-othermultiple-sapui5-applications/

来自我想重用另一个应用程序的代码

在 init 中的 component.js 中我使用了:

var sPath = sHostUrl.includes("webidetesting") ? "https://gtyext.net" : sHostUrl;
jQuery.sap.registerModulePath("ztntapp", `${sPath}/sap/bc/ui5_ui5/sap/ztntapp/`);
Run Code Online (Sandbox Code Playgroud)

在我看来:

<core:ComponentContainer 
    name="ztntapp" 
    manifestFirst="true" 
    component="ztntapp">
</core:ComponentContainer>
Run Code Online (Sandbox Code Playgroud)

并在 neo-app.json 中

{
    "path": "/sap/bc/ui5_ui5/sap/ztntapp/",
    "target": {
        "type": "destination",
        "name": "gtyext_net",
        "entryPath": "/sap/bc/ui5_ui5/sap/ztntapp/"
    },
    "description": "namespace.tntapp Resources"
}
Run Code Online (Sandbox Code Playgroud)

来自重用应用程序的代码

在 component.js 中

sap.ui.define([
    "sap/ui/core/UIComponent",
    "sap/ui/Device",
    "./model/models"
], function (UIComponent, Device, models) {
    "use strict";

    return UIComponent.extend("TrackAndTrace.ztntapp.Component", {

        metadata: {
            manifest: "json"
        },
        init: function …
Run Code Online (Sandbox Code Playgroud)

sapui5 sap-fiori sap-web-ide sap-cloud-platform

7
推荐指数
1
解决办法
749
查看次数

SAP BTP Cloud Foundry 上部署的 SAPUI5 应用程序中未定义 sap.ushell.Container

sap.ushell.Container.getServiceAsync("CrossApplicationNavigation")我在从部署在 BTP Cloud Foundry 中并通过 SAP BTP Launchpad 服务访问的 SAPUI5 应用程序进行调用时遇到问题。
我的理解是:如果应用程序是从Fiori launchpad启动的,它可以触发CrossApplicationNavigation.

manifest.json声明了以下依赖项:

{
  "sap.ui5": {
    "dependencies": {
      "minUI5Version": "1.52.0",
      "libs": {
        "sap.ui.core": {},
        "sap.m": {},
        "sap.ui.layout": {},
        "sap.ushell": {},
        "sap.collaboration": {},
        "sap.ui.comp": {},
        "sap.uxap": {}
      }
Run Code Online (Sandbox Code Playgroud)

控制台出现错误:
错误1

当前的sap.ushell
我的 sap.ushell

sapui5 sap-fiori sap-cloud-foundry sap-business-technology-platform

6
推荐指数
0
解决办法
2176
查看次数

Fiori Elements-自定义$ batch查询

我有使用fiori元素的Fiori应用程序,我想调整UI5为$batch调用中的OData生成的odata查询。

我打开了用于列表报告的livemode以及用于选择/过滤器和list of values使用ValueList注释的smartfilter。但是问题是,当我在选择字段中键入过滤器值时(例如说要卖给),该$batch调用将触发以下OData查询。

../invoice_list.xsodata/vlsoldto?sap-client=100&$skip=0&$top=10&$filter=startswith(SOLDTO___T,%27TEST%27)
Run Code Online (Sandbox Code Playgroud)

我想调整odata调用以使用'substringof'而不是'startswith'..因此如下所示。

../invoice_list.xsodata/vlsoldto?sap-client=100&$skip=0&$top=10&$filter=substringof(%27TEST%27,CRM_SOLDTO___T)
Run Code Online (Sandbox Code Playgroud)

我不知道该进行定制的地方。我知道如何进行Fiori元素扩展,但是要查找一些信息(如果它是扩展名),然后是哪种类型的扩展名,哪种事件,或者其他任何方法(如果不是扩展名)。我几乎不知道从哪里开始。

任何帮助表示赞赏。

odata sapui5 sap-fiori

5
推荐指数
1
解决办法
115
查看次数

Fiori MyInbox 应用程序中的附件未异步更新?

我使用 SAP 标准库:Inbox。

\n

在图书馆课程中S3.controller,点击附件图标是onTabSelect来执行事件,女巫使

\n
this.fnDelegateAttachmentsCreation();\nthis.fnFetchDataOnTabSelect("Attachments");\nthis.fnHandleAttachmentsCountText("Attachments");\nthis.fnHandleNoTextCreation("Attachments");\nbreak;\n
Run Code Online (Sandbox Code Playgroud)\n

fnFetchDataOnTabSelect进行异步调用。在这次通话期间是fnHandleAttachmentsCountText已经执行,因此附件计数的更新发生在附件请求准备好之前。就附件请求而言,尚未执行任何标题更新。

\n

屏幕截图上是 AttachmentCountText \xe2\x80\x9eAttachnents (1/1)\xe2\x80\x9c,它来自先前选择的项目。\n它应该是 \xe2\x80\x9eAttachnents (2/2)"。

\n

在此输入图像描述

\n

此外,如果响应来得太快,则在收到请求的答案后,视图会更改为加载视图。\n如果附件列表是通过请求回调更新的,则不应第二次更新。

\n

看起来,有一些东西正在加载,但请求已经完成。

\n

在此输入图像描述

\n

如何扩展收件箱,以便在请求准备好后更新附件标题和内容?

\n

使用 SAPUI5-版本:1.71.4

\n

sapui5 sap-fiori

5
推荐指数
1
解决办法
1201
查看次数

如何从控件获取父视图/片段

如何检索View/ Fragmenta sap.ui.core.Control属于?

BR克里斯

controls viewcontroller sapui5 sap-fiori

4
推荐指数
1
解决办法
5923
查看次数

如何在SAPUI5中自定义Shell容器

贝壳容器

我有一个shell容器,在大屏幕上我想充分利用屏幕.我想覆盖整个区域.我如何定制它.

sapui5 sap-fiori sapui5-theming

4
推荐指数
2
解决办法
4642
查看次数