Posts by Peter Bradstreet

Show threads by Peter Bradstreet
162 posts found, page 8 of 11

Peter Bradstreet (In thread: About a possible Datepicker sample app)
Hi David,

Sorry to be a pain but I have one last step before I move onto the next challenge and I have been struggling with it. When the view loads I need to populate the value of the datetime input field with a value stored in local storage.

In the TempusDominus example, I can see that the html field is populated by

Logically, I need to define the value of #datetimepicker1? Would you mind pointing me in the right direction?

Thanks! Pete

Peter Bradstreet (In thread: About a possible Datepicker sample app)
Perfect! Thanks for everything, Pete

Peter Bradstreet (In thread: About a possible Datepicker sample app)
Quick question. How do I get the value of the selected date so that I can store it locally?

Peter Bradstreet (In thread: About a possible Datepicker sample app)
You are totally the man! Thank you very much, I can't believe how easy it is to implement stuff like this. Cheers, Pete

Peter Bradstreet (In thread: About a possible Datepicker sample app)
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

Peter Bradstreet (In thread: How to arbitrarily format a date variable)
Many thanks! Got it all working. Pete

Peter Bradstreet (In thread: How to arbitrarily format a date variable)
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

Peter Bradstreet (In thread: Working with retrieved data)
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

Peter Bradstreet (In thread: Working with retrieved data)

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?


Peter Bradstreet (In thread: Issue with the latest App Builder release)
That fixed it. Thanks, Pete

Peter Bradstreet (In thread: Issue with the latest App Builder release)
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

Peter Bradstreet (In thread: About a possible Datepicker sample app)
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

Peter Bradstreet (In thread: About a possible Datepicker sample app)
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.

Peter Bradstreet (In thread: About a possible Datepicker sample app)
You are the best! Is it fairly straight forward to get it to allow for time selection as well? Many thanks, Pete

Peter Bradstreet (In thread: About a possible Datepicker sample app)
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.

I agree. Hide this note. Give me more information.