Hi!
I have a question regarding the generation of MasterItems via .NET. I have developed a little Console App which is taken as input an .xlsx file and generates accordingly to the definition the MasterItems, which means Dimensions and Measures. All is working fine, just the Label Expression are not created successfully.
Please take in a look to my code and especially the part of code related to the FieldLabels which is not taken in account during the creation of the MasterDimension.
Is there any mistake or I miss something?
public void CreateMasterDimension(string id, string metaTitleDef, string metaDescriptionDef, string fieldDef, string fieldDefLabel)
{
IDimension myDimension = QsIApp.CreateDimension(id,
new DimensionProperties
{
MetaDef = new MetaAttributesDef
{
Title = metaTitleDef,
Description = metaDescriptionDef
},
Dim = new NxLibraryDimensionDef
{
FieldDefs = new[] { fieldDef },
FieldLabels = new[] { "Dummy" }
}
});
QsIApp.DoSave();
QSReadMasterItems();
}