

Note that the Count property is for the table element above it in the table schema hierarchy. The limit for each ForLoop is set by the Count property for the table section. The first ForLoop processes the leagues, the second ForLoop processes the divisions, and the third ForLoop processes the players. This process requires three ForLoop components. When it finishes reading the divisions in a league, it repeats the process with the next league. To read a row of player data, the automation must read each player row in a given division and league. This automation reads each row of data from the HTML grid and then launches the Copy Table automation to copy the data to the Excel spreadsheet. To determine the entire range of rows to include in the formula, the VarPlayersTotal variable is used from the Globals automation. A StringUtils component, Format method, is used to format the SUM function as required. By setting a cell to the formula and then retrieving the contents of the cell, the sum of the earnings column can be retrieved. This is accomplished by using the Excel SUM function.

The final part of the automation is to calculate a running tally of the players’ earnings. This process is repeated for the other HTML data cells to be copied to the Excel spreadsheet.Īfter all data for a particular player has been copied, the counter is incremented so the next player record begins on a new row. This result is provided to the Excel component’s SetCellValue method, which requires the cell to be identified by row and column, such as A20 for column A, row 20. The StringUtils Concat method is used to create the result Arownum, where rownum is the value of the counter. For the player name, the A column of the spreadsheet is used. The Index parameters display, and indices for the league, division, and player are supplied to identify the cell.īefore the data can be written to an Excel cell, the cell must be identified by row and column. For example, when the dataCell_Name.Text property is placed on the automation, the parameter is selected to identify the contents. This process yields indices that are passed to the Add Row automation by way of an entry point and are used to pull data from specific cells within the HTML grid. The Add Row automation is called from the Copy Table automation after a particular player row is identified by using the ForLoop process. This automation writes to the Excel spreadsheet: C:\Program Files\OpenSpan\OpenSpan Studio\How To AKPoker Table\AKPoker Table.xls the path that is specified in the Windows form. Otherwise, the Office components do not display in the toolbox.
Universal windows grid patterns install#
Robotic Process Automation Design PatternsĮnsure that when you install Robot Studio, you enable support for Office components.
