{"id":832,"date":"2022-08-30T15:07:55","date_gmt":"2022-08-30T15:07:55","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/webos-com-palm-pdf-service-question-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:07:55","modified_gmt":"2022-08-30T15:07:55","slug":"webos-com-palm-pdf-service-question-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/webos-com-palm-pdf-service-question-collection-of-common-programming-errors\/","title":{"rendered":"webos com.palm.pdf service question-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to reproduce standard PDF viewer. I&#8217;ve copied sources but after they are deployed to the emulator the following error appears in log when user hits &#8216;next&#8217;\/&#8217;prev&#8217; page in it: Error: service request: palm:\/\/com.palm.pdf is not running<\/p>\n<p>This is happened in the following code:<\/p>\n<pre><code>executeJump: function ( numPages ) {\n    Mojo.Log.info(\"JUMPING TO THE PAGE: \" + numPages);\n        \/\/this.controller.serviceRequest('palm:\/\/com.palm.pdf\/events', {\n    this.controller.serviceRequest('palm:\/\/com.palm.pdf\/events', {\n                method: 'jumpToPage',\n                parameters: {\n                        docid: this.document_id,\n                        numPages: numPages\n                },\n        onSuccess: function(payload) {\n            if ((payload.errorCode !== undefined) || (payload.curPage === undefined)) {\n                Mojo.Log.error(\"executeJump failed: \" + Object.toJSON( payload ) );\n                return;\n            }\n\n            this.currentpage = payload.curPage;\n\n        }.bind(this)\n        });\n\n},\n<\/code><\/pre>\n<p>I&#8217;ve googled though the all services but I can&#8217;t find any documentation of this one (com.palm.pdf) Why it is not started in my app but starts in the standard one? The standard app is called com.palm.pdfviewer.<\/p>\n<p>Any help is very appreciated.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 22:48:01. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to reproduce standard PDF viewer. I&#8217;ve copied sources but after they are deployed to the emulator the following error appears in log when user hits &#8216;next&#8217;\/&#8217;prev&#8217; page in it: Error: service request: palm:\/\/com.palm.pdf is not running This is happened in the following code: executeJump: function ( numPages ) { Mojo.Log.info(&#8220;JUMPING TO THE PAGE: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-832","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=832"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/832\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}