arif - Tuesday, January 3, 2012 7:53 AM:
Hi Community, this is my first post.
I have just started with Aras Innovator. I can create new Item Types and can set my desired data-sources for fields in Forms.
vishal_trivedi - Tuesday, January 3, 2012 8:24 AM:
-- Create an Item type
-- Set this item type as poly item.
-- now in this item type assign multiple item type from which you want to select data and this can be done in the relationships tab of item type (ploy sources)
-- Assign this item type as a source instead of what you are assigning as a data source of item property.
Vishal
arif - Tuesday, January 3, 2012 11:35 PM:
Normal 0 false false false EN-US X-NONE X-NONE
· Wheel
· Steering
· Propeller
· Radiator
· Carburetor
1. 1. Model (Field Type = Text, Data Source is a String type and desired value may be “Nano”)
2. 2. Price (Field Type = Text, Data Source is a String type and desired value may be “RS. 2,00,000”)
3. Parts(Field Type = Item, Data Source = ” Components” and desired values may be “Wheel + Steering + Radiator ”)
arif - Wednesday, January 4, 2012 1:06 AM:
Normal 0 false false false EN-US X-NONE X-NONE
· Wheel
· Steering
· Propeller
· Radiator
· Carburetor
1. Model (Field Type = Text, Data Source is a String type and desired value may be “Nano”)
2. Price (Field Type = Text, Data Source is a String type and desired value may be “RS. 2,00,000”)
3. Parts(Field Type = Item, Data Source = ” Components” and desired values may be “Wheel + Steering + Radiator ”)
Nishant Kapoor - Monday, July 23, 2012 5:47 AM:
Hi Arif,
Can you please elobrate how you created the instances of Item Type, "Components"?
Nishant
pinakpatel - Wednesday, July 25, 2012 3:00 AM:
Dear Arif,
Accroding to statndard approach,
1> When you want to attach only one object of Item say"B" with another object of Item say "A" then, create Property "prop1" (Data type ="Item") in Item "A" and show it on Form Page.
2> When you want to attach more than one object of Item Say "B" with another Object of Item Say "A" then, create relationship between ItemType "A(Source_item)" and "B(related_item)".
Above approach is standard approach.
But, still if you want to follow your approach then try following solution,
1>Create list say "Component List".
2> Now, create one server side method which will iterate over all objects of 'Componenet' ItemType and add 'name(property)' of components into "Component List"
3> Add this method on "onAfterAdd" and "OnAfterDelete" event of ItemType="Component".
(So, values in "Component List" will be update on creation and deletion of "Component" object.)
4> Now, add this "Component" list into your Itemtype Say ="CAR" and change it's field type in Form to "Listbox Multi Select"
Then you will be able to select multiple Component into Form.
Thanks,
Pinak