on 01-31-2008 1:46 PM
Hi all,
I have a Node (FileNode) and 2 attributes under FileNode, fileName (string) and fileData (binary).
FileNode
- fileName (string)
- fileData (binary)
They are assign to the FileUpload UI element, data and filename respectively.
In my wdDoInit(), it throws a null pointer exception when it reaches this statement. attributeInfo.getModifiableSimpleType();
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateKnowledgeManagementView.IFileNodeElement.FILE_DATA);
attributeInfo.getModifiableSimpleType();
What could be the reason?
Hi,
As your context is
FileNode
fileName (string)
fileData (binary)
Change the following
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateKnowledgeManagementView.IFileNodeElement.FILE_DATA);
attributeInfo.getModifiableSimpleType();
To
IWDAttributeInfo attributeInfo = wdContext.nodeFileNode().getAttribute(IPrivateKnowledgeManagementView.IFileNodeElement.FILE_DATA);
attributeInfo.getModifiableSimpleType();
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Try this piece of code.
ISimpleTypeModifiable reasonCode =wdContext.nodeVn_upload().getNodeInfo().getAttribute("Va_filedata").getModifiableSimpleType();
where "Va_filedata" is the name of the value attribute in the node.
Make sure you write the code in the component controller. not in the view init
cheers
Deepu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.