Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

Prompts in where clause gives error

$
0
0

Hi,

 

when start date and end date and Date  type prompts are selected the report should display the data between the date range, if  dates and date type prompts are not selected then the report should display all records present in the table.

 

Created below 3 prompts and filter in the IDT

 

Date Type=@prompt('Enter Date Type','A',{'Order Date','Req Date'},Mono,Free,Persistent,,Optional)

 

Prompt1=@prompt('Enter Date Type','A',{'Order Date','Req Date'},Mono,Free,Persistent,,Optional)

 

Prompt2=@prompt('Enter Date Type','A',{'Order Date','Req Date'},Mono,Free,Persistent,,Optional)

 

filter_Dynamic_Dates=Order Type='Order Date' and Eqp.Order_Dt between Prompt1 and Prompt2) or

       (Order Type='Req Date' and Eqp.Req_Dt between Prompt1 and Prompt2) or(Date Type not in('Order Date','Req Date))

 

I am getting the "failed to execute runnable (java.lang.NullPointer Exception error, when I am not selecting the 3 prompts. I can execute the query, if I am selecting the 3 prompts.  If  dates and date type prompts are not selected then the report should display all records present in the table.


Viewing all articles
Browse latest Browse all 1291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>