cancel
Showing results for 
Search instead for 
Did you mean: 

AppBuilder: Listview with navigation issue

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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);

        }

Former Member
0 Kudos

Thanks Markus.

It's very helpful.

Former Member
0 Kudos

Hi Markus,

How can i use Checkbox  in the SuperList(AppBuilder) for select some item.

Thanks,

Shambhu Nah

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Midhun VP,

Let me check this out....

Regards,

MC


Former Member
0 Kudos

Hi Mariana,

I want to do same thing.Did you got any solution of that.I gone through some tutorial but it's only Basic.

Thanks,

Shambhu Nath

midhun_vp
Active Contributor
0 Kudos

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