OpenCustomExtenderResult OpenCustomExtender(MbId tMb, OpenCustomExtenderArg tArg)
tMb. Repository connection moniker.
tArg. Operation execution parameters.
The OpenCustomExtender operation opens custom class container.
To execute the operation, in the tMb field specify moniker of opened repository connection, and in the tArg field specify opening parameters. The moniker can be obtained on executing the OpenMetabase operation.
The operation results in the moniker of opened custom class container instance and metadata if the tArg.metaGet field was defined.
Below is the example of opening custom class container instance. The request contains repository connection moniker and the pattern indicating whether it is necessary to get a list of custom classes. The response contains moniker of opened custom class container instance and the obtained list of classes.
{
"OpenCustomExtender" :
{
"tMb" :
{
"id" : "JFHDCPAHAHHCGOAEINHJAHNJDKAOLMFEPJOPHAHKLDFBMCCP!M"
},
"tArg" :
{
"openForEdit" : "true",
"metaGet" :
{
"obInst" : "true",
"parsOwnDefVals" : "true",
"classes" : "Get"
}
}
}
}
{
"OpenCustomExtenderResult" :
{
"id" :
{
"id" : "JFHDCPAHAHHCGOAEINHJAHNJDKAOLMFEPJOPHAHKLDFBMCCP!M!S!EEMPBGPAHAHHCGOAEDPGADAFLDKKBEEAEKKOADCJKHIMOAOGI"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "13",
"@hf" : "0",
"i" : "OBJ52",
"n" : "System class additions",
"k" : "52",
"c" : "5889",
"p" : "0",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
}
},
"dirty" : "0",
"classes" :
{
"its" :
{
"it" :
[
{
"@ic" : "1",
"k" : "19",
"id" : "COMPONENT",
"n" : "Component",
"vis" : "1",
"implURL" : "",
"c" : "1251073",
"h" : "0",
"implAssembly" : "MOD_COMPONENT_CLASS_HANDLER",
"implClass" : "ComponentClassHandler",
"description" : ""
},
{
"@ic" : "1",
"k" : "16",
"id" : "BUSINESS_APPLICATION",
"n" : "Business application",
"vis" : "1",
"implURL" : "",
"c" : "1054465",
"h" : "0",
"implAssembly" : "P10002_BUSINESS_APPLICATION_MOD",
"implClass" : "BusinessApplication",
"description" : "Designer of business application"
},
{
"@ic" : "1",
"k" : "32",
"id" : "DATA_ENTRY_FORM_CLASS",
"n" : "Data entry\/output form",
"vis" : "1",
"implURL" : "http:\/\/localhost\/FP_App_v10.x\/script\/operation.js",
"c" : "2103041",
"h" : "0",
"implAssembly" : "ASM_INPUT_FORM_V3_PRESENTERS",
"implClass" : "CustomClassOperationsHandler",
"description" : ""
}
]
}
}
}
}
}
public static OpenCustomExtenderResult OpenCustomExtender(string mb)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tOpen = new OpenCustomExtender()
{
tArg = new OpenCustomExtenderArg()
{
openForEdit = true,
metaGet = new CustomExtenderMdPattern()
{
classes = ListOperation.Get
}
},
tMb = new MbId() { id = mb }
};
// Open custom class container
var tResult = somClient.OpenCustomExtender(tOpen);
return tResult;
}
See also: