User Input In Document Object

Documents, Catalogs, Registers, Forms, Controls, Interfaces etc.
Posts: 4
Joined: Thu Sep 03, 2009 2:52 pm

User Input In Document Object

Postby openhaymer » Tue Apr 13, 2010 11:59 am

Hello again!

I have one very specific question about Document user input : How do I make the user input more adequate information about when a shift starts and when it ends using ( as I recall ) somekind of a list? The problem I'm having is that I cannot use the standart Date value instead I need exact TIME when the shift started ... This will be a part of a Document's Tabular Part.

I've came with something but I would prefer someone more clever than me to throw some ideas :D Just to be sure ...

Thank you beforehand !

Posts: 74
Joined: Fri Jan 23, 2009 3:15 am

Re: User Input In Document Object

Postby Elisy » Wed Apr 14, 2010 9:02 am

May be you can use the predefined 1C object PeriodSettings. Please view 1C:Enterprise Help for more details.
You can insert two TextBoxes with bound StartDate and EndDate attributes of type Date and Button with the following handler:

Code: Select all

periodSettings = new PeriodSettings;

If periodSettings.Edit() then

    Object.StartDate = periodSettings.GetDateFrom();
    Object.EndDate = periodSettings.GetDateTo();


Return to “User input and data storing”

Who is online

Users browsing this forum: No registered users and 1 guest