Host Procedures for Oracle PL/SQL
Version 2.1
 
General Container Procedures Component Procedures
Introduction Generic Container Generic Component
Utility Procedures Frame Button
Card panel Checkbox
Tab panel Combo box
Label
Listbox
Message Box
Radio Button
Table (Grid)
Textarea
Textfield
Textpane
Tree (JSITree)


Introduction

This document lists each of the procedures that can be used by an Oracle stored procedure to send various commands to a client application (app). There are commands available for a wide variety of purposes, including: In addition, two powerful utility procedures allow a host procedure to make use of all methods and tasklists available in a client app: Finally, several procedures are available to start, commit, or rollback a transaction (coming soon).

These procedures are used like any other stored procedure. For example, to display the value of the database field "customer.name" in a client textfield whose object name is "tName":

TEXTFIELD.SetText('tName', customer.name);
Another example disables a button whose object name is "bDelete" so that it cannot be clicked or receive focus:
COMPONENT.SetEnabled('bDelete', FALSE);
Most include files have at least one required argument, the "object name" which names a container or component object to which the procedure will be applied. These names are case-sensitive, meaning that upper and lower case must exactly match the name used in Jargon Writer for this object. This means that 'TName' and 'tName' cannot be used interchangeably to reference the same client object. This rule is different than the syntax used in the PL/SQL language itself, and can be the cause of numerous errors if not carefully followed.
 

Utility Procedures

JSI.Invoke(objectName VARCHAR2, method VARCHAR2, typelist VARCHAR2, vallist VARCHAR2, delimiter VARCHAR2)

This procedure is used to invoke any valid client method on any object within the currently executing app. The methods that can be invoked are the same ones used when adding tasks in the Jargon Writer Task Editor Window. This powerful procedure allows a host procedure full access to any client method for which a specific procedure has not already been defined in the Jargon schema. However, the syntax of these commands requires more knowledge of the required parameters of a method, which can be seen in the API help documents.
 


JSI.InvokeTasklist(appName VARCHAR2, tasklistName VARCHAR2)

This procedure is used to instruct the client to execute an existing tasklist in a specific app. The tasklist can contain any valid list of tasks, and is executed just as if it were linked to a client event which had just taken place.
 

Container Procedures

These procedures are used with various container objects (frames, panels, cardpanels, tabpanels). There are both generic container procedures which can be used with any container type, and other procedures that are specific to a particular container type.

Generic Container
These procedures can be used on any container object (frame, panel, cardpanel, tabpanel).

CONTAINER.DisplayDefaultValues(name IN VARCHAR2)
This procedure is used to reset the contents of all components of the specified container by displaying the default (initial) value of each component.
 


