How do I use SAPUI5 SDK? - sapui5

I am four months incumbent to SAPUI5. I know the basics of SAPUI5 and am able to create application from scratch. However , this is true only for the controls that I am familiar with(I refer google/SAPUI5 SDK). Lately, I am realizing if it is brand new control for me, I have to spend a lot of time using SAPUI5 SDK going after the API reference, documentation and samples.
My question is could you please let me know how do I use SDK effectively ? For example, I need to know the method when a cell is clicked in sap.m.Table or an event for selection. How do I use documentation, API reference for it ?
Kindly help!

Whatever you are doing is correct, API reference has everything you need.
I can tell you the tricks I did while working on SAPUI5:
Every time you visit a reference about a particular control, watch out from where it has been inherited. This gives an edge, most control will have basic handlers at the parent control which can be reused in child controls. Example sap.ui.core.Element, this is like Grandfather of many controls. Spend time to understand this kind of controls.
Use browser console as your playground, create a particular object you are playing with, then use .and see what are the methods which are exposed.
Aggregations tell you about what is the kind of content a control can take in.
There is no other magic to this. Trust me, over a period of time, you will be very much faster in figuring out what fits.
~Cheers

When I work with new controls it helped me to take a look at the control samples first and its coding. This gives me a good quick overview.
Then I take a closer look at the API to that control to find out more about the properties, aggregations and events.
Sometimes I build a quick and simple example app for a certain control. This helps me to find out how the control is supposed to work.
As already mentioned, there is no way that works for everyone and it'll take some time.
You'll find your best way of working with it.

Related

integrate sapui5 application as a component

I have a SapUI5 application that contains several views in a single page.
I want to convert that application in to a component so that it can be added to another project. Is this possible, and does anyone have an idea how to do it?
I researched about components but I did not find anything that made it clear what I had to do. I am grateful for any answer.
Basically, as a best practice your ui5 app should have been implemented as a component based app from the beginning. Then reusing such a component based app should work easily. I think you should have a look at the official walkthrough tutorial where you will learn a little about components. Then you could google for some blogs about components, maybe my recent tutorial about components helps you as well. My tutorial tells you how to implement a component inside a library and reuse it then in apps (some new ui5 features related to components are discussed as well, i.e. usages).
And in case you only expected a simple answer to your question: test, it’s possible. See links above :-)

What Should I Read To Become Familiar with Developing using SocialEngine?

I am capable with PHP, HTML, CSS, JavaScript and SQL, and not bad with Drupal. Very recently, I acquired a customer that wants me to do some SocialEngine 4.xxx customization. My customer is aware that I have no experience with SocialEngine, but am capable with the underlying technologies (I gave him a lower hourly rate because of this too.)
I'm not seeing very much online that is geared towards someone like me. Where can I read about modifying SocialEngine that assumes very little knowledge about SocialEngine, but a competency at programming?
For example, I spent a few hours today trying to figure out how to conditionally display a block based on a Membership Level. It appears there is no way to do this using the GUI. No problem, I found some code that seemed like I could get it to work that would grab the user's membership level. However, where do I put this? Honestly, I'd like to have this at the block-level. SocialEngine doesn't seem to allow me to place arbitrary PHP code into a block, and even if it did, would that be the "SocialEngine" way of doing this? Should all custom logic like this be a module in SocialEngine, that attaches to events using hooks?
Thank you very much for looking at my question,
-Brian J. Stinar-
I've written a blog about accessing data through models, creating widgets and modules. You can find out about the general structure of Social Engine at http://garbtech.co.uk / http://socialenginetutorials.co.uk (both same blog)
Unfortunately, there are no books or official documentation on SocialEngine PHP API. Your only choice is to check out various (incomplete) guides over the Internet or study their source code and figure things out by yourself.

Is it possible to perform databinding on Monotouch.Dialog.EntryElement?

