Assign data to datatable column
Function: Assign data to datatable column
This action allows you to update a specific cell within a Datatable component by providing the Datatable itself, the unique identifier (code) of the row, the unique identifier (code) of the column, and the new value you wish to place in that cell. It's perfect for dynamically updating information displayed in your tables.
Input
- Datatable (PART): The visual Datatable component on your page where you want to add or update data. You select this directly from your application's UI elements.
- Column (STRING): The unique code or identifier of the column within the Datatable where the data should be placed. This code helps the system find the correct column.
- Row (STRING): The unique code or identifier of the row within the Datatable that contains the cell you want to update. This code helps the system find the correct row.
- Value (STRING): The actual data (text) you want to insert into the specified column and row. This will be the new content of that specific cell.
Output
This action does not produce a direct output that can be used in subsequent steps. Its primary effect is to modify the content of the specified Datatable directly, making the changes visible in your application.
Execution Flow
Real-Life Examples
-
Updating a Product Price in a Catalog: Imagine you have a product catalog displayed in a Datatable. When a product's price changes, you can use this action to update it.
- Inputs:
- Datatable:
ProductCatalogTable(your Datatable component) - Column:
Price(the unique code for your price column) - Row:
PROD-001(the unique code for the product you want to update) - Value:
49.99
- Datatable:
- Result: The price for product
PROD-001in theProductCatalogTablewill be updated to49.99.
- Inputs:
-
Marking a Task as Complete: In a project management application, you might have a Datatable listing all tasks. When a user completes a task, you can update its status.
- Inputs:
- Datatable:
ProjectTasks(your Datatable component displaying tasks) - Column:
Status(the unique code for the task status column) - Row:
TASK-ALPHA(the unique code for the task that was completed) - Value:
Completed
- Datatable:
- Result: The status of task
TASK-ALPHAin theProjectTasksDatatable will change toCompleted.
- Inputs:
-
Adding a Comment to a Customer Feedback Entry: If you're managing customer feedback in a Datatable, an agent might need to add notes to a specific entry.
- Inputs:
- Datatable:
CustomerFeedback(your Datatable component for feedback) - Column:
AgentNotes(the unique code for the agent notes column) - Row:
FEEDBACK-123(the unique code for the specific feedback entry) - Value:
Followed up with customer, issue resolved.
- Datatable:
- Result: The
AgentNotescolumn for feedback entryFEEDBACK-123in theCustomerFeedbackDatatable will now display "Followed up with customer, issue resolved.".
- Inputs: