How to make a jsf parameter form with a selectOneChoice and data control

I want to make a parameter form with a selectOneChoice and store this value in a backing bean, so I can use as a bind variable in query. I already made it happen without data control
Can someone show how to do it in adf data control. With the wizard it tries put the value
in a viewobject but I don't have base or destination viewobject. I can change the pagedef
so it works to fill the selectOneChoice but then I want to store the selected value in a session beab
here is solution with the application module and request / session bean, I don't
think it is the right solution
thanks edwin
jsf page
<af:selectOneChoice label="Desk" value="#{selectDesk.desk}"
id="DeskID"
binding="#{selectDesk.deskBinding}"
autoSubmit="true"
valueChangeListener="#{selectDesk.deskChangeListener}">
<f:selectItems value="#{selectDesk.deskSelectItems}"/>
</af:selectOneChoice>
Selektdesk backing bean
public SelectDesk(){
FacesContext facesContext = FacesContext.getCurrentInstance();
ValueBinding valueBinding = facesContext.getApplication().createValueBinding("#{userInfo}");
userInfo = (UserInfo) valueBinding.getValue(facesContext);
public List<SelectItem> getDeskSelectItems() {
if ( userInfo.getSelectItems() != null ) {
selectItems = userInfo.getSelectItems();
return selectItems;
if ( getBindings() != null ) {
userInfo.setBindings( getBindings());
else {
setBindings(userInfo.getBindings()) ;
if ( selectItems == null ) {
selectItems = new ArrayList<SelectItem>();
DCBindingContainer bc = getBindings();
SicmaService sicma = (SicmaService)bc.findDataControl("SicmaServiceDataControl").getDataProvider();
ViewObject desk = sicma.findViewObject("DeskSelectView1");
desk.executeQuery();
RowSet rows = desk.getRowSet();
while (rows.hasNext()) {
Row a = rows.next();
String DskId = a.getAttribute(0).toString();
String DskOms = a.getAttribute(1).toString();
selectItems.add( new SelectItem(DskId ,DskOms ));
rows.closeRowSet();
userInfo.setSelectItems(selectItems);
return selectItems;
faces-config.xml
<managed-bean>
<managed-bean-name>selectDesk</managed-bean-name>
<managed-bean-class>org.tennet.sicma.view.backing.SelectDesk</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>bindings</property-name>
<property-class>oracle.adf.model.binding.DCBindingContainer</property-class>
<value>#{bindings}</value>
</managed-property>
</managed-bean>

The SRDemo has an example of a selectOneRadio bound to a parameter being used to pass to an ExecuteWithParams action (to automatically feed a view object's named bind variable. This is in the SRStaffSearch.jspx page.
Also, if you check out example # 72 from my blog:
http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#72
There is another example of using a selectOneListbox to do the same type of thing.
The steps involved in creating something like this are to:
(1) Define your named bind variables on your view object
(2) Drop the "ExecuteWithParams" action in the operations folder of that view object from the Data Control Palette to your page as a "Parameter Form"
(3) Drop the specific attribute (nested child of the "ExecuteWithParams" action from step (2) as whatever kind of selectOneXXXX control you want
(4) Delete the extra field on the form you don't want.

Similar Messages

  • How to make a one field form with Adobe Muse?

    Hello,
    I hope you can help me guys, im trying to make one field form for a webpage (this form is just to input a phone number, similar as the newsletter sign up forms with one field) and the problem is with the widgets i can´t erase the Name and email field... Is possible to eliminate those?
    thanks a lot for your help

    Hi
    I am afraid its not possible to do the same, as Name and email field are mandatory.

  • How to make an AIDrawArtAGMPort on Windows with CS3, CS4 and CS5

    Hi
    I want to use the function DrawArt of AIDrawArtSuite.
    To use this function, I must have an AIDrawArtGWorld or an AIDrawArtAGMPort or an AIDrawArtAGMPoirtV6 object.
    With CS6 SDK, this suite provides a mean to instantiate an AIAGMPort.
    With CS3, CS4 and CS5 this function doesn't exist.
    On MacOS X, I can build AIDrawArtGWorld.
    On Windows, I don't know how to do it.
    On Windows how can I make an AIDrawArtAGMPort  object ?

    Hi,
    It is not recommended way to install SAP System without following Standard Installation Method. Please read concerned Official SAP Installation Guide and follow the standard procedure without inviting more complexities and headache.
    Regards,
    Bhavik G. Shroff

  • How to make an editable bulleted list with multiple lines and custom bullets?

    How do I create an editable bulleted list in Acrobat Pro? I've figured out how to add text fields with multiple lines, and how to add a list box, but I don't see the check box for multiple lines in the list box or how to add bullet points. Can someone please give me step by step instructions? Also is it possible to use custom bullet points?

    Is it a text field or a list box field? The two are not the same...
    The bullets are something that the user will have to enter manually (into a text field, they can only select values in a list-box).
    They can use any unicode character, or special characters if the font used for that field allows for it. You can't use images for the bullets, if that's what you mean.

  • How to make a original frame same with Comment List and Attachment?

    How can I make original frame looking like Comment List?
    I'm using Windows XP and Adobe Acrobat 9 Pro and Acrobat 9 SDK.
    I want to make a new plug-in that use a new frame.
    The new frame is looking like Comment List and Attachment.
    I want to show my original list and input form to the frame.
    It is close to Comment List frame, but I want to show original list.
    Additionally, I want to add new button upper of Comments Button on Navigation Button Panel.
    Can I have any help?

    There is no support in the SDK for adding your own panels.
    There is no support for modifying the existing panels.

  • How can I get a date picker or wheel to show up in the form to make filling in a form with a lot of

    how can I get a date picker or wheel to show up in the form to make filling in a form with a lot of dates more easy?

    There is no built-in date picker available for forms created in Acrobat. There are some third-party solutions involving JavaScript (either a large collection of fields or a custom dialog) though. Also, text fields with date formatting will use a wheel type date picker on Android/iOS devices with Adobe Reader.

  • How to make a list item field with DATE data type?

    I have a column with DATE data type. Using forms 6i I want to generate a poplist list item field with this column while the value of the elements in the list to will be day names like SATURDAY,SUNDAY,MONDAY. if we change the data type from date to char, it will work properly but now with DATE data type behind it, it gives the following error message
    "FRM-32082: Invalid value for given item type.
    List WEEKREST
    Item: WEEKREST
    Block: EMPRESTS
    Form: MODULE3
    FRM-30085: Unable to adjust form for output."
    Using forms 6i how to make a list item field with DATE data type which can hold day names?

    Set your date column as a hidden (non-displayed) field. Create your list item with the varchar2 day names. Create the list item as a non-base-table field that accepts the text values of day names. On that field, create a when-validate-item trigger that translates the text into a real date, which it then uses to set the value of the actual base-table item.

  • How to pass record Group from Forms with DATA_PARAMETER to Reports Server

    How to pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    When we use products on run time we are using data_parameter for passing record Groups to reports via run_product but now we have to use application server and reports server for same reports.
    We met with <FRM-41214 Unable to run reports> for passing DATA_PARAMETER to reports server when used RUN_REPORTS_OBJECT.
    How can we pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    Thanks,
    Arif

    Hi Mandeep,
    Could you please tell me how can i pass data parameter from forms to report through run_product.

  • How to make a common parameter for two subreports in the main report.

    Hi,
    I have a crystal report which has 2 subreports in it. Both the subreports have the same code and I need to create a parameter for Project Cost in both the subreports for filtering the data.
    When i create the same parameter in both the subreports, i see two parameters with same name on my prompt page while refreshing the report. however I just want 1 parameter on my prompt page and data should get filtered in both the reports.
    Can anyone please suggest something, How can I do that? is there a way for sharing same parameter between two subreports?
    Thanks!
    Neha.

    hi Neha,
    here's how to do this:
    1) create a new parameter with the same name on the main report
    2) right click on your first subreport and choose Change Subreport Links
    3) in the Field to Link To list drag over your new main report parameter
    4) open the Subreport Parameter Field to Use select menu and choose your subreport parameter
    5) repeat steps for the 2nd subreport
    now you'll only get prompted once.
    cheers,
    jamie

  • How to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    how to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    There is a more specific Forum …
    Photoshop Scripting

  • How to synchronize a cell in form with a cell in MS excel sheet

    dear all
    I can successfuly export data to excell using the ole2 package. But the problem is that exporting data from A datablock in a form to Excel sheet is not enough.
    I need to automaticaly copy updates occures on the datablock to its equilivant in the excel sheet. In other words , i need to synchronize my datablock items with facing cells in the excel sheet,so the cells'values in excel sheet automatiacly changes to be the values in the datablock items
    please help

    Dear all
    I can successfuly export data to excell using the ole2 package. But the problem is that exporting data from A datablock in a form to Excel sheet is not enough.
    I need to automaticaly copy updates occures on the datablock to its equilivant in the excel sheet. In other words , I need to synchronize my datablock items with facing cells in the excel sheet,so the cells'values in excel sheet automatiacly changes to be the values in the datablock items
    I searched the web several times . Some people adviced me to use "Apache-jakarta-poi" . It is a pure java code. But my knoledge in java is limited.I asked on Oracle forums -
    how to synchronize a cell in form with a cell in MS excel sheet - but no one can help
    I tried the oracle forms demo "OLEEXCEL.fmb" . But this form is not working correct .
    I need to embed ole2 in my form that holds excel sheet and passes values from text items to the excel sheet.
    My last try is that I did the following :
    1- in the main canvas i insert the OLE2 control
    2- Right Click and choose insert
    3- from the dialog i chosed Excel Sheet
    4- I placed a button on my canvas then i on the button I write this code
    declare
    worksheet ole2.obj_type;
    cell ole2.obj_type;
    args ole2.list_type;
    begin
    forms_ole2.activate_server('block1.excel_sheet');
    worksheet := forms_ole2.get_interface_pointer('block1.excel');
    args := ole2.create_arglist;
    ole2.add_arg(args,1) -- column1
    ole2.add_arg(args,1) -- cell1
    cell := ole2.invoke_obj(worksheet,'cell',args);
    ole2.destroy_arglist(args);
    ole2.set_property('cell','value',:text1);
    ole2.release_obj(cell);
    ole2.release_obj(worksheet);
    end;
    I get this error ora-305500
    and when i debug , the code stop in this line : cell := ole2.invoke_obj(worksheet,'cell',args);
    please help

  • How can I get data from excel to populate a form with unique entries and distribute?

    I would like to use Adobe LiveCycle to create a form, then use data from an excel spreadsheet to populate the form in a repetative fashion so that each person in the spreadsheet gets a populated form with only their applicable data on it.
    Also, if there is a way to use a mail merge function, this would be helpful to know since each person is to receive their copy as an attachment through email. 
    Any help would be appreciated - have been researching for 2 days now how to do this and am at a loss.

    See Connecting a From to a Database and Connecting to a Web Service by Stefan Cameron. Excel can have named ranges that can be connected an ODBC connection.

  • How to hide Report's Parameter Form Urgent Please

    Hello to All!
    How we can hide Reports Parameter Form when we are calling a report from our form by using RUN_PRODUCT built in.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Amir Sajjad ([email protected]):
    Hello to All!
    How we can hide Reports Parameter Form when we are calling a report from our form by using RUN_PRODUCT built in.<HR></BLOCKQUOTE>
    Hi Amir!
    You must add to your paramlist the following parameter:
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    Bye

  • How to make an hypertext link workable with adobe reader for IOS ?

    Hello,
    Hypertext links in a PDF file work perfectly well on Mac OS (Yosemite).
    The same document on an IPAD with IOS is not able to open an hypertext link ...
    How could I do to solve this problem ?
    An author who want to publish electronic books with hypertext links on mobile devices

    Hello Steve,
    All my best wishes for the new year.
    To answer your question :
    . I am writing books on my IMAC with Yosemite  (10.10.1) using Word (14.4.7)
    of  OFFICE MAC.
    . I can open Hyperlink connection by clicking on the link
            . I save the document in a .PDF format
    . This document is sent to my IPAD with IOS 8.1.2
    . In this .PDF document I am no more able to open hyperlink connection
    Please see attached an abstract of my book.
    Thanks a lot for your help and advices.
    Michel Poncet
    Tel: +33 4 76 89 50 82
    http://www.amazon.fr/Glariand-Copent/e/B007NXP7FU
    De :  Steve Werner <[email protected]>
    Répondre à : 
    <[email protected]>
    Date :  vendredi 2 janvier 2015 03:34
    À :  Michel Poncet <[email protected]>
    Objet :   How to make an hypertext link workable with
    adobe reader for IOS ?
    How to make an hypertext link workable with adobe reader for IOS ?
    created by Steve Werner <https://forums.adobe.com/people/Steve+Werner>  in
    Adobe Reader for iOS - View the full discussion
    <https://forums.adobe.com/message/7058559#7058559>
    Hyperlinks can be of several types. What are you linking to? Exactly what
    application did you test the hyperlinks with on the Mac? What application
    did you use to create the hyperlinks?
    If the reply above answers your question, please take a moment to mark this
    answer as correct by visiting:
    https://forums.adobe.com/message/7058559#7058559 and clicking ŒCorrect¹
    below the answer Replies to this message go to everyone subscribed to this
    thread, not directly to the person who posted the message. To post a reply,
    either reply to this email or visit the message page:
    Please note that the Adobe
    Forums do not accept email attachments. If you want to embed an image in
    your message please visit the thread in the forum and click the camera icon:
    https://forums.adobe.com/message/7058559#7058559 To unsubscribe from this
    thread, please visit the message page at
    , click "Following" at the
    top right, & "Stop Following" Start a new discussion in Adobe Reader for iOS
    by email
    <mailto:[email protected]eso
    ftware.com>  or at Adobe Community
    <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=
    14&container=4631>  For more information about maintaining your forum email
    notifications please go to https://forums.adobe.com/thread/1516624.

  • Hi all, how to make slide show on Iweb with out QuickTime?

    Hi all, how to make slide show on Iweb (with out QuickTime or link to YouTube) to be watched in any computer/system?
    I used Imove - share - exported - medium (m4v)
    This the one I did.
    http://360motorcycleadventures.com
    Must looking profissional (no YouTube frame)
    The problem is: I lot people don't have QuickTime, any body can point me the right direction?
    Thanks' in Advance.

    I use this slideshow often :
    http://www.wyodor.net/iWebBlogTest/Wyodor_1/WebBanner.html
    See it here in an iWeb page :
    http://www.wyodor.net/_Demo/MyHouse/Huis.html
    These are the slideshows :
    http://www.wyodor.net/_Demo/Gardens/flagstones.html
    http://www.wyodor.net/_Demo/Gardens/gardens.html
    And here in a non-iWeb page :
    http://www.wyodor.net/htmlegg/SmallCard/SmallSlideshow.html
    This is the slideshow itself :
    http://www.wyodor.net/htmlegg/SmallCard/VintageParis/
    Or use WOW slider :
    http://www.wyodor.net/htmlegg/TallCard/TallWow.html
    There are lots of slideshows out there. Choose the one you like.
    And search/browse this forum for other solutions.

Maybe you are looking for

  • Need Help with "Channels" CS5

    I am learning about using channels as a mean of channel masking in CS5.  The instructor on a dvd starts with a general understanding of channels.  Within the first 2 minutes, I can't seem to replicate his instructions. Here are steps I take to look a

  • What are the 3rd  party text editors for oracle?

    hi guys, I was wonder does any one know any 3rd party text editor available for Oracle(for free!) Just like ot SQL server 2000 which provides a nice texteditor to type all the SQL commands, is there a one liek that for Oracle? Message was edited by:

  • FTP TO RFC scenario

    In this scenario i am sending companyid from ftp and want to receive company details in response, I have designed the scenario the output file is generated in response but the data is not getting retrived so can anyone help me out in this scenario

  • Music "not found" when trying to sync - New Iphone User

    I just bought an Iphone and I'm trying to sync music from my computer. Half of my library is "not found" and not syncing. Any help would be appreciated. Thanks D

  • Foreach activity in bpel2.0

    I have a foreach activity in bpel 2.0. I set the startCounterValue to 1 and finalCounterValue to count(Lines\Line). If I have one or more than one line it is working fine. If there are no line inside lines count becomes zero and timingout there. Does