How to check whether the data resource you are using is taking the input from another page?

sagar1231
Tera Contributor

How to check whether the data resource you are using is taking the input from another page?

 

1.png

 



This is a page which has a component on clicking one the numbers in the number column it directs to another page.

 

2.png

 

 

As you can see there are 2 components on the left hand corner table and sysId .
On the same page we have some client state parameter

 

3.png


We can see the filterCondition is empty

 

This state client parameter are joined to data resource

 

4.png

 

 

Let’s take an example that we are not sure that the conditions are not getting printed. Is there any method to check it?

Yes let us take a look:-

First create a modal box:-

 

5.png

 



As we can see the middle part (condition:) let’s add some text there

 

6.png



The text:-

 

7.png

 



Let’s write some script and execute it once the page loads

 

8.png



Attached the script to the page so that it executes as soon as page reloads

 

9.png




Let’s also trigger the above modal box in the event section (data fetch succeeded) of the data resource

 10.png

 



Bit of configuration in the event mapping

 

 

11.png

As soon as both of the pages are review

 

12.png



After clicking on one of the numbers it redirects to another page

 

13.png

 



As you can see the modal box appears as soon as the page reloads and the filter condition which was empty (@state.filterCondition) has got a value





1 REPLY 1

Mark Manders
Mega Patron

Can you explain a use case where this would help? 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark