In this way, you can use the datastore component in more areas. It can be used with large forms or in shopping cart applications.
PS: datastore or other similar storage components can be used in the same way.
I hope that will be useful .
@s.alpaslan I have a question. I tried to follow your how to doc “pass an Array to a Server Action…” Should I expect to see the custom formatter created in the steps in the formatter dialog box:
The answer here is no. Any custom client or server side formatters don’t show up in the UI. You have to get into code view to use it.
Also, if you make any server side modules (server action steps), they also don’t show up in the UI. You have to open the server action JSON to configure it. They are shown as “Unknown Action” wherever used.
The answer here is no. Any custom client or server side formatters
don’t show up in the UI. You have to get into code view to use it.
Also, if you make any server side modules (server action steps), they also
don’t show up in the UI. You have to open the server action JSON to
configure it. They are shown as “Unknown Action” wherever used.
Parse is the equivalent of Decode in JS.
Then I used RunJS output in a repeat and all worked perfect!
NOTE: Before this strategy, I was using MultiRecord Form using my DataStore as source of the repeat, but due to more than 600 rows, not all the records were going to the server (bug?).
I am trying to do the same with a product wishlist (containing only product_ids), but have some trouble with it.
I inserted the formatter script on the form page.
My hidden form input field looks like this: <input id="productwishlist" class="form-control" type="hidden" dmx-bind:value="(WishlistStorage.data).stringify()" name="wishlist_products">
WishlistStorage is the wishlist data store, only containing a product_id field.
But I can’t figure out how to use this record output in a repeat to store the product_ids to my database.
When setting the RunJS output as the repeat expression I get this error in the console: core.repeater: repeat is required.
Can you send an example or screenshot of how you used your RunJS output in a repeat to insert the invite values to your database or explain in general how to do this?