Mark rows with text box

Hi, 

I'm trying to create a textbox button that marks the currently selected rows with specific text input through a TextBox button. 

The script so far looks like this. However, the selection of marked rows through markings is not working. 

Could anyone help?

Thanks!

 

 

#Marked rows

markedRowSelection = Document.ActiveMarkingSelectionReference.GetSelection(Document.ActiveDataTableReference)

 

#Comment

comment= Document.Data.Properties.GetProperty(DataPropertyClass.Document,"CommentInput").Value

 

#Go over all the selected rows to insert the comment

for row in DataTableSelection.GetRows(markedRowSelection.AsIndexSet()):

               Document.Data.Properties.GetProperty(DataPropertyClass.Document,"Col3Expr").Value=out

Login