Skip to content

Commit

Permalink
LoadDictionary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
openbots-ff committed Mar 20, 2020
1 parent 1f2f771 commit 2348432
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions taskt/Core/Automation/Commands/LoadDictionaryCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ public override void RunCommand(object sender)
var engine = (Core.Automation.Engine.AutomationEngineInstance)sender;
var vInstance = DateTime.Now.ToString();
var vFilePath = v_FilePath.ConvertToUserVariable(sender);
var vDictionaryName = LookupVariable(engine); //v_DictionaryName.ConvertToUserVariable(sender);
var vDictionaryName = v_DictionaryName;
var vDictionary = LookupVariable(engine);
if (vDictionary != null)
{
vDictionaryName = vDictionary.VariableName;
}

var newExcelSession = new Microsoft.Office.Interop.Excel.Application
{
Expand Down Expand Up @@ -98,7 +103,7 @@ public override void RunCommand(object sender)

Script.ScriptVariable newDictionary = new Script.ScriptVariable
{
VariableName = vDictionaryName.VariableName,
VariableName = vDictionaryName,
VariableValue = outputDictionary
};
//close excel
Expand Down

0 comments on commit 2348432

Please sign in to comment.