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

Parameters Handle NULL VALUES

Hello Developers,

I have some parameters that is of type Number. I want to pass NULL into it but we can only pass NULL values to the parameter which is of type String.

The parameters are coming from BE and I cannot change it. I tried to create a sub-report and use a formula to handle it. But couldn't figure it out.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 23, 2016 at 12:41 PM

    Hi Preethi,

    Make the prompt optional and use the HasValue() function along with it.


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 23, 2016 at 12:44 PM

    Hi Preethi,

    First of all will that BE prompt allow you to pass NULL value ?

    You can create a sub report with a formula or a string type parameter (optional) which can accept NULL value. But you can't join / link this with sub report parameter.

    Best way is to mask that parameter like :

    Create a blank report -- Insert Main report as sub report--

    Now in blank report create a formula with numeric value with 0 (zero) and pass this to BE parameter.

    Crate a string parameter at sub report (Main report earlier) and make it optional. This parameter can be compared with your database fields and can pass NULLs.



    Add a comment
    10|10000 characters needed characters exceeded

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.