Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all 6178 articles
Browse latest View live

How move from OData model to JSON model?

$
0
0

Hi,

 

I would like to can move from a"Connected version" to a "Localhost version" of my application using radiobutton. I have a config.json with {mock = false}, and a DataService.js util with my oData model. By default when I launch my application, the radiobutton "Connected version" of my Connexion.view.xml is selected. But if I choose the radiobutton "Localhost version", I would like to change mock = false in mock = true. How could I do this, please?

 

Thanks in advance, best regards.

 

Ewen.


Just hijacking forum #10000

$
0
0

10k SAPUI5 on SDN.png

 

Wow, incredible run, 10000 forum posts, cogratulations to community, sounds like a milestone to me

Responsive popup not working for tablet and desktop

$
0
0

Hi ,

 

I have application in which if i click on a image, a pop up appears with the image details. This works perfectly in all mobile devices. But when i try to run the application in tablet or desktop .. popup is not opening. I am not getting any error in console too. What could be the issue ????

 

 

Regards,

Sivaganesh.

Using OData service in AutoComplee Control (making ajax call) is taking too long, is there any way to fasten the process?

$
0
0

Hello experts,

 

I am using AutoComplete control in my project. Making an ajax call to fetch list of products. But because there are more than 2000 products its taking too long to fetch all items. Even though items are fetched, when user enters next letter, again service is called and it takes very long to fetch next set of data elements.

 

Is there any faster way in which this can be done? What i mean is when for the first time service is called, can all the fetched items be buffered?  And then can next AutoComplete search be done on that buffered list rather than calling the service again. Is this possible? if yes ,How??

 

Main aim is to fasten the process of fetching products when service gets called. How do i achieve this in this control??

 

Please help,

Thank you,

Best Regards,

Chetan

Object Status - customizing color of the state

$
0
0

Hi guys,

I'm trying to customize the color of an object status, I'm using this code:

11-01-2016 17-27-53.jpg

in order to set a different status depending on a value, and it's working fine. The thing is I need to add other colors. Is it possible to add more colors? I saw that is possible to handle it in a <script> </script> area, but then I don't know how to use it with this example.

Any hint or tip will be very usefull.

 

Thanks in advance!

 

Andrés

Enterprise Portal 7.5 SAPUI5 from WebIde

$
0
0

Hi,

 

I have set up everything as I expect it to be I think .

 

Sap Cloud Connector

SCC.png

 

Hana Cloud Platform Destination

 

HCP Destination.png

 

When I try and deploy a custom SAPUI5 application to the Enterprise Portal,  I get that the Deploy button remains greyed out.

 

WebIde.png

 

Any suggestions what I'm doing wrong ?

 

Thanks

Andre

SAP Web IDE - Mobile

$
0
0
Getting StartedCreate

Extend

Mobile

Analytics

Events

Mobilizing Fiori.png


Overview


new: Mobilizing SAP Fiori Slide Deckby Marc Anderegg and Tobias Tresl

 

This slide deck on Mobilizing Fiori provides an introduction to the topic and covers SAP Fiori Client and the SAP Web IDE plugin: Hybrid Application Toolkit. It illustrates the options to run Fiori applications as mobile hybrid applications, run in the browser, run in the SAP Fiori Client or run as packaged mobile applications. Furthermore, it gives an overview of the Hybrid Application Toolkit aka HAT, including the SAP Companion app that is also available in the public app stores.

 

 

What is Hybrid Application Toolkit (HAT)?

 

 

 

Video and Demo

SAP Web IDE Hybrid Application Toolkit Introduction and Demo Video by Matthias De la Roche

In this video, we will show you how to create mobile applications using the Hybrid Application Toolkit (HAT) that comes with SAP Web IDE. We will start by creating a simple UI5 Master Detail application. Then, step-by-step, we will add the mobile capabilities to the application.


You can find the source code here.



Wondering what's new in Hybrid Application Toolkit?

        SAP recently published a new version of SAP Web IDE and the  Hybrid App Toolkit.

   

Getting Started with Hybrid Application Toolkit

 

Download


HAT online help

          go to Installing and Setting Up

  • The online help contains:
    • What's new in the latest release
    • Installing and setting up
    • Getting started
    • Testing
    • Delivering and deploying
    • Troubleshooting

 

Companion App: new

 

 

How to Guides for SAP Web IDE Release 1.17:

 

 


 

 

 

 

How to Guides for SAP Web IDE Release 1.11:

 

 

 

How to Guides for SAP Web IDE Release 1.9:

 

 

Additional Resources

 

 

 

Brought to you by the SAP Technology RIG

Add initial screen to masterdetail template ?

$
0
0

Is it possible to add an initial screen to master detail template of WEBIDE ? Currently the template launches the master page and navigates to detail page. How can i add a view before master page which should be initially launched of app and navigate to master view ? App is working fine with master detail currently


how to access class inside controller

$
0
0

Hello,

I am new to SAPUI5  and trying something using classes . i have created a class using model/person.js in side my project structure which has constructor to take first name and last name  and returns a JSON model wrapping that data .

 

I am trying to use this in my controller but i don't see a way to access this properly inside the controller .

 

Controller initialized like below and inside onInit method i am trying to call sap.ui.require to initialize the class which is defined .

 

sap.ui.controller("com.test.objects.view.mainView", {

onInit: function() {

    sap.ui.require(['com/test/objects/model/Person'], function(Person) {

 

            this.p = new Person({firstname:"Testing",lastname:"Name"});

             this.getView().setModel(p.getModel(),"person");

         });

}

}

 

please help me how can i access the class defined in other JS file and call the methods and populate the data into VIew .

 

-Rakesh

Options to pass language to UI5 Applications

$
0
0

All:

 

We use NON-SAP Portal as an entry point/employee facing portal where all applicaitions(SAP & NON-SAP) presented to the employee as a tiles. We have provisoned an employee with an option to chose their choice of language during the runtime at the Portal Level. For example, As an employee, I have the ability to switch between languages between  EN & FR and vice veras and we don't want to update language selection of the employee to business suite systems. 

 

Based on the language selction of the employee on the portal, We need to load & translate the applicaitons in the selected language. What are the mulitple options avaiable for this case to pass the language parameter to UI5 applcations.

 

1. Can Language be set in the Cookie Like MYSAPSSO2 and SAP-UserContenct?

     I have tried this option where SAP-UserContext is set with Lanaguage and Client. However, UI5 applicaiton consuming these cookies weren't able to      pick up the language from the cookie instead Language is picked up from browser.

 

    

2. Passing the language as URL parameter like sap-language=FR / EN. What are the downsides to this option to use in Production. I prefer to avoid passing the value as URL parameter to avoid visibility to end users on the language selection and potential overwrite.

What are your thoughts on this options. 

 

3. Consider Browser language as the default language. This option doesn't work since we do share systems to access enterprise applications and chaging the browser language effects other employees who may/may not know how to change back the language to Default per region and in turn increage support calls.

Reg: Issue while installing the local Web IDE

$
0
0

Hi All,

 

I referred this link(http://scn.sap.com/community/developer-center/front-end/blog/2015/04/21/install-sap-web-ide-locally-for-trial-windows-version )for local Web IDE installation and I got the below issue.

 

eclipse.buildId=unknown

java.version=1.6.0_20

java.vendor=Sun Microsystems Inc.

BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

Framework arguments:  -repository jar:file:C:\SAPWebIDE\updatesite.zip!/ -installIUcom.sap.webide.orionplugin.feature.feature.group -destination c:\SAPWebIDE\eclipse

Command-line arguments:  -repository jar:file:C:\SAPWebIDE\updatesite.zip!/ -installIUcom.sap.webide.orionplugin.feature.feature.group -destination c:\SAPWebIDE\eclipse

 

 

!ENTRY org.eclipse.core.contenttype 4 0 2016-01-12 16:23:09.107

!MESSAGE FrameworkEvent ERROR

!STACK 0

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.core.contenttype [9]

  Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

 

 

  at org.eclipse.osgi.container.Module.start(Module.java:434)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

  at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

  at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

 

 

!ENTRY org.eclipse.core.jobs 4 0 2016-01-12 16:23:09.107

!MESSAGE FrameworkEvent ERROR

!STACK 0

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.core.jobs [10]

  Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

 

 

  at org.eclipse.osgi.container.Module.start(Module.java:434)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

  at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

  at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

 

 

!ENTRY org.eclipse.core.net 4 0 2016-01-12 16:23:09.109

!MESSAGE FrameworkEvent ERROR

!STACK 0

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.core.net [11]

  Unresolved requirement: Require-Bundle: org.eclipse.equinox.security; bundle-version="[1.0.0,2.0.0)"

    -> Bundle-SymbolicName: org.eclipse.equinox.security; bundle-version="1.2.100.v20150423-1356"; singleton:="true"

       org.eclipse.equinox.security [47]

         Unresolved requirement: Import-Package: org.eclipse.core.runtime.jobs

           -> Export-Package: org.eclipse.core.runtime.jobs; bundle-version="3.7.0.v20150330-2103"; bundle-symbolic-name="org.eclipse.core.jobs"; version="0.0.0"

              org.eclipse.core.jobs [10]

                Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

 

 

  at org.eclipse.osgi.container.Module.start(Module.java:434)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

  at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

  at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

 

 

!ENTRY org.eclipse.core.runtime.compatibility 4 0 2016-01-12 16:23:09.111

!MESSAGE FrameworkEvent ERROR

!STACK 0

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.core.runtime.compatibility [14]

  Unresolved requirement: Require-Bundle: org.eclipse.core.runtime; bundle-version="[3.2.0,4.0.0)"; visibility:="reexport"

    -> Bundle-SymbolicName: org.eclipse.core.runtime; bundle-version="3.11.0.v20150405-1723"; singleton:="true"

       org.eclipse.core.runtime [13]

         Unresolved requirement: Require-Bundle: javax.annotation; bundle-version="1.1.0"; visibility:="reexport"; resolution:="optional"

         Unresolved requirement: Require-Bundle: javax.inject; bundle-version="1.0.0"; visibility:="reexport"; resolution:="optional"

         Unresolved requirement: Require-Bundle: org.eclipse.core.jobs; bundle-version="[3.2.0,4.0.0)"; visibility:="reexport"

           -> Bundle-SymbolicName: org.eclipse.core.jobs; bundle-version="3.7.0.v20150330-2103"; singleton:="true"

              org.eclipse.core.jobs [10]

                Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"

 

 

  at org.eclipse.osgi.container.Module.start(Module.java:434)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)

  at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

  at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

  at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

 

Please have a look and kindly suggest me how to correct this issue.

 

 

Thanks,

Naganjana

Error occurred during the installation of HAT setup?

$
0
0

Hello Experts,

jitendra kansal

 

 

I am trying to install SAP HAT on my windows 8 but I am getting some error at tha following step

 

hat.PNG

-------------------------------------------------------------------------------------------------------------------

Error :

The build script exited unexpectedly!

 

No config file specified.

Searching for config.json in the current directory.

Config file found at C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp/config.json.

platforms: android

5.3.1

cordova version: 5.3.1

 

 

Creating WebIdeCompanion project.

Creating a new cordova project.

C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp

Adding platforms...

 

 

android

Adding android project...

 

 

Creating Cordova project for the Android platform:

  Path: platforms\android

  Package: com.sap.ide.companion

  Name: WebIdeCompanion

  Activity: MainActivity

  Android target: android-22

Copying template files...

 

 

Android project created with cordova-android@4.1.1

Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project

Fetching plugin "cordova-plugin-whitelist@1" via npm

Installing "cordova-plugin-whitelist" for android

Adding CompanionApp plugins...

 

 

Installing "com.sap.companion.cordova.plugins.toolbar" for android

 

 

            For Android you need to modify the activity theme in the AndroidManifest.xml to be android:theme="@android:style/Theme.Holo.Light".  The minSdkVersion must also be changed to at least 11.

      

Installing "com.sap.companion.cordova.plugins.logout" for android

Adding optional Kapsel plugins...

 

 

Installing "kapsel-plugin-corelibs" for android

Installing "kapsel-plugin-apppreferences" for android

Installing "kapsel-plugin-inappbrowser" for android

Installing "kapsel-plugin-logon" for android

Installing "kapsel-plugin-authproxy" for android

Fetching plugin "cordova-plugin-device" via npm

Installing "cordova-plugin-device" for android

Installing "kapsel-plugin-i18n" for android

Plugin "kapsel-plugin-authproxy" already installed on android.

Installing "kapsel-plugin-appupdate" for android

Fetching plugin "cordova-plugin-dialogs" via npm

Installing "cordova-plugin-dialogs" for android

Installing "kapsel-plugin-logger" for android

Installing "kapsel-plugin-encryptedstorage" for android

Installing "kapsel-plugin-settings" for android

Installing "kapsel-plugin-push" for android

 

 

            For Android, you must install the Google Play services SDK found in the Android SDK Manager under Extras.

      

Installing "kapsel-plugin-barcodescanner" for android

Installing "kapsel-plugin-odata" for android

 

 

            For Android, HAXM based emulators are not supported with the offline libraries.

      

Installing "kapsel-plugin-e2etrace" for android

Installing "kapsel-plugin-xhook" for android

Installing "nl.x-services.plugins.calendar" for android

Installing "kapsel-plugin-attachmentviewer" for android

Installing "kapsel-plugin-voicerecording" for android

Fetching plugin "cordova-plugin-media-capture" via npm

Installing "cordova-plugin-media-capture" for android

Fetching plugin "cordova-plugin-file" via npm

Installing "cordova-plugin-file" for android

 

 

The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml.

    

If this is a new application no changes are required.

    

If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

    

      "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"

    

to config.xml in order for the application to find previously stored files.

    

  

Fetching plugin "cordova-plugin-device" via npm

Plugin "cordova-plugin-device" already installed on android.

Fetching plugin "cordova-plugin-file" via npm

Plugin "cordova-plugin-file" already installed on android.

Fetching plugin "cordova-plugin-network-information" via npm

Installing "cordova-plugin-network-information" for android

Fetching plugin "cordova-plugin-battery-status" via npm

Installing "cordova-plugin-battery-status" for android

Fetching plugin "cordova-plugin-device-motion" via npm

Installing "cordova-plugin-device-motion" for android

Fetching plugin "cordova-plugin-device-orientation" via npm

Installing "cordova-plugin-device-orientation" for android

Fetching plugin "cordova-plugin-geolocation" via npm

Installing "cordova-plugin-geolocation" for android

Fetching plugin "cordova-plugin-camera" via npm

Installing "cordova-plugin-camera" for android

Fetching plugin "cordova-plugin-media" via npm

Installing "cordova-plugin-media" for android

Fetching plugin "cordova-plugin-media-capture" via npm

Plugin "cordova-plugin-media-capture" already installed on android.

Fetching plugin "cordova-plugin-file-transfer" via npm

Installing "cordova-plugin-file-transfer" for android

Fetching plugin "cordova-plugin-dialogs" via npm

Plugin "cordova-plugin-dialogs" already installed on android.

Fetching plugin "cordova-plugin-vibration" via npm

Installing "cordova-plugin-vibration" for android

Fetching plugin "cordova-plugin-contacts" via npm

Installing "cordova-plugin-contacts" for android

Fetching plugin "cordova-plugin-globalization" via npm

Installing "cordova-plugin-globalization" for android

Fetching plugin "cordova-plugin-splashscreen" via npm

Installing "cordova-plugin-splashscreen" for android

Fetching plugin "cordova-plugin-console" via npm

Installing "cordova-plugin-console" for android

Adding custom plugins...

 

 

Copying assets

        1 file(s) copied.

        1 file(s) copied.

        1 file(s) copied.

        1 file(s) copied.

Preparing...

 

 

Running command: cmd "/s /c "C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\cordova\build.bat""

ANDROID_HOME=F:\Backup\PrajaktaEclipse\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_31

Running: C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\gradlew cdvBuildDebug -b C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\build.gradle -Dorg.gradle.daemon=true

 

 

FAILURE: Build failed with an exception.

 

 

* What went wrong:

A problem occurred configuring root project 'android'.

> Could not resolve all dependencies for configuration ':_debugCompile'.

   > Could not find com.google.android.gms:play-services-gcm:7.3.0.

     Searched in the following locations:

         https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.pom

         https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.jar

         file:/F:/Backup/PrajaktaEclipse/adt-bundle-windows-x86_64-20140702/adt-bundle-windows-x86_64-20140702/sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.pom

         file:/F:/Backup/PrajaktaEclipse/adt-bundle-windows-x86_64-20140702/adt-bundle-windows-x86_64-20140702/sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/7.3.0/play-services-gcm-7.3.0.jar

     Required by:

         :android:unspecified

 

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

 

BUILD FAILED

 

 

Total time: 13.898 secs

 

 

C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\cordova\node_modules\q\q.js:126

                    throw e;

                          ^

Error code 1 for command: cmd with args: /s /c "C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\gradlew cdvBuildDebug -b C:\SAP_HAT_local\SAP_HAT_local-1.8.2\WebIdeCompanion\companionapp\CompanionApp\platforms\android\build.gradle -Dorg.gradle.daemon=true"

ERROR building one of the platforms: Error: cmd: Command failed with exit code 8

You may not have the required environment or OS to build this project

Error: cmd: Command failed with exit code 8

    at ChildProcess.whenDone (C:\Users\Prajakta1\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23)

    at ChildProcess.emit (events.js:98:17)

    at maybeClose (child_process.js:766:16)

    at Process.ChildProcess._handle.onexit (child_process.js:833:5)

 

 

The build process for android exited unexpectedly!

The system cannot find the path specified.

cmd error

The node process of the build script exited with code 1.

 

--------------------------------------------------------------------------------------------------------------------

 

I am using following versions of required software

 

Android SDK

SAP_HAT_local

phonegap-2.9.1

apache-ant-1.9.6-bin

node-v0.10.40-x86

Cordova 5.3

SMP3SDKInstaller_3_9_3_win

 

I also create AVD using API level 19 also Install all the updates of API level 22 in SDK.

 

I don't understand the issue please Let me know if anyone having solution.

 

 

 

Regards

Prajakta

Navigation and Routing problem

$
0
0

I have Master,Detail and ApplyTicket xml views

I am trying to add the navBack button in the ApplyTicket view but it is not working (back to the master view)

 

But from Detail view the back button is working..

 

Below is my Router, what is wrong in that?  thanks

 

applyTickets.png

 

 

routing : {

  config : {

  routerClass : zvactkt.MyRouter,

  viewType : "XML",

  viewPath : "zvactkt.view",

  targetAggregation : "detailPages",

  clearTarget : false

  },

  routes : [

  {

  pattern : "",

  name : "main",

  view : "Master",

  targetAggregation : "masterPages",

  targetControl : "idAppControl",

  subroutes : [

  {

  pattern : "{entity}/:tab:",

  name : "detail",

  view : "Detail"

  }

  ]

  },

  {

  pattern : "",

  name : "main1",

  view : "Master",

  targetAggregation : "masterPages",

  targetControl : "idAppControl",

  subroutes : [

  {

  pattern : ":*:",

  name : "applyticket",

  view : "ApplyTicket"

  }

  ]

  },

  {

  name : "catchallMaster",

  view : "Master",

  targetAggregation : "masterPages",

  targetControl : "idAppControl",

  subroutes : [

  {

  pattern : ":all*:",

  name : "catchallDetail",

  view : "NotFound",

  transition : "show"

  }

  ]

  }

  ]

  }

 

 

The function is:

onNavBack : function() {

  // This is only relevant when running on phone devices

  this.getRouter().myNavBack("main1");

  },

How can I make horizontal input box in XML.view??

$
0
0

This is my code

This output show us vertical input box

i want make IO input box and date Input box in one line

I want make this more looking good.

Please Help me

 

<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:l = "sap.ui.layout"

xmlns:form = "sap.ui.layout.form"

  controllerName="zhmmatest.CreatePR" xmlns:html="http://www.w3.org/1999/xhtml">

  <Page title="Create PR">

 

  <l:Grid defaultSpan="L3 M2 S4" class="sapUiSmallMarginTop">

  <l:content>

  <StandardListItem

  title = "General Information" />

  </l:content>

  </l:Grid>

 

  <form:SimpleForm  width = "50%" editable="true">

  <Label id = "iO" text= "IO" design = "Bold"/>

  <Input type = "Text" width = "20%"/>

  <Label text = "Date" design = "Bold"/>

  <Input type = "Date" width = "35%" />

  <Label text = "Purpose" design = "Bold"/>

  <Input type = "Text"/>

  <Label text = "Spec" design = "Bold"/>

  <Input type = "Text" />

  <Label text = "Ship to Loc" design = "Bold"/>

  <Input type = "Text"/>

  </form:SimpleForm>

 

 

  </Page>

</core:View>

SAP Web IDE On-Premise problem: Unable to access selected system (404)

$
0
0

Hi all,

 

I recently installed the SAP Web IDE On-Premise to evaluate it and managed to quickly develop one demo Fiori App with the available OData services and deploy them to our backend. That was supposed to be a test if we have set all the required software in order to be able to dive in Fiori a bit more.

 

Then after a week or two all of a sudden it stopped working.

I now can't access the Service Catalogue and I can't deploy to the backend any more since I am getting the following error:

"Unable to access the selected system. Check your credentials and try again. If the problem persists, check if the OData service is available and contact your backend system administrator" (printscreens uploaded).

 

I spoke with our basis and he hasn't done any changes and I have checked my user/pass and can access the services in the browser.

 

Any advice is welcome!

 

Thanks in advance,

Ilina


How to add Buttons inside Smart Table Tool bar

$
0
0

Hi All

 

I am facing issue in adding buttons inside the smart Table tool bar using XML. which is shown in the below picture and I want to add buttons in the highlighted area ( Edit, Copy and Delete should go down)

 

Capture.PNG

I have attached the code also below.

 

<OverflowToolbar class="sapUiMediumMarginTop">

  <ToolbarSpacer width="1000px"/>

  <Button text="Edit"/>

  <Button text="Copy"/>

  <Button text="Delete"/>

  </OverflowToolbar>

  <smartTable:SmartTable id="LineItemsSmartTable" entitySet="LineItemsSet" smartFilterId="smartFilterBar"

  tableType="Table"

  editable="true"

  useVariantManagement="true"

  useExportToExcel="true"

  useTablePersonalisation="true" header="Items" showRowCount="true"

  persistencyKey="SmartTableAnalytical_Explored" enableAutoBinding="true">

 

  <!-- layout data used to make the table growing but the filter bar fixed -->

  <smartTable:layoutData>

  <FlexItemData growFactor="1"/>

  </smartTable:layoutData> 

  </smartTable:SmartTable>

 

Can anyone please help me to resolve this issue?

Unable to create sapui5 application in sap webIDE

$
0
0

Hello,

 

I am getting below error while create SAPUI5 application using std.UI5 template.

 

SAP_WEB_IDE.PNG

SAP WEB IDE version is 1.19.

 

I tried it from chrome as well as IE11 but getting same error.

Kindly help.

 

Thanks & Regards

Deepa Kalyani

WebIDE Git client run as Fiori Application doesn't work

$
0
0

Hello ,

 

we would create a central git repo for all our  ui5 applications and now we have the problem when we create sub folders in the git repo.

And copy ui5 projects in there , we can't start this applications we get an 404 Error ?

 

 

Regards

 

Daniel

Select list (drop down) in sap web ide app

$
0
0

Hello experts,

 

How do i build a select list (drop down list) in a fiori like app using sap web ide. This drop down needs to be created on the fly via the odata service, I cannoy hard code it

 

Thanks in advance

 

Amina

Add initial screen to masterdetail template ?

$
0
0

Is it possible to add an initial screen to master detail template of WEBIDE ? Currently the template launches the master page and navigates to detail page. How can i add a view before master page which should be initially launched of app and navigate to master view ? App is working fine with master detail currently

Viewing all 6178 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>