Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 11
Registered: ‎10-05-2012
My Device: Blackberry 10 Dev Alpha Device
My Carrier: Rogers

Is NotebookService addNotebook API Implemented?? ( NotebookService PIM Core exception! )

I'm trying to add a notebook using the notebook service but it seems that the API is not supported. 

 

Here is my code:

 

AccountKey accountKey = AccountService().defaultAccount( Service::Notebook ).id();

Notebook m_notebook;

m_notebook.setName( "test" );

NotebookServiceResult::Type result = m_notebookService->addNotebook( &m_notebook, accountKey );

if (result == NotebookServiceResult::Success)

    qDebug() << "SUCESSFUL";

 
 
The result I get is NotebookServiceResult::InternalError.
 
I look at the logs and i'm getting this printed out.  It seems that the addNotebook is not implemented.  
 

Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.0               qt-msg      0  

 

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

    <html>

        <head>

            <title>Error 501: Not Implemented</title>

            <style type="text/css">

              html {background-color: #eee; font-family: sans;}

              body {background-color: #fff; border: 1px solid #ddd; padding: 15px; margin: 15px;}

              pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}

            </style>

        </head>

        <body>

            <h1>Error 501: Not Implement...

Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.0               qt-msg      0  

Status Code 4 

Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.0               qt-msg      0  

Exception String Error while parsing response. 

Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.0               qt-msg      0  

NotebookService PIM Core exception! 

Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.0               qt-msg      0  

        Error code: 4 

Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.0               qt-msg      0  

        Exception details: Error while parsing response. 

Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Is NotebookService addNotebook API Implemented?? ( NotebookService PIM Core exception! )

Did you linked your app to bbpim library ?
To link against this class, add the following line to your .pro file : LIBS += -lbbpim.
Contributor
Posts: 11
Registered: ‎10-05-2012
My Device: Blackberry 10 Dev Alpha Device
My Carrier: Rogers

Re: Is NotebookService addNotebook API Implemented?? ( NotebookService PIM Core exception! )

Yes I did.  I am able to add notbook entries to the default notebook.  

 

It's only when I want to add a new notebook.

Contributor
Posts: 11
Registered: ‎10-05-2012
My Device: Blackberry 10 Dev Alpha Device
My Carrier: Rogers

Re: Is NotebookService addNotebook API Implemented?? ( NotebookService PIM Core exception! )

I abondonded using the notebook service and created my own notebook service. since it seems the API is not implemented.