Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor web_tur's Avatar
    Join Date
    Aug 2004
    Posts
    64
    Hi,

    After sellecting an item from listview, I will push another qml page. But I need to know which item sellected on the new qml page. I search and could not find any working code.

    Any idea.

    Best Regards

  2. #2
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,701
    if you are using a list model, then simply there is function get(index).

    You pass the index property there and you will get the data object as reply.

  3. #3
    Regular Contributor web_tur's Avatar
    Join Date
    Aug 2004
    Posts
    64
    Hi,

    I am using listmodel and can not pass this id to new qml page. Any example? Also I need to retrieve title from model in the new qml page as well.

    BR

  4. #4
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,701
    why you need to pass the id just assign the model index or the value itself to that views or qml files property prior to pushing that ??

  5. #5
    Regular Contributor web_tur's Avatar
    Join Date
    Aug 2004
    Posts
    64
    Hi,

    I am quite new for qml. Where can I find some infos and examples about your mentioned idea?

    BR

  6. #6
    Registered User rborges's Avatar
    Join Date
    Sep 2011
    Posts
    1
    Hi,

    I'm a new QML developer too, but I think you can use the "properties" parameter of the push method.

    Create a property that will hold the selected item index in the page that will be pushed and specify this property value when you push.

    Just take a look in the doc: http://doc.qt.nokia.com/qt-component...ml#push-method

    Best Regards,

    Rodrigo Borges

Similar Threads

  1. Harmattan Page cannot Contain XmlListModel and ListView
    By vaselli.vittorio in forum Nokia N9
    Replies: 7
    Last Post: 2011-08-14, 13:03
  2. How to retrieve specific data from a web page?
    By Venos in forum Symbian Web Runtime
    Replies: 3
    Last Post: 2011-05-13, 11:49
  3. sending encrypted data to a php page
    By bilgic in forum Mobile Java General
    Replies: 8
    Last Post: 2011-04-05, 07:35
  4. How to save the data when the setting page close?
    By zhou533 in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-04-07, 06:08
  5. accessing specific data(information page -Engineering Option Data-)
    By mahd_98 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved