FireBase adding data to tables manually - ios

I have 3 tables that I want to populate in my iOS application looks like the following:
What I want to do is find a way to manually populate the last two tables myself, so that when a user comes in and registers (and inputs the ipconfigcode) I will be able to look up the two tables I manually entered. Is this possible? If so could you point me in the right direction or explain how to do so?
That would be a ton of help!! Thanks in advance!!

Related

Post on a different page in ruby on rails

I have been trying to solve a problem for some time in ruby on rails, but I haven't been able to achieve it and I can't seem to find a solution online (it must be easy but I am not sure what is the write thing to search for)
So, in my web application, I have a CURD table and I use modal to create new items in there:
Image 1
Image 2
This is working perfectly fine. What I would like to do is that when this is created I'd like to post in a different page that " ABC have been created by X User"
In my case that would be the chatbox container:
Image 3
So in my case, the green box is where I would like to say of what has been created and who has created it. I know that it is not a complex problem but I just can't seem to find the solution and I have been trying this for days.
Would really appreciate your help. Please let me know if you don't understand the problem and I can elaborate.
Thanks in advance.
Kind Regards,
Usman
You can create a separate model Notification (or similar name), and use an after_create hook in your original model to automatically create an instance of Notification. The Notification could store the information you want to display as attributes. From there, you'd have to figure out how to display the notification in the correct place on the 3rd page. One approach would be to query all your posts and notifications and sort them by created_at. There's other ways, it's up to you.
I get what you're saying.. but I am a little confused on the first part. So I have a model called Solr that has all the records associated with its User. What do I put in the after_create hook method to display records according to the timestamp in my Chat Box/ Events Log? Do you have an example of a similar implementation?
PS - Why do you say that I need to create a new model why can't I use the same model?
Thanks.

Can my forms' questions be modified automatically according to previous users answers?

I would like to create a Google forms that will help me to track problems at work. Employees would fill the form if they experience any problem at a specific station. I do not want problems to be reported more than once.
So let's say employee 1 fill the form to tell me there is a problem at station 4 and the next day employee 2 realises the same problem at station 4. I would like him to see within the Google Forms that the problem has already been submitted.
Is there any way to do that?
I finally decided to create a form that sends the results to a spreadsheet. I embedded both the form and the spreadsheet on a website, so people can see what's been submitted already. Not the ideal solution, but it'll work just fine. Thank you for your help!

Creating you own database with Parse for an iOS app in Swift

I need to know if I can use Parse for what i need. Let me give you some context. I am new to coding for iOS in Swift. I am creating an app, and a big part of it is displaying info to the user depending on what country they select.
So at the start of the app, they will select a country. I have used Parse a little bit through an online course, so I know how to signup and create users etc.
What i want to know if i can do?
Can i use Parse to create my own database? So have a Class called country_data, and then in that class, have all the countries with info about them. As an example of what i mean, see the table below:
Then, in the app, i can check that if the user selects 'Spain' for example, I can display all the Info for Spain.
Everything i've done in Parse so far had been about sending info to Parse that Ive created from the code in Xcode. But i need to know if i can go into my app in Parse and create this database myself.
Is this possible and is it the right way to do what i'm looking for. Any suggestions welcome, and thanks! Please ask questions if you need me to explain more.
Nick
Good news OP,
(1) yes Parse is absolutely perfect for this.
Parse is now at http://back4app.com
Here...
It literally took me less time to do that, than it took to answer your question!
It's almost unbelievable to understand how much time "BAAS" services save, in the new "BAAS" era.
(2) 196 countries. You should be OK :) Anything up to a few million countries will work fine. After that Parse will get a little slow on searches.
(3) "But I need to know if i can go into my app in Parse and create this database myself."
Yes, using the internet and a computer,
just go to back4app.com, log in, and click on your project. Click on "Core". (Parse software also offers features like Analytics, etc. For the database system, just click on "Core".)
Notice the button "Add Class", click that and type in "Country". Add a column called "name" which is a "String".
Make another new class "City". Again make a "String" column "name", and also make a column that is a "Pointer" to "Country".
You're completely done.
It is far quicker than me typing it here, heh

Sending PFUsers images from Parse

This is the last thing I need to develop my client based app but have seriously hit a hard rock.
I am trying to send Users images directly from Parse and have a handful of images displayed to them. What is the best way to go about this? I already have a User Login & Registration completely set up. I also have a UIViewController filed as ConceptPage and a PFImageView filed as Concept1.
Ideally I would like to have these images stored in the "User" Class by adding "File" Columns. I've already went ahead and made one file column called "concept1"
Any help would be greatly appreciated at this point considering I'm now 2 weeks in of research on this topic.

google-fusion-table add column to view

My situation is this:
I have one master fusion table with all data about all clients (with permissions only to me).
I created another table that will have limited info (with permission to my team)
I decided I need to collect another piece of information. I CAN add a column to the master table, but I can't find a way to now select the column for the limited views. The only option I can see is delete the very elaborate limited view, and re-do it from the beginning.
There has to be a better way! What am I missing?
Thanks :)
I think at the moment this can not be done, because it's not possible to change the definition of a view after it has been created. This would be a nice feature, though. You can request it on the project site ;)
All you can do now is create a new view. What exactly is "elaborate" about the current view? It shouldn't be too hard to "migrate" to a new one.

Resources