iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
How do you use FormMetaData, specifically binding a NavigationParameter to the NavigationAction attribute class? Here's our code snippet, so what's the next thing to do to accomplish data passing?
[Display(Caption = "Machine Meters")] [Editor(EditorType.Navigation)] [NavigateAction(typeof(MachineListViewModel))] public static string MachineMeters;
Thanks!
It is not possible to pass NavigationParameter with NavigationAction.
Could you please inform me more detail about the scenario that you want to achieve? There might be a workaround or solution by using different approach.
We just need to pass data to the target viewmodel, and capture and process that data from Navigated event.
I override Navigated event and use following snippet code to pass User data to the target viewmodel, ChangePasswordViewModel.
public override void Navigated(NavigatedParameter parameter) { base.Navigated(parameter); var userProfileViewModel = parameter.Sender as UserProfileViewModel; if (userProfileViewModel != null) { User item = userProfileViewModel.Item; if (item != null) { //do something in here } } }
Please refer to Business project template and add the above code in ChangePasswordViewModel.
Hope this help.
That should work. Thanks!
Glad to hear that overriding Navigated event to pass navigation parameter help.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname