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
You can also set fields and call methods of your custom classes directly within an Action Flow. This is useful when you want to update data or trigger custom logic as part of your app's behavior.
198
-
199
-
#### Set Field [Action]
195
+
### Set Field [Action]
200
196
201
197
Use the **Set Field** action to update a specific property of a custom classinstance. For example, you can set `order.status = 'shipped'` when a user confirms an order, allowing the UI to reflect the change immediately.
202
198
@@ -226,7 +222,7 @@ Use the **Set Field** action to update a specific property of a custom class ins
226
222
</div>
227
223
<p></p>
228
224
229
-
#### Call Method [Action]
225
+
### Call Method [Action]
230
226
231
227
Use the **Call Method** action to invoke a method defined in your custom class. For instance, if your `Comment`classhas a `markHelpful()` method, you can trigger it when a user taps a “Helpful” button to record the interaction.
232
228
@@ -317,11 +313,7 @@ You can access the static class data and methods directly via the ****Set from V
You can interact with static classes directly in an Action Flow using both the **Set Field** and **Call Method** actions. Static methods and fields belong to the class itself, not to a specific instance, which makes them perfect for utilities, configuration helpers, or global logic.
323
-
324
-
#### Set Static Field [Action]
316
+
### Set Static Field [Action]
325
317
326
318
Use the **Set Static Field** action to update a static field on a custom class. For example, if you have a class`MathHelper`with a static field `amount`, you can set it using an input value when a user enters a price. This allows you to store that value globally and use it across different calculations.
327
319
@@ -352,7 +344,7 @@ Use the **Set Static Field** action to update a static field on a custom class.
352
344
</div>
353
345
<p></p>
354
346
355
-
#### Call Static Method [Action]
347
+
### Call Static Method [Action]
356
348
357
349
Use the **Call Static Method** action to run a static method of your class. For instance, you can call `Logger.logEvent('user_login')` from an analytics helper classwhen a login action is triggered, without needing to create an instance of the class.
0 commit comments