You can check the existing thread:
RE: From Excel file to Selection List
Or you can simply copy the excel cells which contains the attributes then Paste as Macro (Ctrl + M) in the Command line
import 'GridControl'
handle any
endhandle
using namespace 'Aveva.Pdms.Presentation'
!netDataSource = object NETDATASOURCE('Excel Data', 'C:\Temp\Source-Data.xls')
!netGridControl = object NETGRIDCONTROL()
!netGridControl.bindtodatasource(!netDataSource)
-- Get all grid column header titles
!gridColDatas = !netGridControl.getColumns()
-- Get All Grid Row Datas
!gridRowDatas = !netGridControl.getRows()
-- Query column header titles
q var !gridColDatas
-- Loop through all row-column contents
do !rowData values !gridRowDatas
q var !rowData
enddo
import 'GridControl'
handle any
endhandle
using namespace 'Aveva.Pdms.Presentation'
!netDataSource = object NETDATASOURCE('Excel Data', 'C:\Temp\Source-Data.xls')
!netGridControl = object NETGRIDCONTROL()
!netGridControl.bindtodatasource(!netDataSource)
-- Get all grid column header titles
!gridColDatas = !netGridControl.getColumns()
-- Get All Grid Row Datas
!gridRowDatas = !netGridControl.getRows()
-- Query column header titles
q var !gridColDatas
-- Loop through all row-column contents
do !rowData values !gridRowDatas
q var !rowData
enddo
How to append data into existing excel, I have 3 columns.
and is there any way to read the last cell value of a column of excel .