Hi All,
I need to move the Multiple selected row data from the table component. Currently I'm was able to take single row data from the table.
try:
selectedRow = self.props.selection.selectedRow
system.perspective.print("selectedRow"+ str(selectedRow))
pydata = system.dataset.toPyDataSet(self.props.data)
countWI = 0
if(len(pydata) > 0):
for rows in range(len(pydata)):
if(selectedRow == rows):
Id= pydata[rows]['Id']
system.perspective.print(str(Id))
workorderNo = pydata[rows]['WorkOrderNumber']
self.view.params.Workorder = workorderNo
system.perspective.print(str(workorderNo))
system.perspective.openDock("OrderOP",params = {"Workorder":workorderNo})
break
messageType = 'ResourceAllocation'
payload = {'Id':(Id),'WorkorderNo':str(workorderNo)}
system.perspective.sendMessage(messageType, payload, scope = 'page' )
except:
exc_type, exc_obj,tb = sys.exc_info()
f = tb.tb_frame
lineno = tb.tb_lineno
errorMessage = "Error - Asset_Overview_OnRowclick, Line:" + str(lineno) + ", Err:"+ str(exc_obj)
system.perspective.print("errorMessage: "+str(errorMessage))
#sys.exit()