Display the date and time in separate controls InfoPath 2007

Author: mety Nagm Labels::



Browser-compatible form templates (browser-compatible form template: A form template that is designed in InfoPath by using a specific compatibility mode. A browser-compatible form template can be browser-enabled when it is published to a server running InfoPath Forms Services.) do not support the display of the date and time in the same control. You can use the following procedure to display the date and time in separate controls.
Before you begin, make sure that your form template contains two controls, and that both controls are bound to the same field in the data source. Although you can specify data formatting for several data types, you can specify how dates and times are displayed only for date pickers, text boxes, or expression boxes that have a date, time, or date and time data type.
  1. Double-click the date picker, text box, or expression box control that you want to use to display the date.
  2. In the Control Properties dialog box, do one of the following:
    • If you are working with a text box control or a date picker control, click the Data tab.
    • If you are working with an expression box control, click the General tab.
  3. Do one of the following:
    • For a text box or date picker, ensure that the Data type list displays the appropriate data type, and then click Format.
    • For an expression box, ensure that the Format as list displays the appropriate data type, and then click Format.
  4. In the Display the date like this list in the Date and Time Format dialog box, click the display style that you want.
  5. In the Display the time like this list, click (Do not display time).
  6. Click OK twice.
  7. Double-click the date picker, text box, or expression box control in your form template that you want to use to display the time.
  8. In the Control Properties dialog box, do one of the following:
    • If you are working with a text box control or a date picker control, click the Data tab.
    • If you are working with an expression box control, click the General tab.
  9. Do one of the following:
    • For a text box or date picker, ensure that the Data type list displays the appropriate data type, and then click Format.
    • For an expression box, ensure that the Format as list displays the appropriate data type, and then click Format.
  10. In the Display the date like this list in the Date and Time Format dialog box, click (Do not display date).
  11. In the Display the time like this list, click the display style that you want.
  12. To change the locale date and time settings, select the country or region that you want in the Locale list. Note If you select a locale other than English (United States), some date formats will be unavailable when your users fill out forms by using a Web browser. For example, the date format 14-mars-01 is not supported in the French (Belgium) locale. To ensure that you do not use a date format that is not supported, run the compatibility checker before publishing your form template.


0 comments |

Labels

Blog Archive

Powered by Blogger.

I made these pages for me and my friends to help solving the problem we face regarding Computer & internet, if anyone wants me to answer a question or find out about some information please send me email and I will try to reply.*P.S. some of the article I wrote and the other I found on the internet I posted them in sprit of learning and shearing, please forgive me if you found something you don’t want to be in my blog, email me and I will delete them. Thank you for your interest in my pages.امل نجم Amal Nagm

banner 1 banner 2