CONTAINER.SetEnabled(name IN VARCHAR2, bValue IN BOOLEAN DEFAULT TRUE)
This procedure is used to enable or disable all components of the specified container. This procedure must be used on the smallest containing object (like a panel or a tab of a tabpanel). You cannot use it on an entire tabpanel or cardpanel container object. (Well, strictly speaking, you could, but it wouldn't do what you wanted).
 

Frame FRAME.Pack(name IN VARCHAR2)
This procedure is used to dynamically size a frame as large as necessary to "pack" around its components. This is the normal procedure used to size a frame and is done after adding it.
 


FRAME.SetMessage(name IN VARCHAR2, msg IN VARCHAR2)
This procedure is used to display a message in the system message area at the bottom of the frame.
 


FRAME.SetTitle(name IN VARCHAR2, title IN VARCHAR2)
This procedure is used to assign a frame's title (displayed in the top border of the frame).
 


FRAME.SetVisible(name IN VARCHAR2, bValue IN BOOLEAN DEFAULT TRUE)
This procedure is used to make a frame visible or invisible (hidden).
 

Card panel CARDPANEL.Show(name IN VARCHAR2, card IN VARCHAR2)
This procedure is used to change the panel within the card panel that is currently displayed.
 
Tab panel TABPANEL.SetTab(name IN VARCHAR2, tab IN VARCHAR2)
This procedure is used to change the panel that is currently displayed within the tabpanel.
 

Component Procedures

These procedures are used with various component objects (objects which are not containers). There are both generic component procedures which can be used with any component type, and other procedures that are specific to a particular component type.

Generic Component
These procedures can be used on any component object.

COMPONENT.SetEnabled(name IN VARCHAR2, bValue IN BOOLEAN DEFAULT TRUE)
This procedure is used to enable or disable a component.
 


COMPONENT.SetTooltipText(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to assign a tooltip help message to a component.
 


COMPONENT.SetVisible(name IN VARCHAR2, bValue IN BOOLEAN DEFAULT TRUE)
This procedure is used to make a component visible or invisible (hidden).
 


Button

BUTTON.SetText (name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to change the caption on a button.
 
Checkbox CHECKBOX.SetSelectedValue(name IN VARCHAR2, bValue IN BOOLEAN DEFAULT TRUE)
This procedure is used to select (check) or unselect (clear) a checkbox.
 


CHECKBOX. SetText (name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to change the caption on a checkbox.
 


Combo box

COMBOBOX.AddItem(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to add one or more values to the combobox choices. Values are always added at the bottom of the list of choices.
 


COMBOBOX.RemoveAllItems(name IN VARCHAR2)
This procedure is used to remove all choices from (clear) a combobox.
 


COMBOBOX.SetDefaultSelection(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to set the default selection choice for a combobox. This choice will be displayed when the combobox is first created and whenever a "set defaults" procedure is invoked on it or its container.
 


COMBOBOX.SetSelectedIndex name IN VARCHAR2, nValue IN NUMBER)
This procedure is used to set the currently selected item to the n'th item in the list, starting with 0 as the top item.
 


COMBOBOX.SetSelectedItem(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to set the currently selected item by specifying the value of one of the choices.
 


Label

LABEL.SetIcon(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to display an image with the text of a label.
 


LABEL.SetText(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to change the displayed text of a label.
 


List box

LISTBOX.AddItem(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to add one or more values to the listbox choices. Values are always added at the bottom of the list of choices.
 


LISTBOX. RemoveAllItems(name IN VARCHAR2)
This procedure is used to remove all choices from (clear) a listbox.
 


LISTBOX. SetDefaultSelection(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to set the default selected item by specifying the value of one of the choices.
 


LISTBOX. SetSelectedIndex name IN VARCHAR2, nValue IN NUMBER)
This procedure is used to set the currently selected item to the n'th item in the list, starting with 0 as the top item.
 


LISTBOX. SetSelectedItem(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to set the currently selected item by specifying the value of one of the choices.
 


Message Box

MSGBOX.Message(msg IN VARCHAR2)
This procedure is used to display an informational message to the user, in a modal dialog box with an OK button.
 


MSGBOX.Warning(msg IN VARCHAR2)
This procedure is used to display an error or warning message to the user, in a modal dialog box with an OK button.
 


Radio Button

RADIOBUTTON. SetSelectedValue(name IN VARCHAR2, bValue IN BOOLEAN DEFAULT TRUE)
This procedure is used to select (check) or unselect (clear) a radio button.
 


RADIOBUTTON. SetText(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to change the caption on a radio button.
 


Table (Grid)

GRID.RemoveAllItems(name IN VARCHAR2)
This procedure is used to remove all rows from a table component in a client app.
 


GRID.SetRowText(name IN VARCHAR2, nRow IN NUMBER DEFAULT 0, value IN VARCHAR2, delimiter IN VARCHAR2)
This procedure is used to add or change the contents of all cells in one row of a table. If the specified row number does not exist, it will be added. If no row number is specified, a new row is added at the end of the table. The value must be a comma-separated list of column values for every column of the row. Each column value must be a string of the appropriate data type as defined in the client table column properties.
 


GRID.SetSelectedRow(name IN VARCHAR2, nRow IN NUMBER DEFAULT 0)
This procedure is used to set the "selected" row in a table.
 


GRID.SetText(name IN VARCHAR2, nRow IN NUMBER DEFAULT 0, nColumn IN NUMBER DEFAULT 0, value IN VARCHAR)
This procedure is used to assign or change the contents of one cell in a table.
 

Textarea TEXTAREA.SetText(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to display text within a text area.
 
Textfield TEXTFIELD.SetText(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to display a value within a textfield.
 
Textpane TEXTPANE.SetText(name IN VARCHAR2, value IN VARCHAR2)
This procedure is used to display a value within a textpane.
 
Tree (JSITree) JSITree.AddNode(treeName IN VARCHAR2, parentName IN VARCHAR2, nodeName IN VARCHAR2, text IN VARCHAR2, userData IN VARCHAR2, tooltip IN VARCHAR2, imageIndex IN PLS_INTEGER DEFAULT 0, nodeIndex IN PLS_INTEGER DEFAULT -1)
This procedure is used to add a node to the tree.
 


JSITree.CollapseNode(treeName IN VARCHAR2, nodeName IN VARCHAR2)
This procedure is used to collapse a tree node.
 


JSITree.ExpandNode(treeName IN VARCHAR2, nodeName IN VARCHAR2)
This procedure is used to expand a tree node.
 


JSITree.RemoveChildNodes(treeName IN VARCHAR2, nodeName IN VARCHAR2)
This procedure is used to remove all child nodes from a tree node.
 


JSITree.RemoveNode(treeName IN VARCHAR2, nodeName IN VARCHAR2)
This procedure is used to remove a tree node.
 


JSITree.SetNodeImageIndex(treeName IN VARCHAR2, nodeName IN VARCHAR2, imageIndex IN PLS_INTEGER)
This procedure is used to change the visible image that reperesents a tree node.
 


JSITree.SetNodeText(treeName IN VARCHAR2, nodeName IN VARCHAR2, text IN VARCHAR2)
This procedure is used to change the visible label of a tree node.
 


JSITree.SetNodeTooltip(treeName IN VARCHAR2, nodeName IN VARCHAR2, tooltip IN VARCHAR2)
This procedure is used to change the tooltip of a tree node.
 


JSITree.SetNodeUserData(treeName IN VARCHAR2, nodeName IN VARCHAR2, userData IN VARCHAR2)
This procedure is used to change the hidden, user-defined data of a tree node.
 


JSITree.SetSelectedNode(treeName IN VARCHAR2, nodeName IN VARCHAR2)
This procedure is used to select a tree node.
 




 


 Up to Top   Return to Help Index