on 03-28-2008 1:27 AM
We can modify the property of view's UIs in the wdModifyView method,but if i want to get the IWDView in my own method,not static methods,can i get it?
To Satyajit and Manoj,
First,thank you for replying the question!
I know your meanings,but i just want to know whether it's possible to get the view object in a non-static method directly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As Satyajit correctly said, it is not adviced to use IWDView reference out side wdDoMidify().
Say if you want to make a inputfield disable onClick of a button then map a attribute of type boolean to the enabled property of the inputfield and onClick action of the button set this property to false.
This way you can achieve almost everything.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It is not a best practise to modify the view via an IWDView reference outside the dedicated hook method wdDoModifyView. If you want to make changes to the view from your own methods, then the standard way would be to raise a flag from your methods, check this flag in wdDoModifyView and then do the modifications within wdDoModifyView.
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.