OMWAddObjectToProject

Client/Server OMW API

Minor Business Rule

Object Name: N98220E

Parent DLL: COBJLIB

Location: Client/Server

Language: NER

Data Structure

D98220AD - Add OMW Object To Project (Client/Server)

Parameter NameData ItemData TypeReq/OptI/O/Both
cAddUpdateFlagEV01charREQINPUT

1  Add (creation date will be set in the Project Object Table)
2   Updateab 


szOMWProjectNameOMWPRJIDcharREQINPUT

Identifies the project that you are adding this object  to.ab 

szOMWObjectNameOMWOBJIDcharREQINPUT

Identifies the object name of the  object.ab 

szOMWObjectTypeOMWOTcharREQINPUT

Identifies the object type of the  object.ab 

szSourceReleaseSRCRLScharOPTINPUT

If blank, the signed-on release is  used.ab 

idReturnAPPLIDIDOPTOUTPUT

Return value. 
0  Success 

1  Unable to insert to F98222 

2  Failure to add object to project because the configuration application does not allow adds when the logging system is  down.ab 


Related Functions

None

Related Tables

None
OMWLogAction

OMWLogAction

Client/Server OMW API

Minor Business Rule

Object Name: N98220E

Parent DLL: COBJLIB

Location: Client/Server

Language: NER

1.1Purpose
Insert the log action header record into the F98210 table.  The action must be in the H92/AX UDC.  

Keep track of the returned OMWLogKey value.  This value is used to insert log detail for this log action.


Pass in the signed-on user ID as the project name if project name is unknown.  User ID is the designation for a default project.


1.2Setup Notes and Prerequisites


1.3Special Logic



Data Structure

D98220AA - Log OMW Action

Parameter NameData ItemData TypeReq/OptI/O/Both
szOMWLogActionOMWAXcharREQINPUT

Identifies the action to be log.  Select the action from the UDC that corresponds to the action you are performing.

szOMWProjectNameOMWPRJIDcharREQINPUT

Identifies the project that this object belongs to in relation to this  action.ab 

szOMWObjectNameOMWOBJIDcharREQINPUT

Identifies the object name of the  object.ab 

szOMWObjectTypeOMWOTcharREQINPUT

Identifies the object type of the  object.ab 

szOMWLogKeyLOGKEYcharREQOUTPUT

This is the log key that needs to be passed to the log detail function when logging detail log items for this  action.ab 

idReturnAPPLIDIDOPTOUTPUT

Return value. 
0  Success 

1  Unable to insert to F98210 

2  Invalid Action (code not found in UDC  H92/AX)ab 


Related Functions

None

Related Tables

None
OMWLogDetail

OMWLogDetail

Client/Server OMW API

Minor Business Rule

Object Name: N98220E

Parent DLL: COBJLIB

Location: Client/Server

Language: NER

1.1Purpose
Insert a log detail records (F98211) for a log action header record (F98210).  You need to use an OMW Log data item to create a detail log.  A list of these 
items is in the OMW Configuration Application Logging Section.  If the log data item supports text substitution, the log data can be placed into the 

LogData parameter as a bar delimited string.


1.2Setup Notes and Prerequisites

You must first call the OMWLogAction() function before calling this function.  OMWLogAction() generates the OMWLogKey parameter that must be 
passed to this function.


Set up a variable based off the APPLID data item and initialize it to zero.  Pass this into the OMWLogSequence parameter.  This will be incremented by 

the function so just keep passing it to this function whenever you log a detail item.


1.3Special Logic


Data Structure

D98220AB - OMW Log Detail

Parameter NameData ItemData TypeReq/OptI/O/Both
szOMWLogKeyLOGKEYcharREQINPUT

This is the log key generated by OMWLogAction that connects the log header with the log  detail.ab 

idOMWLogSeqLOGSEQIDREQBOTH

Function uses this as the log sequence to insert into the F98211.  After a successful insert, this number is incremented by  one.ab 

szOMWLogDataItemOMWLDTAIcharREQINPUT

This data item defines the log data item that will be used to define what the log detail is.  There is a list of these data items in the OMW Configuration 
Application (P98230) Logging  section.ab 


szLogData300DLcharREQINPUT

300 character string that defines any text substitution data for the log data item.  This data needs to be bar  delimited.ab 

idReturnAPPLIDIDOPTOUTPUT

Return value. 
0  Success 

1  Unable to insert to F98211 

2  Invalid Key  (Key not found in the F98210) 

3  Action will not be logged because it is configured by the OMW Configuration App (P98230) to not be  logged.ab 


Related Functions

None

Related Tables

None
OMWSetObjectToBeDeleted

OMWSetObjectToBeDeleted

Client/Server OMW API

Minor Business Rule

Object Name: N98220E

Parent DLL: COBJLIB

Location: Client/Server

Language: NER

Data Structure

D98220AJ - Set Object To Be Deleted

Parameter NameData ItemData TypeReq/OptI/O/Both
szOMWProjectNameOMWPRJIDcharREQINPUT

Identifies the project that you are setting this object to be  deleted.ab 

szOMWObjectNameOMWOBJIDcharREQINPUT

Identifies the object name of the object to be  deletedab 

szOMWObjectTypeOMWOTcharREQINPUT

Identifies the object type of the object to be  deleted.ab 

szSourceReleaseSRCRLScharOPTINPUT

If blank, the signed-on release is  used.ab 

idReturnAPPLIDIDOPTOUTPUT

Return value. 0  Success 1  Unable to insert/update to  F98222ab 

Related Functions

None

Related Tables

None