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 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?

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

Joined:
Company:

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

Download 1Cv8.cf (10.86 KB)
 
#3
People who like this: 0 Yes / 0 No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

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.

Edited: Mehmet Tuğrul SARIÇİÇEK - Nov 19, 2015 05:38 AM
 
#4
People who like this: 0 Yes / 0 No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

And How can I prevent yellow area in this pic?

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

Joined:
Company:

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

Code
StandardProcessing = False;

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

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

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