Drop down list populated with parent entity

Hi,
I am new with all these ADF in jdev. Let's say I have this model parent -> child. I created toplink mapping, ejb facade and adf data control.
If I want to create a form for child with one drop down box will be parentId. How do I do that?
Thank you

Hi,
if you use ADF, then you create a data control from the EJB session facade. This exposes the method to query all parents as well as the details. You drag and drop the result set of the details as a form. Then you remove the attribute for which you want to create a drp down list. Expand the detail result node and drag the attribute to the form. In teh opened context menu choose selectOne. In teh opened binding dialog, create a new list binding and choose the result set of the parent. Map the paren't PK to teh detail FK attribute and choose one or more display attributes
otn.oracle.com/products/jdev has tutorials on this as well
Frank

Similar Messages

  • PO drop down list populates with "Delivery Completed" POs

    All,
    I have seen the following issue: When the supplier creates an ASN manually and is requested to populate the Purchase Order field, the drop down list displays "Open" Purchase Orders as well as "Delivery Completed" ones, which is very confusing.  Do you happen to know how I can ensure that the supplier only has the choice to select from "Open" Purchase Orders when creating a new ASN?
    Thank you for your help!
    Johanna

    If a particular email address will only be associated with a single office, then one thing you can do is set the export value of the items in the combo box to the corresponding email addresses. The email address will be the value of the field when you retrive it with JavaScript.
    To submit to a particular email address, it would be best to use the mailDoc method, which is documented here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.505.html
    This is best because it allows you to reliably customize all the the email properties like recipients, subject, body, etc.
    The code for getting the value of the comob box would look something like this:
    // Get the email address from the combo box named "combo1"
    var sTo = getField("combo1").value;
    If more than one office will have the same email address associated with it, post again and I can refer you to other posts that discuss this situation. You would have to use a similar approach if you do not want to set the export values of the items to the email addresses for some reason.
    The alternative is to use the submitForm JavaScript method, but specifying the subject and body text is less reliable and more complicated.
    If you need more help, post again.

  • Drop down lists populating text fields on a page different from the dropdown.

    Hello all,
    I have a form with several pages. The first page contains a number of drop down lists. These drop down lists, when an option is chosen, is to populate a text field on another page. I can get the drop down list to populate the text field when it is on the same page, but as soon as I move the text field to another page, the script doesn't work. Can anyone offer a solution? I've used javascript on change for the scripts.

    Thanks Paul,
    I have been able to solve the drop down list question, thanks to your help.
    I have another question that involves locking specific fields in a four page form which contains approximately 100 fields that need to be locked before the end user completes the remaining fields. How do I lock individual subforms so that the remaining fields remain open and editable?  The final version of the form, will have at least 200 fields in it that will also need to be locked in sections.
    I can lock all the fields using the lock all fields button, but have been unable to make it work for just part of the form.
    I've emailed the draft form.  It would be really helpful if I had one example of a locked subform on the form I'm struggling with.
    Thanks for your help.
    Nellie

  • Purchase order sample - drop down list populating another drop down list

    hello, when i use this sample script, it works fine. but when i add additional arrays to it, it doesn't work at all. please let me know what i need to change in this script in order to add additional items into the drop down lists. here is the script that works (displays 3 options in first drop down list (blank, option, another option)):
    // This script object controls the interaction between the carrier and plan Drop-down lists.
    // The array contains the carriers and the corresponding plans.
    var myCarriers = new Array(new Array(2), new Array(14), new Array(17)); // Create a two-dimensional array.
    // For each carrier, add a 'new Array(number of plan +1)'.
    // Define the carrier and the corresponding plans.
    // The array syntax is arrayName[index][index].
    // The first index number represents the carrier,
    // the second index number is the actual data value.
    myCarriers[0][0] = " "; // The first items in the Drop-dowm Lists should be blank.
    myCarriers[0][1] = " ";
    myCarriers[1][0] = "ANERT"; // The first data value is the carrier name,
    myCarriers[1][1] = "MC250"; // the rest are plans.
    myCarriers[1][2] = "MC2501";
    myCarriers[1][3] = "MC5002";
    myCarriers[1][4] = "MC5003";
    myCarriers[1][5] = "MC1000";
    myCarriers[1][6] = "MC2000";
    myCarriers[1][7] = "MCHC2300";
    myCarriers[1][8] = "MCHC3000";
    myCarriers[1][9] = "MC2500";
    myCarriers[1][10] = "MB";
    myCarriers[1][11] = "P500";
    myCarriers[1][12] = "MHH3000";
    myCarriers[1][13] = "MHH5000";
    myCarriers[2][0] = "BCCA"; // This is a new carrier, see how the first number is now [1].
    myCarriers[2][1] = "S Plan";
    myCarriers[2][2] = "BPlan";
    myCarriers[2][3] = "P40";
    myCarriers[2][4] = "P30";
    myCarriers[2][5] = "P35*";
    myCarriers[2][6] = "P45*";
    myCarriers[2][7] = "Ad25*";
    myCarriers[2][8] = "Pr20";
    myCarriers[2][9] = "Pr10";
    myCarriers[2][10] = "PH750*";
    myCarriers[2][11] = "PH500*";
    myCarriers[2][12] = "2400HD";
    myCarriers[2][13] = "3500HD";
    myCarriers[2][14] = "2000HD";
    myCarriers[2][15] = "LH1500";
    myCarriers[2][16] = "LH3000";
    // This function will populate the carrier Drop-down List.
    // This function is called from the initialize event of the carrier Drop-down List.
    function getCarriers(dropdownField)
    dropdownField.clearItems();
    for (var i=0; i < myCarriers.length; i++)
    dropdownField.addItem(myCarriers[i][0]);
    // This function will populate the plans Drop-down List for any event EXCEPT the change event.
    // This function is called by the initialize event of the plan Drop-down List.
    function getPlans(carrierField, dropdownField)
    dropdownField.clearItems(); // Clear the items of the Drop-down List.
    for (var i=0; i < myCarriers.length; i++) // Look through all the carriers until we find the one that matches the carrier selected.
    if(myCarriers[i][0] == carrierField.rawValue) // Check to see if they match.
    for (var j=1; j < myCarriers[i].length; j++) // When they match, add the plans to the Drop-down List.
    dropdownField.addItem(myCarriers[i][j]);
    dropdownField.rawValue = myCarriers[i][1]; // Display the first item in the list.
    // This function will populate the plans Drop-down List for the change event.
    // This function is called by the change event of the carrier Drop-down List.
    // The first parameter is simply a pointer to the xfa object model.
    function getPlansOther(myXfa, dropdownField)
    dropdownField.clearItems(); // Clear the items of the Drop-down list.
    for (var i=0; i < myCarriers.length; i++) // Look through all the carriers until we find the one that matches the carrier selected.
    if(myCarriers[i][0] == myXfa.event.newText) // Check to see if they match. Note: we have to use the event.newText in this case because
    { // the ch

    continued...
    change hasn't been committed yet.
    for (var j=1; j < myCarriers[i].length; j++) // When they match, add the states/provinces to the Drop-down List.
    dropdownField.addItem(myCarriers[i][j]);
    dropdownField.rawValue = myCarriers[i][1]; // Display the first item in the list.
    when i try to add 4 more arrays (add items to first drop down list and second drop down list), nothing displays in either drop down lists. please let me know the items that need to be changed - besides these items (i know i need to add arrays and add myCarriers[1][0],[2][0],[3][0] to [6][0] --- for 4 additional items in the first drop down):
    var myCarriers = new Array(new Array(2), new Array(14), new Array(17)); // Create a two-dimensional array.
    // For each carrier, add a 'new Array(number of plan +1)'.
    // Define the carrier and the corresponding plans.
    // The array syntax is arrayName[index][index].
    // The first index number represents the carrier,
    // the second index number is the actual data value.
    myCarriers[0][0] = " "; // The first items in the Drop-dowm Lists should be blank.
    myCarriers[0][1] = " ";
    myCarriers[1][0] = "ANERT"; // The first data value is the carrier name,
    myCarriers[1][1] = "MC250"; // the rest are plans.
    myCarriers[1][2] = "MC2501";
    myCarriers[1][3] = "MC5002";
    any help would be greatly appreciated. thank you!

  • Can't set InfoPath 2010 Drop Down List field with C#

    Hi Guys,
    Here I go again, last time it was a date field, this time it is a drop down list. The applications does this: When the user comes into the form, they have the option of creating a new form via a hyperlink button on the top of the page, this button creates
    a new IP Page of the same exact type of page that it is coming from. The issue I am having is that one of my fields called ddlStatus isn't coming up correctly in the copied form, not sure why? If anyone can help I would be eternally grateful. Here is a copy
    of my code:
    if (e.InputParameters !=
    null)
                                System.Text.
    StringBuilder status =
    new System.Text.StringBuilder();
    string ddlStatus =
    string.Empty;
    if (e.InputParameters.TryGetValue("ddlStatus",
    out ddlStatus))
                                    status.AppendLine(ddlStatus);
                                    nav.SelectSingleNode(
    "/my:myFields/my:secInfo/my:ddlStatus", NamespaceManager).SetValue(status.ToString());
    Best regards, Mike

    Well, ok, so I set my code as such:
       addStatus()                    
    if (e.InputParameters !=
    null)
                               System.Text.
    StringBuilder status =
    new System.Text.StringBuilder();
    string ddlStatus =
    string.Empty;
    if (e.InputParameters.TryGetValue("ddlStatus",
    out ddlStatus))
    XPathNavigator nav1 = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:secInfo/my:Group",
    NamespaceManager);
                                    nav1.SelectSingleNode(
    "/my:myFields/my:secInfo/my:Group/my:DisplayName",
    NamespaceManager).SetValue(status.ToString());
                                    nav1.SelectSingleNode(
    "/my:myFields/my:secInfo/my:Group/my:Value",
    this.NamespaceManager).SetValue(status.ToString());
    and I also created a new method called addStatus() which looks like this:
    public
    void addStatus()
    try
    SPSite site =
    new
    SPSite(http://MyTestBox);
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists["Status"];
    SPListItemCollection listitems = list.Items;
    XPathNavigator nav =
    this.CreateNavigator().
                        SelectSingleNode(
    "/my:myFields/my:secInfo/my:Group",
    this.NamespaceManager);//
    Note: "/my:myFields/my:Countries" => Group Countries
    foreach (SPListItem
    li in listitems)
    XPathNavigator newNode =
    null;
                        newNode = nav.Clone();
                        newNode.SelectSingleNode(
    "/my:myFields/my:secInfo/my:Group/my:DisplayName",this.NamespaceManager).SetValue(li["Title"].ToString());
                        newNode.SelectSingleNode(
    "/my:myFields/my:secInfo/my:Group/my:Value",this.NamespaceManager).SetValue(li["Title"].ToString());
                        nav.InsertAfter(newNode);
                        newNode =
    null;
                    nav.DeleteSelf();
                    nav =
    null;
    catch
    but it still isn't working??
    Best regards, Mike

  • Drop Down List population - Abap dynpro adobe form - type ZCI

    Hi ,
    How to create drop down list on a field. I am using ZCI type of form. (Abap dynpro adobe form - type ZCI)
    Most of the post i have seen only refers to the setting in forms but not about the settings in interface in se80 or SFP. please give me the detail steps to create drop down field and how to populate it.
    In other words is how to populate the drop down fields, where does the values come from to these fields.
    Thanks,
    Nikhil
    Edited by: NIKHILKUMAR POOJARI on Apr 3, 2009 7:28 PM

    HI Pradeep,
    Can you please tel me what i am doing worng here :
    types : begin of ty_nameid,
                  ZCARRIAGERESTRIC type ZCARRIAGERESTRICT,
                  DESCRIPTION type ZDESCRIPTION,
                END OF ty_nameid,
                tyt_nameid TYPE TABLE OF ty_nameid.
        data  : it_nameid type tyt_nameid,
                wa_nameid TYPE ty_nameid.
        DATA lo_nd_name TYPE REF TO if_wd_context_node.
        DATA lo_nd_nameid TYPE REF TO if_wd_context_node.
        DATA lo_el_nameid TYPE REF TO if_wd_context_element.
        DATA ls_nameid TYPE wd_this->element_nameid.
      navigate from <CONTEXT> to <NAME> via lead selection
        lo_nd_name = wd_context->get_child_node( name = wd_this->wdctx_name ).
      navigate from <NAME> to <NAMEID> via lead selection
        lo_nd_nameid = lo_nd_name->get_child_node( name = wd_this->wdctx_nameid ).
      @TODO handle not set lead selection
        IF lo_nd_nameid IS INITIAL.
        ENDIF.
      get element via lead selection
        lo_el_nameid = lo_nd_nameid->create_element(  ).
      @TODO handle not set lead selection
        IF lo_el_nameid IS INITIAL.
        ENDIF.
      alternative access  via index
      lo_el_nameid = lo_nd_nameid->get_element( index = 1 ).
      @TODO handle non existant child
      IF lo_el_nameid IS INITIAL.
      ENDIF.
    select * from ZCARRIAGERESTRIC INTO CORRESPONDING FIELDS OF TABLE it_nameid.
      get all declared attributes
       lo_el_nameid->set_attribute(
         EXPORTING
           Value = it_nameid
           name  = 'NAMEID' ).
    lo_nd_nameid->bind_table( it_nameid ).
    but its giving dump WebDynpro Exception: The ADS call has failed.
    i have created the Node as under
    CONTEXT
    NAME (NODE)
    NAMEID (NODE)
    ZCARR (ATTRIBUTE)
    DESCR  (ATTRIBUTE)
    DESC (ATTRIBUTE)
    I tried the second method, but that too failed. while entering the INSERT WEB DYNPRO SCRIPT it gave an error 'Error while entering script'.
    Edited by: NIKHILKUMAR POOJARI on Apr 6, 2009 11:04 AM

  • PWA - Access error when using a drop down list populated by SharePoint list

    I am using PWA 2013.  I have a list of future projects.  On the form for a future project I have a department field.  That field is a drop down that pulls from a Sharepoint list of departments.  When I try to use the Create Projects button from
    an item on the future project list it fails and gives me the error: "Sorry, you don't have access to this page".  If I delete the department dropdown field off my form then the create project button functions normally and gives me the field
    mapping prompt.  I have full control as an admin to the project web app site which is what comes up if I request access and then go in and grant myself access.  This is the same problem for everyone except the person that setup Sharepoint so that
    makes me think I am missing a critical permission.  I tried Site Collections admin and it didn't make a difference.

    I'm not sure if I understood your question clearly but here is a good resource on how to get attributes from "GetUserProfileByName" web services:
    http://blog.mangroveweb.com/pre-populating-an-infopath-from-with-mysql-data-using-a-net-web-service/using-sharepoints-getuserprofilebyname-web-service-to-retrieve-ad-account-information/
    Regarding filtering dropdown list then this could be done by applying form on-load rules. 
    Hope this helps

  • Director app on Mac: Dock Icon Drop Down List displays with no title

    Hi,
    we have a Director application on mac, that changes it state from window-mode to full screen-mode. It is done using Resolution xtra
    Now we've discovered following peculiarity
    When program is in windowmode and user presses CMD-Button + Click Dock Icon, a dropdown list appears over the clicked dock icon. And the problem is, that besides of the name of our programm there is another item in the list, that have no title.
    What can be the reason of this? Is there some workarounds for that problem?

    Hi,
    we have a Director application on mac, that changes it state from window-mode to full screen-mode. It is done using Resolution xtra
    Now we've discovered following peculiarity
    When program is in windowmode and user presses CMD-Button + Click Dock Icon, a dropdown list appears over the clicked dock icon. And the problem is, that besides of the name of our programm there is another item in the list, that have no title.
    What can be the reason of this? Is there some workarounds for that problem?

  • Drop Down Lists and Value Change Events

    I have 4 drop down lists each with a set of values from the database.
    Based on the value of the first list(ValueChangeEvent only for list1) , I fetch data from the database and set the 'selected value' in the other lists.
    I have a Submit button which takes values from these 4 lists and puts it in the database.
    Problem:
    I change list 2 through list 4 and hit a Submit button which inserts all the values in the database.
    However,on Clicking the Submit button I never get the new selected values, it always refers to the previously fetched values.
    I tried to recreate this case in a Sandbox without a database , Here is the code:
    Page1.jsp
    <h:selectOneMenu id="list1" value="#{SessionBean1.selectedList1}" valueChangeListener="#{SessionBean1.list1ValueChangeListener}"  onchange="this.form.submit();" >
                   <f:selectItems id="dropdown1SelectItems" value="#{SessionBean1.list1}"/>
    </h:selectOneMenu>
      <h:selectOneMenu id="list2" value="#{SessionBean1.selectedList2}" >                           
                  <f:selectItems id="dropdown2SelectItems" value="#{SessionBean1.list2}"/>
       </h:selectOneMenu>
       <h:commandButton id="add" actionListener="#{SessionBean1.addActionListener}" value="Add"/>
        <h:inputText id="result" value="#{SessionBean1.result}" />SessionBean1
       public SessionBean1() {
            list1.add(new SelectItem("0","0"));
            list1.add(new SelectItem("1","1"));
            list1.add(new SelectItem("2","2"));
            list1.add(new SelectItem("3","3"));
            list2.add(new SelectItem("a","a"));
            list2.add(new SelectItem("b","b"));
            list2.add(new SelectItem("c","c"));
            list2.add(new SelectItem("d","d"));
            map.put("0", "a");
            map.put("1", "b");
            map.put("2", "c");
            map.put("3", "d");
        private void fetch_data(String value){
             selectedList2=map.get(value);
        public void list1ValueChangeListener(ValueChangeEvent vce){
                fetch_data(vce.getNewValue().toString());
        public void addActionListener(ActionEvent event){
            result=selectedList2;
        }I tried debugging and found that after the Value Change Event is fired only selectedList1 gets a new value during Update Model Values Phase and selectedList2 still has the old value.
    With this sand box project I cannot even get the second list to show the corresponding value.
    Any insight on this would be helpful

    Thank You Balus C,
    I just realized the reason why this is not working, I found the reason in your article Populating Child Menu's article, I am just
    putting it as a reference here.
    One concern is that the skipping of the UPDATE_MODEL_VALUES will also cause that the new values of the menu's which have immediate="true" set won't be set in the backing bean. This can partly be fixed by getting the new value from the ValueChangeEvent inside the valueChangeListener method and assign it to the appropriate property. But this won't work for other menu's of which the valueChangeListener isn't been invoked. This would cause problems if you select a child menu value and then select the parent menu back to null and then reselect it to same value again, the child menu which will show up again would remain the same selection instead of null while its child will not be rendered! To solve this we need to bind the menu's to the backing bean so that we can use UIInput#setValue() and UIInput#getValue() to set and get the actual values.+ The JSF lifecycle will set and get them in the RESTORE_VIEW and RENDER_RESPONSE phases respectively.+
    I am not sure I understand whether or not it is a limitation but the reason above is valid and I rolled back to binding my menus and getting to work with that.
    Is Binding UI components a wise idea because most of the attributes can be programmed using properties in Backing Beans unless you have to build new components?
    Thanks Again

  • Populate drop-down list in table row or repeating subform

    I am currently working on an Adobe Interactive Form integrated with web dynpro ABAP.  I would like to create a table or repeating subform with a number of drop-down lists populated from SAP.
    I am using the Enumerated Drop-down list from the WebDynproNative menu.  In my WDDOINIT method, I am populating the attributes using the set_attribute_value_set method.  This is working fine when my dropdown is not in a table or repeating subform.  The dropdown is populated and the selected value is returned to SAP when submitting the form.  However, when I place the dropdown in a table row or a repeating subform, the dropdown is not populated.
    Any ideas or suggestions?

    Hi There,
    I am facing problem in Dropdown lists in Subforms.
    I want the region dropdown list values according to country (only for DE) dropdown list value. Both Dropdown lists are in a Subform.
    For that, I have used this in EXIT event of Country Dropdown list:
    if (this.rawValue == "DE Deutschland")
    data.Item.IT_ITEM.DATA.ZZ_REGION.clearItems();
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Schleswig-Holstein","1");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Hamburg","2");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Niedersachsen","3);
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Bremen","4");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Nordrhein-Westfalen","5");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Hessen","6");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Rheinland-Pfalz","7");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Baden-Württemberg","8");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Bayern","9");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Saarland","10");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Berlin","11");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Brandenburg","12");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Mecklenburg-Vorpomme","13");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Sachsen","14");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Sachsen-Anhalt","15");
    data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Thüringen","16");
    else
    data.Item.IT_ITEM.DATA.ZZ_REGION.clearItems();
    It does only change first region dropdownlist value, not others because both dropdown lists are in a Subform.
    Other problem is that it works only when All Country Dropdown lists are "DE". Means, first region dropdown list depends upon not only first country dropdown but also other dropdown.
    My requirement is, If first country Dropdown is "DE", only first Region Dropdown list should be fill, not others. And so on.
    Please provide solution that How can I change all dropdown lists of a Subform dynamically?
    Waiting for reply.
    Thank you
    Chandler Bing

  • Drop-down list in Interactive forms

    Hi All,
    I am creating an interactive form in webdynpro abap. I would like to include a drop-down list in the interactive form. Data in the drop-down list should come from a database table.
    Can anyone give a sample program to do it? It would be of great use.
    Thanks & Regards,
    Vinod

    hi Vinod,
    You may get many threads with  similar query as yours if you use the search functionality.
    But you may refer these two threads which are close to your query.
      Drop Down List population - Abap dynpro adobe form - type ZCI
      Re: Dynamic Drop Down in Interactive Form not populating values
    Regards,
    Runal

  • Adobe LiveCycle Designer 8.1 Drop-Down List Problem

    I have an array of data.  I'm populating one drop-down list (Genus) with data and then trying to populate a second drop-down list (Species) based on the selection from the first drop-down list (Genus).<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><?xfa generator="AdobeLiveCycleDesigner_V8.0" APIVersion="2.5.6290.0"?><br /><xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2007-08-20T19:50:53Z" uuid="6f886dfc-03cb-474d-84ad-70c94bed1788"><br /><template xmlns="http://www.xfa.org/schema/xfa-template/2.5/"><br />   <subform allowMacro="1" layout="tb" locale="en_US" name="form1"><br />      <pageSet><br />         <pageArea id="Page1" name="Page1"><br />            <contentArea h="756pt" w="576pt" x="0.25in" y="0.25in"/><br />            <medium long="792pt" short="612pt" stock="default"/><br />            <?templateDesigner expand 1?></pageArea><br />         <?templateDesigner expand 1?></pageSet><br />      <subform h="756pt" w="576pt"><br />         <field h="8.6202mm" name="PrintButton1" relevant="-print" w="41.8956mm" x="158.7501mm" y="34.7904mm"><br />            <?templateDesigner isPrintObject true?><br />            <ui><br />               <button/><br />            </ui><br />            <font typeface="Myriad Pro"/><br />            <caption><br />               <value><br />                  <text>Print Form</text><br />               </value><br />               <para hAlign="center" vAlign="middle"/><br />               <font typeface="Myriad Pro"/><br />            </caption><br />            <border hand="right"><br />               <?templateDesigner StyleID apbx2?><br />               <edge stroke="raised"/><br />               <fill><br />                  <color value="212,208,200"/><br />               </fill><br />            </border><br />            <bind match="none"/><br />            <event activity="click"><br />               <script contentType="application/x-javascript">xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);</script><br />            </event><br />         </field><br />         <draw h="8.6202mm" name="StaticText1" w="128.9085mm" x="3.4391mm" y="0.3098mm"><br />            <ui><br />               <textEdit><br />               </textEdit><br />            </ui><br />            <value><br />               <text>CRP Request/Report Form for qPCR Analysis:</text><br />            </value><br />            <font size="14pt" typeface="Myriad Pro" weight="bold"/><br />            <margin bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm" topInset="0.5mm"/><br />            <traversal><br />               <traverse ref="DateTimeField1[0]"/><br />            </traversal><br />            <?renderCache.bounds 362576 21601 0 0 1417 1417 0 0?><br />            <?renderCache.textRun 42 CRP Request/Report Form for qPCR Analysis: 0 1417 11917 0 0 0 "Myriad Pro" 1 0 14000 ISO-8859-1?></draw><br />         <field h="7.7252mm" name="Req" w="77.6041mm" x="3.4391mm" y="8.9305mm"><br />            <ui><br />               <textEdit><br />                  <border><br />                     <?templateDesigner StyleID aped2?><br />                  </border><br />                  <margin/><br />               </textEdit><br />            </ui><br />            <font typeface="Myriad Pro"/><br />            <margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/><br />            <para vAlign="middle"/><br />            <caption reserve="26.19mm"><br />               <font baselineShift="0pt" typeface="Myriad Pro"/><br />               <para marginLeft="0pt" marginRight="0pt" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" vAlign="middle"/><br />               <value><br />                  <text>Requestor</text><br />               </value><br />            </caption><br />            <border><br />               <edge presence="hidden"/><br />               <corner presence="hidden" thickness="0.1778mm"/><br />            </border><br />            <traversal><br />               <traverse ref="Lot[0]"/><br />            </traversal><br />         </field><br />         <draw h="8.1758mm" name="StaticText2" w="18.6252mm" x="3.4391mm" y="17.5504mm"><br />            <ui><br />               <textEdit><br />               </textEdit><br />            </ui><br />            <va

    var constColNum = 10;
    var InfoDB = new Array
    new Array( "Bacillus","Brucella","Burkholderia","Coxiella","Clostridium", "Erwinia","Francisella","Yersinia","Rickettsia","Other"),
    new Array( "anthracis","cereus","thuringensis","subtilis","globigii","lichenformis","other"),
    new Array( "melitensis","suis","ovis","canis","abortus","neotomae"),
    new Array( "mallei","pseudomallei"),
    new Array( "burnetti","other"),
    new Array( "botulinum"),
    new Array( "herbicola"),
    new Array( "tularensis","holartica"),
    new Array( "pestis","pseudo TB","other"),
    new Array( "prowazekii"),
    new Array( "other"),
    new Array( "DHP61.183","cereus grp","sodA","tarA","omp25","IS407A","IS1111A","Cbot","aroQ","tul4"),
    new Array( "3A","Rprow4","capB,pagA,tarA","cereus grp, tarA","cereus grp, tarA, F1cap, pesticin, YopD","designed assay"),
    new Array( "0.1754","0.1718","0.1742","0.2164","0.2170","0.2778","0.1565","0.1255","0.4762","0.4808" ),
    new Array( "0.4831","0.8197","0.1976","0.1923","you figure it out")
    function LoadDropMenu(obj, rowNum)
    for(i = 0; i < constColNum; i++)
    obj.addItem(InfoDB [rowNum][i], i + "");
    function LoadDropMenu2(objDropDown, nIndex)
    var arrayInfoDB = InfoDB[nIndex];
    objDropDown.rawValue = "";
    objDropDown.clearItems();
    for (var i = 0; i < constColNum; i++)
    objDropDown.addItem(arrayInfoDB[i], i + "");
    //objDropDown.addItem(arrayInfoDB[i]);

  • Type ahead in drop down lists

    Hi, I would like to be able to type ahead in drop down lists. E.g. with an alphabetical drop down list having
    Scott
    Sean
    Soo
    Steven
    I would like to be able to position within that drop down list by typing e.g. st and land upon steven, however when I key in st, I find myself at the top of the entries in the drop down list starting with t.
    Any ideas? Something I overlooked?
    Best regards, Jesper

    Jesper,
    I admit that I don't fully understand how it all works, but I'll explain the general steps I took to get it working. Hopefully some of the smart people here can show us a better way to do it.
    I don't think that I should post the actual javascript file because the first line of it says:
    "// Copyright 2004 and onwards Google Inc."
    But, you can get the original version of it here: http://www.google.com/ac.js
    If you save it and a copy of the page that calls it on your local web server, you can play around with it.
    It looks like a real mess. This guy has dissected it: http://serversideguy.blogspot.com/2004/12/google-suggest-dissected.html
    From all that, you can see that the end result is that the script calls a URL like this, with your query at the end:
    http://www.google.com/complete/search?hl=en&js=true&qu=transparent%20aluminu
    Which returns a result like this:
    sendRPCDone(frameElement, "transparent aluminu", new Array("transparent aluminum", "transparent aluminum 3m"), new Array("426,000 results", "31,900 results"), new Array(""));
    The script can be edited to call any URL. I changed it to call a stored procedure on my HTML DB web server. The changes were:
    Line 3: Change pn="search" to pn="schema.package.procedureName"
    Line 14: Change else E="/complete/" to E="/pls/htmldb/" (The Location entry set in your Marvel.conf)
    You then need to create a stored procedure that will be called from Line 3.
    It needs to have 3 varchar2 parameters called qu, hl, and js. The first one is the query string. I didn't use the other two.
    It needs to return a message like the script is expecting - with the results concatenated in comma-separated arrays. Here is a simple example:
    create procedure INCSEARCH(qu varchar2, hl varchar2, js varchar2) as
    l_List1 varchar2(4000);
    l_Query varchar2(255);
    l_separator varchar2(10) default '';
    begin
    l_Query := qu || '%';
    for x in (select Last_Name from hr.Employees where Upper(Last_Name) like Upper(l_Query) order by 1)
    loop
    l_list1 := l_List1 || l_separator || '"' || x.Last_Name || '"';
    l_separator := ',';
    end loop;
    owa_util.mime_header('text/html', false);
    owa_util.http_header_close;
    htp.p('sendRPCDone(frameElement, "'|| qu ||'", new Array(' || l_List1 || '), new Array(' || l_List1 || '), new Array(""));');
    end;
    Grant Execute on INCSEARCH to Public;
    The last step is to hook it into HTML DB. Examining the Google page shows that they run a script called InstallDC to hook the script to a form field.
    In the Footer section of the Page Attributes of my page, I added this:
    <SCRIPT src="/ac.js"></SCRIPT>
    <SCRIPT>InstallAC(document.wwv_flow,document.wwv_flow.p_t03,document.wwv_flow.p_t03,"dc_htmldb.incsearch","en");</SCRIPT>
    Where p_t03 is the name of the text field I want it attached to, and "dc_htmldb.incs.incsearch" is my stored procedure.
    Those are the basic steps. Does anyone have a cleaner approach?

  • Drop-down list is crashing my interactive PDF document

    Hello, I'm using LiveCycle Designer 7.0 on Windows XP.
    I'm attempting to create some simple editable PDF documents for use by my security staff.
    I've created the forms and most fields work correctly, except for a simple drop-down list field with about 15 choices. When the pdf is called up from Windows and the user reaches that field (either by tabbing to it or clicking on it), the entire pdf crashes; the user is booted out and the pdf closes. The "debug" option doesn't seem to fix anything.
    When I test-run the pdf in Designer, the field seems to work OK. The problem is happening when we open the pdf from Windows.
    I've deleted and rebuilt this field twice, with the same result.
    I'm an Adobe noob and am nowhere near sophisticated enough to employ JavaScript or other behind the scenes programming; I'm just using the basic features of Designer.
    Please help, I'm stuck and don't know how to troubleshoot this problem.
    Thanks in advance to anyone who may be able to point me in the right direction. Remember, I'm a noob, so single syllable words are probably best.
    RJinNorCal | 11/7/2011

    Hello Srini,
    Thanks very much for your gracious offer. I did a bit more research
    yesterday after posting my issue on the forum, and based on a similar
    thread, I saved my document as a static PDF instead of a dynamic PDF.
    That seems to have done the trick; all fields now work correctly without
    crashing.
    I will still be happy to share the document with you, but my current IE8
    browser is having problems with accessing the specific website; it keeps
    crashing/recovering the tab. My IT department knows about this issue and
    is working to address it. At any rate, since my problem seems to be
    fixed, I'm sure you have other pressing matters to attend to, but thanks
    again for providing support! I will be sure to come back to the forums
    if I encounter any other problems I cannot resolve.
    Regards,
    R.J. Richards
    Administrative Services Officer II
    County of Sacramento, Department of Health & Human Services
    Departmental Administration, Management Services
    E: [email protected]   D: 916-875-1232  C: 916-416-8550  F:
    916-875-2029
    Intranet: http://dhhsweb/default.aspx?WOID=FAC
    Internet: http://www.sacdhhs.com

  • Rollover Drop Down List

    Hello,
    How would I go about creating a drop down list calendar with
    links in Dreamweaver CS4 which would roll itself over. I am trying
    to create a site for a cinema and am wanting something similar to
    what is at
    http://moviefone.com. I have
    looked in their code and find no reference to how they are doing
    it?
    Thanks,
    Greg

    I got it! Thank you so much.I've try
    rollout="dl.closedropdown()"
    but It happen to close too quick
    when I rollover and it open and I rollover on the sub-item(in the open list)
    It just not still open
    (It will open when I rollover on the list button but when I move down to the drop down list it close)

Maybe you are looking for

  • How do I find out and the delete "other" files being stored on my drive?

    My Mac Air HD says it has 17 GB left of free memory space. 76 GB says of "Other" How do I find out what "other" is, and delete it to free space. This is a brand new, Mac. I just got it in December and I have no pictures saved in it. Thank you

  • How to change password and keychain?

    I want to change one user's password (with the GUI): <pre> System Preferences... Accounts choose the right one Reset Password...</pre> And I see a warning window telling me: <pre>Resetting the account password does not reset the user's keychain passw

  • New BW Server

    Hi.. We are setting up a new BW system. I have no experience before on what to do or set in a fresh BW system. Can anybody please share about this or maybe have documentation for this ? Appreciate your help. Thanks

  • Is Pages 4.3 compatible with iCloud?

    I have Pages 4.3 on my Macbook Pro with Yosimtee OS. When I try to open an existing iCloud document, it tells me I need a newer version of Pages. But, I can see all my iCloud documents in the Pages document viewer. The app store tells me my software

  • Interface crashes when trying to locate file

    I have a 2.0 G5 Power Mac user that whenever you enter Timemachine and try and retrieve an old file the interface freezes. I get the SBBOD (spinning beach ball of death). The user has too monitors, so when TM is launched all open finder windows move