Preview mode show data byt publish shows no data - google-app-maker

I have finally connected my default Google SQL database to my AppMaker and I have imported my data. I have built a very simple view and it shows my data. When I preview my app it shows all my data. When I publish it, it does not show any data
I have changed the access mode and publish as user or publish as me, but it has no effect
The preview should be just like the publish, right? what is the point of having a preview that looks different from production. Why is it not showing my data?

I think you have to tell it that both the preview AND the production versions use your custom sql database.

Related

Some database fields are not saved in sqlite flutter, how to check in DB?

Some fields are not loading back in flutter app once I save them and load back.
While saving I am able to see the maps, it is correct only.
So, I want to check that load that sqlite db file.
For that, I kept a text field and ran the emulator.
But, when I ran the same on my mobile, it is not showing the db file path.
Can you explain how to get that file from the mobile(Oneplus 8t)?
in android studio you can see the database by going to : view=>tool windows => database inspector

Entity Framework Core Sqlite data not getting fetched when run in ADMIN mode

I have never seen this strange issue. I have a winform console app which is using Sqlite database and I am using Entity Framework Core Sqlite for data insert, update, etc.
Code that is displaying data is pretty straight forward
List<BL.EndPoint> LiEpS = dbContext.EndPoints.ToList();
When I open my Winform in normal way, it is loading data but when I open as "Run as Administrator" it is not showing any data. See image below
What's strange is that when I open the database in Sqlite Browser, I am amazed to see No data in one of the table then how come when I open it in Normal mode data is coming for that table? See image below
1) I am extremely puzzled. How come data is not showing in Sqlite Browser when I open the table but it is showing when the application is run in Normal way?
2) Is there any chance Entity Framework Sqlite Core saves data but it isn't visible in the sqlite browser?
3) How can the same code show data when run in normal mode but doesn't show data when run as ADMIN?

Google App Maker app not working after deploy

I have built an app with Google App Maker which has a Suggest Box linked to a table by a Query parameter.
The app works correctly in Preview mode, but when I deploy it, the Suggest Box doesn't suggest anything!
I have deployed it once before (without a select box as I recall) and it worked correctly.
I tried redeploying to the original deployment and deploying to a new deployment, same result.
Am I missing some security setting or something?
I am using Drive Tables as my datasource. The kind people at Google sent me a couple of links which helped me to understand what's going on: previewing and publishing your application and running as user or developer.
The crux of the issue is that when you deploy an app and run it as user (default), it doesn't take any Drive Table data with it. If you want to add Drive Table data to the deployed app, you have to do this:
Open App Maker
Go to App Settings
Go to Deployments
Select your most recent deployment and click: “EXPORT DATA”
Make sure you select Preview from the Deployments drop down list.
Click Export
This will export all your Preview data to a new Google Spreadsheet.
Now go to your Drive models in the App Maker and click “IMPORT DATA FROM SHEET”
Here you can choose to import data to your Deployed version.
After completing the import process, you will have all your data in the Deployed app.
All courtesy of Google but I didn't find it in the docs, so it might help someone.
Use the browser console to see if there's an error on the connection, make sure the user has access to the datasource and if you're using cloud SQL check the parameters of cloudSQL in the publication

MeteorJS application not working once deployed on MeteorJS cloud

I deployed my MeteorJS web application (http://caloriecounter.meteor.com/) but for some reason it is not working. User should be able to sign in/sign up and be able to add meals and the meals should be displayed under the date in a table once the meals are added.
It is working locally but I'm not sure why its not working once I deployed it. I've been attempting to look at possible errors and I've looked at the console under developer tools but there seems to be nothing coming up there either.
So I'm a little lost on what is exactly going on. Please advise.
I just think of different data on server vs. your local instance. Maybe your code require certain data to be available.
My suggestion:
Reset your local instance (note: your local database will be cleaned!): $ meteor reset
or just create a local copy with empty database

How to persist SQLite database on Icenium?

I try to build a database on Icenium with SQLite and the db does not persist - why? I think the structure of the database is not built on a physical level. Someone you ever had this problem?
I was able to use SQLite with Icenium on my project successfully. As I see, there is also an example that you can look up:
https://github.com/Icenium/sample-sqlite.git
You might also want to take a look at this post: Creating a Database from a SQL Dump, for using prepopulated SQLite database.
From my experience with Telerik AppBuilder (formerly called Icenium), each time you Run the project in a simulator, the simulator starts from scratch and it keeps no record of what happened in previous runs.
The solution I would use to 'persist' the database on a session basis and test your code is as below.
You must keep the simulator open (so don't close it) to keep database intact
and just press Reload button in simulator window to see how an existing database
would run on a real device every time the app is re-started on a real device,
because within a single Run of the simulator it remembers everything.
Even if you want to make changes to your code or html, leave the simulator open and make your code changes (and Save), and then click on Refresh button in simulator window to bring in your recent code changes without losing the database and its data. If you follow this approach you can easily test how a database would behave on real device where a database is naturally persisted.
So think, in terms of 'simulator session' when developing hybrid apps using Telerik AppBuilder.

Resources