relaz
June 8, 2015, 9:38am
1
I am using the mobile scheduler, but i want to add a new view (excepting the scheduler) where data will be modified. When I return to scheduler view will I get the updated data or can I reload it somehow? I mention that data is taken by month.
What I would need is basicly something like:
function closeSecondView()
{
$$('secondView').hide();
$$("scheduler").load("GetMyMonthlyData");
$$('scheduler').show();
}
Maria
June 8, 2015, 10:11am
2
You can use Multiview:
{
cells:[
{id: "secondView", ... },
{id: "scheduler", ....}
]
}
http://docs.webix.com/samples/20_multiview/
relaz
June 8, 2015, 10:26am
3
I am using Multiview like this:
{
rows:[
{view:"scheduler"...}
{view: "secondView"...}
]
}
But my question was if I modify data in one view, the other view will have the updated data?
Maria
June 9, 2015, 10:21am
4
To reload data in Scheduler you can call clearAll() and load() methods.
onStoreUpdated event allows to listen to data modifications in datastores:
list.data.attachEvent(“onStoreUpdated”, function(){
// your code
});
relaz
June 9, 2015, 11:22am
5
Great, thanks for the info!