I need changes on a Pagepart (subform) to notify the Page (form) so the main page can update values needed.
So, I have searched this to death.
I have found someone else who asked the same question, but I have yet to find an answer or a confirmation that this can not be accomplished.
This post
http://www.mibuso.com/forum/viewtopic.php?f=23&t=22564 is exactly how we accomplish this in the classic client. As you can see in this post croesel asked on Jan 14 2011 if this was possible in RTC. I haven't found any other similar questions.
To all of the "don't do this" responses:
I understand the responses to not do this.
The fact is, the functionality is 100% more useful if it does.
Thank you in advance with any ideas, suggestions or points in the right direction, I really appreciate them.
Comments
Then I should work on making my blog easier to find.
http://dynamicsuser.net/blogs/mark_brum ... -page.aspx
No need to make it easier to find, I had read your article last night when I was searching.
Your article appears to be extremely useful for things such as updating a flow field, or calling a function that is available through an action.
I need to notify the Page to run functions that are not available to the user.
These functions read the current record of the subform and perform the needed tasks.
Any suggestions on this using send keys? Can I call an action through sendkeys that isn't visible?
Any suggestions other than using send keys?
I guess the real thing is I really like the XML mechanism. It works really well. And we have a few forms that use this.
As I move this funtionality to RTC I am looking for another good way to accomplish this.
Maybe send keys is it ...
Thank you again for your reply ... and great site (Your blog). It has good information and tips!
Yes, it means that the function is avaliable to an enduser, but does that really matter?
I have tested the sendkeys on an action that has 'Visible' = False.
It works!
Good enough for me. I doubt a user happens to stumble upon my complicated key request.
I will just have to take that chance.
Again, I did find your article to begin with, but I dismissed the idea.
Thank you for making me look at your solution in a different light.
Have a great day!
Michael
It has been seen in 64 bit clients that "SendKeys" isn't working correctly.
Has anyone else dealt with this?
Has anyone else worked out a better way of updating the main form from a subform?
Thanks again.
When you are working in the subform the record in the main page has already been updated. Why don't you just call a function in a codeunit and the use sendkeys with F5 to reload the changed data to the main page ?
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com