Hi,
Following the documentation I can create (static) referenced data types.
Simple example:
I have a recipe data item, that requires ingredients (duh), and I have an ingredient data item.
I attach the ingredients to the recipe by using a 'LargeString' field that is filled with Guids from a 'MultiKeySelector' in the form definition.
Two questions:
JamBo
Following the documentation I can create (static) referenced data types.
Simple example:
I have a recipe data item, that requires ingredients (duh), and I have an ingredient data item.
I attach the ingredients to the recipe by using a 'LargeString' field that is filled with Guids from a 'MultiKeySelector' in the form definition.
Two questions:
-
Is is possible to couple the ingredient with an amount (i.e. 50 gr) within the recipe data item? Now I use a double nested reference; the ingredient data item consists of an ingredientobject Guid field and an amount field. But this means I have to create an ingredient with an amount, but that amount is bound to change and not static - which would result in an endless ingredient list; a lot of identical products but with different amounts.
-
Can I incorporate buttons in the formdefinition, i.e. something like 'Add Ingredient' that fires a workflow or c# function to handle the call?
JamBo