on 06-28-2006 3:46 AM
Let me explain my situation and then the question.
I am expecting a ObjectID in the querystring (URL Parameters).
I capture this URL parameter in my window and pass it to a mapped context attribute that inturn is mapped to the View. Inshort, the url parameter captured in the window is now available in the view.
I make a function module call and check if that ObjectID is a valid ObjectID or not. If it is not valid, I want to file a plug and display another view called MESSAGE_VIEW. This ObjectID validation is happening in the WDDOMODIFYVIEW method and when I fire the outbound plug to go to the MESSAGE_VIEW, I get the error ...
<b>"Navigation in Phase WDDOMODIFYVIEW Cannot Be Triggered. Component: ZCRM_COMPONENT, View: PARTNER_VIEW, Window: APPLICATION_WINDOW"</b>
Question: What is the best way to validate data and redirect to a different view if the validation fails?
I am new to sdn, please also post as to how to award points.
Thanks in advance.
I did find a solution and I wanted to share and validate it.
- I created a event in the COMPONENTCONTROLLER "event_chk_url_params".
- In the view where I use these url parameters, I created a method (event handler) for the above event that checks for the url parameters and fires plugs based on the value of the url parameters.
- From the window's handle default method, where I get all the url parameters, I raise the event in the component controller ... which inturn calls the event handler in the view, which in turn redirects.
Is this the right solution or is there something better then this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.