Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > how to use different form on create planner record

Forum

Search UsersRules
how to use different form on create planner record
#1
Active user
Points:: 0
Joined:: Jul 28, 2015

Hi everyone, I need your help.

I want to create periodic plan on planner but planner shouldn't do for me. I need when user click any date on planner I have to open a form and handle datas. After that I'll create plans programmatically and I'll show on planner. When user click his or her plan on planner I'll open the form which is related plan.

I try look SubsystemLibrary on Russian but I couldn't understand because I don't know Russian and I can't read alphabet.

This picture from SubsytemLibrary Russian.

Is there some example of this issue on English? Could you give me that, please?

Profile
#2
Guest
Points::
Joined::

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

You can use Planner form item events.

Code
&AtClient
Procedure PlannerBeforeCreate(Item, Begin, End, Values, Text, StandardProcessing)
   
   FormParameters = New Structure;
   FormParameters.Insert("Begin", Begin);
   FormParameters.Insert("End", End);
   OpenForm("DataProcessor.Planner.Form.MeetingForm", FormParameters, ThisForm, , WindowOpenVariant.SingleWindow, ,
      New NotifyDescription("CreateMeeting", ThisForm));
   
   StandardProcessing = False;
   
EndProcedure

&AtClient
Procedure CreateMeeting(ClosureResult, WindowOpeningMode) Export
   
   NewItem = Planner.Items.Add(ClosureResult.Begin, ClosureResult.End);
   NewItem.Text = ClosureResult.Text;
   
EndProcedure

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

Thank you so much Timofey Bugaevsky,
But I need to use other form, I mean I shouldn't use DataProcessor.Planner.Form.MeetingForm. I tried to open another form with your solution but it couldn't work.

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

And How can I prevent yellow area in this pic?

Profile
#5
Guest
Points::
Joined::

To prevent this window, disable the standard processing in the PlannerBeforeCreate() event handler.

Code
StandardProcessing = False;

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

Thank you so much Timofey Bugaevsky, I owe you, Thank you thank you

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.