Problem: Date / Time

C

Chris

Hi,

I have an InfoPath-Form with the fields date and time, which are filled out
with
the current values. In the preview the fields are filled out correctly. But
after the publishing on my webserver and opening the form, the date and
time-fields
are empty. What is wrong here ?

Thanks in advance,

Chris
 
S

Scott L. Heim [MSFT]

Hi Chris,

Do you have multiple "Views" in your InfoPath solution? If so, which is set
as "Default"? The reason I ask is that when "previewing" a View, you will
preview whatever View you are working on; however, when you open the
solution to actually enter/edit data the view that is opened is the one
designated as "Default."

I hope this helps!

Best Regards,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
C

Chris

Scott,

I only have a default-view.
Do you have other suggestions to solve that problem ?
Is this a InfoPath-Bug ?

Thanks,
Chris


Scott L. Heim said:
Hi Chris,

Do you have multiple "Views" in your InfoPath solution? If so, which is set
as "Default"? The reason I ask is that when "previewing" a View, you will
preview whatever View you are working on; however, when you open the
solution to actually enter/edit data the view that is opened is the one
designated as "Default."

I hope this helps!

Best Regards,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no
rights.
 
S

Scott L. Heim [MSFT]

Hi Chris,

How are you populating the date/time fields? Are you using the Default
Value field or using custom code?

If you are using custom code, what is the code and on what event does it
fire?

Are you publishing to a web site or a Sharepoint site?

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
C

Chris

Scott,
I am populating the field(s) via a function as default-value. For
time-fields
I use a script because the now-function is not working correctly (displayed
time in ISO-format, formating does also not working)
For publishing I use my own web-server.

Chris


Scott L. Heim said:
Hi Chris,

How are you populating the date/time fields? Are you using the Default
Value field or using custom code?

If you are using custom code, what is the code and on what event does it
fire?

Are you publishing to a web site or a Sharepoint site?

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no
rights.
 
S

Scott L. Heim [MSFT]

Hi Chris,

If you don't mind, let's try a new sample to see what happens:

- Create a new, blank InfoPath form
- Add a Date Picker control to the form
- Set the Default Value property to the "today" function
- Publish this to your web server
- Launch IE and navigate to the published form and choose Open when
prompted - what is the result?

For me, the Date Time field was indeed populated with today's date.

Thanks Chris!

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top