Show/Hide Toolbars

Managing an FVTerm Child iFrame in Javascript

Navigation: Using the FVTermParent Javascript Module > FVTermParent.js Functions and Variables

fvApi.SetField = [async] function(row, column, text)

Scroll Prev Top Next More

For Block Mode hosts Only (3270/5250)

 

Use this call to set the value of an entry field at the specified row and column.  Any existing value will be replaced.

 

Parameter

Description

row

Row that the field is located on. 1=first row

column

Column for the first character of the field. 1=first column

text

Text to set in the field.  If the text is longer than the field it will be truncated.  

 

Return Value

Description

void

Return value ignored

 

Note that in msgAPI (FVAPISession) mode, this is defined as an async function and can be awaited by the caller to ensure synchronized execution.

 

As this function must be executed in the FVTerm iFrame, if not using FVTermParent, it needs the use of await in order to ensure the SetField has finished prior to using a SendKeys to enter a screen (for example).