Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Find out the actual event in timeline view
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Find out the actual event in timeline view

 Post Reply Post Reply
Author
Message
Ditte View Drop Down
Groupie
Groupie


Joined: 28 October 2007
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ditte Quote  Post ReplyReply Direct Link To This Post Topic: Find out the actual event in timeline view
    Posted: 25 August 2009 at 3:25am
Hi,

I´m use in the timeline view (or calendar view) a own mask for changes of calendar data.
The use should only have a possibility to change some value.(only the body)
If I dblclick on a event I get the actual event and read all values in a struct.

    Procedure start_edit_event tdEvent ByRef tEvent
            Integer iviewtype
            Integer iHitCode
            Variant vViewEvent
            Variant vEvent
            Handle  hoViewEvent

            Move (NullComObject()) to vViewEvent
            //OLECalendarViewType
            //DayView=0;WorkWeekView=1;WeekView=2;MonthView=3;FullWeekView=4;TimeLineView=5
            Get ComViewType of ghoCj_Calendar to iviewtype      //
            If (iviewtype eq 5) Begin
              Send GetHitCode to ghoCj_Calendar (&vViewEvent) (&iHitCode)
              If (not(IsNullComObject(vViewEvent))) Begin
                 Get Create U_cComCalendarViewEvent to hoViewEvent
                 Set pvComObject of hoViewEvent to vViewEvent
                 Get ComEvent of hoViewEvent to vEvent
                 Send Destroy of hoViewEvent
                 Get Move_Event_Object_Data_To_tdEvent of ghoCj_Calendar  vEvent to tEvent  //read my custom data of the event in a struct
              End
            End 
    End_Procedure

Now I can put the values in the modalpanel.
The user can make the changes here.  With ok the changes should be save in the event.

1. Now I can search in my database for the right record and save the changes. Now I must send refresh to the calendar.

2. or I find a way to find out the actual event (which a´ve choose), change the values there an make a refresh and save the value with CJ)
  
The no.2 will be my favorite, but I found not the right event. Can me someone say which steps I must call to get what I want?



Regards



Dittmar



Product: Xtreme SuitePro (ActiveX) 13.4.2

Platform: Win XP

Language: Visual Dataflex 16.1
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2009 at 4:40pm
If you use build-in dialog - it will care about updates.
Back to Top
Ditte View Drop Down
Groupie
Groupie


Joined: 28 October 2007
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ditte Quote  Post ReplyReply Direct Link To This Post Posted: 26 August 2009 at 5:18am
Hi,

normaly I will give you are right, but the user should only have a way to change the body, all other fields will generated from a other programpart
Regards



Dittmar



Product: Xtreme SuitePro (ActiveX) 13.4.2

Platform: Win XP

Language: Visual Dataflex 16.1
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.