×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    17

    appuifw.selection_list issues

    Hi guys,
    first of all i like to thank you, for your wonderful work you are doing
    and please forgive my English.
    I have 2 questions about appuifw.selection_list.

    1) I create a big list of unicodes and i like to save current list position so, that when the user
    goes back to list, the first selected item to be, the last that he was in it.
    Something like ......set_list method we have in Listbox objects.
    Is it possible ???
    What ever have i tried on that, i recieve a nasty Python System Error -50
    I really liked the search option that appuifw.selection_list offers.

    2) The other issue is, that the search field appears after pressing a letter key.
    But my device is a 5800 xm and it does not have a hardware keyboard.
    How could i enable the search field without pressing any key ?
    Something like appuifw.multi_selection_list offers, when the style sets to 'checkbox'.
    What are you suggesting.?
    Thanks in advance...

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: appuifw.selection_list issues

    Hi,

    Quote Originally Posted by barrueco View Post
    1) I create a big list of unicodes and i like to save current list position so, that when the user
    goes back to list, the first selected item to be, the last that he was in it.
    Something like ......set_list method we have in Listbox objects.
    Is it possible ???
    What ever have i tried on that, i recieve a nasty Python System Error -50
    I really liked the search option that appuifw.selection_list offers.
    Sadly that isn't possible. At least the documentation doesn't say anything about it and I don't know of any improvised solution.

    Quote Originally Posted by barrueco View Post
    2) The other issue is, that the search field appears after pressing a letter key.
    But my device is a 5800 xm and it does not have a hardware keyboard.
    How could i enable the search field without pressing any key ?
    Something like appuifw.multi_selection_list offers, when the style sets to 'checkbox'.
    I guess that's an oversight. You'll have to wait for the PyS60 development team to comment on this.

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: appuifw.selection_list issues

    Quote Originally Posted by barrueco View Post
    2) The other issue is, that the search field appears after pressing a letter key.
    But my device is a 5800 xm and it does not have a hardware keyboard.
    How could i enable the search field without pressing any key ?
    Something like appuifw.multi_selection_list offers, when the style sets to 'checkbox'.
    What are you suggesting.?
    Thanks in advance...
    hello barrueco

    Just to add bogdan.

    i have not used PyS60 in 5800 and if you feel that this is a sort of bug then you can report that here.

    Hope this helps you.

    Cheers,
    Gaba88

  4. #4
    Registered User
    Join Date
    Jun 2009
    Posts
    17

    Re: appuifw.selection_list issues

    Quote Originally Posted by bogdan.galiceanu View Post
    Hi,Sadly that isn't possible. At least the documentation doesn't say anything about it and I don't know of any improvised solution.
    what a pity!
    So, i believe that the appuifw.query method is the only way.
    Since i am a beginner programmer, is there any function or example to perform a
    simple but respectable search in my unicode list, without the user have to insert the exact word
    that he's looking for ?

  5. #5
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: appuifw.selection_list issues

    You can implement your own search:
    Code:
    #The list of unicode strings
    strings = [u"string1", u"string2"] #etc.
    
    #Create an empty list that will store the search results
    results = []
    
    #Ask the user for the search term
    search = appuifw.query(u"Enter text", 'text')
    
    #For every string in the list, check which begin with what the user entered
    #and store them in the results
    for i in strings:
      if i.startswith(search):
        results.append(i)

  6. #6
    Registered User
    Join Date
    Jun 2009
    Posts
    17

    Re: appuifw.selection_list issues

    Quote Originally Posted by bogdan.galiceanu View Post
    You can implement your own search:
    Code:
    #The list of unicode strings
    strings = [u"string1", u"string2"] #etc.
    
    #Create an empty list that will store the search results
    results = []
    
    #Ask the user for the search term
    search = appuifw.query(u"Enter text", 'text')
    
    #For every string in the list, check which begin with what the user entered
    #and store them in the results
    for i in strings:
      if i.startswith(search):
        results.append(i)
    Very nice bogdan !!!
    Exactly what i was searching for.
    I was totally lost in those Searching Listsoptions.
    Thanks a lot.

Similar Threads

  1. Nokia 6085 - Push Registry Issues
    By alam.sher in forum Mobile Java Networking & Messaging & Security
    Replies: 9
    Last Post: 2009-02-10, 21:09
  2. Reporting Known Issues is Now Easier than Ever
    By Nokia Ron in forum Tools and SDK Feedback (Closed)
    Replies: 0
    Last Post: 2007-09-20, 17:57
  3. N91 WiFi (WLAN) and Bluetooth Issues.
    By danscoop in forum General Development Questions
    Replies: 12
    Last Post: 2007-06-05, 20:07
  4. 3gp streaming issues
    By njahan in forum Streaming and Video
    Replies: 0
    Last Post: 2006-11-02, 19:05
  5. Series 60 graphics and sound issues
    By Teh_Architect in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-08-08, 11:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×