is there a long press event on sap.m.List or sap.m.Button?
I can't seem to find any.
Thanks
As kazandzhiro pointed out it is not part of the current API which is 1.36.10.
-- SPOILER --
But it will be available once SAPUI5 implements the SAP Fiori 2.0 Guidelines. SAP is currently finishing internal works on Fiori 2.0 and some of the new features and controls are already implemented.
You can find them in the new sap.uxap.* Package.
So stay aware...
currently there is no support for this in the UI5 framework. But you can always implement it by yourself.
A long press event is currently not part of the ui5 framework.
You can look up the supported events in the SAPUI5 Reference.
Just search for sap.m.Button or sap.m.List and you can see the Event Summary.
Related
I am exploring XML Annotations on WebIDE. To display filters, have added SelectedFields. I want to add reset or Clear button with Go Button. Could you please update property to add such button via annotation.
Thanks in advance for your help.
Regards,
Bhuvenesh
As you are using Web IDE, you can enable these buttons with the help of SAPUI5 Visual Editor i.e by creating flex changes.
Additionally, I would recommend you to explore new SAP Fiori tools on VSCode and SAP Business Application Studio https://marketplace.visualstudio.com/items?itemName=SAPSE.sap-ux-fiori-tools-extension-pack
Documentation https://help.sap.com/viewer/product/SAP_FIORI_tools/Latest/en-US
According to the latest Fiori design guidelines, there is a new concept called Me Area which contains user-specific and context-aware information and shortcuts.
But, there is no documentation or reference to get that control. Has anyone able to apply that on to their SAPUI5 Page.
The Me Area is part of the SAP Fiori Launchpad, and not a UI control in the SAPUI5 library. Technically, it is a view with name sap.ushell.components.shell.MeArea.MeArea.
Actually we have developed on application with sapui5 for our customer but the problem is that some new customer dont want to go through License agrement with sapui5. So the solution we have found to make our application with openui5.
My question is that
"Is there any possibility to make application with both of them and at the time of installation making a decision either going and make resources of sapui5 or openui5"?
Thank you
Nimi
As long as you understand that certain features will only be available in SAPUI5 you can load the version of sap-ui-core.js that comes with either in your bootstrap index.html page.
For example, if using CDN, for OpenUI5 link to https://openui5.hana.ondemand.com/resources/sap-ui-core.js and for SAPUI5 use https://sapui5.hana.ondemand.com/resources/sap-ui-core.js
See this link to read about differences between SAPUI5 and OpenUI5.
Also see this link for another discussion of the differences.
I know that this post (I'm linking to) is not so much updated but it will give you a good overview and history about SAPUI5/OpenUI5 and all the differences.
Anyway, SAPUI5 is a superset of OpenUI5 with some addictional control (like VizChart or FilterBar.
I think that in 90% of cases you can just go with OpenUI5 and use other opensource libraries / develop custom control if you need something that is missing.
We are using SAP UI5 in SAP MII and if we use MVC it is not getting displayed in Portal, as portal in IE 9 makes rendering mode to Quirks whereas UI5 on MVC requires Standard mode in IE 9 to display the web page. We have also found that if we don't use MVC then UI5 web pages from portal are being displayed in Quirks mode itself. But the only problem we are facing on how to define the event handlers of UI5 standard events such as onAfterRendering. As there is no controller, the framework is not able to recognize the event handler when we define it in the usual way.
Any pointer on how to define standard event handler for UI5 in JS file shall be highly appreciated.
Thanks,
Dipankar
Not sure why not using MVC and in particular a controller would enable the controls to work in quirks mode. I wouldn't expect the controls to render correctly etc, and not using the MVC pattern doesn't sound like a maintainable workaround.
There are a few blogs and SAP notes related to the quirks mode on the SCN, I've enclosed a few below.
SAPUI5 on Portal
Does SAPUI5 actually work in the SAP Portal?
Regards,
Jason
Instead of trying to run UI5 in Quirks Mode, why not run Web Dynpro applications in Standart Mode by implementing OSS Note 1911889 ? Then, you can put your UI5 and Web Dynpro content in Unified Framework Page on EP.
I am doing a project.
The first page should be the web page r 'phonegap api' html page.
when a perticular link r button is tapped , it should be taken to the native Application,purely obj C,Pure native App(with view controllers, table views etc).
Can we connect the html page with the pure native code? If yes, Then Plz tell me how?
Thanks in advance,
Bharath gangpalli
You could create a PhoneGap plug-in, which is a custom extension to the PhoneGap API. It includes a bit of native code that does some native-specific functionality, as well as a JavaScript interface that then exposes this functionality to you, the PhoneGap developer. By definition, a plug-in is platform-specific!
In your case, you could create a plug-in that then pushes a new View to the top of the app (overlays over the HTML page, for example).
A good place to start would be Jesse's blog post about them; note that these are specifically for iPhone:
http://blogs.nitobi.com/jesse/2010/04/01/iphonegap-plugs/
Here are some examples of existing PhoneGap plugins, how to use them, and links within to the source code to see how they were built:
https://github.com/phonegap/phonegap-plugins
http://blogs.nitobi.com/shazron/2010/07/12/phonegap-iads-plugin/
http://blog.urbanairship.com/blog/2010/06/09/phonegap-push/
http://blog.clearlyinnovative.com/post/1097750723/phonegap-plugin-for-downloading-url
i think you can do that by using the phonegap exec function