Add Tags with the Tag Builder
11 min
the tag builder allows you to create a table from scratch step 1 create a table in word before you can begin placing tags in the template, you need to know where they will go as in the add tags with the data bin docid\ exquivx9waic86nzoiscl , you will create a table of employees this one will have columns for the employee id, the employee last name, the employee first name, and an additional column, job title use word's standard table tools to create a 4 by 2 table this size is chosen because it gives you one column for each data category in the first row, place the data titles and in the second, place the tags you do not need to know how many rows of data will be output when you run the report; autotag takes care of expanding that for you automatically in the table's first row enter the column headings, and then format the table using word's commands employee id last name first name title step 2 open the tag builder first select the blueprint tab on your window, under the “tags” section there is a small arrow in the lower right corner of the ribbon group that will lead you to the tag builder illustrated below the tag builder is displayed step 3 create a tag in the tag editor, click the tags tab and then select the \<foreach> tag icon step 4 set the tag's properties click the select tab located to the right of the tags tab here is where you will set the characteristics of the tag select what data will be called upon by the \<foreach> tag since you will be creating a table of data from subgroups of the employees data group, that's the group you want to loop through click the employees data group in the data source pane, and drag and drop that group into the select bar second, name the \<foreach>tag, because if you don't, you cannot save it call this tag "employeelist " in the attributes pane, click the var text box, and enter the desired name (employeelist) in the text box step 5 evaluate the data next, ensure that you've chosen the correct set of data to work with click the evaluate button in the evaluate output pane, you see all the data in the group step 6 save the tag click the save tag icon this closes the tag editor and places our first \<foreach> tag in the table employee id last name first name title \<employees> step 7 create an \<out> tag now it's time to place data subgroups into the individual cells click in the id cell after the \<foreach> tag, and click the tag builder icon follow the same general procedure as you did with the \<foreach> tag, with a few changes click the tags tab and click the \<out> tag icon the \<out> tag is the default tag type, so typically this is already done for you click the select tab in the data source pane, click the + sign next to the \<foreach> tag name that you created in step four – in this case, employeelist – to expand it drag the employeeid data subgroup from the employeelist into the select bar be sure to drag and drop the correct employeeid data subgroup, as there are two listed in the data source pane drag and drop the data subgroup from the employeelist, not from the main data source listed below it in the attributes pane, type a descriptive name (such as "id") in the var text box optional step in nickname text box in the attributes pane, type the name of the tag as you would like it to appear in the template if you do not enter a nickname, autotag assigns a default name based on the information in the select bar if you do enter a nickname, we strongly recommend you include angle brackets around the text, so that anyone viewing the template can tell at a glance what is a tag and what is simply text evaluate the data by clicking the evaluate button save the tag step 8 create more tags using the same procedures that you followed in step seven, create \<out> tags for the three remaining cells step 9 close the loop now that we have all our tags placed in the table, you must close the \<foreach> loop click the template just after the table and click the tag builder icon click the tags tab, and click the \<end foreach> tag icon click the save tag icon your template now has all the necessary tags in place employee id last name first name title \<employees>\<employeeid> \<lastname> \<firstname> \<title> \ foreach> step 10 save and run the report save your document template using word's save command then, from the autotag run report menu, click the desired report format icon