1
Create Record on client side storage not working on SAP Appgyver Preview app for Android
planned
L
Laurence Klein
App ID: 338575
Build type: preview.
Create Record works on web app preview but not the android SAP Appgyver Preview app.
Every time I try to count the records “undefined” is returned.
Log In
Activity
Newest
Oldest
M
Mari Hirvi
planned
Hi, sorry for the late response! We have identified an issue with data variables not populating correctly on the global canvas, that is the likely cause of this bug.
T
Timo Kapanen
under review
T
Timo Kapanen
Hi Laurence Klein and thanks for your report. I created a simple test app and tried to reproduce this issue but could not succeed. Is there some particular client side data resource which is failing and which page of the app that is used? Would there be a way to navigate to that page somehow in preview? Best Regards, Timo Kapanen
L
Laurence Klein
Timo Kapanen: Hi Timo, thanks for your prompt reply. I believe all the client side (On-device) data resources are failing. Settingsv2 is one of them. The Home page (id page.Page5 - the page that is displayed immediatly after user authentication) contains this data resource, although it also exists on the global canvas as well as the settings page. Thank you for your assistance.
L
Laurence Klein
I discovered this bug is located on the global canvas. I am now also experiencing this bug on the web app preview
M
Mari Hirvi
Laurence Klein: You are trying to Get the Settings record with ID
data.settings[0]
, which fails because settings
is not defined as a data variable on the Global Canvas. Furthermore, check that the logic to get and set the collection type data variable is located right before "Get record" (instead on its own separate logic canvas) to avoid a race condition where the ID is checked for before the collection data variable is populated. If that happens, it will result in undefined for the ID.L
Laurence Klein
Mari Hirvi: Hi Mari, thank you for your assistance. My apologies, I rearranged my logic today and moved my nodes from the global canvas to my Home page (but left copies of my nodes on the global canvas). I should have left it as is so you could arrive at the solution. my apologies.
In trying to arrive at the root cause of this issue myself - create record not working - I created a test data resource and set up logic (on the data variable logic canvas in the global canvas) to count the number of records in the record collection from this test resource (see screenshot below). By doing this test I have discovered that the problem is my data variables on the global canvas are not being populated. The data records are being created; I know because COUNT(outputs["Get record collection"].records) is returning the number of records. However COUNT(data.test1) is returning "undefined".
Why are my data variables on my global canvas not working?
Thank you for your prompt response.
I really appreciate your help :)
