bool TabObjectsDelete(TabSheetId tTabSheet, TabObjectsDeleteArg tArg)
mon. Table moniker.
tArg. Operation execution parameters.
The TabObjectsDelete operation deletes table objects.
The operation deletes one or several table objects with specified identifiers. To execute the operation, in the tTabSheet field specify table moniker, and in the tArg.ids field specify array of deleted object identifiers. The moniker can be based on the moniker of opened object instance, which table is worked with.
The operation results in the logical True if objects were deleted successfully.
Below is the example of deleting two objects from regular report sheet. The request contains regular report sheet moniker and array of identifiers of deleted objects. The response contains whether deletion was successful.
{
"TabObjectsDelete" :
{
"tTabSheet" :
{
"id" : "S1!M!S!P1!1"
},
"tArg" :
{
"ids" :
{
"it" :
[
"PrxPicture",
"PrxChart"
]
}
}
}
}
{
"TabObjectsDeleteResult" : "1"
}
public static bool DeleteTabObjects(string moniker, string[] objects)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabObjectsDelete()
{
tTabSheet = new TabSheetId() { id = moniker },
tArg = new TabObjectsDeleteArg()
{
ids = objects
}
};
// Delete table objects
var result = somClient.TabObjectsDelete(tTab);
return result;
}
See also: