on 06-07-2007 5:10 AM
component controller -
Visibility (Node)
--->ExcelVisible (Value Attribute)
I created a Node Visibility and underneath is ExcelVisible attribute
and link to the view and i bind my code to container ,
it throws null pointer exception
wdContext.currentVisibilityElement().setExcelVisible(WDVisibility.NONE);
Hi First create an element of the Visibility element linke the following...
wdContext.nodeVisibility.addElement(wdContext.nodeVisibility.createElement).
and then use your as you have written.
It is giving null pointer because the cardinality of the VIsiblity element is 0....to n and without creating elemnt you are trying to access currentVisibility element.
Thanks and Regards
Avijit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Make sure the "excelVisible" value attribute is of type: <i>com.sap.ide.webdynpro.uielementdefinitions.Visibility</i>
Besides, where did you type your code?, in the OnAction of a button,etc or in the DoInit() of that view?
If the visibility is not getting set in the doInit() of that view, but its value is getting called, then it might result in null pointer exception.
Make sure, the value attribute, has some value, under all circumstances, by giving it some default value in doInit() of that view.
Regards,
Hanoz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yzme,
Ur currentVisibiliElement is not initialized i think.Can u send the complete code u have written for this method,so that we can try to solve it.
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi yzme,
Dont take any node Like "Visibility".Just take a context attribute say "ExcelVisible" of type "com.sap.ide.webdynpro.uielementdefinitions.Visibility".
In layout of the view property "visibily" value bind "ExcelVisible" and then in side the "wdDoModifyView" use this code.
wdContext.currentContextElement().setExcelVisible(WDVisibility.BLANK);
Regards,
Mithu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi yzme yzme
Check this URL
http://help.sap.com/saphelp_nw04/helpdata/en/98/3c06a46b4611d3a31d00a0c943858e/frameset.htm
Regards
Chandran
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 | |
9 | |
7 | |
7 | |
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.