T.R | Title | User | Personal Name | Date | Lines |
---|
1810.1 | Just write to the entry form .. | OCTAVE::VIGNEAULT | Java-Man | Thu Nov 19 1992 12:55 | 14 |
|
I would think the write command would work in this case. It allows
you to directly write a record to a file mapped by an entry form.
Syntax is:
WRITE mode entry-form-name key=value, field=value
for example,
WRITE ADD MY_ENTRY_FORM KEY="John Doe", Street="EASY", PHONE="111-1111"
Regards, Larry
|
1810.2 | Creating attendee records behind the scenes | SIOG::T_REDMOND | Thoughts of an Idle Mind | Thu Nov 19 1992 15:02 | 103 |
| What version of ALL-IN-1 are you dealing with?
If you want to create attendees for a meeting in the background you'll
have to use some of the CALENDAR functions to create the meeting and
then populate the scroll data set used for the attendee details. I
think this changed slighly between V2.4 and V3.0. Frank Nicodem posted
a script elsewhere in this conference which might shed some light, but
here's a script that I have used to illustrate how to create a meeting
for the members of a group...
!+
! TM_GS_MEETING.SCP
!+
.LABEL START
CALENDAR INIT FILES
GET OA$DISPLAY = OA$_GBL_WORKING \FORCE
GET #ABORT = #DRAWER_SWITCH = #ATTENDEE_PRESENT = 0
.IF OA$MAIL_CURDWR NES OA$MAIL_DRAWER
.THEN
! Not positioned in the MAIN drawer - switch over
GET #DRAWER_SWITCH = 1
GET #PRV_DRAWER = OA$CURDWR
CABINET SET_DRAWER OA$MAIL_DRAWER
.IF OA$STATUS EQ 0
.THEN
GET #ABORT = 1
.END_IF
.END_IF
.IF #ABORT EQ 1 THEN .GOTO CANT_GO_TO_MAIN
! Initialize a dummy TM message
CALENDAR MAIL_INIT
FOR GROUP$:"ENGINEERS" DO -
GET #MEMBER_NAME = .%KEY\\ -
.IF PROFIL.USER[#MEMBER_NAME] NES "" -
THEN -
GET #ATTENDEE = PROFIL.FULNAM:37[#MEMBER_NAME] "(" #MEMBER_NAME ")"\\-
CABINET ADD_ATTRIBUTE , "TO", #ATTENDEE
! Check that we have at least one attendee
FOR FIRST CAB$ATTRIBUTES:TO DO GET #ATTENDEE_PRESENT = 1
.IF #ATTENDEE_PRESENT EQ 0 THEN .GOTO NO_ATTENDEES
! All the attendees have been added to the dummy message.
! Set up some symbols for the meeting
GET #CAL_MTNG_DESC = "Another test of meeting creation"
GET #CAL_MTNG_WHEN = OA$DATE_FULL
GET #CAL_MTNG_STIME = "07:21pm"
GET #CAL_MTNG_ETIME = "07:23pm"
GET #CAL_MTNG_CONFID = OA$N
GET #CAL_MTNG_SCHEDULER = OA$USER
GET #CAL_MTNG_LOC = "Conference room 1"
GET #CAL_MTNG_PRIORITY = "A1"
CALENDAR SCHEDULE MEETING
.IF OA$STATUS EQ 0 THEN .GOTO NOT_SCHEDULED
.LABEL RESET_DRAWER
! And switch back to the previous drawer, if necessary
.IF #DRAWER_SWITCH EQ 1
.THEN
CABINET SET_DRAWER #PRV_DRAWER
.END_IF
.LABEL ALL_DONE
DISPLAY Meeting scheduled and notices sent!
.EXIT
.LABEL CANT_GO_TO_MAIN
DISPLAY Unable to create meeting message in MAIN drawer
.EXIT
.LABEL NO_ATTENDEES
! No attendees could be found
.LABEL NOT_SCHEDULED
! Clean up the dummy message
.IF #DRAWER_SWITCH EQ 1
.THEN
CABINET SET_DRAWER #PRV_DRAWER
.END_IF
CALENDAR MAIL_DELETE
GET OA$TM_SEND_MAIL = 0
DISPLAY An error occurred when scheduling the meeting
.EXIT
! Script to create a time management meeting from for an ALL-IN-1 group
|
1810.3 | sorry, I should have given the version | KAOFS::D_STREET | | Wed Nov 25 1992 23:16 | 6 |
| I am really sorry for not including the version of ALL-IN-1, because it
is 2.4, and the above 3.0 script is not quite working. Can someone
suggest the modifications that would be required?
Derek Street.
(PS. Thanks for the help so far Tony.)
|
1810.4 | Help wanted !!!!! | TRCOA::SHEU | Fred Sheu @TRC | Thu Dec 03 1992 17:13 | 33 |
| The following note is put up on behalf of Bob McGuire. He is currently working
at the customer site and fighting with this problem. Anybody out there has any
idea about solving Bob's problem, please give him a shout at 416-314-6588
(call collect).
=============================================================================
I have tried to schedule an meeting without displaying the SCHEDMA form, based
on your code. However, I am running V2.4, which does not have those calendar
functions.
After calling SCHEDMUIB to get calendar info, I try to populate
CAL$SCROLL_ATTENDEES using the following command:
.FZ WRITE AND CAL$SCROLL_ATTENDEES NUMBER=1, TEXT="NO_ATTENDEES"
Then I call SCALENDAR SCHEDULE MEETING
This will schedule the meeting but when you read it, there are no attendees
listed, and consequently, when you edit this meeting, it deletes the meeting
and says YOU MUST HAVE SOMEONE TO MEET WITH.
The only way I caould make it work is to write to CAL$SCROLL_ATTENDEES, call
CAL SCH MEET, then write to CAL$SCROLL_ATTENDEES again and call CAL RESCH MEET.
This approach, however will not work with Schedule Recurring Events.
Could you please tell me what I'm missing when I try to schedule the meeting
the first time.
Thanks, Bob.
|
1810.5 | Scheduling a V2.4 meeting without any UI | SIOG::T_REDMOND | Thoughts of an Idle Mind | Fri Dec 04 1992 10:40 | 42 |
| .LABEL START
! A script to schedule a meeting without any forms being displayed
! This only works for V2.4 or earlier, because V3.0 uses EM data
! sets instead of CAL$SCROLL_ATTENDEES
! Initialize TM, just to be sure
CALENDAR INIT FILES
! Initialize the TM meeting variables which we need to provide
! data for the dummy meeting -- these symbols could be set from
! an ARG form or data file
GET #CAL_MTNG_DESC = "Testing Behind-the-scenes Meeting creation"
GET #CAL_MTNG_WHEN = "25-Dec-1992"
GET #CAL_MTNG_STIME = "07:40a"
GET #CAL_MTNG_ETIME = "07:41a"
GET #CAL_MTNG_CONFID = OA$N
GET #CAL_MTNG_SCHEDULER = OA$USER
GET #CAL_MTNG_LOC = "Meeting Room 1"
GET #CAL_MTNG_PRIORITY = "A1"
! Put us at the right date, not strictly necessary, but nice to do
CALENDAR SET DATE #CAL_MTNG_WHEN
! Clear CAL$SCROLL_ATTENDEES
CALENDAR CLEAR ATTENDEE
! Prepare the mail address of the people we want to meet with. Note
! that each address must be formatted correctly
GET #ATTENDEE_ADDRESS = "Tony Redmond"
GET #ATTENDEE_ADDRESS = #ATTENDEE_ADDRESS:37 "( REDMOND@A1@DUBSWS )"
! Write our formatted address into the CAL$SCROLL_ATTENDEES data
! set.
WRITE ADD CAL$SCROLL_ATTENDEES NUMBER = "1", TEXT = #ATTENDEE_ADDRESS
! We could loop at this point to go and collect all the other names
! for the meeting, but I'll just proceed here...
CALENDAR SCHEDULE MEETING
! Of course, I must check OA$STATUS .... ;-)
.IF OA$STATUS NE 1 THEN .GOTO NOT_SCHEDULED
.EXIT
.LABEL NOT_SCHEDULED
DISPLAY Meeting not scheduled
.EXIT
|