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

New Post: Dependency between datatypes

$
0
0
Hi,

I want to create global datatypes in C1 with depency built in. Lets say that I have three global datatypes:
  • Country (Id, Name)
  • City (Id, CountryId, Name)
  • Restaurant (Id, CountryId, CityId)
Each country has a number of cities and each city has a number of restaurants. When I want to create a new restauraunt in the dataperspective in the Composite C1 backend I first need to select country in a dropdown. Next, I must select a city, but what if I only want to see the list of cities only in the country just chosen. As default all cities are shown disregarding any relation between city and selected country.

I've come acrosse some FilterXml functions, but I'm not sure actually how to use these.

Any help or explanation would be highly appreciated.

Thx! :)



When creating a new restaurant in the data

Viewing all articles
Browse latest Browse all 2540

Trending Articles



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