Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
How to create master item or add an existing object to master library using SDK.
regards,
Prabhu Appu
Hi Prabhu,
Class AppExtensions contains two different approaches for creating master objects.
Example:
private void CreateMyMasterObject(IApp app, string sourceId)
{
app.CreateAndLinkMasterObject(sourceId, null, new MasterObjectProperties
{
Metadata = new MasterObjectMetaData
{
Name = "MyMasterObject",
Description = "My visualization"
}
});
}
Regards,
Helene
Hi Prabhu,
Class AppExtensions contains two different approaches for creating master objects.
Example:
private void CreateMyMasterObject(IApp app, string sourceId)
{
app.CreateAndLinkMasterObject(sourceId, null, new MasterObjectProperties
{
Metadata = new MasterObjectMetaData
{
Name = "MyMasterObject",
Description = "My visualization"
}
});
}
Regards,
Helene
Hi Helene.
What about a master measure/Dimension - how do you create this with the SDK?
Measures and dimensions are typically created by using the methods CreateMeasure and CreateDimension that are available as extension methods for the IApp interface.
I finally had success with creating my measures and dimensions, using exactly CreateMeasure and CreateDimension - thanks!
I tried to use this code to convert an existing chart to a master item however it keeps giving timeout errors. Any ideas? This is using version 3.2
var prop = new MasterObjectProperties()
{
MetaDef = new MetaAttributesDef
{
Title = "Sales chart",
Description = "This chart show the total sales per region"
}
};
App.CreateMasterObject("SalesPieChartID", "SalesMasterObjectID", prop);