12-21-2015 11:27 AM
I'm writing External Autofill Keyset Script and the issue I ran into while writing the script is ability to update/add multiple MIKGs.
I found the following example in the API SDK:
public void OnExternalAutofillKeysetScriptExecute(Hyland.Unity.Application app, Hyland.Unity.ExternalAutofillKeysetEventArgs args)
{
try
{
app.Diagnostics.Write( string.Format( "Autofill: Primary keyword {0} = {1}", args.PrimaryKeyword.KeywordType.Name, args.PrimaryKeyword.Value ) );
app.Diagnostics.Write( "Autofill Keywords: ");
foreach( KeywordType kt in args.KeywordTypes )
{
app.Diagnostics.Write( string.Format("\t{0}:{1}", kt.Name, kt.DataType ) );
}
KeywordType descType = args.KeywordTypes.Find(1); //description
ExternalAutofillKeysetData data = args.Results.CreateExternalAutofillKeysetData();
data.SetKeyword( args.PrimaryKeyword );
data.SetKeyword( descType.CreateKeyword( "TESTING" ) );
args.Results.AddExternalKeywordAutofillKeysetData( data );
}
catch( Exception ex )
{
app.Diagnostics.Write( ex );
}
It works fine when you are just updating/adding single instance keyword types but I don't see how you can update/add MIKGs.
Adding/Updating MIKGs through an External Autofill Keyset Script is probably not an option but I just wanted to run it the you guys to see if anyone knows if this is possible and hopefully guide me towards the correct direction.
Thanks in advance!
12-21-2015 12:17 PM
Hi Alvaro
The code within the OnBase SDK should be compatible with MIKGs as well. I ran a quick test within my system, and was able to populate a MIKG value using this script.
From the args.KeywordTypes property, it looks as though only the KeywordTypes within the PrimaryKeyword's KeywordRecordType can be obtained. In this case, the example may be a bit lacking, as the KeywordType should be ontained through this property. In this case, the Primary KeywordType will need to be within the keywordRecord that the Autofill is running against; essentially this is causing the Autofill to only be applicable for a single record type.
12-21-2015 12:17 PM
Hi Alvaro
The code within the OnBase SDK should be compatible with MIKGs as well. I ran a quick test within my system, and was able to populate a MIKG value using this script.
From the args.KeywordTypes property, it looks as though only the KeywordTypes within the PrimaryKeyword's KeywordRecordType can be obtained. In this case, the example may be a bit lacking, as the KeywordType should be ontained through this property. In this case, the Primary KeywordType will need to be within the keywordRecord that the Autofill is running against; essentially this is causing the Autofill to only be applicable for a single record type.
12-22-2015 04:42 AM
12-22-2015 05:18 AM
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.