1) Create the View Object
2) Bind LOV on page defs (Executable section)
3) Add a List to bindings
4) Create SelectItem on page
required="#{bindings.LovCode.hints.mandatory}"
shortDesc="#{bindings.LovCode.hints.tooltip}" id="soc4"
styleClass="colspec_medium">
<f:selectItems value="#{bindings.LovCode.items}" id="si4"/> </af:selectOneChoice>
- This is done as you would create any VO and add the VO to the application module. Dont forget to refresh Data Controls section.
2) Bind LOV on page defs (Executable section)
- Navigate to the page you want to add the LOV to
- Click on the bindings tab.
- Click the green plus button on the Executables section
- Select iterator
- Press ok
- Select your newly created VO
- Press OK
3) Add a List to bindings
- Press the green plus button on the Bindings Section
- Select list then ok
- Standalone select one value list then ok
- Select your Iterator from the base data source list
- Select your display attribute
4) Create SelectItem on page
- Add the following tag to your page REMEMBER that LovCode must be replaced by your newly create binding
required="#{bindings.LovCode.hints.mandatory}"
shortDesc="#{bindings.LovCode.hints.tooltip}" id="soc4"
styleClass="colspec_medium">
<f:selectItems value="#{bindings.LovCode.items}" id="si4"/> </af:selectOneChoice>
Comments
Post a Comment