Page 1 of 1

User Input In Document Object

Posted: Tue Apr 13, 2010 11:59 am
by openhaymer
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 !

Re: User Input In Document Object

Posted: Wed Apr 14, 2010 9:02 am
by Elisy
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();