×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    246

    Change view from a form

    Hi,

    I have form with my own menu bar. When user select display from menu.. i will display contact listbox and get contact number. the listbox is in different container.

    I did it but got some error. Is't possible to change view from a form ? did i missed something ?

    Code:
    void CSMSExampleHandshakeForm::ProcessCommandL(TInt aCommandId)
    {
      switch(aCommandId)
      {
        case ESMSExampleCmdAddHandshake:
          {
          AppUi()->ActivateLocalViewL(TUid::Uid(EPhoneBookViewId));
          break;
          }
    ...
    ...
    }
    ERROR:
    "SMSExampleHandshakeForm.cpp": Call to undefined function 'AppUi' in function CSMSExampleHandshakeForm::ProcessCommandL(int) at line 61
    "SMSExampleHandshakeForm.cpp": Pointer to structure required on left side of -> or ->* in function CSMSExampleHandshakeForm::ProcessCommandL(int) at line 61

  2. #2
    Regular Contributor
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    246

    Re: Change view from a form

    Hi,

    Anybody know how to do it? I need to get data from listbox as input for my form. but getting error when i try to change view from a form.
    Need help.. thanks

  3. #3
    Regular Contributor
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    246

    Re: Change view from a form

    Helooooo....anybody can help me?

  4. #4
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: Change view from a form

    Hi,

    Problem was, AppUi() function is not supported in controls. It supports only in view class. if u want to access ur appui class, do like this

    CHelloworldAppUi *iappui=(CHelloworldAppUi *)CEikonEnv::Static()->EikAppUi();

    regards,
    eswar

  5. #5
    Regular Contributor
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    246

    Re: Change view from a form

    ok.. it works. I need to figure out how to read contact item from array.

    Thanks anyway ;)

Similar Threads

  1. Replies: 2
    Last Post: 2006-03-17, 12:31
  2. Change View
    By fdivita in forum Symbian
    Replies: 0
    Last Post: 2004-12-10, 13:22
  3. Change View
    By fdivita in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-12-10, 10:46
  4. How to change the buttons of any view at runtime??
    By reshmasp in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-03-22, 06:50
  5. How to launch a different view from a form?
    By varshajohn in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-11-16, 05:38

Posting Permissions

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