List files
Last updated
Was this helpful?
Was this helpful?
title: List Monthly Invoices
description: List all monthly invoices
type: jig.list
icon: contact
header:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
source:
uri: https://builder.jigx.com/assets/images/header.jpg
# Connection to OneDrive files in myfiles directory
onFocus:
type: action.sync-entities
options:
provider: DATA_PROVIDER_ONEDRIVE
entities:
- entity: myfiles
data:
tokenType: jigx.graph.oauth
# Hold the OneDrive file details on local device
datasources:
file-data-myfiles:
type: datasource.sqlite
options:
provider: DATA_PROVIDER_LOCAL
entities:
- myfiles
query: SELECT id, '$.name' as name FROM [myfiles] ORDER BY '$.name' DESC
data: =@ctx.datasources.file-data-myfiles
item:
type: component.list-item
options:
leftElement:
element: avatar
text: OD
title: =@ctx.current.item.name
actions:
- children:
- type: action.go-back
options:
title: previous