Skip to content

Commit 46e6d4c

Browse files
author
Mohammed Bhatti
committed
Added Dictionary Sample
1 parent 5694246 commit 46e6d4c

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Script xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3+
<Commands>
4+
<ScriptAction>
5+
<ScriptCommand xsi:type="LoadDictionaryCommand" CommandID="337810b7-f72d-45e3-9bbf-cc0578308378" CommandName="LoadDictionaryCommand" IsCommented="false" SelectionName="Load Dictionary" DefaultPause="0" LineNumber="1" PauseBeforeExeucution="false" CommandEnabled="true" v_DictionaryName="myDictionary" v_FilePath="C:\Users\MohammedBhatti\source\repos\taskt2\taskt\Sample Scripts\ConfigSample.xlsx" v_SheetName="Sheet1" v_KeyColumn="myKeys" v_ValueColumn="myValues" />
6+
</ScriptAction>
7+
<ScriptAction>
8+
<ScriptCommand xsi:type="GetDictionaryValueCommand" CommandID="f36293c2-0525-46dd-b3c0-57b8e4a76f78" CommandName="GetDictionaryValueCommand" IsCommented="false" SelectionName="Get Value From Dictionary" DefaultPause="0" LineNumber="2" PauseBeforeExeucution="false" CommandEnabled="true" v_OutputVariable="Emails" v_InputData="myDictionary" v_Key="Email" />
9+
</ScriptAction>
10+
<ScriptAction>
11+
<ScriptCommand xsi:type="MessageBoxCommand" CommandID="13564aef-365e-4e1c-9443-485922978cfe" CommandName="MessageBoxCommand" IsCommented="false" SelectionName="Show Message" DefaultPause="0" LineNumber="3" PauseBeforeExeucution="false" CommandEnabled="true" v_Message="Emails" v_AutoCloseAfter="0" />
12+
</ScriptAction>
13+
<ScriptAction>
14+
<ScriptCommand xsi:type="GetDictionaryValueCommand" CommandID="493220a0-63e6-4aca-8224-a9ea4e35df71" CommandName="GetDictionaryValueCommand" IsCommented="false" SelectionName="Get Value From Dictionary" DefaultPause="0" LineNumber="4" PauseBeforeExeucution="false" CommandEnabled="true" v_OutputVariable="Password" v_InputData="myDictionary" v_Key="Password" />
15+
</ScriptAction>
16+
<ScriptAction>
17+
<ScriptCommand xsi:type="MessageBoxCommand" CommandID="c91ff23d-94a9-456f-8b9b-6d8a21f9a63d" CommandName="MessageBoxCommand" IsCommented="false" SelectionName="Show Message" DefaultPause="0" LineNumber="5" PauseBeforeExeucution="false" CommandEnabled="true" v_Message="Password" v_AutoCloseAfter="0" />
18+
</ScriptAction>
19+
<ScriptAction>
20+
<ScriptCommand xsi:type="GetDictionaryValueCommand" CommandID="28267b63-6155-459b-ba05-daf1fd788da2" CommandName="GetDictionaryValueCommand" IsCommented="false" SelectionName="Get Value From Dictionary" DefaultPause="0" LineNumber="6" PauseBeforeExeucution="false" CommandEnabled="true" v_OutputVariable="Website" v_InputData="myDictionary" v_Key="Website" />
21+
</ScriptAction>
22+
<ScriptAction>
23+
<ScriptCommand xsi:type="MessageBoxCommand" CommandID="6e63a40e-de7b-4451-b0a8-87ab9edc3e25" CommandName="MessageBoxCommand" IsCommented="false" SelectionName="Show Message" DefaultPause="0" LineNumber="7" PauseBeforeExeucution="false" CommandEnabled="true" v_Message="Website" v_AutoCloseAfter="0" />
24+
</ScriptAction>
25+
<ScriptAction>
26+
<ScriptCommand xsi:type="AddDictionaryCommand" CommandID="131ac8db-ae20-45a0-8c66-62db81d85339" CommandName="CreateDictionaryCommand" IsCommented="false" SelectionName="Add Dictionary" DefaultPause="0" LineNumber="8" PauseBeforeExeucution="false" CommandEnabled="true" v_DictionaryName="myDictionary">
27+
<v_ColumnNameDataTable>
28+
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
29+
<xs:element name="ColumnNamesDataTable123119.013628">
30+
<xs:complexType>
31+
<xs:sequence>
32+
<xs:element name="Keys" type="xs:string" minOccurs="0" />
33+
<xs:element name="Values" type="xs:string" minOccurs="0" />
34+
</xs:sequence>
35+
</xs:complexType>
36+
</xs:element>
37+
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="ColumnNamesDataTable123119.013628" msdata:UseCurrentLocale="true">
38+
<xs:complexType>
39+
<xs:choice minOccurs="0" maxOccurs="unbounded">
40+
<xs:element ref="ColumnNamesDataTable123119.013628" />
41+
</xs:choice>
42+
</xs:complexType>
43+
</xs:element>
44+
</xs:schema>
45+
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
46+
<DocumentElement>
47+
<ColumnNamesDataTable123119.013628 diffgr:id="ColumnNamesDataTable123119.0136281" msdata:rowOrder="0" diffgr:hasChanges="inserted">
48+
<Keys>Added Key</Keys>
49+
<Values>Added Value</Values>
50+
</ColumnNamesDataTable123119.013628>
51+
</DocumentElement>
52+
</diffgr:diffgram>
53+
</v_ColumnNameDataTable>
54+
</ScriptCommand>
55+
</ScriptAction>
56+
<ScriptAction>
57+
<ScriptCommand xsi:type="GetDictionaryValueCommand" CommandID="71e827d8-dbd2-48e4-a19b-119a3cb1b18d" CommandName="GetDictionaryValueCommand" IsCommented="false" SelectionName="Get Value From Dictionary" DefaultPause="0" LineNumber="9" PauseBeforeExeucution="false" CommandEnabled="true" v_OutputVariable="added" v_InputData="myDictionary" v_Key="Added Key" />
58+
</ScriptAction>
59+
<ScriptAction>
60+
<ScriptCommand xsi:type="MessageBoxCommand" CommandID="5cd62117-c8d9-4e7b-94e2-3a8a9e57bb2c" CommandName="MessageBoxCommand" IsCommented="false" SelectionName="Show Message" DefaultPause="0" LineNumber="10" PauseBeforeExeucution="false" CommandEnabled="true" v_Message="added" v_AutoCloseAfter="0" />
61+
</ScriptAction>
62+
</Commands>
63+
<Variables />
64+
</Script>

0 commit comments

Comments
 (0)