Skip to Content

/wp-content/uploads/2013/07/back_239305.gif Previous step: Building a reusable selection component

In this text we want to edit the previous solution, such that we activate the selection for different inputs and get different lists. Nevertheless, the Data Service is executed only once: a Filter is applied on the cached dataset so we get only the desired records.

run_v2.PNG

Start by editing the selection component:

1. Edit the interface: Add a field to allow city selection to in1 input Port.
2. Add a new Signal In element called in2:

1.PNG

3. Add a Filter Operator between the banks Data Share and the Table view.
4. Define the condition as below to show only banks with the same city as passed in the in1 Port. Use *in2 as the event to continue the flow to the Filter.

2.PNG

5. Back in the main model, open the Redefine Ports dialog on the Component. Check both the new city field and the in2 port.

3.1.PNG

6. Press OK and on the Apply Changes dialog check the “Add or remove corresponding controls” option and press Yes. As a result a city field and control were added to the Form View, and a field assign added to the Data Map link.

3.2.PNG

7. Add another Custom Action to the button:

4.PNG

8. Add a new link between the Form View and the in2 input Port, use the new “filter” Action as the event.

5.PNG

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply