Hi to all Mibuso people
,
I am new here and already have a question, but can someone help me with this:
Within a Role Center Page there is some need for me to display current information. The information on the Role Center Page displayed is static information from the moment of invocation of this page. To let the Role Center Page act more dynamic, it is desirable to offer more update moments. (In different parts of the RC, so forcing an update of the whole RC Page looks needed.)
After some investigation it seems this is not possible, within the possibilities of RC pages. Since there is no trigger code allowed in pages of the type Role Center.
Is this conclusion correct or are there other ways Dynamics NAV 2009 to provide parts of the Role Center with current database information?
( :idea: )
Tanks a lot!
Alberto Sturkenboom
a.sturkenboom@herke.nl
Comments
You can look at addin and freddy has posted an example.
You can use the timer to trigger code in nav and write some code with windows scripting host object to hit F5.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Tanks for the reply, I am some steps further now.
The first problem was force a refresh on a Role Center Page, and I found that a reload(update) the Role Center Page is done by pressing SHIFT+F12. So with this code this can be done:
This works \:D/ but it would be nice if I could do this with a timer, like you said. Could not find the example from freddy...
But found something else a .NET-Based Timer .
It looks nice, but I want to have this timer running only when the user has the Role Center open. Maybe this can be done by obtaining the current navigationpath of the RTC. If this is [company] or [company]\home the timer is running and will update the RC page.
:?: Do you or someone else know how obtain current navigationpath of the RTC
Tanks a lot again
http://blogs.msdn.com/freddyk/archive/2 ... -page.aspx
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n