Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Data reference and forms

$
0
0
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:
  1. 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.
  2. Can I incorporate buttons in the formdefinition, i.e. something like 'Add Ingredient' that fires a workflow or c# function to handle the call?
thns,
JamBo

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>