PricingBlog

Updating records after calling API

  • xoracio-1210191311995404320

    Goran

    1 year ago

    Hi, I need help here. After calling an API to retrieve records in portfolio DB, I would like to update the current_price value. I get the current value from another API. How can I change current_price retrieved fro DB with the new value?

    After that I call a component similar to the one Andreas has shown in Day 5: Learn Toddle in 7 days, where I want to show the the updated price and not the one retrieved from the DB.
    1210191312540799006-IMG_1101.png
  • lucasg-1210223257719017532

    Lucas G

    1 year ago

    Assign the price to a variable and use that within your app
  • Just be sure to send it back to your DB so the changes are reflected there
    1
  • Via another API call