Hi,
My classmates and I are trying to do a nested loop for an exercise but ther is no progress even we dont know if we really need a nested loop or not. The problem to resolve is:
With a Selector we get all tuples of "Carrito". "Carrito" has an oid and oidProduct, ProductName, Quantity, ProductPrice... to the first loop we pass oid to imputArray and OidProducto to oidProducto and from this loop we pass nextelement(oidProducto) to imputArray, OidProducto_PASSING to oidProducto and in the iterationCount the quantity of the Product. Then we do a connect between "Pedido" and "Producto", and back to the inner loop and when it's finish, back to the external looop.
we want in the table of the relationship n:m of "Pedido" "Producto" this result:
oid pedido_oid Producto_oid
1 1 3
2 1 3
3 1 4
4 2 3
and we obtein as result:
oid pedido_oid Producto_oid
1 1 3
2 1 4
3 2 3
PD: the quantity attribute in the Carrito is te n-times we need to do the connect between a "Producto" and "Pedido".
Thanks in advace and sorry for my english.
MIguel Angel Holgado.