Routines for peo_ww.kb


AddALoc

File Name

peo_ww.kb

Syntax

AddALoc(VAL w: WINDOW, REF personrec: PeopleRec)

Parameters

w - parent window handle

personrec - people record

Returns

Nothing

Side Effects

None

Description

This procedure loops through any records that have been added to the MCLB. The people_id and contact_id are set from the people data, and then are inserted into the People_Location table.

Dialog Forms Called

None


AddANotification

File Name

peo_ww.kb

Syntax

AddANotification(VAL w: WINDOW, REF peoid: INTEGER)

Parameters

w - parent window handle

peoid - people ID

Returns

Nothing

Side Effects

None

Description

This procedure will loop through any records that have been added to the MCLB. The people_id is set from the people data, and the notify_id is from the counters table. The record is then inserted into the Notify_User_Group table.

Dialog Forms Called

None


AddASupportOrg

File Name

peo_ww.kb

Syntax

AddASupportOrg(VAL w: WINDOW, REF user_id: STRING)

Parameters

w - window handle

user_id - user ID

Returns

Nothing

Side Effects

None

Description

This procedure will add new records to the support_for table.

Dialog Forms Called

None


AddNewGroup

File Name

peo_ww.kb

Syntax

AddNewGroup(VAL group_id: STRING, VAL tempgroup: GroupRec, VAL person: BrowsePeopleInstRec )

Parameters

group_id - group ID

tempgroup - group record

person - instance data used for browse people event

Returns

Nothing

Side Effects

None

Description

This procedure will add a new record to the member_of table.

Dialog Forms Called

None


AddPeople

File Name

peo_ww.kb

Syntax

AddPeople(VAL whdl: WINDOW)

Parameters

whdl - parent window handle

Returns

Nothing

Side Effects

None

Description

This procedure can be initiated by the add people system action. Otherwise, it is started when the user selects to add a person from the Search Dialog box. It will begin the wwpeople event with the People dialog box.

Dialog Forms Called

people.dfc[peoplenotebook]


AddPeopleData

File Name

peo_ww.kb

Syntax

AddPeopleData(REF person: BrowsePeopleInstRec)

Parameters

person - browse people instance data

Returns

Nothing

Side Effects

None

Description

This procedure will call the necessary procedures in peo_dbww to add the different records to the database.

Dialog Forms Called

None


AddQContact

File Name

peo_ww.kb

Syntax

AddQContact(VAL whdl: WINDOW)

Parameters

whdl- parent window handle

Returns

Nothing

Side Effects

None

Description

This procedure can be initiated by the add quick contact system action. Otherwise, it is started when the user selects to add a contact from the Quick Contact Search dialog box. It will begin the quick contact event with the Quick Contact dialog box.

Dialog Forms Called

people.dfc[quickcontactform]


AddQuickContact

File Name

peo_ww.kb

Syntax

AddQuickContact

Parameters

None

Returns

Nothing

Side Effects

None

Description

This procedure is used for adding a quick contact.

Dialog Forms Called

None


CollectNotifyFields

File Name

peo_ww.kb

Syntax

CollectNotifyFields(REF notification: Notify_User_GroupRec)

Parameters

notification - notify_user_group record

Returns

string

Side Effects

None

Description

This procedure is used to collect notification information from the dialog box entry boxes.

Dialog Forms Called

None


CollectPeopleUsers

File Name

peo_ww.kb

Syntax

CollectPeopleUsers(REF personrec: PeopleRec, REF wwuserrec: UsersRecord)

Parameters

personrec - people record

wwuserrec - user record

Returns

personrec, wwuserrec

Side Effects

None

Description

Using dlgfieldvalue, gets the data entered into the entry boxes into the record structure to add to the database.

Dialog Forms Called

None


EditPeopleData

File Name

peo_ww.kb

Syntax

EditPeopleData(REF person: BrowsePeopleInstRec)

Parameters

person - browse people instance data

Returns

Nothing

Side Effects

None

Description

This procedure will call the necessary procedures in peo_dbww to edit/add the different records in the database.

Dialog Forms Called

None


FillWebCombos

File Name

peo_ww.kb

Syntax

FillWebCombos

Parameters

None

Returns

Nothing

Side Effects

None

Description

This procedure will Insert web capabilities.

Dialog Forms Called

None


NotificationEvent

File Name

peo_ww.kb

Syntax

NotificationEvent(REF notifyrec: WWNotifyUserGroup)

Parameters

notifyrec - notify_user_group record

Returns

notifyrec

Side Effects

None

Description

This event is used when completepartialname finds a list of matching people. Then the selected person is returned to the calling dialog box.

Dialog Forms Called

None


RightsToSecurityMask

File Name

peo_ww.kb

Syntax

RightsToSecurityMask(VAL w: WINDOW, REF person: BrowsePeopleInstRec)

Parameters

w - parent window handle

person - instance data for browse people event

Returns

Nothing

Side Effects

None

Description

This procedure will take the list of rights added for the user and calculate the security mask.

Dialog Forms Called

None


SetUserButtons

File Name

peo_ww.kb

Syntax

SetUserButtons

Parameters

None

Returns

Nothing

Side Effects

None

Description

This procedure will set default buttons enabled, or disabled when in edit mode.

Dialog Forms Called

people.dfc[notifications]

people.dfc[skillform]


UpdateAGroup

File Name

peo_ww.kb

Syntax

UpdateAGroup(REF person: BrowsePeopleInstRec, REF group: GroupRec)

Parameters

person - instance data used by browse people event

group - group record

Returns

Nothing

Side Effects

None

Description

This procedure will insert the currently selected record just added to the MCLB. Add is done in the MsgAccept, so it is possible for multiple groups to have been added. Update is done immediately, so only the one record needs to be added.

