Table widget, update error


When i update a value, the table displays the previous value.
Example code:

byte test_count = 0;

void build_param_table() {
  Blynk.virtualWrite(V15, "clr");
  Blynk.virtualWrite(V15, "add", 0, "Log from Arduino", 0);
  Blynk.virtualWrite(V15, "add", 1, "Log from GSM", "NULL" );
  Blynk.virtualWrite(V15, "add", 2, "Call test to N1", "READY" );

  switch (param[1].asInt() ) {
    case 0:// Log from Arduino
      Blynk.virtualWrite (V15, "update", 0, "Log from Arduino", test_count); 
      Blynk.virtualWrite (V17,  test_count);

andorid 5.0
blynk app 2.14.5
cloud server

@titer Hello. please try again. We just did new deploy.

@Dmitriy, without changes :joy: problem is reproduced

Hm… Let me check.

@Dmitriy, When I select another line - the value of the incorrect string is changed to the correct one

@titer yeah. thanks, seems like some Android view update issue :slight_smile:.

@Dmitriy, Hello. Starting from June 20, ESP8266 goes into the bootloop when trying to execute the command to add an entry to the table.

void build_param_table() {
  Blynk.virtualWrite(V15, "clr");
  Blynk.virtualWrite(V15, "add", 0, F("Arduino log"), int2text(show_arduino_log));
  //Blynk.virtualWrite(V15, "add", 1, F("GSM log"), int2text(show_gsm_log) );
  //Blynk.virtualWrite(V15, "add", 2, F("Call"), "TEST" );
  //Blynk.virtualWrite(V15, "add", 3, F("SMS"), "TEST" );

Upd: link to bug

Thanks, it will be fixed in the next release. I guess it would be released at the beginning of the next week.

Thanks, I downloaded the update (2.14.6).
But, when I choose one of the lines with the command:
Blynk.virtualWrite (V15, "pick", 1);
Previously selected rows (green) still remain green.

So it’s planned?
Which command can I remove the green font from the string?

@titer seems like another issue. We will check. Thanks for reporting!

I’m trying to use Table widget to store timestamps. Writing of the timestamps is triggered by events on Wemos h/w. When the table index is less than 8 I use Blynk.virtualWrite(…,“add”,…) call. Once the first 8 slots are full, I reset the index and start overwriting the 0th entry in the table using Blynk.virtualWrite(…,“update”, …) call. It works OK as long as the Blynk on my iPhone is active.
But when my iPhone eventually goes to sleep, the events are not recorded in the table. Exiting the Blynk app and starting again helps a bit (entries are refreshed), but some are missing or out of order and index has wrong value.
Are these still know issues with the Table widget?

Hello. No. Could you please provide more details? Your code. What is correct table, what is wrong table, etc.

I found a bug in my code handling the index into the table. The table widget behaves correctly now.

1 Like

I’m happy to hear that :wink:

1 Like