语言

Menu
Sites
Language
Dynamic box update

Hi all,
I have question regarding this article about Dynamic Box Web App:
https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.web.appprogramming%2Fhtml%2Ftutorials%2Fdynamicbox_tutorial%2Freload_dynamicbox.htm

Does it mean that I should modify config.xml of Dynamic Box App this way, and register App like Application Control also:
    <tizen:app-control>
      <tizen:src name="box/index.html"/>
      <tizen:operation name="http://tizen.org/appcontrol/operation/dynamicbox/web/update"/>
      <tizen:uri name="someUri"/>
    </tizen:app-control>
It is not quite clear from help? Could you please explain?
Thank you in advance.
Alexey.

响应

4 回复
Raghu Kona

Not very sure about the direct load. Can you please try using the launchAppControl() method mentioned in the same page

var contentInfo = "updateType=direct";
var appControlData = 
   new tizen.ApplicationControlData("content-info", [contentInfo]);
var appControl = new tizen.ApplicationControl(
   "http://tizen.org/appcontrol/operation/dynamicbox/web/update",
   "box-service://syWXgC5ZcI.DynamicBox.default",
   null,
   null,
   [appControlData]);
tizen.application.launchAppControl(appControl, "dbox.web-provider");

Regards,

Raghu Kona

Alex Dem

Thank you for response.
But I have used 2.2.0 official device and  I was unable to acheive reload query:
index.html?type=update&...
with or without changes in config.xml which were described above
I have used default example->WebApp->Dynamic box for testing.

And I have tried to reload dynamic box this way:

                var contentInfo = "updateType=direct";
                var appControlData =
                new tizen.ApplicationControlData("content-info", [contentInfo]);
                var appControl = new tizen.ApplicationControl(
                "http://tizen.org/appcontrol/operation/dynamicbox/web/update",
                "box-service://ieUrrBvkLv.dynamicBoxExample.default",
                null,
                null,
                [appControlData]);
                tizen.application.launchAppControl(appControl, "dbox.web-provider");
Looks like this way does not work.
Alexey.

Yunchan Cho

Hello, I am engineer developing tizen web dynamic box framework.

To add appcontorl operation above into your config.xml is not correct.

To request to reload your dynamic box, please do the followings.

 1. add privilege for using app control api into your config.xml

 2. execute javascript to request to update dynamic box as you created above.

That's it. 

Alex Dem

Thank you for info. I ll try.
Alexey.