Skip to main content

Properties that can be set

This section describes the properties that can be set for a generic object.

You can set the properties of a generic object, when creating the object or after the creation of the object by using the SetProperties method or the ApplyPatches method.

Example:

In this example, a transient chart is created. The full dynamic properties City and Region are added inside the dynamic property with known type: qHyperCubeDef.
{ "jsonrpc": "2.0", "id": 2, "method": "CreateSessionObject", "handle": 1, "params": [ { "qInfo": { "qId": "BC01", "qType": "Chart" }, "qHyperCubeDef": { "qDimensions": [ { "qLibraryId": "", "qDef": { "qFieldDefs": [ "City", "Region" ], "qFieldLabels": [ "Label" ], "qSortCriterias": [ { "qSortByLoadOrder": 1 } ], "qReverseSort": false } } ], "qMeasures": [ { "qLibraryId": "", "qDef": { "qLabel": "Chart HC Properties measures label", "qDef": "Count(Country1)" } } ], "qSuppressZero": true, "qSuppressMissing": true, "qInitialDataFetch": [ { "qTop": 0, "qHeight": 1, "qLeft": 0, "qWidth": 2 } ] }, "categories": { "qValueExpression": "=Count(CategoryName1)" }, "products": { "qStringExpression": "=Count(ProductName1)" } } ] }
Information noteThis part of the help describes all the dynamic properties with known types.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!