Get Row Data

The actual data of a specific row can be retrieved using getData() method, as shown below. This returns the row in a dictionary format.

The <ROW_INSTANCE> used in the code syntax below is the instance generated in the Row Instance page.

    
copy
<ROW_INSTANCE>.getRow() -> [ String : Any? ]

A sample code snippet is shown below:

    
copy
ZCatalystApp.shared.getDataStoreInstance(tableIdentifier: "1096000000002071").getRow(id: 1096000000002845) {( result ) in
//Replace this with your Table ID and ROW ID
switch result{
case .success ( let row) :
let datas = row.getData()
print(datas)
case .error( let error ) :
print( "Error occurred >>> \( error )" )
}
}

Last Updated 2023-09-14 18:05:46 +0530 +0530

ON THIS PAGE
ACCESS THIS PAGE