create record in LOV's Popup

How to implement create new record in LOV's popup
Referring to the doc http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_lov.htm

The popup dialog from an inputListOfValues component or the optional search popup dialog in the inputComboboxListOfValues component also provides the ability to create a new record. For the inputListOfValues component, when the createPopupId attribute is set on the component, a toolbar component with a commandToolbarButton is displayed with a create icon. At runtime, a commandToolbarButton component appears in the LOV popup dialog,
However in this post we see how to implement in two methods 

First method :
autoCreate.PNG
Click Search commandlink from LocationId combobox LOV and it launches popup as shown below, click create icon to create new record in form.

autoCreate1.PNG

Second Method :
Drop the collection ( department + location in this example)  from data control to page either as form or table and then expand LOV component ->  input Combobox List of Values -> customAction in structure and right click on customAction and then insert commandLink. You can add popup and showpopup behviour and bound the editable table to showpopup behviour dialog as shown below.

Here is the Screen shots :
lov1.PNG

lov2.PNG


Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

bocadmin_ww

Search

Archives
« August 2015
SunMonTueWedThuFriSat
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
     
Today