Forum Discussion
Is there any particular reason in your first example you're using the code page at all? Is there another process that you're running or do you just need the button to log the current time and then refresh the page? If that's the case then you can just do a button like this:
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&apptoken=APP_TOKEN"
& "&rid=" & [Record ID#] & "&_fid_62="&ToTimeOfDay(Now()) & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=DoRedirect&z=" & Rurl())
This will just do the editRecord and then refresh the page your on. It sounds like some of your issues relate to the state of the browser page and the page/document not reloading based on how you're currently navigating in the app, so having the button just do a simple refresh should solve for it so that the button refreshes it's own components/reloads the idea of now() for your use.
------------------------------
Chayce Duncan
------------------------------
you can also just do URLEncode("today") so you dont have to refresh even if you've been on the page for a while, it will take the system's time... found it in this forum somewhere so credit goes to that person
------------------------------
Tim D
------------------------------
- BarryDolan2 years agoQrew Cadet
humm, that just put the word "today" in the field.
I'm trying
------------------------------
Barry Dolan
------------------------------