Hi,
I am developing a new project and trying to use relation to link diffrent types together, so here is my senario, I have multiple compaines, every company with multiple agents, but each agent must have only 1 company, and multiple products where eash agent has multiple products, but each product has only 1 agent.
So I created 1 section with 3 types, Companies, agents and products.
For the Company type I created a parent field namd AGENT and later linked it to the child field named COMPANY in the agent type.
For the AGENT field I had Limit children per one parent set to 10 so each company can have up to 10 agents.
For the COMPANY field I disabled the multiparent option so it is restricted to one parent per child.
Now testing things in front side, submitting new agent work as expexted, I have a drop down list with company names for me to select only 1 company, for the company submission on the other hand, it displys a multiselect box for me to select up to 10 Agents which is logical, but what is not logical is I can select an already assigned agent, meaning is lets say agent 1 is assigned to company a, now on submitting company b I should not find agent 1 on thee multiselect field as it is already assigned to company a, or gives error if I select and already assigned agent, where both never happend, I managed to get an agent assigned to 2 compaies, and even more on the agaent page full view under the company field I see 2 companies.
What is wrong with this setup, or is this a bug in the cobalt relation system.
A help is apreciated.
Thank you.
Hi, I am developing a new project and trying to use relation to link diffrent types together, so here is my senario, I have multiple compaines, every company with multiple agents, but each agent must have only 1 company, and multiple products where eash agent has multiple products, but each product has only 1 agent.
So I created 1 section with 3 types, Companies, agents and products. For the Company type I created a parent field namd AGENT and later linked it to the child field named COMPANY in the agent type. For the AGENT field I had Limit children per one parent set to 10 so each company can have up to 10 agents.
For the COMPANY field I disabled the multiparent option so it is restricted to one parent per child.
Now testing things in front side, submitting new agent work as expexted, I have a drop down list with company names for me to select only 1 company, for the company submission on the other hand, it displys a multiselect box for me to select up to 10 Agents which is logical, but what is not logical is I can select an already assigned agent, meaning is lets say agent 1 is assigned to company a, now on submitting company b I should not find agent 1 on thee multiselect field as it is already assigned to company a, or gives error if I select and already assigned agent, where both never happend, I managed to get an agent assigned to 2 compaies, and even more on the agaent page full view under the company field I see 2 companies.
What is wrong with this setup, or is this a bug in the cobalt relation system.
A help is apreciated. Thank you.