I’m looking forward to the convertFoundSet feature but since it was released in RC3 it has had the same bug:
EXPECTED BEHAVIOR
Imagine my users are looking at a found set of orders and they want to then look at a found set of the customers who made those orders. How is this done? I had thought I would use convertFoundSet.
Same need for the opposite: users looking at a found set of customers (say it’s their high-end customers) and want to see all orders they’ve ever made.
PROBLEM
convertFoundSet as it is now does not do this. If customer #26 has 10 orders, it would show that customer 10 times!
Please look in the attached solution.
create 3 records in the “customer” table with custID 1,2,3, and then create 3 records in the “marked” table with custID 3,3,3
then if you click on the method “convertFoundSet” from the marked form it actually will display, over in the customer form, 3 instances of the customer with ID 3 when we know there should only be 1!
Is it also true that your plan for this feature is that there will be no limitation on the number of records in either the starting or the ending found set?
yes we don’t do a distinct or something on it
you are saying that you want to show id 3 3 times. because you are marking it.. if you don’t want it 3 times don’t mark it..
Johan, the fact remains, it’s displaying records that don’t exist in the table.
To put it another way, if I have a found set of orders and i want to see the people who made those orders and I use convertFoundSet, it must show only 1 instance of each unique person.
No it is not clear
it doesn’t show you any records that are not in the database
it does show you 3 times the customer 3. But as i said that is what you also specify.
There are 3 records in the marked table. And for every record in the marked table you will get a customer.. even if this is id is already specified before.
Just add to the 3,3,3 a serie others like 1,2,3,2,1,2,3,3,1
and you will see that you will get exactly those.
So with convertFoundset you have to take into account that this can happen with relations a many->one relation.
Johan, could you please explain, then, how to achieve the following:
My users are looking at a found set of orders and they want to then look at a found set of the customers who made those orders.
Same need for the opposite: users looking at a found set of customers (say it’s their high-end customers) and want to see all orders they’ve ever made.