forked from saucepleez/taskt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Excel Create Dataset and added sample for looping dataset sau…
- Loading branch information
1 parent
4913df5
commit c801667
Showing
3 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
taskt/Sample Scripts/3.x Use Case Samples/Excel Loop Dataset [3.4.0.0].xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Script xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<Commands> | ||
<ScriptAction> | ||
<ScriptCommand xsi:type="CommentCommand" CommandID="f3a14099-21a7-43d4-8362-a2c063e63799" CommandName="CommentCommand" IsCommented="false" SelectionName="Add Code Comment" DefaultPause="0" LineNumber="1" PauseBeforeExeucution="false" v_Comment="Open Worksheet and Pull Dataset. Sample DataSet used Below." CommandEnabled="true" /> | ||
</ScriptAction> | ||
<ScriptAction> | ||
<ScriptCommand xsi:type="CommentCommand" CommandID="1d340af1-0819-492d-b94f-03fa695e8119" CommandName="CommentCommand" IsCommented="false" SelectionName="Add Code Comment" DefaultPause="0" LineNumber="2" PauseBeforeExeucution="false" v_Comment="A B
name	color
Jason	Red
John	Blue
Tom	Green
" CommandEnabled="true" /> | ||
</ScriptAction> | ||
<ScriptAction> | ||
<ScriptCommand xsi:type="ExcelCreateDataSetCommand" CommandID="85ff8a9d-3364-4db9-9594-dc1f883a53cd" CommandName="ExcelCreateDatasetCommand" IsCommented="false" SelectionName="Create Dataset" DefaultPause="0" LineNumber="3" PauseBeforeExeucution="false" CommandEnabled="true" v_DataSetName="vExcelDS" v_FilePath="D:\Dropbox\Environment Folders\Desktop\test2.xlsx" v_SheetName="Sheet1" v_ContainsHeaderRow="Yes" /> | ||
</ScriptAction> | ||
<ScriptAction> | ||
<ScriptCommand xsi:type="CommentCommand" CommandID="edb775f6-57f1-420d-a655-951b1b11ac0b" CommandName="CommentCommand" IsCommented="false" SelectionName="Add Code Comment" DefaultPause="0" LineNumber="4" PauseBeforeExeucution="false" v_Comment="Loop each row" CommandEnabled="true" /> | ||
</ScriptAction> | ||
<ScriptAction> | ||
<ScriptCommand xsi:type="BeginListLoopCommand" CommandID="0d36938d-6529-4e3c-b3ef-9dd938b4e5bb" CommandName="BeginListLoopCommand" IsCommented="false" SelectionName="Loop List" DefaultPause="0" LineNumber="5" PauseBeforeExeucution="false" CommandEnabled="true" v_LoopParameter="vExcelDS" /> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="CommentCommand" CommandID="820b8929-4c66-4e33-8656-c90604ce5476" CommandName="CommentCommand" IsCommented="false" SelectionName="Add Code Comment" DefaultPause="0" LineNumber="6" PauseBeforeExeucution="false" v_Comment="Calling by {datasetName} will return array. This can additionally be parsed by "Parse Json Array" command." CommandEnabled="true" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="MessageBoxCommand" CommandID="f3019daa-775b-4d00-85c8-f7c801b75596" CommandName="MessageBoxCommand" IsCommented="false" SelectionName="Show Message" DefaultPause="0" LineNumber="7" PauseBeforeExeucution="false" CommandEnabled="true" v_Message="{vExcelDS}" v_AutoCloseAfter="0" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="CommentCommand" CommandID="0e74779c-34a7-4677-a5ce-d6038e75dde2" CommandName="CommentCommand" IsCommented="false" SelectionName="Add Code Comment" DefaultPause="0" LineNumber="8" PauseBeforeExeucution="false" v_Comment="Items can be pulled by column index" CommandEnabled="true" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="MessageBoxCommand" CommandID="c5445d7e-772f-4906-8335-c1b6678889fc" CommandName="MessageBoxCommand" IsCommented="false" SelectionName="Show Message" DefaultPause="0" LineNumber="9" PauseBeforeExeucution="false" CommandEnabled="true" v_Message="{vExcelDS.0}" v_AutoCloseAfter="0" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="CommentCommand" CommandID="9d10da57-5f39-41dc-9499-bafc58e93534" CommandName="CommentCommand" IsCommented="false" SelectionName="Add Code Comment" DefaultPause="0" LineNumber="10" PauseBeforeExeucution="false" v_Comment="Items can be pulled by column name (If Header = Yes)" CommandEnabled="true" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="MessageBoxCommand" CommandID="5c7cab75-cfd0-496f-88d3-6e6fadd1a916" CommandName="MessageBoxCommand" IsCommented="false" SelectionName="Show Message" DefaultPause="0" LineNumber="11" PauseBeforeExeucution="false" CommandEnabled="true" v_Message="{vExcelDS.Name}" v_AutoCloseAfter="0" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="CommentCommand" CommandID="dc649501-79b8-4b9f-b552-f21871c7838a" CommandName="CommentCommand" IsCommented="false" SelectionName="Add Code Comment" DefaultPause="0" LineNumber="12" PauseBeforeExeucution="false" v_Comment="Items can be pulled by column index (second column index)" CommandEnabled="true" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="MessageBoxCommand" CommandID="0f54aef0-59ad-4690-b8db-1034640b3308" CommandName="MessageBoxCommand" IsCommented="false" SelectionName="Show Message" DefaultPause="0" LineNumber="13" PauseBeforeExeucution="false" CommandEnabled="true" v_Message="{vExcelDS.1}" v_AutoCloseAfter="0" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="CommentCommand" CommandID="8ec67541-7fb1-4a63-8fb7-07c6d4f3510a" CommandName="CommentCommand" IsCommented="false" SelectionName="Add Code Comment" DefaultPause="0" LineNumber="14" PauseBeforeExeucution="false" v_Comment="Items can be pulled by column name (If Header = Yes)" CommandEnabled="true" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="MessageBoxCommand" CommandID="4f888d9b-9fad-4399-857e-039c65010281" CommandName="MessageBoxCommand" IsCommented="false" SelectionName="Show Message" DefaultPause="0" LineNumber="15" PauseBeforeExeucution="false" CommandEnabled="true" v_Message="{vExcelDS.Color}" v_AutoCloseAfter="0" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="MessageBoxCommand" CommandID="c84ccce3-ccec-4d2c-b6f3-f357bdacb5be" CommandName="MessageBoxCommand" IsCommented="false" SelectionName="Show Message" DefaultPause="0" LineNumber="16" PauseBeforeExeucution="false" CommandEnabled="true" v_Message="{vExcelDS =>$.[0]}" v_AutoCloseAfter="0" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="CommentCommand" CommandID="e63dfa71-a242-4361-a139-a959e4476e76" CommandName="CommentCommand" IsCommented="false" SelectionName="Add Code Comment" DefaultPause="0" LineNumber="17" PauseBeforeExeucution="false" v_Comment="Items in this section will run within the loop" CommandEnabled="true" /> | ||
</AdditionalScriptCommands> | ||
<AdditionalScriptCommands> | ||
<ScriptCommand xsi:type="EndLoopCommand" CommandID="3b8469d3-894d-4cb4-af78-bb30111dbc00" CommandName="EndLoopCommand" IsCommented="false" SelectionName="End Loop" DefaultPause="0" LineNumber="18" PauseBeforeExeucution="false" CommandEnabled="true" /> | ||
</AdditionalScriptCommands> | ||
</ScriptAction> | ||
</Commands> | ||
<Variables /> | ||
</Script> |