The composite object contains both a list object (defined in qListObjectDef) and a chart (defined in qHyperCubeDef).
The list object has one dimension Country (qFieldDefs is Country).
The chart has one dimension City (qFieldDefs is City) and one measure Count(Holes) (qDef is "Count(Holes)").
The client sends:
{
"jsonrpc": "2.0",
"id": 2,
"method": "CreateChild",
"handle": 2,
"params": [
{
"title": "Title of the combo chart",
"collapsed": {
"qVAExpression": "Count(Country) > 25"
},
"meta": {
"data": "this is the data"
},
"qInfo": {
"qId": "CB01",
"qType": "ComboChart"
},
"qDim": {
"qGrouping": "N",
"qFieldDefs": [
"Country"
],
"qFieldLabels": [
"Lander"
]
},
"qListObjectDef": {
"qStateName": "$",
"qLibraryId": "",
"qDef": {
"qGrouping": "N",
"qFieldDefs": [
"Country"
],
"qFieldLabels": [
"Dim1"
],
"qSortCriterias": [
{
"qSortByState": 0,
"qSortByFrequency": 0,
"qSortByNumeric": 0,
"qSortByAscii": 0,
"qSortByLoadOrder": 1,
"qSortByExpression": 0,
"qExpression": {
"qv": ""
}
}
]
},
"qInitialDataFetch": [
{
"qTop": 0,
"qLeft": 0,
"qHeight": 3,
"qWidth": 0
}
]
},
"qHyperCubeDef": {
"qStateName": "$",
"qDimensions": [
{
"qLibraryId": "",
"qNullSuppression": false,
"qIncludeElemValue": false,
"qDef": {
"qGrouping": "N",
"qFieldDefs": [
"City"
],
"qFieldLabels": [
"City label"
],
"qSortCriterias": [
{
"qSortByState": 0,
"qSortByFrequency": 0,
"qSortByNumeric": 0,
"qSortByAscii": 0,
"qSortByLoadOrder": 1,
"qSortByExpression": 0,
"qExpression": {
"qv": ""
}
}
]
}
}
],
"qMeasures": [
{
"qLibraryId": "",
"qDef": {
"qLabel": "Total",
"qDescription": "Chart HC Properties measure description",
"qGrouping": "N",
"qDef": "Count(Holes)"
}
}
],
"qInitialDataFetch": [
{
"qTop": 0,
"qLeft": 0,
"qHeight": 3,
"qWidth": 2
}
]
},
"description": "Description of the combo chart: list box and chart"
}
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"qReturn": {
"qType": "GenericObject",
"qHandle": 3
},
"qInfo": {
"qId": "CB01",
"qType": "ComboChart"
}
},
"change": [
3
]
}
The composite object is created. The handle is 3.