Hi,
I am creating a browser enabled form. I have 7 views and these views are dependent on some rules. At form options, I have written some rules for opening forms.
Till here it worked fine. Now I want to open different views for editing form, from different web pages depending upon the user, roles etc. To achieve this I used QueryString appended to my url. Then set some rules to change or choose view while opening the form depending upon the querystring value.
As there is no way to get the querystring value in rules itself I had to write some code on FormLoad event. Fetch the querystring value and set the value to some field in the main datasource.
Now I can set some rules and change my views accordingly comparing the value from field of my datasource. It works fine for Browser forms. But If I try to open it in client it does not.
This is strange but it seems that in browser forms first the Form Load event executes then rules for opening forms. While in client first the rules for opening forms and then Form Load event executes. Therefore my querystring value is not set and I cannot change the view(i.e rules for changing view are not applied).
Is there any other way to change the view at formload event.
Thanks