Results 1 to 4 of 4
  1.    #1  
    Hi,

    i got my Pre3 5 days ago and missed an app so i decided to code it myself im a total webos noob so i did some tutorials and my app is running pretty good but i want to use "People Picker" to get the mobilenumbers from my Contacts.

    all i found was this 2 codesnippets:

    Code:
    PeoplePickerAssistant.prototype.getContact = function(event){
        this.contactRequest = true;
        this.controller.stageController.pushScene(
                { appId :'com.palm.app.contacts', name: 'list' },
                { mode: 'picker', message: "headerMessage" }
            );
    };
    Code:
    PeoplePickerAssistant.prototype.activate = function(response){
        if (response)   {
            if (response.personId)  {
                this.showDialogBox('Contact Received', response.personId);
            } else  {
                this.showDialogBox('Contact Request Failed', "");
            }
        } else {
             Mojo.Log.info("No Contact Requested");
        }
    
    };
    i dont know how to call the getContact function. i only managed to start the peoplepicker with this code:

    Code:
    	FirstAssistant.prototype.handleButtonPress3 = function(event)
    	{
    		    this.contactRequest = true;
                        this.controller.stageController.pushScene(
                { appId :'com.palm.app.contacts', name: 'list' },
                { mode: 'picker', message: "headerMessage" });
    	}
    but after i tapped my contact nothing happens. it seems that PeoplePickerAssistant.prototype.activate is never "called".

    i searched google for 2 days now and i cant find a tutorial or an good documentation for the peoplepicker.

    can someone please help me? some tips how to call a function or where my errors are would be nice. a little app with only an peoplepicker and an textfield which gets the mobilenummer from the selected contact would be fantastic!

    Thanks
  2.    #2  
    Now i wrote the App in Enyo.

    An now the PeoplePicker makes Problemes again

    if i use:

    Code:
    {
    	name: "preferredName",
      	kind: "PeoplePicker",
      	onContactClick: "contactClickHandlerFunctionName",
      	onCancelClick: "cancelClickHandlerFunctionName"
    }
    there is an empty screen on the emulator.

    if i use:
    Code:
    	
    {
    	name: "contactsPopup",
    	kind: "com.palm.library.contactsui.peoplePicker",
    	showSearchBar: false,
    	onContactClick: "contactsOK",
    	onCancelClick: "contactsCancel"
    }
    Everything is working fine on the Emulator, but when i install the app on my Pre3 there is the empty Screen again...

    i cant find the Error

    Can someone please help me with the PeoplePicker?
  3.    #3  
    I think i found the Problem...

    There is no PeoplePicker on the Pre3...

    ..\..\framework\lib\contactsui\PublicUI\PeoplePicker.jsjsjs

    and many more File are missing. This is very frustrating
  4. twack's Avatar
    Posts
    634 Posts
    Global Posts
    638 Global Posts
    #4  
    Quote Originally Posted by Benutzername View Post
    I think i found the Problem...

    There is no PeoplePicker on the Pre3...

    ..\..\framework\lib\contactsui\PublicUI\PeoplePicker.jsjsjs

    and many more File are missing. This is very frustrating
    The enyo pickers (people, file ,etc) do not work on the 2.x devices. You would have to use mojo or a hybrid app. I learned alot by getting the doctor for a device and picking apart the files and flow.

    For Pre3 it may be good to look at:
    /usr/palm/frameworks/contacts.ui/submission/45/templates/peoplepicker

    Good luck
    TWack
    On my 4G TouchPad, Pre3 or Panda-Veer.
    If you like our patches, please consider donating to the cause.



    |wackware|google+|facebook|twitter|shortcut|mylo|multiapp|flashfile|donate|

Posting Permissions