Skip to main content
April 12, 2024
Question

Save Dropdown Values

  • April 12, 2024
  • 9 replies
  • 0 views

Hi All,

I have two columns A and B. Column A is text and column B consists of dropdown values shown below:

Column A Column B
a Dropdown
b Dropdown
c Dropdown
d Dropdown

If there is any change in column B dropdown the corresponding values should be updated in DB on click of button. Can anyone please help me how to achieve this.

    9 replies

    venkatrea696188
    April 12, 2024

    Capture the changes in rule input and trigger a process use write records or write to datastore entity. if you don't want to trigger a process use respective function. I go with process.

    Where you struck ??

    April 12, 2024

    I am using the loop to display data in both the columns, but when I change the dropdown value in any of the row, it changes to previous value. I am not sure how to fix this.

    venkatrea696188
    April 12, 2024

    Can you share the code snippet please , we need to look whether there is any index mismatching

    konduruc733182
    April 12, 2024

    Hello [mention:bb176b67c26c4e89b2173f39160c9f46:e9ed411860ed4f2ba0265705b8793d05] 

    What is the difficulty you are facing in this? 

    karthikk538
    April 12, 2024

    Hi Rahul,

    can you provide more details about the problem you are facing?

    you can achieve the updates in multiple ways but before that want to understand the issue, if you can provide better sample data that would be great.

    mikes0011
    Brainy
    April 12, 2024

    to reiterate what others have requested:

    • please share some sample code
    • enumerate (precisely) what you've already tried to do to accomplish your use case, and exactly where/how it doesn't seem to be working
    prakhars0731
    April 13, 2024

    Will column A will not be effected by B if any changes done in the B

    kalpeshg0081
    April 13, 2024

    Hi [mention:bb176b67c26c4e89b2173f39160c9f46:e9ed411860ed4f2ba0265705b8793d05] ,

    You can refer to the below code to see how you can update the data in the DB on button click. also refer to the below recipe for detailed explanation.

    use-the-write-records-smart-service-function-on-an-interface

    use-the-write-to-data-store-entity-smart-service-function-on-an-interface