Search found 17 matches

Go to advanced search

by Mac Strait
Tue Aug 04, 2015 3:02 pm
Forum: Issues
Topic: Passing DatePicker a Date Object
Replies: 3
Views: 309
 
Jump to post

Passing DatePicker a Date Object

Hi Serge, I might not have explained myself properly. I wanted to pass a Date object directly to the datepicker as in: mydate= new Date(); And pass mydate directly - doesn't look like I can do that using .val(mydate). I read on the JQuery website that the setDate(date) method is available for a date...
by Mac Strait
Fri Jul 31, 2015 7:16 pm
Forum: Issues
Topic: Passing DatePicker a Date Object
Replies: 3
Views: 309
 
Jump to post

Passing DatePicker a Date Object

Hi I am trying to display in a DatePIcker UI component a date that I previously saved in local storage. What I was doing was storing it as UTC milliseconds and creating a date object as: var in_date=new Date(stored_UTC); then using date methods to get to a string like dd/mm/yyyy and trying to input ...
by Mac Strait
Thu Jul 16, 2015 4:25 pm
Forum: Issues
Topic: Populating DatePicker Component with UTC timestamp
Replies: 4
Views: 386
 
Jump to post

Populating DatePicker Component with UTC timestamp

Hi, I found it easier just to invoke a javascript service after the mapping and assign the value there. I have a question about variable expansion. I have the following code in my js: var Now = new Date(); Apperyio('CashedOut').val(Now); If I do "Apperyio('CashedOut').val('200'); this displays ...
by Mac Strait
Thu Jul 16, 2015 7:35 am
Forum: Issues
Topic: Populating DatePicker Component with UTC timestamp
Replies: 4
Views: 386
 
Jump to post

Populating DatePicker Component with UTC timestamp

Hi, Thanks that is very useful, I think I will create a new date object using the UTC timestamp. Then I will use the Date.prototype methods to get returned the date in the correct format for the date picker UI component. My question is how do I apply this Javascript in the mapping. Basically I can m...
by Mac Strait
Wed Jul 15, 2015 8:27 pm
Forum: Issues
Topic: Populating DatePicker Component with UTC timestamp
Replies: 4
Views: 386
 
Jump to post

Populating DatePicker Component with UTC timestamp

Hi, I have previously used a datapicker component to store user entered date as a UTC timestamp using javascript for returning the value as a UTC as follows: var tstamp = Date.now(); return tstamp; I would now like to do the reverse, basically take the stored timestamp (integer) from the database an...
by Mac Strait
Mon Jul 06, 2015 6:15 pm
Forum: Issues
Topic: Setting Local Storage variable that is an Array
Replies: 5
Views: 992
 
Jump to post

Setting Local Storage variable that is an Array

Thanks Pavel I will give it a try and get back to you. I have another related query. When object's are successfully created in the cloud mongodb I get the created object Id as a return. Is there such a thing when creating objects in local storage? Basically a unique id for a created object or I need...
by Mac Strait
Sun Jul 05, 2015 12:21 pm
Forum: Issues
Topic: Setting Local Storage variable that is an Array
Replies: 5
Views: 992
 
Jump to post

Setting Local Storage variable that is an Array

Hi I have these items in my model: Session (of type Object) Session_List (An array with objects of type Session) I have the following Storage variables: Current_Session (of type Session) All_Sessions (Of type Session_List ) In my UI pages I use the "Set Storage variable" action to set the ...
by Mac Strait
Thu Jul 02, 2015 8:06 pm
Forum: Issues
Topic: Using the MongoDB as a website backend as well
Replies: 1
Views: 214
 
Jump to post

Using the MongoDB as a website backend as well

Hi, I have a webapp I am building using the Appery.io platform which I love by the way. At the same time I am also building a full website with a set of extended functionality for users. Effectively users use the webapp to enter data, this data is then used in the website to provide a set of much ri...
by Mac Strait
Tue Jun 16, 2015 2:37 pm
Forum: Issues
Topic: How do I populate a database collection with values selected by user in a Select component
Replies: 11
Views: 936
 
Jump to post

How do I populate a database collection with values selected by user in a Select component

Ah I think I just found the problem. The user selection was being mapped to the "Label" not to the "Value". Thanks so much for your help... I just need to play with it for a bit and see. I now have the user selection mapped to both Label and Value, I guess having it mapped to Lab...
by Mac Strait
Tue Jun 16, 2015 2:33 pm
Forum: Issues
Topic: How do I populate a database collection with values selected by user in a Select component
Replies: 11
Views: 936
 
Jump to post

How do I populate a database collection with values selected by user in a Select component

Hi, I used the above JS and it does not populate the database with the value selected by the user from the selection box. I get the string "Value" in the database. This looks like the JS is taking the default value of the Label for the selection UI item. I need it to take the value of the ...

Go to advanced search