{
	"name": "dfddemo.dmd",
	"rules": {
		"db": "ip2-rules/db/db2.xpd",
		"dmd": "ip2-rules/dmd/type.xpd",
		"ui": "ip2-rules/ui/ext-4.0.7.xpd"
	},
	"model": {
		"title": {
			"da": "DFD Demo",
			"en": "DFD Demo"
		},
		"proxy": {
			"defaultHive": "ip2-services/",
			"url": "ip2dmdProxy.aspx"
		},
		"defaults": {
			"permission": {
				"locked": {
					"form": false,
					"grid": false
				},
				"add": {
					"form": true,
					"grid": true
				},
				"edit": {
					"form": true,
					"grid": false
				},
				"remove": {
					"grid": true,
					"form": true
				}
			}
		},
		"entities": {
			"PRODUCT": {
				"title": {
					"da": "Produkt",
					"en": "Product"
				},
				"idColumn": "PRDPRDTKN",
				"columns": {
					"PRDPRDTKN": {
						"title": {
							"da": "ID",
							"en": "ID"
						},
						"type": "integer"
					},
					"PRDNO": {
						"title": {
							"da": "Produktnr.",
							"en": "Productno."
						},
						"type": "varchar(16)"
					},
					"PRDDSC": {
						"title": {
							"da": "Beskrivelse",
							"en": "Description"
						},
						"type": "varchar(256)"
					},
					"PRDDSC2": {
						"title": {
							"da": "Beskrivelse 2",
							"en": "Description 2"
						},
						"type": "varchar(256)"
					},					"PRDIMG": {
						"title": {
							"da": "Billede",
							"en": "Image"
						},
						"type": "varchar(256)"
					},
					"PRDTYP": {
						"title": {
							"da": "Type",
							"en": "Type"
						},
						"type": "integer"
					},
					"PRDPRC": {
						"title": {
							"da": "Pris",
							"en": "Price"
						},
						"type": "decimal(11, 2)"
					},
					"PRDSTCCNT": {
						"title": {
							"da": "Antal på lager",
							"en": "Stock count"
						},
						"type": "integer"
					},
					"PRDSTCDAT": {
						"title": {
							"da": "På lager igen",
							"en": "Stock date"
						},
						"type": "date",
						"uitype": "date"
					},
					"PRDPROP": {
						"title": {
							"da": "Produkt egenskaber",
							"en": "Product properties"
						},
						"type": "clob"
					}
				},
				"ui": {
					"grids": {
						"portfolio": {
							"features": {
								"preview": {}
							},
							"columns": [
								{
									"name": "PRDPRDTKN",
									"width": 80,
									"hide": true
								},
								{
									"name": "PRDNO"
								},
								{
									"name": "PRDDSC"
								},
								{
									"name": "PRDDSC2"
								},
								{
									"name": "PRDSTCCNT"
								},
								{
									"name": "PRDSTCDAT"
								}
							]
						}
					},
					"forms": {
						"portfolio": {
							"title": {
								"da": "Produkt",
								"en": "Product"
							},
							"columns": [
								{
									"name": "PRDPRDTKN",
									"readOnly": true
								},
								{
									"name": "PRDNO"
								},
								{
									"name": "PRDDSC"
								},
								{
									"name": "PRDIMG"
								},
								{
									"name": "PRDTYP"
								},
								{
									"name": "PRDPRC"
								},
								{
									"name": "PRDSTCCNT"
								},
								{
									"name": "PRDSTCDAT"
								},
								{
									"name": "PRDPROP",
									"xpd": "products.xpd"
								}
							],
							"items": {
								"portlet1": {
									"columns": [
										{
											"name": "PRDPRDTKN",
										},
										{
											"name": "PRDNO"
										},
										{
											"name": "PRDDSC"
										},
										{
											"name": "PRDIMG"
										},
										{
											"name": "PRDTYP"
										},
										{
											"name": "PRDPRC"
										},
										{
											"name": "PRDSTCCNT"
										},
										{
											"name": "PRDSTCDAT"
										},
										{
											"name": "PRDPROP",
											"xpd": "products.xpd"
										}
									]
								}
							}
						}
					}
				}
			}
		}
	}
}
