Display LOV (List Of Values) Using Show_Lov In Oracle Forms
2016-12-25 13:29
676 查看
Show_Lov Function is used to display list of values (LOV) in Oracle Forms. It returns TRUE if the user selects a value from the list, and FALSE if user not selects the value.
Syntax
You can pass the LOV ID to Show_Lov function to display the LOV.
SHOW_LOV(lov_id LOV);
You can pass the x and y coordinates with LOV ID to display lov at specific location.
SHOW_LOV (lov_id LOV, x NUMBER, y NUMBER);
Display LOV by passing the LOV Name.
SHOW_LOV (lov_name VARCHAR2);
By passing LOV Name with X and Y coordinates.
SHOW_LOV (lov_name VARCHAR2, x NUMBER, y NUMBER);
Example
When-Button-Pressed trigger to display LOV (list of values):
Begin
If Show_Lov('My_Lov') Then
Message('Value Choosen.');
Else
Message('Value Not Choosen');
End If;
End;
OR
Declare
v_choosen boolean;
Begin
v_choosen := Show_Lov('My_Lov');
If v_choosen Then
Message('Value Choosen.');
Else
Message('Value Not Choosen');
End If;
End;
Below is the example given to call Show_Lov function by passing LOV ID as parameter, by using Find_Lov and ID_Null functions.
Declare
lv_id LOV;
v_choosen Boolean;
Begin
lv_id := Find_LOV('My_LOV');
If Not Id_Null(lv_id) THEN
v_choosen := Show_LOV(lv_id,10,20);
End If;
If v_choosen Then
Message('Value Choosen.');
Else
Message('Value Not Choosen');
End If;
End;
Syntax
You can pass the LOV ID to Show_Lov function to display the LOV.
SHOW_LOV(lov_id LOV);
You can pass the x and y coordinates with LOV ID to display lov at specific location.
SHOW_LOV (lov_id LOV, x NUMBER, y NUMBER);
Display LOV by passing the LOV Name.
SHOW_LOV (lov_name VARCHAR2);
By passing LOV Name with X and Y coordinates.
SHOW_LOV (lov_name VARCHAR2, x NUMBER, y NUMBER);
Example
When-Button-Pressed trigger to display LOV (list of values):
Begin
If Show_Lov('My_Lov') Then
Message('Value Choosen.');
Else
Message('Value Not Choosen');
End If;
End;
OR
Declare
v_choosen boolean;
Begin
v_choosen := Show_Lov('My_Lov');
If v_choosen Then
Message('Value Choosen.');
Else
Message('Value Not Choosen');
End If;
End;
Below is the example given to call Show_Lov function by passing LOV ID as parameter, by using Find_Lov and ID_Null functions.
Declare
lv_id LOV;
v_choosen Boolean;
Begin
lv_id := Find_LOV('My_LOV');
If Not Id_Null(lv_id) THEN
v_choosen := Show_LOV(lv_id,10,20);
End If;
If v_choosen Then
Message('Value Choosen.');
Else
Message('Value Not Choosen');
End If;
End;
相关文章推荐
- Displaying Tabbed and Stacked Canvas Using Show_View In Oracle Forms
- Displaying Modal Window Messages in Oracle Forms Using Show_Alert
- Know How To Use Check Box Mapping Of Other Values Property In Oracle Forms
- Create Timer Example To Show Image Presentation in Oracle Forms
- Using Post_Query Trigger in Oracle Forms
- Using Timer to get history values from EDNA database, an error is prompted in the page : "Sys.WebForms.PageRequestManagerTimeout
- Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command
- Populating Tabular Data Block Manually Using Cursor in Oracle Forms
- Shifting List Item Values From One List To Another In Oracle Forms
- Enter Query Mode Search Tricks Using Enter_Query Built-in in Oracle Forms
- Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command
- Change Or Set Report Object Property At Run Time In Oracle Forms Using Set_Report_Object_Property Command
- Using Single Alert For Messages And Confirmation Messages In Oracle Forms With Set_Alert_Button_Property
- Perform Cut Copy Paste Operations Using Cut_Region Copy_Region Paste_Region Commands In Oracle Forms
- Using Post-Form Trigger In Oracle Forms
- An Example of Pre-Query and Post-Query Triggers in Oracle Forms With Using Display_Item to Highlight Dynamically
- Using GET_GROUP_SELECTION For Record Groups in Oracle Forms
- Change An Item Property Using Set_Item_Property In Oracle Forms
- An Example Of Validating Text Item In Oracle Forms Using When-Validate-Item Trigger
- Define Custom Data Filter Using Pre-Query Trigger In Oracle Forms