This is a migrated thread and some comments may be shown as answers.

Conditional interactivity

3 Answers 322 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 20 Nov 2019, 03:11 PM
Is there a possibility to add condition to 'Action' setup? For example if Fields.* <> 0 then navigate to report/url, if not set 'Action' to none.

3 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 25 Nov 2019, 08:35 AM

Hi Grzegorz,

I prepared a sample report where the following approach is demonstrated:

- Add a report parameter from type Boolean which has initial Value true;

- Add a textbox and set the Action -> Navigate to URL -> Target URL -> Expression:

=IIF(Parameters.isUrl.Value = true ,"https://docs.telerik.com/reporting/overview", Null)

In this case, when the parameter is set to true, the link will be active and when it is false, it will not be.

Test the approach and let us know how it goes.

Regards,
Neli
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mark
Top achievements
Rank 1
answered on 04 Dec 2019, 11:42 AM
Ok, thank you. What about Navigate to Report action? How to achieve same result?
0
Neli
Telerik team
answered on 09 Dec 2019, 11:06 AM

Hello Grzegorz,

You can apply the same approach. When you are setting the Action, click on Navigate to Report -> Select a report source -> URL or file -> Expression:

=IIF(Parameters.isUrl.Value = true ,"Report1.trdp", Null)

In this case, when the report parameter is set to true and you click on the textbox, the report "Report1.trdp" which is in the same folder will be opened.

You can test the updated version of the previously attached report.

Regards,
Neli
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Neli
Telerik team
Mark
Top achievements
Rank 1
Share this question
or