|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InsertRecordEvent
Insert record event information.
RecordSetEventHandler.insertRecord(com.wrq.vhi.script.api.InsertRecordEvent)
Method Summary | |
---|---|
void |
defaultInsertRecord()
Searches for suitable record as defined in the model, executes the before insert operation, writes the fields, and executes the after insert operation. |
void |
defaultInsertRecord(java.util.Map values)
Searches for suitable record as defined in the model, executes the before insert operation, writes the fields and executes the after insert operation. |
void |
findInsertLocation()
Search for a suitable insertion location as defined in the model and make that the current record. |
RecordSetScreen |
getCurrentRecordSetScreen()
Fetches all records (including blank, repeated, filtered etc) on the current screen. |
java.util.Map |
getFieldWriteValues()
Gets the set of fields and associated values to be written. |
void |
setCurrentRecordIndex(int index)
Sets the current record index. |
void |
writeField(java.lang.String name,
java.lang.String value)
Writes the specified field to the current record on the screen. |
Methods inherited from interface com.wrq.vhi.script.api.RecordSetEvent |
---|
getPageNumber, getRecordSetContext, getRecordSetMetaData, getRecordSetName |
Methods inherited from interface com.wrq.vhi.script.api.EntityEvent |
---|
getEntityName, getTabStops |
Methods inherited from interface com.wrq.vhi.script.api.ModelEvent |
---|
getClientSession, getCurrentOperation, getCurrentProcedure, getModelContext |
Methods inherited from interface com.wrq.vhi.script.api.Event |
---|
checkForTimeout, createErrorMessage, createErrorMessage, createHostSession, createUserErrorMessage, getEventStack, getHandlerProperty, getLogger, isDesignEnvironment |
Methods inherited from interface com.wrq.vhi.script.api.HostSessionEvent |
---|
getHostSession |
Methods inherited from interface com.wrq.vhi.script.api.ModelEvent |
---|
getClientSession, getCurrentOperation, getCurrentProcedure, getModelContext |
Methods inherited from interface com.wrq.vhi.script.api.Event |
---|
checkForTimeout, createErrorMessage, createErrorMessage, createHostSession, createUserErrorMessage, getEventStack, getHandlerProperty, getLogger, isDesignEnvironment |
Method Detail |
---|
java.util.Map getFieldWriteValues()
defaultInsertRecord(java.util.Map)
method.
RecordSetScreen getCurrentRecordSetScreen() throws ApptrieveException
ApptrieveException
void setCurrentRecordIndex(int index) throws ApptrieveException
HostSession.setCurrentRecordIndex(int)
,
this method allows excluded records to be set as the current record.
Any excluded record made current via this method has the excluded flag
cleared, thus becoming visible to the client application.
index
- one-based record index (zero meaning set the index to
before the first record in the recordset)
ApptrieveException
void findInsertLocation() throws ApptrieveException
ApptrieveException
void writeField(java.lang.String name, java.lang.String value) throws ApptrieveException
FieldEventHandler.writeField(com.wrq.vhi.script.api.WriteFieldEvent)
event, if any.
name
- the field namevalue
- the field value
ApptrieveException
void defaultInsertRecord() throws ApptrieveException
getFieldWriteValues()
will be used.
ApptrieveException
void defaultInsertRecord(java.util.Map values) throws ApptrieveException
values
- the fields and values to insert
ApptrieveException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |