Thank you for answers.
"May be I do not understand your needs well, but if you want to achieve exactly the same as the disposition view provides, what is the reason for overwritting the code at all?
On other hand, you could develop your own view which will cover exactly your needs and wont't be based and depend on existing solution."
I can't overwritting the code for Disposition Code view because is not available - I only have access to IDispositionCode, but I do not have everything what I need in this interface.
I don't have body for these methods.
"Wouldn't just be easier to send the new Disposition Code Business Attribute value by strategy?"
I have already sent this value, I have recreated the treeview in which my Business Attribute was placed.
ICollection<CfgEnumeratorValue> readDataList = helper.GetDataFromObjectById(1304, CfgObjectType.CFGEnumerator);
foreach (var row in readDataList)
{
itemsToFillView.Add(new Class
{
Name = row.Name
});
}
treeView.ItemsSource = itemsToFillView;
public ICollection<CfgEnumeratorValue> GetDataFromObjectById(int dbId, CfgObjectType cfgObjectType)
{
ConfServerProtocol confServerProtocol =
new ConfServerProtocol(
new Endpoint(
myUserName,
myIP,
anyPort));
confServerProtocol.UserName = myUserName;
confServerProtocol.UserPassword = "password";
IProtocol protocol = confServerProtocol;
protocol.Open();
IConfService confService = ConfServiceFactory.CreateConfService(protocol);
ICfgObject readObject = confService.RetrieveObject(dbId, cfgObjectType);
CfgEnumeratorQuery cfgEnumeratorQuery = new CfgEnumeratorQuery(confService)
{
Dbid = readObject.ObjectDbid
};
CfgEnumerator cfgEnumerator = cfgEnumeratorQuery.ExecuteSingleResult();
CfgEnumeratorValueQuery cfgEnumeratorValueQuery = new CfgEnumeratorValueQuery(confService)
{
EnumeratorDbid = cfgEnumerator.DBID
};
return cfgEnumeratorValueQuery.Execute();
}
But now I have to save these data and I need isMandatory option. That's mean if Agent doesn't select any item in treeView then he gets information/alert about it (orange window message).
I don't know how should I save this data - I read something about AttachedData but I'm not sure how it's work.
Maybe I will explain again more specifically what I mean.
I want to create bookmarks "Call status" and "Source of knowledge" - I will have Disposition Code, Call status and Source of knowledge tabs.
These windows should behave similarly to DispositionCode but with different input data.
Each agent before the end of a call must mandatory select one of the options in these tabs.
I wanted to refer to DispositionCode by copying its behavior - unfortunately I do not have access to this code.
Maybe I think badly and there is another way to solve this topic?