Skip to Content
author's profile photo Former Member
Former Member

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

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2011 at 11:16 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.