cancel
Showing results for 
Search instead for 
Did you mean: 

Use Input-Parameter in an Input-Parameter

D039507
Advisor
Advisor
0 Kudos

Hi all,

I want to use an Input Parameter in an Input Parmeter.

I have these Input Parameter:

Date_from

Date_to

TimeRange (1 or 2)

Date_to_2

Date_to_2 is use in the mapping of the underlying Views.

Input Parameter Date_to_2 is calulated in an expression:

if(('$$TimeRange' = '1', '$$Date_from$$', '$$Date_to$$')

Is this possible?

Depending on the TimeRange I want to set the Date_to_2, which is used in the underlying calc. Views (via Data Source Mapping).

Is this possible?

Best Regards

thorsten

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Thorsten,

As far as I know Input parameter can't be used inside another input parameter.

Can you please post some screenshots to understand the scenario well.

Best Regards,

Shireesha

D039507
Advisor
Advisor
0 Kudos

Hi Shireesha,

thanks for your comment. Here are some screenshots:

This are my Input parameters:

TimeRange could be 1 or 2

if TimeRange = 1, P_ValidityStartDate2 = P_ValidityStartDate

if TimeRange = 2, P_ValidityStartDate2 = P_ValidityEndDate

And this input parameter is used for the underlying views:

Example:

IF TimeRange = 1

Selection period for underlying Views is 01.01.2015 - 31.12.2015

IF TimeRange = 2

Selection period for underlying Views is 31.12.2015 - 31.12.2015

Best Regards

Thorsten

Former Member
0 Kudos

Hi Thorsten,

As I said before input parameter can't be used inside another input parameter but your output can be achieved as below.

-> Create calculated column with the expression

if (TimeRange = =1, P_ValidityStartDate2, P_ValidityStartDate)

-> Now create Date_to_2 column type input parameter using above created calculated column which can be used to map for underlying views

Hope this helps you.

Best Regards,

Shireesha