Using Auto Suggest To Set The Value Of Multipe Form Fields

I would like to use the Spry 1.5 Preview Auto Suggest widget
to provide the value for multiple form fields based on the row the
user selects in the auto suggestion data set. I've placed an
example of what I want to do here:
http://www.brucephillips.name/spry/Spry_P1_5_Preview/autosuggest/autosuggestMultipleFields .cfm
It appears that when the user clicks on one of the rows in
the auto suggestion data set, the current row for the data set is
not updated but remains the default (first row in the data set).
Therefore, if you have a spry:detailregion that uses that data set,
the values for that detail region are from the first row in the
data set and not the row the user selected.
Is it possible to set the current row of the auto suggest
data set to the row the user clicked on in the auto suggestion data
set so that the spry:detailregion will have the values from the row
the user clicked on?
I had previously modified the Spry 1.4 Auto Suggest widget to
do this. See:
http://www.brucephillips.name/blog/index.cfm/2006/11/6/Modifing-Sprys-Auto-Suggest-Widget- to-Bind-Users-Selection-to-A-Form
Thank you for any assistance.

Cristian: thank you for the reply. I understand your concern
about the user changing the auto suggest field after updating the
complimentary fields. I think that could be handled through user
instruction. Additionally, instead of using form fields to hold the
complimentary data I could use non-editable paragraphs.
I hope the change is not too difficult. I think this
modification would make the auto suggest widget even more useful.
For example think about a product auto suggest. User starts to type
in the name of the product, selects the full product name from the
auto suggestions, and now the page can immediately show in a
spry:detailregion all the product details.
Thanks again for considering my request. I really appreciate
all the work the Spry team is doing. I'm looking forward to the
official release of Spry.

