(Want to update specific value in) Table Widget

Quick question. Can I somehow just update a specific value in an table ?
e.g. I have table:]

Bedroom Temp 34 deg
Kitchen Temp 32 deg

I just want to check the temperatures in the table without having to clear and re-write the entire table each time.

Nope…

@Eugene

there seems to be an error with table widget on IOS.
I run the below code extract - it works as expected on Android Blynk App but NOT on IOS Blynk App.

Eugene can you pls confirm if there indeed is an error ?


int counter_table = 0;

void check ()
{

  int value;

  switch (counter_table) {
  case 0 :
  table.clear();
  table.addRow (1, "device 1", "A");
  table.addRow (2, "device 2", "B");
  table.addRow (3, "device 3", "C");
  table.addRow (4, "device 4", "D");
  table.addRow (5, "device 5", "E");
  table.addRow (6, "device 6", "F");

 // table.pickRow(1);
  counter_table = 1;
  break;
  case 1 :
  table.pickRow(3);
 table.addRow (1, "device 1", "A");
  table.addRow (2, "device 2", "B");
  table.addRow (3, "device 3", "C1");
  table.addRow (4, "device 4", "D");
  table.addRow (5, "device 5", "E");
  table.addRow (6, "device 6", "F");
  // Blynk.virtualWrite (vPIN_dashboard_table, "pick", 3);
  counter_table = 2;
  break;
  case 2 :
  // table.pickRow (2);
  // table.clear();
  table.pickRow(3);
 table.addRow (1, "device 1", "A");
  table.addRow (2, "device 2", "B");
  table.addRow (3, "device 3", "C2");
  table.addRow (4, "device 4", "D");
  table.addRow (5, "device 5", "E");
  table.addRow (6, "device 6", "F");
  counter_table = 0;
  break;
  }

@mars Because at the moment there is no “update specific row” command, you have to send clear command each time before populating table.

thanks Eugene

sorry not clear on your answer - do you mean IOS Blynk app does not support table.addRow or table.pickRow ? (as it seems to work for Android)

Are there any plans to align with Android so widgets work the same ?

While you are there - what is the timetable for next release on IOS and features :wink:

I’ve just tested table widget and it works fine for me.
Sending addRow with id of the existing row is currently not supported on server and actually will result as a corrupted table with few rows with the same id. Although it looks ok on Android at the time of the command, you’ll see the “true” state of the widget after syncing from server. iOS ignores such input.

Next iOS update will be about creating/previewing standalone apps within Blynk app and expected somewhere next week.

so I will need to use clear in order to update the table for both IOS and Android App in order to ensure table is displayed correctly each time ?

yes

ok - and just one final question.
Is this planned to be fixed ? @Dmitriy (and documented so other don’t spends hours wondering why it doesn’t work as expected ?) :wink:

@mars https://github.com/blynkkk/blynk-library/issues/324