for row in allRows: if count < 15: tab1Col1Txt.text = tab1Col1Txt.text + row.getValue("DATE") +"\n" tab1Col2Txt.text = tab1Col2Txt.text + row.getValue("CHANGE") + "\n" tab1Col3Txt.text = tab1Col3Txt.text + row.getValue("MADE_BY") + "\n" if count >= 15 and count < 30: tab2Col1Txt.text = tab2Col1Txt.text + row.getValue("DATE") + "\n" tab2Col2Txt.text = tab2Col2Txt.text + row.getValue("CHANGE") + "\n" tab2Col3Txt.text = tab2Col3Txt.text + row.getValue("MADE_BY") + "\n" if count >= 30 and count < 45: tab3Col1Txt.text = tab3Col1Txt.text + row.getValue("DATE") + "\n" tab3Col2Txt.text = tab3Col2Txt.text + row.getValue("CHANGE") + "\n" tab3Col3Txt.text = tab3Col3Txt.text + row.getValue("MADE_BY") + "\n"
Not easily. It can be done with arcpy.mapping but it would require that you author a table outline in ArcMap using line graphics. Then you would populate dynamic text to fill the columns in the table. I'm working on getting a sample out on the resource center. Once I get data permissions, I'll put it up as soon as I can.Attached is a static table graphic (of grouped line elements). There are actually 3 tables, each with 3 columns. I have a total of 3 text elements, one for each column in each table. I read the rows from a GDB table and dynamically populate the text element with line breaks (to create the rows). I can fit up to 15 rows of data onto each table. If there are more than 15 rows, I populate the next table, etc.Here is the code that populates the table:for row in allRows: if count < 15: tab1Col1Txt.text = tab1Col1Txt.text + row.getValue("DATE") +"\n" tab1Col2Txt.text = tab1Col2Txt.text + row.getValue("CHANGE") + "\n" tab1Col3Txt.text = tab1Col3Txt.text + row.getValue("MADE_BY") + "\n" if count >= 15 and count < 30: tab2Col1Txt.text = tab2Col1Txt.text + row.getValue("DATE") + "\n" tab2Col2Txt.text = tab2Col2Txt.text + row.getValue("CHANGE") + "\n" tab2Col3Txt.text = tab2Col3Txt.text + row.getValue("MADE_BY") + "\n" if count >= 30 and count < 45: tab3Col1Txt.text = tab3Col1Txt.text + row.getValue("DATE") + "\n" tab3Col2Txt.text = tab3Col2Txt.text + row.getValue("CHANGE") + "\n" tab3Col3Txt.text = tab3Col3Txt.text + row.getValue("MADE_BY") + "\n"Jeff
Hi Karyn,Do you have access to the Production Mapping extension? There is a dynamic table called the Graphic Table Element that is part of this extension that works well in conjunction with data driven pages. It makes it possible to include a table on your map layout that updates based on the content of the current page extent.David
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.