语言

Menu
Sites
Language
exchange data between forms

hi all, need some help.

I have a form that has lisview I need to update it every time I go onto the form. I added a method to insert the desired data in the system method OnInitializing, and when the form is loaded for the first time, everything works perfect in worksheet added value, but when I go out with the form, add the values that should appear in the listview, I go to this form, and nothing happens. Added a method to the method onSceneActivatedN, no results. Added logging, when I go again to the form does not work method OnSceneActivated.

How to solve the problem?

响应

3 回复
Alex Dem

Hi,
Please check that you have added scene EventListener (see Tizen::Ui::Scenes::ISceneEventListener interface) for your Form first.

In standard Template -> Form-Based App with SceneManager  it is placed in YourAppFormFactory class inside method
Tizen::Ui::Controls::Form* sceneManagerFormFactory::CreateFormN()

OnSceneActivatedN should be called after.

Alexey.

Alex Dem

I have checked it works ok for forward/backward transitions with any params (with registered scene event listeners for every form) :
here is useful article also:

https://developer.tizen.org/dev-guide/2.2.1/org.tizen.native.appprogramming/html/guide/ui/scene_transitions.htm

Alexey.

Alex Ashirov

Hi,

Did you register your ISceneEventListener  using the Tizen::Ui::Scenes::SceneManager::AddSceneEventListener()?