from Spotfire.Dxp.Data import DataValueCursor
myLatCursor = DataValueCursor.CreateFormatted(Document.Data.Tables["IL_GetStatus"].Columns["Project_ID"])
markedRows = Document.Data.Markings["StatusReportMarking"].GetSelection(Document.Data.Tables["IL_GetStatus"]).AsIndexSet()
for row in Document.Data.Tables["IL_GetStatus"].GetRows(markedRows, myLatCursor):
Document.Properties['JobID'] = myLatCursor.CurrentValue
Document.ActivePageReference = Document.Pages[2]
myLatCursor = DataValueCursor.CreateFormatted(Document.Data.Tables["IL_GetStatus"].Columns["Project_ID"])
markedRows = Document.Data.Markings["StatusReportMarking"].GetSelection(Document.Data.Tables["IL_GetStatus"]).AsIndexSet()
for row in Document.Data.Tables["IL_GetStatus"].GetRows(markedRows, myLatCursor):
Document.Properties['JobID'] = myLatCursor.CurrentValue
Document.ActivePageReference = Document.Pages[2]