Data Write Local

This function block allows you to write data into a separate local storage, which can be referenced by other blocks in the flow. This is beneficial for scenarios that require data retention across multiple iterations of processing.

πŸ“₯ Inputs

Generic This input accepts any type of data that you want to store for future reference.

πŸ“€ Outputs

This function block does not produce any outputs.

πŸ•ΉοΈ Controls

Data Key A text input field where you can enter a unique key to identify the stored data. This key must be a string and will be used to retrieve the stored data later.

🎨 Features

Local Data Storage Allows you to store data locally, facilitating loops and enabling other parts of your application to access this data later.

Customizable Key By specifying a data key, you can manage multiple pieces of data effectively.

πŸ“ Usage Instructions

  1. Connect Input: Link any function block with output data to the input socket.

  2. Enter Data Key: Type a unique string into the Data Key input field to identify the data being stored.

  3. Evaluate the Block: Run the function block, which will save the input data to the specified data key in local storage.

πŸ“Š Evaluation

When executed, this function block stores the input data under the defined key, enabling you to reference it in future processing steps.

πŸ’‘ Tips and Tricks

Unique Data Keys

Always use unique keys for different data types to avoid overwriting stored data. Consider adding prefixes to keys based on their context for better organization.

Accessing Stored Data

When reading back the stored data in other blocks, ensure to use the exact same key you used while writing to retrieve the data correctly.

Combining with Data Retrieval

Pair this function block with the Data Read Local block to create a loop where data is stored and then retrieved in subsequent iterations.

πŸ› οΈ Troubleshooting

Data Not Saving

Ensure that the input data is not None and that you have entered a valid key before running the block. Check to make sure the key is not already in use, as the existing data will be overwritten.

Invalid Key Issues

If you encounter issues with retrieving data later, make sure the data key was input exactly as needed (case-sensitive). A typo in the key will prevent successful data retrieval.

Last updated