Dialog Forms Called

None


UpdateALoc

File Name

peo_ww.kb

Syntax

UpdateALoc(VAL w: WINDOW)

Parameters

w - parent window handle

Returns

Nothing

Side Effects

None

Description

This procedure will insert the currently selected record just added to the MCLB. Add is done in the MsgAccept, so it is possible for multiple locations to have been added. Update is done immediately, so only the one record needs to be added.

Dialog Forms Called

None


UpdateAnOrg

File Name

peo_ww.kb

Syntax

UpdateAnOrg(VAL w: WINDOW)

Parameters

w - parent window handle

people_id - selected people ID

Returns

Nothing

Side Effects

None

Description

This procedure will insert the currently selected record just added to the MCLB. Add is done in the MsgAccept, so it is possible for multiple organizations to have been added. Update is done immediately, so only the one record needs to be added.

Dialog Forms Called

None


UpdateANotification

File Name

peo_ww.kb

Syntax

UpdateANotification(REF notifyrec: Notify_User_GroupRec)

Parameters

notifyrec - notify_user_group record

Returns

Nothing

Side Effects

None

Description

This procedure will insert/update the currently selected record just added to the MCLB. Add is done in the MsgAccept, so it is possible for multiple notifications to have been added. Update is done immediately, so only the one record needs to be added.

Dialog Forms Called

None


UpdateDefaultLoc

File Name

peo_ww.kb

Syntax

UpdateDefaultLoc(VAL w: WINDOW)

Parameters

w - parent window handle

Returns

Nothing

Side Effects

None

Description

This procedure will update the currently selected record changing the default location for the person/contact.

Dialog Forms Called

None


UpdateDefaultNot

File Name

peo_ww.kb

Syntax

UpdateDefaultNot( VAL w: WINDOW, VAL people_id: INTEGER )

Parameters

w - parent window handle

people_id - selected people ID

Returns

Nothing

Side Effects

None

Description

This procedure will update the currently selected record changing the default notifiction for the person/contact.

Dialog Forms Called

None


UpdateDefaultOrg

File Name

peo_ww.kb

Syntax

UpdateDefaultOrg(VAL w: WINDOW)

Parameters

w - parent window handle

Returns

Nothing

Side Effects

None

Description

This procedure will update the currently selected record changing the default organization for the person.

Dialog Forms Called

None


UpdateQuickContact

File Name

peo_ww.kb

Syntax

UpdateQuickContact(REF qcontact: QuickContactRec)

Parameters

qcontact - quick contact record

Returns

string

Side Effects

None

Description

This procedure is used to update a quick contact.

Dialog Forms Called

people.dfc[notifications]


UpdateUserCap

File Name

peo_ww.kb

Syntax

UpdateUserCap(VAL w: WINDOW, REF person: BrowsePeopleInstRec)

Parameters

w - parent window handle

person - instance data used in Browse People event

Returns

Nothing

Side Effects

None

Description

This procedure will update the web user capabilities.

Dialog Forms Called

None


UserSkillEvent

File Name

peo_ww.kb

Syntax

UserSkillEvent(REF skill: SkillsEventRecord)

Parameters

skill - skill event record

Returns

string

Side Effects

None

Description

This event is used to handle addition of SCIM.

Dialog Forms Called

None


WWNBPeople

File Name

peo_ww.kb

Syntax

WWNBPeople(peoID,person);

Parameters

Integer - people ID used for filling the instance data

BrowsePeopleInstRec - data for People dialog box

Returns

Nothing

Side Effects

None

Description

This procedure is initiated by the wwpeoplefind event. It will begin the WWPeopleEvent with the People dialog box.

Dialog Forms Called

people.dfc[peoplenotebook]


WWPeople

File Name

peo_ww.kb

Syntax

WWPeople

Parameters

None

Returns

Nothing

Side Effects

None

Description

This procedure is initiated by the work with people system action. It will begin the wwpeoplefind event with the People Search dialog box.

Dialog Forms Called

people.dfc[peoplesearchform]


WWPeopleEvent

File Name

peo_ww.kb

Syntax

WWPeopleEvent(REF person: BrowsePeopleInstRec)

Parameters

person - instance data used in browse people event

Returns

string

Side Effects

None

Description

This event is started by wwnbPeople when add/edit/view is selected. This event monitors the People dialog box autobinding the entryfield data if in view or edit mode. The dialog box may also be started in add mode using the AddPeople system action.

Dialog Forms Called

None


WWPeopleFindEvent

File Name

peo_ww.kb

Syntax

WWPeopleFindEvent(REF findperson: BrowsePeopleListRec)

Parameters

findperson - record for list of people returned from search

Returns

Nothing

Side Effects

None

Description

This event is started by the wwPeople system action. This event monitors the search dialog boxes: main, people, user, and contact search. The entryfields will auto bind if this event is started with the instance data pre-filled.

Dialog Forms Called

None


WWQuickContactEvent

File Name

peo_ww.kb

Syntax

WWQuickContactEvent(REF quickcontact: QuickContactRec)

Parameters

None

Returns

Nothing

Side Effects

None

Description

This event is used for working with quick contacts.

Dialog Forms Called

None


WWQuickContacts

File Name

peo_ww.kb

Syntax

WWQuickContacts(quickcontact);

Parameters

QuickContactRec - record for adding/editing quick contact data

Returns

Nothing

Side Effects

None

Description

This procedure will begin the wwquickcontacts event with the Quick Contacts dialog box.

Dialog Forms Called

people.dfc[quickcontactform]

people.dfc[peoplesearchform]

people.dfc[peoplesearchuser]

people.dfc[peoplesearchonly]

people.dfc[peoplesearchcontacts]