You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want using SpreadsheetView to show data, from a json, in a grid but I don't know how to show them because with this pod it is necessary to invoke an array for each column. I would like to order this data from my json in the corresponding columns and also when touching a cell in a row I was taken to a view to show the related data.
The best way to do this is reorganize your data. First create a 2D Array and lay your data like you would in a CSV File.
Fecha
Sucursal
Suc
Venta_Total
N_Folios
Piezas
PzaxTicket
TicketPromedio
11/17/22
SCALPERS PUEBLA
4
xxxxxx.xxxxxxxxx
12
xx.000
x.x
xxxx.x
After doing so create a table with the dimensions of your height and width of your data that is now a 2D Array and making it viewable to users or etc..
I want using SpreadsheetView to show data, from a json, in a grid but I don't know how to show them because with this pod it is necessary to invoke an array for each column. I would like to order this data from my json in the corresponding columns and also when touching a cell in a row I was taken to a view to show the related data.
Attached the code of what I have done.
The view i use to display the data
The model to download the json
`import UIKit
import Foundation
protocol ConsultaModeloProtocol: AnyObject {
func itemConsulta (LaConsulta: [DetallesConsulta])
}
var fechaPresente: String = ""
var fechaPasada: String = ""
let elToken : String = UserDefaults.standard.string(forKey: "token")!
let helper = Helper()
class ConsultaModelo: NSObject {
}
`
The details
The json response:
Specifications
The text was updated successfully, but these errors were encountered: