cancel
Showing results for 
Search instead for 
Did you mean: 

[Help plz]Can't set a boolean attribute to true or false

Former Member
0 Kudos

Hello,

I'm new in NWDS development. I need to develop a download functionality

I used a FileDownload UIElement for that and I created a node context (ExcelExport) with 3 attributes :

- ExcelFile

- ExcelIcon

- And ExcelEnabled (Boolean type)

My problem is that everytime I try to set the attribute ExcelEnabled to true or false, it return me a java.lang.NullPointerException

I'm binding this attribute with "Enabled" property of the UIElement.

Have anyone got this error before? Thanks a lot for your help.

Kind regards,

Safae.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Safae,

Have you tried to put true/false value for the enabled property? I mean without using a context attribute?

Also try to create the attribute out of the node.

Regards,

ImaneA.

Former Member
0 Kudos

Thanks Imane,

I tried to create the attribute out of the node and it works, but i can't return the link enable, may be because i didn't finish the implementation of this part of code

Best regards

Safae

Answers (0)