Thanks for the reply.
do you need to customize UI in way that Configuration section contains your custom module data? If so, please take a look here:
Code customization
UI customization
i think these 2 links are more to customprovider & werb-parts, etc
I could not find this file in a default installation of Kentico. Is it your custom file?
ecommerce.zoneclass -> Is it your custom table class name?
yes, those are mine
If so, ClassXMLScheme and ClassFormDefinition are generated automatically, they are changed in case you insert/delete/update a new field to your custom table. There an API which regenerate the schema, but I am not sure if it is what you need:
when the system will use the data in those columns?
NOw i ma looking at this file: <root>\CMSAdminControls\UI\UniGrid\UniGrid.ascx.cs
when the ObjectType is assigned,
private void LoadObjectTypeDefinition(XmlNode objectTypeNode)
{
if (objectTypeNode != null)
{
ObjectType = objectTypeNode.Attributes["name"].Value;
// Set the columns property if columns are defined
LoadColumns(objectTypeNode);
}
}
then I saw "InfoObject" that needed below was initialized as well (for those taxclass, etc; but not my zone-class in the debugger;
public override DataSet RetrieveData()
{
DataSet ds = null;
// If datasource for unigrid is query (not dataset), then execute query
if (!string.IsNullOrEmpty(Query))
{
// Reload the data with current parameters
ds = ConnectionHelper.ExecuteQuery(Query, QueryParameters, CompleteWhereCondition, CurrentOrder, TopN, Columns, CurrentOffset, CurrentPageSize, ref pagerForceNumberOfResults);
}
// If UniGrid is in ObjectType mode, get the data according to given object type.
else if (InfoObject != null)
{
// Get the result set
ds = InfoObject.GetData(QueryParameters, CompleteWhereCondition, CurrentOrder, TopN, Columns, false, CurrentOffset, CurrentPageSize, ref pagerForceNumberOfResults);
}
but reflector only shows:
namespace CMS.UIControls
{
[ParseChildren(true)]
public abstract class UniGri
....
public void set_ObjectType(string value)
{
this.mObjectType = value;
this.mInfoObject = null;
}