Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

Good thought, I tried it on one of the machines and still no luck. These are just out of the box IBM desktops running windows XP service pack 2.

Weird? I'm probably just missing some obvious piece....
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

Perhpas a license key is needed. Try adding this property to the screen section item for the schedule control:

LICENSE-KEY IS "E302D019560211D281AAF42500C10000"

Perhaps other issue is are you sending registered versions of the controls or the trial versions?

Actually, GravityBox should have given you a license key when you bought the control, so you'll probably need to use that one instead of the one above.

Also, is runtime version on that PC same as your compiler version? Are you compiling with -Z for prior runtime version? Also, make sure that PC does not have strange mix of wrun32.exe and .dll.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

Jason,

I believe that I discovered this problem originally. Here is the list that I release:

GBSchedule.ocx
GBSubclass.ocx
GBXMLParse.dll

I hope that extra one takes care of it for you.

Rob
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

In the sample of dan Maltes (gbschedule.zip) you can modify an
method or property as by
MODIFY GBSCHED @StartTime = "08:00 AM".

But how do i translate
Call Schedule1.Rooms.Add(?Room1?)

as handle (Croomcol) wil not load (klasse error 340)

Thanks

Ed
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

error 340 is class not registered. Are you sure you have registered the class?
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

Ed,

As long as you register the following controls,

GBSchedule.ocx
GBSubclass.ocx
GBXMLParse.dll

you should be able to add rooms with code similar to:

INQUIRE SCHEDULE1 @ROOMS IN SCHED-ROOMS.
MODIFY SCHED-ROOMS @ADD("Room1") GIVING SCHED-ROOM.

Of course, you could combine that in one step if you want, depending on whether you need the intermediary handle (SCHED-ROOMS).

Good Luck.

Rob
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

You could try

MODIFY SCHEDULE1 @ROOMS::ADD("Room1") GIVING SCHED-ROOM

but I've had problems inline invoking methods of collection objects before and have to get handles to them first, like Rob's code does. Never been an issue for me in VB which gives more concise code.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

The sampe program Robstan added in forum 'Graphical Programming / ActiveX > Gravitybox' works fine.

Thanks.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

ok, i tried the sample and i'm able to put some data in. It works great. But i'm not able to get for example an appointment out of the calendar and display it for instance in a entry field.

So, does anyone got an idea how it's done?

thanks

DD
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

You would need to get that appointment item's handle and then inquire on it for whatever properties you need. For example the following gets the first scheduled item and places the start date in a working storage field:

     
01 SCHED-HANDLE                     HANDLE OF @Schedule.
01 SCHED-ITEMS-HANDLE               HANDLE OF @CScheduleCol.
01 SCHED-ITEM-HANDLE                HANDLE OF @CScheduleEl.
...

INQUIRE SCHED-HANDLE @ScheduleItems IN SCHED-ITEMS-HANDLE.
MODIFY SCHED-ITEMS-HANDLE @Item(1) GIVING SCHED-ITEM-HANDLE.
INQUIRE SCHED-ITEM-HANDLE @StartDate IN WS-START-DATE.

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

Thanks,

It seems to work.

By clicking on an appoitment i want to display some data in working storage fields. I have found this eventprocedure.
But how do i know which scheduled item i have clicked on. Do i have to set some kind of pointer when i add an Appointment in the schedule?
In the manual of the gravitybox they talk about setting an "id" by using the count method.

regards

dd
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Appointment / Scheduler / Calendar

This should work:

CALL "C$GETEVENTDATA" USING EVENT-CONTROL-HANDLE,
   WS-SCHED-INDEX, 0, 0.
MODIFY SCHED-ITEMS-HANDLE @ITEM(WS-SCHED-INDEX)
  GIVING SCHED-ITEM-HANDLE.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.