Perfect!
Thanks for everything,
Pete
Quick question. How do I get the value of the selected date so that I can store it locally?
You are totally the man! Thank you very much, I can't believe how easy it is to implement stuff like this.
Cheers,
Pete
Hi David,
I am circling back to this now and because I will be using date time pickers a lot in the app I would really like to have an integrated date time picker. It doesn't seem to me that the sample that you made (DateInput2) is adaptable for this purpose so I have gone looking for something similar that could be used. I have run across this bootstrap date/time picker.
I was wondering if you would be able to let me know whether it should work in AB and if so, what I might need to do to modify the DateInput2 sample to use this configuration instead?
Thanks!
Cheers,
Pete
Many thanks! Got it all working.
Pete
Hi David,
I have a scenario where I am taking a note record and putting it into local storage and also calling a rest service at the same time and inserting it into a MySQL database. I want to place an 'Updated' timestamp in both places so that I can compare the records to update the local record based on the remote record if the Updated value is greater in the database than the local version etc...
The problem that I am having is that the format that the Updated timestamp is being saved in local storage is not the same format that I need to submit to the rest service. Here is my insert code:
The local storage 'Updated' format is Sun Apr 21 2019 09:00:57 GMT-0500 (Central Daylight Time) but I need to submit it to the server as 2019-04-21 09:00:57:15
This seems like it should be fairly straight forward but I can't seem to figure out the correct syntax to do this. In a perfect world, I would like to store it locally and in MySql in the format: yyyy-MM-dd hh:mm:ss so that I can easily compare them.
Any help would be greatly appreciated!
Pete
Thanks David,
I hadn't really thought to utilize the Report field, it was only there for testing purposes but your approach does work and I guess that there is no harm in moving the field off of the view and hiding it.
Thanks for your help!
Pete
Hi David,
I am trying to get a handle on dealing with retrieved PouchDB data but I am stumbling around in the dark and I was wondering if you could give me a hand to better understand how to approach this. For other data, I am able to retrieve a list of records in a grid and then have the user select an item to update it. In this scenario, though, I just want to retrieve a single record representing the particular users profile data and allow them to edit it. I have the following code which is successfully pulling in a single record which is the user's profile record:
You can see in this screenshot that I am populating the Report1 field with the retrieved data using doc.docs, this is just for troubleshooting purposes. What I would like to do is to populate the top three fields with the individual information directly from the retrieved data so that I can allow the user to update it but I am unclear as to exactly what doc.docs does and how to refer to specific data within that array?
That fixed it.
Thanks,
Pete
Hi David,
I updated to the latest version yesterday and now no applications will compile including any sample app? There is nothing showing in the console but the app just keeps trying to compile and the preview screen is blank. Do you need any more info to troubleshoot this issue?
Cheers,
Pete
Hi,
Everything is working well. I am storing the data in pouchdb and displaying notes in a report. When selecting a note to edit it, I have the following code on display of the edit view.
The issue that I am having is that if the [RDate] variable is defined then it properly sets the [ReminderDate.Value] to the correct date from the database. However, if the reminder is not populated and the value of [RDate] is 'null', it sets the [ReminderDate.Value] to today's date rather than leaving it empty. I am not pre-setting any value in the date input field so I am not sure why it is setting the current date or how to prevent it?
Thanks,
Pete
Thanks David, I was testing in Chrome and didn't realize that the dateinput showed a picker as this does not seem to work in Chrome but does work in the device so I will just work with this control.
You are the best! Is it fairly straight forward to get it to allow for time selection as well?
Many thanks,
Pete
Hi David,
I would like to add a date picker widget to the app so that the user can pick from a small dropdown calendar. It looks as if bootstrap is the way to go? I see that you had developed a working example a few years ago in this forum but when I downloaded it, it threw an error. Any chance you could take a look at it and see if it is simple to fix and provide a download link?
Thanks!
Pete
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.
This website uses some useful cookies to store your preferences.