You are viewing limited content. For full access, please sign in.

Question

Question

{/dataset/_initiated_time} instance question?

asked on January 16, 2014

 Hello all

 

In Laserfiche Forms, Last week, I created a single line form and defaulted to Display current device time using {/dataset/_initiated_time} instance.   Initially after spending a long time with it I couldn't display the current time in the field as read only.  Than I gave up and returned to it after 2 day and the Field was displaying the time, nothing was changed.

 

Now my demo Forms is working but I am configuring the same setup on client's LF Forms and it is giving me hard time and does not display the date and time.   

 

Both Forms have the same version. 

 

I need this because I am setting up a form for field crew to submit check-in and check-out time from their own time zone. 

 

Any help is appreciated, Thanks

0 0

Answer

APPROVED ANSWER
replied on January 16, 2014

The value for the initiated time variable won't appear until the first form is submitted, which makes sense if you think about it. The process doesn't start until the starting form is submitted. So, you're still able to capture the time the first form is submitted. Along the same lines, if you want to capture a check-out time, you could assign a user task to the user and use the task completion time variable to get the time when the user completes that task. Users can have times shown in the time zone of their choice by adjusting the settings in their My User Settings page (which they can access from the Security button in the top-right corner of Forms).

 

This might work for you if you don't need to display the time to the user on the starting form or the task. If you want to display the time to the user, you can accomplish this with some very basic scripting.

 

I'm interested to know more about the business process you'd use this in. Would it be one form that the user would be signing in and out using?

0 0

Replies

replied on January 18, 2014

Hello Eric

 

Thanks for the reply.      I have this implemented on one page with show and hide field rules.   Basically the users first submits check in, than submits an activity, and once they are done with the essignment they will do another submission that will be check out.  this will be done by field agent from different time zones.  I want to log the check-in and check-out time with the time stamp from the device from different time zone.

 

I have already got this working on my demo unit.  The form shows the current device date and time on the screen.  But I can't see why it does not show on the my working model. 

 

I haven't finished the back-end of the project yet, may be it has to be submitted first....?   My demo setup wasn't working in the beggining  but it just fixed itself, not sure what caused it.

 

 

0 0
replied on January 23, 2014

I have done some scripting on a different form that displays the time on the form using  java W3C.  My client has multizone reuirement and device time zone would make more sense to use device date and time.  

 

 

As I mentioned my demo unit works fine using the {/dataset/_initiated_time} and even displays it on the page but I can't figure out what cold be the difference.   The only think different here is the Laserfiche server on my demo unit is 9.1 and on client is 9.0.   Both forms are @ 9.1.

0 0
replied on January 23, 2014

The code example from my reply to this question might be useful to you.

0 1
You are not allowed to follow up in this post.

Sign in to reply to this post.