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
Copy file name to clipboardExpand all lines: docs/ff-concepts/file-handling/download-file.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,13 +44,13 @@ The **Download File** action allows you to enable users to download or save file
44
44
45
45
:::
46
46
47
-
## Add Download File [Action]
47
+
## Download File [Action]
48
48
49
-
To add a download file action, select the **Widget** (e.g., button or any interactive widget) where you want users to initiate the file download and set the **Source** to one of the following.
49
+
To add a Download File action, select the **Widget** (e.g., button or any interactive widget) where you want users to initiate the file download and set the **Source** to one of the following.
50
50
51
51
-**From URL**: Use this option for downloading files that are accessible through a direct link and specify the URL of the file that should be downloaded.
52
52
-**From File (Bytes)**: Use this option when the file is uploaded to the device using the [Local Upload (Widget State)](upload-data.md#local-upload-widget-state). You can access the file via ***Widget State > Uploaded Local File***.
53
53
54
54
Optionally, you can specify a **Filename** to be used when the file is downloaded.
To ensure that your Android release will authenticate to Google, make sure to use Google Play Console's SHA keys - see how to [**Get SHA keys for release mode**](auth-initial-setup.md#getting-sha-keys-for-release-mode).
1. Ensure you have **Query Collection** or **Document from Reference** added on a widget with **Single Time Query** disabled.
265
-
2. Now select the widget, head over to **Actions**, and click **+ Add Action**.
266
-
3. Select the **On Data Change** tab. That means actions added under this will be called whenever the data changes.
267
-
4. Now, you can
268
-
[add any Action](../../../resources/control-flow/functions/action-flow-editor.md#adding-an-action-example)
269
-
here.
264
+
1. Ensure you have added a **Query Collection** or **Document from Reference** on a widget with **Single Time Query** disabled.
265
+
2. Now, on the widget with **Query Collection** or **Document from Reference**, open the **Action Flow Editor** and set **On Data Change** as the [Action Trigger](../../../resources/control-flow/functions/action-triggers.md). This ensures that any actions you add will be triggered whenever the data is updated, added, or deleted.
266
+
3. You can now [add any action](../../../resources/control-flow/functions/action-flow-editor.md#adding-an-action-example) you want to perform, such as showing a notification, refreshing the UI, or fetching related data.
270
267
271
268
:::info
272
-
* Actions will be triggered whenever the data is added, updated, or deleted.
273
-
* If you are adding this on ListView, ensure you disable the infinite scroll.
269
+
If you are using this trigger on a ListView, make sure to **disable** the **Infinite Scroll**.
Copy file name to clipboardExpand all lines: docs/ff-integrations/database/supabase/database-actions.md
+47-1Lines changed: 47 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,17 @@ Let's see how to filter the Supabase table to display only desired items:
174
174
- Find the **Value** property and set it to an appropriate value and click Confirm.
175
175
176
176
:::tip
177
-
You could choose a Filter relation based on your requirements. For example, to show only completed assignments, set the Field Name to the column that holds completed status, e.g., is_done, set the Relation to Equal To, and set the Value to True. Here's another example. For showing only users older than 30, create a column called Age, set the Relation to Greater Than, and set the Value to 30.
177
+
You could choose a filter relation based on your requirements. For example:
178
+
179
+
-**Equal To**: To show only completed assignments, set the **Field Name** to the column that holds the completion status (e.g., **is_done**), set the **Relation** to **Equal To**, and set the **Value** to **True**.
180
+
-**Greater Than**: To show only users older than 30, set the **Field Name** to the **age** column, set the **Relation** to **Greater Than**, and set the **Value** to 30.
181
+
-**Like**: For filtering addresses with zip codes starting with '35,' set the **Field Name** to the **zip_code** column, set the **Relation** to **LIKE**, and set the **Value** to **35%**. In the value field, you use the following wildcards to perform flexible pattern matching to filter your data effectively.
182
+
-**Percent (`%`) Wildcard**: Represents zero, one, or multiple characters.
183
+
- Example: `'A%'` matches any string starting with `'A'` (e.g., `'Apple'`, `'Apex'`).
Additional Note: Currently, you can only add "and" conditions to Supabase query filters. If you want to add an "or" filter like "status == 5 or status == 8", you can consider logic to apply "status in (5,8)" or any other logic. Fully customizable using API calls or custom actions.
205
215
:::
206
216
217
+
## Trigger Action On Data Change
207
218
219
+
Sometimes, you may want to trigger an action whenever data changes in a Supabase table. For instance, in an ecommerce app, you might want to notify users on the orders page when the status of their order is updated.
208
220
221
+
To respond to data changes in a Supabase table:
209
222
223
+
1. Ensure you have added a **Supabase Query** to a widget (e.g., a ListView) with **Single Time Query** disabled to enable real-time updates.
224
+
2. On the widget with the **Supabase Query**, open the **Action Flow Editor** and set **On Data Change** as the [Action Trigger](../../../resources/control-flow/functions/action-triggers.md). This ensures that any actions you add will be triggered whenever the data is updated, added, or deleted.
225
+
3. You can now [add any action](../../../resources/control-flow/functions/action-flow-editor.md#adding-an-action-example) you want to perform, such as showing a notification, refreshing the UI, or fetching related data.
226
+
227
+
:::info
228
+
If you are using this trigger on a ListView, make sure to **disable** the **Infinite Scroll**.
229
+
:::
230
+
231
+
<div style={{
232
+
position: 'relative',
233
+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
0 commit comments