Similar Messages

  • Using radio buttons to set the value of a text field

    I have a set of three radio buttons on a form (a performance evaluation). If I select the "1" button, I want 1 to populate in the text field. The same goes for "2" and "3"
    I have not been able to code the buttons correctly for this scenario, and can't figure out how to do it.
    From a previous post, I was able to get check boxes to do what I want, but they won't really work because I can't set them so that only one back may be selected.
    Can this be done?
    Thanks!

    The information for this specific case isn't anywhere. The best that you can do is understand what triggers each of the events, then ask yourself which of those triggers are pertinent to your current issue.
    http://help.adobe.com/en_US/livecycle/es/LiveCycle_Designer_Scripting_Basics.pdf ...
    The above link contains a great deal of information regarding how to use scripts within Livecycle Designer. The section that you would be most interested in in order to learn about the available events can be found under "Events >> List of Events".
    You needed to use the initialize event so that the text field would be updated when the document was opened. This ensure that the text field has the value of the default radio button when it is opened for the first time.
    You needed to use the change event so that, when the use selects a different radio button, the text field is updated with the new value.
    That's about it. That PDF file that I link to above is a bit long, but it's a great place to get a good grasp of the basics of scripts.
    If you have any further questions, feel free to ask. =) Have a good one.
    - Scott

  • How to retrieve the procedure value and pass the value to a form field

    How to retrieve the procedure value and pass the value to a form field?

    Set property for the field and the value is the actual procedure/function.
    Cheers

  • HOW to set the value attribute of FORM INPUT data to a variable in a JSP

    eg. Registration.jsp
    The data is accessed from an hidden field called course
    for example, if I have "Java programming" in the field course, and I use
    an expression to access the value from the hidden field.
    **My problem is that the data gets truncated to "Java" , I need "Java Programming"to display. The code looks like this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <INPUT TYPE="text" SIZE=12 NAME="course"
    VALUE=<%=getParameter("course") %>
    IS there ANY OTHER WAY to set the value of VALUE to a variable?

    Instead of value=<%=request.getParameter("course")%>
    Use double codes
    value="<%=request.getParameter("course")%>"

  • How to set the value to ADOBE form input filed...in WDP ABAP...very urgent.

    Hi,
    SET_ATTRIBUTE is not working for the adobe forms in WDP-ABAP. Is there any other funtion to set the value in the input field of adobe forms in WDP-ABAP.
    Please let me know at the earliest
    Thanks,
    Kesav.

    Hello,
    set_attribute should work also in this case. The context element has to be bound to the given inputfield on the form.
    Can you please check your binding on the form?
    Kind regards,
    Dezso

  • Setting the value of a hidden field in a Visual Web jsf page

    Hey All,
    I am new to jsf and need some help with the following. I have written a method in the java portion of the jsf page that will get the selection(s) from a listbox and return them as a string. I need to assign the value of that string to a hidden field in the jsp portion of the page, so that I can pass the string as a parameter to a servlet. I have tried the following code in the "button_action", in the java portion of the jsf page, to assign the value of the string, returned from method, to the hidden field:
    hiddenField.setValue(string);
    This is not working. Any and all help on this matter is greatly appreciated.
    Thanks in advance.

    Here is the tag for the hidden field when the "hidden field" component is added from the pallette, I addded the "value" and "id". The name of the class is ReportStandard, which extends the AbstractPageBean.
    <webuijsf:hiddenField binding="#{ReportStandard.utilSelHF}" id="utilSelHF" value="#{ReportStandard.utilParams}"/>This is how I am calling the hidden field in the servlet:
    utils = request.getParameter("form1:utilSelHF_field");Here is the code for the button_action:
    public String runReport_button_action() {
           this.utilParams = get_utilSelection();
           return "sRptrslts";
    }

  • Return the value of a form field to WHERE condition in LOV SQL

    I'm an APEX newbie.
    I'm developing an APEX app using a form based on a dynamic report. The form opens when I click a record in the report, and uses an Automated Row Fetch process to populate the form with the selected record's values.
    I have included a few hidden fields on my form, which I want to act as conditions for the WHERE statements in related list boxes, in order to limit the number of list items. For example, I have a field P4_CONT_DEPT_ID, which contains a department number. I have a list box called P4_DIVISION_NAME, which I want to populate with only the devisions related to the current department #.
    Here is my List Of Values definition SQL for P4_DIVISISON_NAME
    SELECT CONT_DIVISION_NAME display_value, CONT_DIVISION_ID return_value
    FROM CONTACTS_DIVISION
    WHERE CONT_DIVISION_ID IN
    (select DEPT_DIVISION_XREF.cont_division_id from DEPT_DIVISION_XREF
    WHERE DEPT_DIVISION_XREF.cont_dept_id = :P4_CONT_DEPT_ID)
    GROUP BY CONT_DIVISION_NAME, CONT_DIVISION_ID
    ORDER BY 1
    Note that I refer to P4_CONT_DEPT_ID to limit the list. This query is not working. ALL values in the listbox's parent table are returned, not the ones specific to the dept id. If I hard code the dept id, it works fine. What am I missing here?
    I should mention that I'm using APEX 3.2. I know that creating dynamic list boxes is not going to be easy, even this first step is giving me fits! But I have to remain on this version. Any help on this would be greatly appreciated.
    Thanks!

    I figured it out. The bind variable substitution works as designed. It was just my head that wasn't working right.

  • How to set the value in the xml node.

    Hi
    I am having the application PDF which can be submitted by user using the button. while submitting 
    i am using below code to set the value in the xml node.
       xfa.data.assignnode("employee.id","123",0):
    So its generating the xml like below.
    <employee>.
    <id>123</id>.
    </name>
    </employee>
    Now i need to generate the xml like  below.
    <employee id= "123" >
      </Name>
    </employee>
    So how to set/create the id node like above?
    Advance Thanks.
    Regards,
    Dhiyane

    Hi Dhiyane,
    You will have to set the contains property if the id node to "metaData", that is;
    xfa.data.assignNode("employee.id","123",0);
    xfa.data.employee.id.contains = "metaData";
    Very clumsy if you have a number of them, in which case you might want to look at using E4X.
    Good luck
    Bruce

  • Can I use a inputHidden for javascript values that doesn't set the value?

    I have a hiddenInput field for each row in a datatable so I can restore default values to a date field with a javascript function. I am getting conversion errors because I don't have the right setters in the backing object - and I really don't want to put them there - but I don't want the tag to set the values! Is there any way to just set a hidden value somewhere for each row of a datatable but not have it try to set the value? Thanks in advance!

    I just realised that won't work because all the HTML tags will have the same name, whereas I need the dynamically generated suffix that a dataTable assigns to every element in the row i.e. '_id34', so I can reference the value in the javascript and compare it to entered values. Any more ideas? I am having huge memory problems when I'm submitting my form too, using up 2GB of mem and then dying! I'm not sure what's causing it, because it doesn't get as far as my action method code before it dies! It works for smaller tables but I need to be able to handle ~20 users with tables 4x the size I can process now without running out of memory :( Any help would be really really appreciated!!

  • How to set the value of application item using pl/sql in application process

    Hi guys,
    I want a global variable (application item) whose value will be set at the start when a user logs in to the application. The value will be retrieved from database using a sql query. I do not know the exact syntax to set the value of application item in application process. Also i want to know in which type of application process should i use to set the value of application item when a user starts a session. The value of application item varies from user to user.
    Please help.
    I am using apex 4.2
    Regards,
    Waqas

    You can use the application item as bind-variable with its name. ie. your application item is named G_MY_APPLICATION_ITEM, then you can access/set it using :G_MY_APPLICATION_ITEM.
    For example
    BEGIN
        -- assign like a variable
        :G_MY_APPLICATION_ITEM := 'LARRY';
        -- use in a SQL statement
        SELECT WHATEVER_COLUMN
          INTO :G_MY_APPLICATION_ITEM
          FROM MY_TABLE
         WHERE USERNAME = :APP_USER
    END;
    Peter

  • How to set the value of process variables/payload using a managed bean?

    Hello,
    Someone can give me an example about how to set the values of a process payload in a managed bean?
    thank you!

    Try this:
    jsf page:
    <af:selectOneChoice label="Select Suburb"
    requiredMessageDetail="Select a suburb"
    valueChangeListener="#{selectOneChoiceBean.onValueChanged}"
    validator="#{selectOneChoiceBean.validate}"
    unselectedLabel="None" autoSubmit="true"
    binding="#{selectOneChoiceBean.selectOneChoice}"
    value="#{selectOneChoiceBean.value}">
    <f:selectItems value="#{selectOneChoiceBean.selectionList}"/>
    </af:selectOneChoice>
    backing bean:
    public class SelectChoiceBean {
    private List<SelectItem> selectionList;
    private String value = "B";
    private RichSelectOneChoice selectOneChoice;
    public SelectChoiceBean() {
    initSelectionList();
    public void setSelectionList(List<SelectItem> selectionList) {
    this.selectionList = selectionList;
    public List<SelectItem> getSelectionList() {
    return selectionList;
    public void onValueChanged(ValueChangeEvent valueChangeEvent) {
    System.out.println(valueChangeEvent.getNewValue());
    // Add event code here...
    public void validate(FacesContext facesContext, UIComponent uIComponent,
    Object object) {
    // Add event code here...
    private void initSelectionList() {
    selectionList = new ArrayList<SelectItem>();
    selectionList.add(new SelectItem("A", "A label"));
    selectionList.add(new SelectItem("B", "B label"));
    selectionList.add(new SelectItem("C", "C label"));
    public void setValue(String value) {
    this.value = value;
    public String getValue() {
    return value;
    public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
    this.selectOneChoice = selectOneChoice;
    public RichSelectOneChoice getSelectOneChoice() {
    return selectOneChoice;
    }

  • How to set the value of an radio button using set_radio_button_property

    I'd like to set the value of an radio button dynamically, depending of the situation.
    (=> the value which the object returns to the radio group)
    Means: the 'radio button value' of my object 'rb_1' shall be 1, in other circumstances 99 and so on.
    Is it possible to set this value at runtime ?

    the problem is as Gerd wrote:
    there are two or more radio buttons in an option group.
    Their value depends on the text objext t_field.
    If t_field is "car" the value of radio button 1 shall be 75, button 2: 90 and button 3 115.
    if t_field is "bus" the value of radio button 1 shall be 250, button 2: 275 and button 3 300 and so on.
    My problem is to set the value of the radio buttons at runtime after choosing/typing the value of the text field t_field.
    Message was edited by:
    PatrickM

  • Setting the value of dropdown according tio 1st dropdown values

    Hi All,
    I have a requiremnt.
    My code is like this.
    DATA: LV_GROUP               TYPE QCODEGRP,
              LV_CODE                TYPE QCODE,
              LV_GROUP_FIELDNAME(30) TYPE C,
              LV_CODE_FIELDNAME(30)  TYPE C.
    § 4.The event DOUBLE_CLICK provides parameters for row and column
      of the click. Use row parameter to select a line of the
      corresponding internal table.
        "  break-point.
        FIELD-SYMBOLS  TYPE LVC_T_MODI.
        DATA: LS_MODI TYPE LVC_S_MODI.
        CASE E_FIELDNAME.
          WHEN 'PART_CODE'     OR 'PART_GROUP'.
            PERFORM F4_GET_CATALOG_SELECTION USING    TQ80-OTKAT
                                             CHANGING LV_CODE
                                                      LV_GROUP.
            LV_GROUP_FIELDNAME = 'PART_GROUP'.
            LV_CODE_FIELDNAME  = 'PART_CODE'.
          WHEN 'JOB_CODE'      OR 'JOB_GROUP'.
            PERFORM F4_GET_CATALOG_SELECTION USING    TQ80-FEKAT
                                            CHANGING  LV_CODE
                                                      LV_GROUP.
            LV_GROUP_FIELDNAME = 'JOB_GROUP'.
            LV_CODE_FIELDNAME  = 'JOB_CODE'.
          WHEN 'ACTIVITY_CODE' OR 'ACTIVITY_GROUP'.
            PERFORM F4_GET_CATALOG_SELECTION USING    TQ80-MFKAT
                                             CHANGING LV_CODE
                                                      LV_GROUP.
            LV_GROUP_FIELDNAME = 'ACTIVITY_GROUP'.
            LV_CODE_FIELDNAME  = 'ACTIVITY_CODE'.
          WHEN OTHERS.
            EXIT.
        ENDCASE.
    FORM F4_GET_CATALOG_SELECTION USING     P_CATALOG
                                  CHANGING  P_CODE
                                            P_GROUP.
      DATA:
        LV_CATALOG                     LIKE QKAT-KATALOGART,
        LV_H_CODE                      LIKE VIQMFE-FECOD,
        LV_PICK                        TYPE C,
        LV_RETN                        TYPE C,
        LV_DISP                        TYPE C,
        W_NOTIF_CATALOG                LIKE LINE OF G_NOTIF_CATALOG,
        I_CODEGRP                      LIKE QPK1CODEGRP OCCURS 0 WITH HEADER LINE.
      DATA: BEGIN OF I_QPK1CD OCCURS 10.
              INCLUDE STRUCTURE QPK1CD.
      DATA: END   OF I_QPK1CD.
      LV_CATALOG = P_CATALOG.
      LV_H_CODE  = '*'.
    LV_PICK    = 'X'.
    LOOP AT G_NOTIF_CATALOG INTO W_NOTIF_CATALOG WHERE QKATART = LV_CATALOG.
        MOVE W_NOTIF_CATALOG-QCODEGRP TO I_CODEGRP-CODEGRUPPE.
        APPEND I_CODEGRP.
      ENDLOOP.
      CALL FUNCTION 'QPK1_GP_CODE_SELECTION'
        EXPORTING
          I_KATALOGART           = LV_CATALOG
         I_CODEGRUPPE           = CDGRP
          I_CODE                 = LV_H_CODE
          I_SPRACHE              = SY-LANGU
          I_PICKUP_MODE          = LV_PICK
          I_DISPLAY_MODE         = LV_DISP
          I_RETURN_IF_ONE        = LV_RETN
        TABLES
          T_QPK1CDTAB            = I_QPK1CD
          T_CODEGRPTAB           = I_CODEGRP
        EXCEPTIONS
          NO_MATCH_IN_RANGE      = 01
          NO_USER_SELECTION      = 02
          NO_AUTHORIZATION       = 03
          NO_SELECTION_SPECIFIED = 04
          OBJECT_LOCKED          = 05
          LOCK_ERROR             = 06
          OBJECT_MISSING         = 07.
      CHECK SY-SUBRC = 0.
      READ TABLE I_QPK1CD INDEX 1.
      P_CODE  = I_QPK1CD-CODE.
      P_GROUP = I_QPK1CD-CODEGRUPPE.
    My requirement is that I want to set the values of job_group and activity_group equal to values of part group drop down. I want to just select the value of part_group from the f4 option  and other values should auto populate with same values.
    Please help.
    Thanks in Advance,
    Hariom.

    Hi Hari,
    Check the below thread
    populate drop down menu based on entry in another field
    Cheerz
    Ram

  • Loading a file and setting the values in a Jtextfield

    Hi all,
    I've created a save and open menu option for my application. The save option works as it writes to file using jFileChooser. However when using the open file option the program opens the correct file and stores the strings read into a string variable, however when I go to set the value stored in the variable to a specific textfield using settext method, it doesn't do anything. Please can someone give me some suggestions on what I am doing wrong. The following is the code snippet that accesses the file and reads from it:
    try
    int result = jFileChooser1.showOpenDialog(this);
    if ( result == JFileChooser.APPROVE_OPTION )
    String str1 = jFileChooser1.getCurrentDirectory() +
    System.getProperty("file.separator") + jFileChooser1.getSelectedFile().getName() ;
    FileReader f = new FileReader( str1 );
    BufferedReader b = new BufferedReader(f);
    while((text1 = b.readLine()) != null)
    //text2 = b.readLine();
    jTextArea1.append("\ntext1: "+text1+"\nsize: "+size);
    if(text1 == "// System Configuration")
    text1 = b.readLine();
    size = text1.length();
    //text2 = text1;
    jSampleRate.setText(text1);
    text1 = b.readLine();
    size = text1.length();
    //text2 = text1;
    jFrequency.setText(text1);
    text1 = b.readLine();
    size = text1.length();
    //text2 = text1;
    jVoltage.setText(text1);
    text1 = b.readLine();
    size = text1.length();
    text2 = text1;
    jFSVoltage1.setText(text1);
    /*if((text = b.readLine()) == "// Phase Selection")
    // READ INFORMATION LOOKING FOE THE SPECIFIC TAGS
    b.close();
    jFileChooser1.cancelSelection();
    Any suggestions wpould be very much appreciated. Thanks in advance.

    this is the result from the read in information:
    text1 is the string variable that is used to store the information read in from the file, while size is the variable used to obtian the size of the string. Does the readline() method have any properties which would affect what is being read in?
    text1: |=========================================================================================
    size: 0
    text1: | File Name: C:\CsoundTest\walid3
    size: 0
    text1: | Last Modified: 30-01-2003 11:25:11
    size: 0
    text1: | Warning: Do not modify the information stored in this file. If modified the inforamtion
    size: 0
    text1: | may not be retrieved correctly when loading the file into the main program.
    size: 0
    text1: |==========================================================================================
    size: 0
    text1:
    size: 0
    text1: // System Configuration
    size: 0
    text1: 500
    size: 0
    text1: 50
    size: 0
    text1: 230
    size: 0
    text1: 300
    size: 0
    text1:
    size: 0
    text1: // Phase Selection
    size: 0
    text1: 1VIncN
    size: 0
    text1:
    size: 0
    text1: // Duration
    size: 0
    text1: 0
    size: 0
    text1: 00
    size: 0
    text1: 00
    size: 0
    text1:
    size: 0
    text1: // Disturbances
    size: 0
    text1:
    size: 0
    Regards
    walidr

  • Set the value of a non database field in forms

    hai friends ,
    Have been struggling a lot with the problem now . Could anyone suggest me how to go about it.
    I want to set the value of a field in a form . I know the function set_value and set_value_as_(data type ) does the work . But then is there any constraint on the position where it is called.
    My requirement is on querying a form the data from the tables mut be populated( which the portal handles) and I want to populate the non database bound fields with certain values.
    Could any one help me out with this ..
    null

    I need to set value to one of the object attributes if that attribute is blank.This is some kind of a default value that you want, then? If so then just take care of that when you output it. Use <c:if>, and if the attribute is blank then output the default value, otherwise output the attribute.
    Or have the servlet that created that request attribute take care of that requirement.

Maybe you are looking for

  • Share my Entourage calender on one computer with users/login accts ???

    Hi, I've been searching the forums, and only see answers on this topic for people on work networks/exchange. My issue is for a single home iMac with three users with separate login accts. My problem is that I have a new iMac and I got office2004 and

  • How to auto populate a column/SharePoint list with Current Date?

    I have a SharePoint list and I created a column called 'CurrDate'.  I need this column to;  Display the current      date, Auto populate all rows with the current date in the      SharePoint list Dynamically update with the current date I first tried

  • Variables in SMARTFORMS

    Hi all,    In our Smart forms we have fixed text of 10-12 lines , within which we have 1-2 variable data (dynamic).    Now for this in the smartform,we were thinking to use Standard text SO10 .   Another query is that if we define std texts in SO10 f

  • PDF / SWF reader on portal

    Experts, I'm looking for a way to embed a PDF and / or SWF reader in the portal. I'm looking for the functionality like Adobe Flashpaper is offering. I want to show some newsmagazines in the portal with the possibility to navigate through the pages,

  • Stream iphoto for screen saver

    Is it possible to use your iphoto pics for the screen saver when ATV is set to stream? My only options are: Apple Photos, Music Covers (only got that working once), My Photos (only works when syncing), MobileMe and Flickr. This post has nothing to do