on 01-29-2014 2:46 PM
Hi, I have a question on AppBuilder:
I'm trying to use a superlist control as a listview with navigation for example: I click one ítem of the main list and the App navigates to a detail screen with the detail info of the clicked item. I'm using a ODATA service and I have managed to create the first list with superList, but I do not know how to do the navigation and connect the detail view. I have looked for available documentation but all the existing example are with just a simple SuperList. Anyone can help me out with this? Is this scenario is posible?. I have found out a control named "ChildDataView", but there is no official documentation available for it either and, do not know how o use it ... Please help
Regards,
MC
Hello,
you must build an Event like this:
And there you can use the following Code:
backButtonTap: function(evt) {
var s1 = this.byId("SuperList1");
var page = this.byId("SapData");
s1.drillBack();
if (s1.getCurrentLevel()===0){
page.setTitle("SapData");
page.setShowNavButton(false);
}
else {
page.setShowNavButton(true);
}
},
MyRowFocusChanged: function(evt) {
var s1 = this.byId("SuperList1");
var page = this.byId("SapData");
var data = s1.getRow(evt.mParameters.row);
var title = data[0];
s1.drillDown(evt.mParameters.row);
if (s1.getCurrentLevel(evt.mParameters.row)>0){
page.setTitle(title);
page.setShowNavButton(true);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun VP,
Let me check this out....
Regards,
MC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you try to get some input from this document, http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc02001.0100/appbuilder.pdf
- Midhun VP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.