Community
Welcome Guest Search | Active Topics | Members | Log In | Register

ExecuteQuery from DataBlocks when entering a page Options
Xenthiro
Posted: Tuesday, July 07, 2009 11:20:02 AM
Rank: Newbie
Groups: Member

Joined: 6/24/2009
Posts: 6
Location: Belgium
Hey,

by making use of a method called Reload(), I can execute the queries of my DataBlocks thereby refreshing the data. I wish to call this method every time i re-enter this page, by calling NavigateBack() on another page in the same module.

Code:
private void Reload()
{
      GetOrdersFromClient.ExecuteQuery();
      GetInvoicesByClient.ExecuteQuery();
      GetOffersFromClient.ExecuteQuery();
}


Greets, Xen.
Wim
Posted: Tuesday, July 07, 2009 11:35:19 AM
Rank: Vidyano Team
Groups: Customers , Member, Vidyano Team

Joined: 11/20/2008
Posts: 3
Location: Belgium
hey,

you can always override the OnActivated method on the page controller to call your Reload method. This method gets called whenever the page gets activated.
there is a similar method for when the page gets deactivated: OnDeactivated

Code:

protected override void OnActivated()
{
    base.OnActivated();
    Reload();
}

protected override void OnDeactivated()
{
   base.OnDeactivated();
   DeactivateCode();
}
Xenthiro
Posted: Tuesday, July 07, 2009 11:40:51 AM
Rank: Newbie
Groups: Member

Joined: 6/24/2009
Posts: 6
Location: Belgium
That does the trick, thanks for the quick reply angel

Grtz, Xen.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

FlatEarth Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v4.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.

 
www.rhea.be