Getting Info From Text Fields

Hi All,

I need some help with the getting info from text fields.

I am using the backend-service Kinvey. I’ve been in constant contact with their Senior Engineer.

I need to take the info from the text fields (username, password) and send it to the server to allow login for the user.

I don’t know how to do this and I can’t find it anywhere and I was hoping someone can help me with this :slight_smile:

Thanks!
-Landon
[import]uid: 111492 topic_id: 29115 reply_id: 329115[/import]

Are you sending it via REST or SOAP? How are you planning on parsing the return data? Getting the text from a text field is as easy as textField.text. [import]uid: 58885 topic_id: 29115 reply_id: 117119[/import]

Good questions chevol.

This works for me…

PasswordField = native.newTextField( 0, 0, 340, 24 )

PasswordField.text is the output and is a string I believe, “MySuperSecretPassword” for example and can be viewed in a print statement like this I think…

print("PasswordField.text == ", PasswordField.text )

Nail [import]uid: 106779 topic_id: 29115 reply_id: 117131[/import]

Hi Chevol,

I’m using REST, I am using a service called Kinvey. You could use this URL where I got the LUA file from. It’s the two files called kinvey.lua and kinvey.txt.

https://github.com/KosiDossApps/gideros_restful_apis/tree/master/kinvey

That may help you answer my question.

Hi Nail,

Thanks for the response also. You may want to look at that website and see what it says and that may help too!

Also, if you guys can, can you show me how I would implememnt these APIs and Class to my app.

ex. local kinvey = require("kinvey")

I think that may be it.

Thanks!

-Landon [import]uid: 111492 topic_id: 29115 reply_id: 117337[/import]