Skip to main content
Solved

IFS FSM-Adding filter condition on UI Designer to filter data

  • February 13, 2023
  • 3 replies
  • 238 views

Forum|alt.badge.img+1

Hello everyone!

I'm  display data from survey_result table on the request screen in a seperate tab,
I'm able to fetch the data from survey_result and display it successfully on the request screen using UI Designer,

But the issue is iam getting  all the data from survey_result for that Request ID. 

where as i want to display only some rows from that survey_result table based on survey_id
How can we add a filter condition on UI Designer by which we can get survey_result data for a specific survey_id on the UI Designer 

I've tried searching for solutions online, but I haven't been able to find anything that works for my specific scenario.

If anyone has experience with filtering data in a mobile survey based on survey ID, I'd be so grateful for any advice or guidance you can provide.

Thank you in advance for your help! I appreciate your time and expertise.

Best answer by Rwjgoedhart

Yajjala,


I am going to assume that we’re dealing with a 2-part list-view here, 1 to list the Surveys, the other to list the results.

If that is the case: 

 

  1. give your Parent list a name
  2. then set your child list up with Name & Parent
    1. In my example my parent = “TaskList” and my child is “RCAList”
  3. Edit the ListView configuration of the Parent to include child information
    1. In my example I identify the child (on the parent list configuration) and entered the table_name (survey_answer in your case) in both “Child table Name” and “Path”
  4. make sure your “Child Relations” settings match your desired setup.
    1. In your case you would need a link from request to survey (possibly through a view) then link in survey_answer from survey
      1. “survey” would be the parent
      2. “survey_answer” would be the child
  5. Save Screen - Refresh Cache -- Re-open screen - Et Voila!  (assuming I didn’t forget something!) 

 

If you were simply looking to add a filter, use “Child relation Editor” to add a constraint to the survey_answer relation, such as this: 

Lastly; for a more dynamic single-survey result view, you could also build a custom-view and bring that in instead of survey_result_view

 

Hope this helps.


Sincerely,

-Rudy

 

View original
Did this topic help you find an answer to your question?

3 replies

Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2824 replies
  • February 13, 2023

Moved to FSM.


Forum|alt.badge.img+8
  • Hero
  • 30 replies
  • Answer
  • February 14, 2023

Yajjala,


I am going to assume that we’re dealing with a 2-part list-view here, 1 to list the Surveys, the other to list the results.

If that is the case: 

 

  1. give your Parent list a name
  2. then set your child list up with Name & Parent
    1. In my example my parent = “TaskList” and my child is “RCAList”
  3. Edit the ListView configuration of the Parent to include child information
    1. In my example I identify the child (on the parent list configuration) and entered the table_name (survey_answer in your case) in both “Child table Name” and “Path”
  4. make sure your “Child Relations” settings match your desired setup.
    1. In your case you would need a link from request to survey (possibly through a view) then link in survey_answer from survey
      1. “survey” would be the parent
      2. “survey_answer” would be the child
  5. Save Screen - Refresh Cache -- Re-open screen - Et Voila!  (assuming I didn’t forget something!) 

 

If you were simply looking to add a filter, use “Child relation Editor” to add a constraint to the survey_answer relation, such as this: 

Lastly; for a more dynamic single-survey result view, you could also build a custom-view and bring that in instead of survey_result_view

 

Hope this helps.


Sincerely,

-Rudy

 


Forum|alt.badge.img+21
  • Superhero (Employee)
  • 427 replies
  • May 30, 2024

Hi @Rwjgoedhart,

Good one, Not the same use case but helped me do what i was after.

Cheers


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings