Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > how to show users plan on planner

Forum

Search UsersRules
how to show users plan on planner
#1
Active user
Points:: 0
Joined:: Jul 28, 2015

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.

Profile
#2
Guest
Points::
Joined::

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.

Profile
#3
Active user
Points:: 0
Joined:: Jul 28, 2015

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?

Profile
#4
Guest
Points::
Joined::

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

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

Profile
#5
Active user
Points:: 0
Joined:: Jul 28, 2015

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

Profile
#6
Guest
Points::
Joined::

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

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



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.