Is it possible to create databinding between a business object and the elements in the View Controller? I have reviewed the documentation on the Elements API but I'm not seeing any references to binding. We have chosen not to use the Reflection API for this application so that's not an option.
I am very new to working with Monotouch and iOS in general, so please forgive me if this question seems like I haven't done much research. Any suggestions or links to documentation are greatly appreciated.
You can use monotouch dialog in reflection mode to show and collect data using attributes on the data members.
Beyond that, there are a couple of projects which have taken dialog further towards mvvm - search for monotouch.mvvm and mvvmcross - but you may find these overkill for your first monotouch/ios project.
https://github.com/RobertKozak/MonoMobile.Views
https://github.com/slodge/MvvmCross

drag and drop workflow kind of interface..how easy to develop?

How easy it's to come up with a drag and drop web-based interface that'll provide me features to wire objects together, setup configurations nicely in a modal window for each object? I'm looking for links that've any similar kind of interface, or articles on this. also, i'm looking for your technology/language suggestions.
Another way I'm thinking - as a desktop appln + browser dependent addon..
Is it good to create such an user-interface using XUL, which can be deployed as an addon on Firefox/as a stand-alone application in Windows? Are there any other similar things/technologies which can provide a basic framework for us to build on it further?
Why do I need this, finally?
..for building simple Workflows, for defining process flows, that can provide me some auto-generated xml content which I can use for further processing.
Thanks!
I'm quite interested in this, too.
I've flirted with HTML5's DragDrop implementation - Quirksmode has Bad Things to say about that, so then I thought "Perhaps a JavaScript library can help me" - haven't checked out jquery for this yet, but I have checked out YUI's DragDrop, DragDropManager and DataSource, and its looking hopeful (consistent, reliable).
I tried things like adding an iframe on the fly to any document, to provide this kind of functionality without needing to add dependencies to the page given the iframe - mixed results, but in my case I was trying to cater for x-domain access, which proved difficult.
So I'd say JavaScript could be a winner - if designed poorly it could be difficult to manage resources though, if you want to potentially DragDrop/edit/config any element in a document - so watch out for that.
If you're keen and able, Adobe AIR apps also look promising - but I can't help with any more info on that, other than they're Desktop Apps with great flexibility.
I'ma going to keep an eye on your Question, I look forward to any other Answers/comments!
EDIT: I forgot to mention Flex (aka Flash Builder 4, latest version) is quite easy to create stuff like this, though I've had exposure to Flash for a while. It comes with the standard Adobe caveats; price, libraries, support.

MKMapView, Google Maps API and traffic information

By the time you finish reading this question, it will become obvious to you that I'm pretty new to this development. But I've got a quick question here. I think I (unfortunately, sorta) know the answer, but I figured I'd ask, anyway:
I'm working on an app in which I'd like to display traffic data from Google Maps into a map. Easy enough, it seems. I can easily put the a MKMapView and center it on the desired location. I can also create a custom Google Maps API that I can look at on my browser, and it would display the traffic data with the GTrafficOverlay object.
Now...
Can I use the API traffic data (in Javascript) and parse it into the MKMapView implementation? I don't think so... right?
So, my only other option is to do a UIWebView instead, right? I just link to that page, and I'm good to go.
Also... Is there a major drawback to doing that? I know I lose a bit of the built-in interface, but beyond that, it doesn't seem to be that huge a difference, right?
And, also, if I want to use that Google Code API, how do I implement it in place? Do I have to have that HTML file somewhere in a server, or can I have it as part of my resources, or what?
Sorry about all the questions, but thanks in advance for any suggestions y'all might have!
You can't parse the javascript into the MKMapView implementation directly.
Yes you can use a UIWebView. I've only had a brief look at that, and it was pretty nasty with default behaviour, because both the web view and the map view try to respond to drag events etc. There is probably a way of tuning that out - you would want to look for SDK2.x examples as there was no other maps solution then.
This post may also provide a lot of help.