addRow in LocalDB not working

It doesn’t get much simpler than this, but I can’t seem to get the addRow function to work with my LocalDB. Here’s a link to the code. The ADD button doesn’t add the new data.

https://x.thunkable.com/projects/5d8e9ed196390d45707f0795/96d2342b-241c-4a4b-8889-58ac90ef64c9/blocks

What am I doing wrong? Thanks!

1 Like

Hi, @brucemortland7e6c! :wave:


What you were doing wrong is,

image

But, it’s not your fault - :neutral_face:

image


So, try this - :smile:


:arrow_right: Conclusion -

  • The addRow is working, getColumn is not (in your case)
  • getColumn needs text value, not number :sweat_smile:

Hope I helped you! :smile:
Thanks! :blush:

Hi,

getColumn needs text value, not number

I’m on 12.4.1 iOS and Android 8.1 GetColumn with number works well

%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5

2 Likes

I work with column names always, didn’t test this ever :sweat_smile:

Nice!
Thanks, @actech! :blush:

Hmmm, didn’t work for me. I am running IOS 12.4.1

Here’s what happened:

Screen1 Open block Name
AddButton Click bock 1 --------> data displayed

Screen1 Open block 1
AddButton Click bock 1 --------> data displayed

Screen1 Open block Name
AddButton Click bock Name --------> data NOT displayed

In none of the above scenarios does a row get added with “bob” OR it is getting added, and listviewer is not being updated.

So, if you load my app on your device, does it work? With numbers or column titles or both?

I only found one example of someone using addRow in a tutorial and I’m going to try to replicate it right now. I have a feeling this is an IOS problem, but that’s my gut talking. No real evidence (or Android)

Thanks for all the help!

Hi,

You can not add a row because on iOS 12.4.1 row adding block simply does not work. Congratulations to the discovery of a bug!

Whew!

OK, I suppose there is a bit of a relief that is is NOT ME!!

Thanks for the help!

1 Like

Do you guys know if this AddRow in iOS 12.4.1 bug has been resolved? If not yet, is it going to be resolved?

Thanks,
Marco

iOS 12.4.2 - AddRow not work.

@maptheunknown @actech is this while live testing/installing or both?

I was only testing live. I will try again today on both live and downloaded app and let you know the results and blocks I used to test

Thanks, keep us posted!

1 Like

iOS 12.4.2 - AddRow not work only on Live testing. On installing work good.

1 Like

Thanks @maptheunknown and @actech.

I just took a closer look and was able to reproduce this error on my own device.

It seems that @brucemortland7e6c already reported this through our public Github and it’s currently on the to-do list.

I’ll be sure to update this topic as and when I learn more.

Thanks! Please keep us posted. Goodluck!

1 Like