Hello,
I have created 2 custom modules, one keeps a list of items A, and the other keeps a list of items B. For every item A, there can be 0-* items B. I have a field/dbcolumn with the same name ("C") in both module A and B to connect them. If an item A and an item B have the same data in a certain column, I want them to be automatically related. For example, if an invoice record have the same invoice number as some invoice_item records, then they are automatically connected such that one invoice<->some invoice_items.
I have created a 1:N relationship in Sugar, such that module A is connected to module B using the "C" field/dbcolumn.
This works well in the sense that I can create a number of items A, and a number of Items B. If I create items B from within the detail view of an item A, this item A will also list all such item B's in a subpanel.
So in this case, such item B's are connected to the item A, and a relation exist between them. Fine.
But if I create a number of Item B's, from the B module view, these will not be listed in an item A subpanel, even if the column "C" contain the correct key.
So in short, how can I create a module A and B, there all item B's will be listed automatically in an item A's subpanel, if the data in a field/dbcolumn "C" is the same in both A and B?
Any suggestions is most welcome!
Kind regards,
Johan


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks