Polulate textfield(s) from a MS SQL Database based on selection from DropDown List

I am new to LiveCycle Designer. I am trying to create a Master Bill of Lading form. I want the user to be able to enter a Store Number from a in a text field and, based on what they enter I want to populate the address information from a database on my SQL Server.
When I bind the address fields from the database, I only see the first record in the database.
I'm not sure where to go from here...
Thanks in advance,
Jeremy

That seemed to fix my error and returned the value to my DDL.
I have modified the code so it looks at the clone of my dataConnection (dcStoreData)
CODE:
btnClear.MainPage.sStNo::change - (JavaScript, client)
var inStrNbr = xfa.event.newText;
if (inStrNbr == ""){
app.alert("You must enter a valid name - try again!") } var nIndex = 0;
while(xfa.sourceSet.nodes.item(nIndex).name != "dcStoreData")
nIndex++;
tfStoreID.rawValue = inStrNbr;
var oDB = xfa.sourceSet.nodes.item(nIndex).clone(1);
// the node pertaining to the data connection specified
//app.alert(oDB.saveXML("pretty"));
//set up sql call to DB to get specifics about employee
oDB.nodes.item(1).query.setAttribute("text", "commandType");
oDB.nodes.item(1).query.select.nodes.item(0).value = "Select * from tblStoreMast_LastVersion where StorNbr = '" + inStrNbr + "'";
//app.alert(oDB.nodes.item(1).saveXML("pretty"));
//now connect to DB and get a record
oDB.open()
oDB.close();
it runs with no error and I am seeing the value it has given my DDL.rawValue
Now I get the "error:"
GeneralError: Operation failed.
XFAObject.open:16:XFA:btnClear[0]:MainPage[0]:sStNo[0]:change
ado2xfa operation failed.  Item cannot be found in the collection corresponding to the requested name or ordinal.
My Store Number is stored as an int in the database.
Do I have to somehow cast it as a character?
Sorry for the headache!
Jeremy

Similar Messages

  • Select value from dropdown list

    hi All,
    we have a bsp application MVC based, we have a dropdown list,  what we require is when user selects an entry from drop down list and presses a button, we want to select that value from drop down list and then pass it to the method that will be called when button is pressed event..
    I want to know two things
    1. How do i get the selected value from dropdown ?
    2. hw can i retain it to send it to method call in handle_event bit
    thank you all

    Hi,
    If your application is stateless you have to capture the selected value in do_handle_data and assign it to the controller class attribute and later use this value in do_handle_event directly.
    If your application is stateful, on your dropdownlist htmlb tag click F1 you can read the documentation which also shows how to capture the value of dropdownlist in do_handle_event. In the same documentation you can even find few samples provided and check those samples in your system.
    Hope this helps.
    Regards,
    Abhinav

  • Selecting a Role from dropdown list throws error

    Hi,
    I'm using CRM Web UI 7.0. I'm facing problem selecting a Role from dropdown list in the assignment block Roles in the screen Employee. The problem is that the dropdown list doesn't show any value on clicking and gives an error message "Error on page" at the bottom of page. The roles exist in the system and also I'm able to see them for Accounts screen & in the GUI.
    Kindly help.
    Regards,
    Shaili

    Hi,
    Just to add to this issue: WebUI-> Account Management-> Contacts-> Roles-> Edit list. When we try to add a role from dropdown in Firefox, it works fine but same throws an error in Internet Explorer related to some script.
    Did someone face similar issue and how was it solved?
    Regards,
    Shikha

  • Extracting Textfield Text from Display List

    I am attempting to extract the text in a textfield that is
    displayed with the container (see below) display list. The code
    snippet I am using is listed below.
    for (i = 0; i < container.numChildren; i++) {
    var temp:TextField = new TextField();
    // temp = container.getChildAt(i);
    trace(container.getChildAt(i));
    trace(temp.text);
    When I execute this, the trace(container.getChildAt(i)) line
    displays <object TextField>. But, when I activate the comment
    line temp = container.getChildAt(i); I get an error about coerceing
    a static variable. Can anyone give me a clue how I can trace the
    text in the textfield container.getChildAt(i)?

    I found some example code in the
    help->clases->staticText that I modified as below to solve
    the problem.
    for (i = 0; i < container.numChildren; i++) {
    var displayitem:DisplayObject = container.getChildAt(i);
    if (displayitem is TextField) {
    trace("a static text field is item " + i + " on the display
    list");
    var myFieldLabel:TextField = TextField(displayitem);
    trace("and contains the text: " + myFieldLabel.text);
    }

  • How can I select properties from dropdown lists using only the keyboard?

    Hi,
    I am using SAP Netweaver Studio and when modifying UI elements in views, I want to select the value for a property from the corresponding dropdown list in the Properties view using only the keyboard.
    When a property row is selected, "Enter" toggles to Edit mode, Alt+ArrowDown expands the list, but ArrowUp or ArrowDown directly selects the previous/next item list and changes to Selected mode.  Which key is used to navigate between the list items without selecting them immediately?
    Thanks a lot. I deal with lots of views and this would save me quite a few massage hours
    Maria
    Edited by: Maria Marinova on Feb 14, 2008 9:40 AM
    Edited by: Maria Marinova on Feb 14, 2008 9:40 AM

    Thanks Andrew. When creating an external table does it requires an access to SQL*Loader?
    CREATE TABLE dept_external (
       deptno     NUMBER(6),
       dname      VARCHAR2(20),
       loc        VARCHAR2(25)
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY admin
    ACCESS PARAMETERS
    RECORDS DELIMITED BY newline
    BADFILE 'ulcase1.bad'
    DISCARDFILE 'ulcase1.dis'
    LOGFILE 'ulcase1.log'
    SKIP 20
    FIELDS TERMINATED BY ","  OPTIONALLY ENCLOSED BY '"'
    deptno     INTEGER EXTERNAL(6),
    dname      CHAR(20),
    loc        CHAR(25)
    LOCATION ('ulcase1.ctl')
    REJECT LIMIT UNLIMITED;

  • Insert symbol from dropdown list that requires font change

    I am trying to script the following:
    I have a dropdown list set to GDT font which contains symbols. (GDT font creates symbols with various lower case letters are entered)
    When selecting a symbol from the dropdown list, I want that symbol to be inserted into the textfield where I stopped typing text and the cursor is currently positioned. The text I typed is using the Myriad Pro font, so to insert the symbol, the script needs to change the font to GDT without affecting the text font that is already typed in the textfield, insert the GDT font symbol and then change the GDT font back to Myriad Pro so I can continue to type more text in Myriad Pro.
    If the script would just copy the symbol and the font it was created in, paste it where the cursor is position and then change the font back to the default (Myriad Pro), that would be great!
    This is for Design Engineering work to allow engineers to insert GDT symbols into the same textfield as their description is in.
    Can anyone help me with this script?

    Troubleshooting plugins
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins
    Check and tell if its working.

  • Calculating dynamic values from dropdown lists

    Hi all, here's the noob question of the day
    I'm creating an invoice form in LiveCycle Designer and I'm totally stuck at tax calculations:
    for each product you're able to choose between two tax percentages from a dropdown list and, at the end of the form, I want to show a total amount of each tax.
    product
    qty
    unit price
    vat
    net price
    red shoes pack
    2
    20$
    4%
    40$
    black shoes pack
    1
    25$
    4%
    25$
    white umbrella
    1
    10$
    7%
    10$
    total net price
    75$
    + TAX 4%
    2.60$
    + TAX 7%
    0.70$
    Total
    78.30$
    How can I set the + TAX 4% and + TAX 7% fields to grab their respective product rows?
    Sorry for my bad english.. I hope you get the question!

    You woudl have to look at each row inside of a for loop and then determine if that row had 4% or 7% tax. Then you coudl keep a running total of the tax for you calcultions such that when the for loop ended you would have the 4 and 7% totals calculated.
    Make sense?
    Paul

  • Adobe Form Section is Not Showing When Value is Selected from Dropdown List

    Hello Experts
    We have this issue where an ADOBE FORM is embedded in a WEBDYNPRO APPLICATION. 
    When selecting a value from the dropdown field in the ADOBE FORM, some particular section in the ADOBE FORM is not shown.
    Here's the ADS and NW versions that we were using.  We are running on EHP5 landscape.
    - ADS - 7.3 SPS 3
    - NW 7.3 SPS 3
    PS. The same program is working in EHP4 correctly.
    Any idea on how to resolve this issue?

    This is a custom built form, the thing is we just upgraded our system to EHP5 and we are in the test phase. The same form works in system in EHP4.
    Based on the dropdown list selection, there are some sections in the form which are hidden previously will be shown now. when you change the country in the dropdown the new sections appear. The sections will not be visible before you select the couuntry from dropdown.
    Should I upgrade my Adobe live cycle designer version to a higher one?
    Thanks

  • Cannot select from dropdown list

    This is very weird. I am a long-time FF user. Suddenly, I find that I cannot select from a dropdown list. Clicking on the list shows all the options but moving the mouse doesn't change the highlighted option.
    Safe Mode - Didn't help
    New profile - Didn't help
    What is going on here? Please help. Thanks

    Troubleshooting plugins
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins
    Check and tell if its working.

  • Immediate Submit From Dropdown List Selection

    In JSF what is the best way to get the form to submit immediately when a dropdown list item is selected? I know I can use a JavaScript onchange="..." but just wondering if there is a more standard/cool way of doing this in JSF.
    Thanks!
    Vaughn

    No. Simply creating a ValueChangeListener won't do what he wants. When he used the term "immediately" he meant "as soon as the value changes" and not "immediate" in the sense of bypassing Faces lifecycles. This can be seen from his reference to "onchange=".
    The suggestion I am about to make solves one problem but creates another.
    In addition to valueChangeListener= "#{...}" and immediate="true", put onchange="submit()". This will execute your event as soon as the value changes BUT...
    Faces navigation doesn't work any more when you return a navigation target.
    How do we get Faces Navigation to keep working when we use "onchange" ?

  • Javascript needed - need checkbox to check automatically based on selected item from dropdown list

    I am building a fillable form.  In this form, I have created items in a dropdown list.  Based on the item picked from the dropdown list, I need a corresponding checkbox to be checked.  I am certain there is an easy javascript to resolve my current problem.  Please assist.
    For example: dropdown list field (SubSupplier1) -   Demolition                            export value 2
                                                                                    Rough Carpentry Labor       export value 4
                                                                                    Rough Carpentry Material    export value 3
    I need the corresponding checkbox (SalesTax1) to automatically be checked when Demolition (export value 2) or Rough Carpentry Material (export value 3) is selected.
    Thank you,
    Jennifer

    Hi Jennifer,
    This should help you do what you need. Place it in the Custom Calculation property of the dropbox and select "commit selected value immediately" in the fields options:
    var drop = this.getField("SubSupplier1");
    var check = this.getField("SalesTax1");
    if ((drop.value == 2) || (drop.value == 3)){
    check.checkThisBox(0,true);
    else {
    check.checkThisBox(0,false);
    The code is asking if the export value of the field is either '2' or '3' and if so, check the box.
    Otherwise uncheck the box.
    If you don't want it to uncheck on other selections, remove the 'else' section of code.

  • Open tabbed panels from dropdown list option value

    I have about 10 tabbed panels on my page.
    I created a dropdown list, <option value></option value>.
    I need to open the specific panel when an option is selected from the dropdown list.  I know how to open tabbed panels by URL, a button, and a link on the same page.  But how do i open a tabbed panel from a dropdown list.  The <option value> in IE does not allow for onclick events in IE. 

    Yes and I have been trying to find that.  Right now I have it setup where the onchange event is "location = this.options[this.selectedIndex].value;">
    and then I have each<option> in the dropdown list with teh value=http://URL.com?tab=3#tabbedpanels1.
    It works but it isn't as dynamic as I would like.  When i select each option in the dropdown, it refreshes the page and opens the correct tabbed panel. Then the dropdown list is reset to the default value because the page refreshed.  I wanted to do this without the page refreshing, that way the dropdown list item remains at what I selected to open the tabbedpanel. and plus, I didn't want the page to refresh everytime but to just open the tabbedpanel the same way as if i made a button to open it.

  • Remove default value from dropdown list

    I am currently working with Acrobat XI Pro version. I want to know whether it is possible to remove the default value from a dropdown list.
    When the list has less than 4 items, it is possible to deselect the default value by pressing the whitespace below. However, when there are more items, this is not possible anymore.
    I have read that you should include a whitespace as item in the item list, however, then you will see an empty list item when people are working with the pdf which is not preferable.
    So, does anyone know how to remove the default value from a dropdown list?
    Thanks!

    Ok, I found a perfect workaround for my problem using FormsCentral for Acrobat. Here is what you should do:
    Step 1:
    -   Open FormsCentral
    -   Create New Form (Choose Blank Form)
    -   Click on the dropdown icon to create a new dropdown
    -   Fill in the list items by clicking on the edit (you also can add a label if you want)
    -   Click: File > Save as PDF Form...
    Step 2:
    -   Open the saved PDF (you now see a blank pdf with a dropdown menu)
    -   Click: Tools > Forms > Edit Form (when a popup shows that you should save a copy of the document in order to make changes, press "Save as a copy" and open the pdf copy file with Acrobat)
    -   Select the dropdown, copy the dropdown and paste it in the desired document
    Now you have a dropdown menu without a default choice. Keep in mind that you cannot edit the items in the dropdown, because a default choice will be chosen and you have to use the pdf copy file again. As long as you don't click on a list item, it doesn't choose a default choice.
    It is not a perfect solution, but it works for me.
    Good luck and thanks!

  • Workflow: Select Reason for rejection from dropdown list.

    Hi all
        I have to create a step where the Manager has to select the
    Reason for Rejection from a dropdown list refering to a custom
    parameter table maintained from t-code sm30.
    Please post your suggestions on this.
    Thanks for your time,
    Mallik

    Thanks for your Reply,
       But It doesn't seem to work because It has to display a (table parameter) field containing the predefined Reasons for Rejection(dropdown list or more like search
    help) from which the supervisor has to select one and it has to be attached and sent as a mail.
    thanx

  • How to filter data from dropdown list in sharepoint 2010

    hi,
    we have one requirement for filtering data from drop down list , we have 4 drop down  lists, in that  drop drown, we  can select any drop down that related data bind to grid view ,  

    Try using "relationshipWebURL"
    property
    Ref:
    http://spservices.codeplex.com/discussions/348401
    Another option is by using Infopath forms
    Ref:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/9a84eae9-515f-4bef-921f-5ede5819f8df/filtering-a-cascade-dropdown-list-to-use-in-another-site
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

Maybe you are looking for

  • Any ideas for smooth scrolling of full-screen panels for iPad?

    I'm working on an app that is basically just a grid of full screen panels that the user can go through by swiping left, right, up, down. I want it to lock to a singled direction once a user starts swiping so I've got it set to only start scrolling in

  • Error while trying to start the server

    Hello, i'm getting this error message when i try to start up my server: Exception while starting server 'ServerBK': java.io.IOException: nodemanager.c:496: CreateProcess failed (error 5) The status of my nodemanager is ok Can anyone help me? Thanks a

  • Export to pdf filename (can of worms?)

    I know this is probably a perenial post, but I'm trying to unserstand the logic of not picking up the filename in PDF exports. Anyone know if this behaviour can be changed in CS4. Adobe: Can you please give us a button in the export dialogue to chose

  • Upload employee photographs in HR data

    I have a requirement to upload employee photographs in SAP. I have followed following steps in earlier versions which are not working in SAP R/3 enterprise edition ext set 110.Please tell the new steps: Thanks

  • Daily sequence update

    How to update/alter (in oracle 9i) sequence automaticaly at some period (for example each day)? Is it possible to make it in Job? Thank you, Damir