5.1 MVC Issue with View Parameters being passed to webpage by hyperlink
Posted: September 21st, 2022, 2:56 pm
I ran into an issue where on a webpage, WorkWithAccounts, that shows a list of all accounts, where each row contains a hyperlink to the AccountHome webpage. I needed to pass in the ViewParameters so that when the user clicked on the link, it took them to the correct AccountHome page and not just their own. I was having an issue where when any AccountHome link was clicked, it forwarded to the AccountPage for the user who was currently logged in. I was able to solve the issue by changing the parameter property values, and clearing the filters I was using for my search. I am now reapplying the filters to be sure it functions properly with the search filters, but in the meantime here are the corrected parameters that allowed the link to work properly on my page.
The parameters set for the hyperlink properties on the WorkWithAccounts webpage canvas: The parameters for a submethod in the model for the AccountHome webpage:
The parameters set for the hyperlink properties on the WorkWithAccounts webpage canvas: The parameters for a submethod in the model for the AccountHome webpage: