Page 1 of 2
Verse
Posted: Thu Dec 19, 2013 4:05 pm
by Ashok
Hello,
I am creating a app in which i am facing a huge problem,
i have a saying in parse DB about 365 sayings each for everyday ..
i need tha app to function in such a way that everyday i want one of the saying to come up into my app just like a thought for the day....
for example for 1 January 2013 i have set "!!!!SAYING1jan2013!!!!" i want this to appear on my label component on 1st January 2013 is this possible to map stuffs like this ??? how can i achieve this? in my DB i have 2 columns
- For Called the Date(it specifies on which day the corresponding saying must be sent it starts from 1st Jan 2014 to 31st Dec 2014)
- For Sayings(which includes a saying for the upcoming days)
Can someone pls help me with this app pls
Verse
Posted: Thu Dec 19, 2013 5:05 pm
by Kateryna Grynko
Hi Ashok,
Sure, you can do this. Take a look at here please: http://docs.appery.io/documentation/u...
Verse
Posted: Fri Dec 20, 2013 2:14 am
by Ashok
Yes thats how we normally map stuffs into Appery....but how can i initiate the mapping in such a way that from the backend DB i want stuffs oly on a particular day as explained i need to validate a where clause in which the device takes the system's date and time validate it with the column having the date in Parse and return the corresponding Thought for the day....This was my probleM.... !!!?? can u pls help me out Katya
Verse
Posted: Fri Dec 20, 2013 4:16 am
by Alena Prykhodko
Firstly, you should create mapping as suggested in Katya's reply and then add code in mapping 'Add JS' https://developer.mozilla.org/en-US/d....
Verse
Posted: Fri Dec 20, 2013 10:24 am
by Ashok
Thank you for your help .....i am facing another problem
https://lh4.ggpht.com/4-cL9cId0ESCsWm...
https://lh4.ggpht.com/x2-lKkV5Oo9a9NN...
in my app i would like to achieve this..... How can i do it?
Verse
Posted: Fri Dec 20, 2013 10:39 am
by Maryna Brodina
Hello! You need PhoneGap plugin, for example https://github.com/EddyVerbruggen/Soc...
Verse
Posted: Fri Dec 20, 2013 10:53 am
by Ashok
Thank you Marya Brodina, but i do not know how to import this plugin into appery.....could u pls help me by guiding me how to do it pls? from which folder of the above i must copy the source and paste it where? pls do guide me
Verse
Posted: Fri Dec 20, 2013 11:00 am
by Maryna Brodina
You can add plugin on Source tab, follow description here https://getsatisfaction.com/apperyio/...
Verse
Posted: Fri Dec 20, 2013 11:24 am
by Ashok
Maryna Brodina, sorry for bothering you guys soo much but i am not able to understand the procedure used this is the plugin i am using :
https://github.com/EddyVerbruggen/Soc...
Can u Pls teach me the procedure way to put the contents of the above link into my app
Verse
Posted: Fri Dec 20, 2013 12:32 pm
by Maryna Brodina
You need this part only https://github.com/EddyVerbruggen/Soc.... There is a detailed description, please try and let us know if you have any specific question.