The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Hi everyone,

I have to use an attribute as planner. I programmed a year plan as tabular section but I have to show that plan on planner. How can I do that? How to use planner?

Could you give some documentation about planner?

I have to use planner as programmatically, I mean, user create a plan and I show on planner I know user create his/her plan on planner but It isn't user friend, it is looked complicated from user.

I need to planner code example.

Edited: Mehmet Tuğrul SARIÇİÇEK - Nov 13, 2015 01:37 AM
 
#2
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Mehmet Tuğrul SARIÇİÇEK.

Try to use this as a beginning:

Code
NewItem = Planner.Items.Add(Begin, End);

You can also add dimensions to the planner and then specify values of it for items.

Hope, this helps.

 
#3
People who like this: 0 Yes / 0 No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Thank you Timofey Bugaevsky,

Is type of Begin and End parameters date? F.e. I want to add today's plan, just today. What should be begin and end parameters?

 
#4
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

They should be corresponding first and last seconds of this day.

Code
NewItem = Planner.Items.Add(BegOfDay(CurrentDate), EndOfDay(CurrentDate));

 
#5
People who like this: 0 Yes / 0 No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Timofey Bugaevsky,
Here is my code as you said;

Code
NewItem = PlannerTest.Items.Add(BegOfDay(CrrRow.PlanTarihi),EndOfDay(CrrRow.PlanTarihi));
NewItem.Text = CrrRow.İşlemAdı;


But plan isn't added here

Edited: Mehmet Tuğrul SARIÇİÇEK - Nov 13, 2015 05:42 AM
 
#6
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

Please, see the attached example.

Code
&AtClient
Procedure OnOpen(Cancel)
   CurrentDate = CurrentDate();
   NewItem = Planner.Items.Add(BegOfDay(CurrentDate), EndOfDay(CurrentDate));
   NewItem.Text = NStr("en = 'Meeting'");
EndProcedure

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)