Autosuggest based on Select Value

I'm in the process of reworking a pre-existing form and
related queries that
allows a person to search for my agency's services based on
City, County or
ZIP Code.
We have two fields: locationtofind (text field) and
locationtype (select
containing the above values, with City being the default)
What I'd like to do is populate the autosuggest with values
based on the
value of the currently selected locationtype. How do I pass
or bind the
currentvalue of locationtype to the autosuggest call to a
CFC?
Texas has a huge number of place names in addition to its 254
counties, so a
dynamic search using a cfc as you type query is a must.
Any examples would be quite helpful.
Thanks in advance,
Michael Brown
Texas Department of Aging and Disability Services

I'm in the process of reworking a pre-existing form and
related queries that
allows a person to search for my agency's services based on
City, County or
ZIP Code.
We have two fields: locationtofind (text field) and
locationtype (select
containing the above values, with City being the default)
What I'd like to do is populate the autosuggest with values
based on the
value of the currently selected locationtype. How do I pass
or bind the
currentvalue of locationtype to the autosuggest call to a
CFC?
Texas has a huge number of place names in addition to its 254
counties, so a
dynamic search using a cfc as you type query is a must.
Any examples would be quite helpful.
Thanks in advance,
Michael Brown
Texas Department of Aging and Disability Services

Similar Messages

  • Passing DB values to the textbox based on Select Value item

    Hi,
    I am very much new to the Oracle APEX. In my project, I have a requirement wherein I have to pass the different values to the corresponding textboxes on a different page based on the value I select from the "Select Value" item.
    I have tried using calling On-Demand Processes, but couldn't get the desired result.
    Please suggest!

    Hi 796444 ,
    Welcome to the forum. It will be good if you familiarize yourself with the forum ettiquittes. Also, when posting always state the following:
    a. Apex version
    b. DB version
    c. Web server ; EPG, apexlistener, etc
    d. Provide adequate details for others to understand your problem / what you are trying to achieve.
    e. Any code snippets you post should be enclosed in a pair of tags
    If your current problem is that the you are *calling* Page 2 from Page 1, and while doing so you want the value of P1_ITEM1 to be passed and set in p2_ITEM1 then
    a. Edit the branch
    b. In Action in Set these items write P2_ITEM1
    c. In With these values write &P1_ITEM1. (do not miss the dot at the end)
    It looks good if you use a better handle than 796444 :-)
    Regards,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to populate table of values based on selected value of dropdown list

    Hi
    I have an urgent requirement.
    Whenever I select a value in Dropdownlist, Based on the selected value I need to display serveral values in tabular form.
    I have created a dynamic LOV and created the actionListener
    I have created a table by dragging the ViewObject and i have set the partialTrigger attribute value to the LOV Id.
    Now My doubt is What should I return in the actionListener method
    Thanks

    Hi,
    So get the value what i tried is ,bind the list item of the select one choice ,
    and then i used the method something like this
    UISelectItems see=getSelectItems1();
    System.out.println("Selected Value"+ see.getValue());
    but it returns me something like this
    Selected Value[javax.faces.model.SelectItem@b20090, javax.faces.model.SelectItem@431753]
    Don't know what are those ,hoe can i get the display value.Please help.
    Thanks

  • Select list coloured based on selected value

    Hello,
    Could anyone please tell me if it is possible to display a LOV with a background colour based on the selected value ?
    In fact , I have a report with many select lists whose value can be Y,N,N/A and I would like that the corresponding LOVs have the background colour set according to the value .
    Thanks in advance,
    Andreea
    Edited by: user12064977 on 20-Oct-2009 02:15

    Andreea,
    Lets assume your select list item name is P1_SL and return values as follows
    Display -  Return
    N/A     -  NA
    YES     -   Y
    NO      -   NEdit you page and put JS code similar to following in footer section
    <script>
    slval = $v("P1_SL");
    sl = $x("P1_SL");
    if(slval=="Y")
    sl.style.backgroundColor="#FFCC80";
    else if (slval=="N")
    sl.style.backgroundColor="#CCAA80";
    else
    sl.style.backgroundColor="#CCCC80";
    </script>So background color will be set on page load.
    Now edit your page and put JS code similar to following in HTML Header section
    <script>
    function setColor(this1)
    slval = this1.value;
    if(slval=="Y")
    this1.style.backgroundColor="#FFCC80";
    else if (slval=="N")
    this1.style.backgroundColor="#FFAA80";
    else
    this1.style.backgroundColor="#CCCC80";
    </script>Edit your select list item and set following for 'HTML Form Element Attributes'
    onChange="javascript:setColor(this);"So the select list color will be set accordingly 'onChange'.
    Cheers,
    Hari

  • Showing and hiding dropdowns on product page, based on selected values

    Hello.
    I would like my product page to show different subsequent dropdowns based on individual dropdown values.
    I've managed to achieve this via JavaScript, but I do not like how it works.
    As far as I can tell, there is no proper identifier for each individual dropdown to determine which one it is, so all I can do at the moment is to rely on their order in the DOM, which is bad and makes it difficult for me to create a solution that would work for all products.
    For instance, if the following is a single attribute:
    <div class="catProductAttributeGroup" style="display: none;"><div class="catProdAttributeTitle">Metallic Foiling</div><div class="catProdAttributeItem"><select><option value="">-- Please select --</option><option value="6051720">Not required </option><option value="6051721">Foil ONE side + £45</option><option value="6051722">Foiling BOTH sides + £75</option></select></div></div>
    I would like the outer-most div to have some sort of html attribute that holds the product attribute id. Something like, data-attribute-id="XXXXXXX". Is that possible?
    Here's what I have up to this point:
    I use {tag_attributes_json}, {tag_product_json} and {tag_currency} to get these values into javascript on page load, so I can use them later.
    Then, I hook to change events of the drodpowns I have and then toggle their visibility based on which ones are selected. I rely on the jequery ':eq(n)' selector to achieve this, which I do not like. Is there an option for the {tag_attributes} helper which would make it add some extra information (such as attribute ID on the dropdown) on the generated HTML?
    All of this works initially, but If I then 'Add to cart', the product element get's ajax-reloaded and the events are suddenly unhooked, so it doesn't work anymore. For that one, there are two options:
    1. I could hook to an event that triggers once the product has been added to cart and the page is ready again. Is there such an event?
    2. I could implement my own add to cart using bcInternals.shop.addToCart. I tried doing this, but I have two problems with it.
    a. addToCart seems to add my selection twice, for some reason. Any ideas what I might be doing wrong?
    b. the cart info in  the top right corner doesn't refresh. it seems it tries to refresh, but there's some sort of access error in the script. This part is not yet fully added to the page, but there's a function that would do the adding to cart at the bottom of the bigger script block. Am I using the built in addToCart function incorrectly?
    This is the page I have the partially implemented functionality added on:
    Matt Laminated Business Cards
    The scripts are currently embedded inside the HTML. Once I have it properly implemented, I'd like to extract it into a separate file. Search for "$productAttributesElement" to find the block with the functionality and for "productInfo" to find the part where I store the product data with the _json tags.

    Hi,
    No worries, Didnt know if you solved or the answer wasnt helpfull
    You need to trigger you script within the product details template layout, or you could add a listener to the product container and trigger the script if any changes are detected.
    Regards

  • Changing value in drop-down based on selected value in another drop-down

    Hi,
    I have two drop-downs - changing value in Combo1, should cause the form to be submitted and values to be populated in Combo 2.
    Approaches i tried - 1) I am using an ActionListener. I am having a valueChange method which accepts an action event. However this appraoch is not working for me. 2) I was wondering if I could use Javacsript to catch the OnChange event , the javascript function would call an appropirate method in my ActionListener. I know in Struts its straightforward, but how do i achive the same here in JSF.
    Any tips would be helpful.
    Thanks
    PS: I already came across some threads in the forum, but could not get an answer. Also, I have a retsriction in terms of using Action LIsteners itself.

    Try using ValueChangeListener instead of ActionListener.
    Here's a working example of a ValueChangeListener. You can customize it and use it for your application.
    The JSP will look like this:
         <h:selectOneMenu value="#{globalsBean.selectedFirst}"
              valueChangeListener="#{globalsBean.changeList}" onchange="submit()">
              <f:selectItems value="#{globalsBean.first}" />
         </h:selectOneMenu>
         <h:selectOneMenu value="#{globalsBean.selectedSecond}">
              <f:selectItems value="#{globalsBean.second}" />
         </h:selectOneMenu>The globalsBean will look like this:
    public class GlobalsBean extends Bean {
         ArrayList first;
         ArrayList second;
         String selectedFirst;
         String selectedSecond;
         public GlobalsBean() {
              first = new ArrayList();
              second = new ArrayList();
              first.add(new SelectItem("1", "1"));
              first.add(new SelectItem("2", "2"));
              selectedFirst = "1";
              selectedSecond = "";
              second.add(new SelectItem("White", "White Cows"));
              second.add(new SelectItem("Brown", "Brown Cows"));
              second.add(new SelectItem("Green", "Green Cows?!?"));
         public ArrayList getFirst() {
              return first;
         public ArrayList getSecond() {
              return second;
         public String getSelectedFirst() {
              return selectedFirst;
         public void setSelectedFirst(String selected) {
               selectedFirst = selected;
         public String getSelectedSecond() {
              return selectedSecond;
         public void setSelectedSecond(String selected) {
               selectedSecond = selected;
         public void changeList(ValueChangeEvent event) throws AbortProcessingException{
              second = new ArrayList();
              String newValue = (String)event.getNewValue();
              setSelectedFirst(newValue);
              if (newValue.equals("1")) {
                   second.add(new SelectItem("White", "White Cows"));
                   second.add(new SelectItem("Brown", "Brown Cows"));
                   second.add(new SelectItem("Green", "Green Cows?!?"));
              } else if (newValue.equals("2")) {
                   second.add(new SelectItem("White/Black", "White Cows with Black spots"));
                   second.add(new SelectItem("Black", "Black Cows"));
              setSelectedSecond("");
    }Let me know how it works out for you.
    CowKing

  • Report display in dashboard based on selected value

    Hi Experts,
    I have an requirement.
    when I select quaterly in prompt the quaterly report should display.
    when Yearly selected then  yearly report should display in dashboard
    we are using OBIEE 11.1.1.7
    Any idea pls.

    Hi,
        I feel you can achieve this by using OBIEE11g Conditions. You can show the quaterly or yearly report based on the Rowcount fetched on the conditional analyis created. Please see if this helps

  • Plot a chart dynamically based on the values selected

    Hi All,
    I have some requirement like this i want to plot a chart . The chart should change dynamically based on target_name and date. What type of UI should I use ? I tried using multiselect or shuttle for choosing the target_name and date picker tool for date once i choose all this the chart should appear. Can I have a custom button called submit so once all the values are entered it plots chart ? Please help me out with our ideas.
    Thanks in Advance

    Hi,
    Using the dependent value sets you can govern the values which can be selected based on a specific value selected in a particular segment. Example if Country name is selected in segment 1 then specific states names as per the country selected can be displayed in segment 2.
    As per the requirement described you want to enable different fields based on the value selected in segment1, currently there is no standard mechanism available to enable/disable fields based on a value and you will have to do an extension/customization to meet this requirement.
    Thanks,
    Sanjay

  • Is there a way to hide some reports based on the selected values in prompt.

    Hi Experts,
    Is there a way to hide some reports based on the selected values in prompt.
    For ex. if a year is selected in the prompt then the report should display year wise report.
    If a year and half year both are selected in the drop down from prompt section then 2 reports should come.. One for year wise and another for half year wise.Kindly look into this.
    Regards
    Ashish

    Hi,
    Use presentation values in prompts for year,half,qtr and month.Example- For year-y is presentation variable in the same way for halfyear-h,qtr-q and month-m.
    create four intermediate reports.Example-Report r1 with only year column,r2 with only halfyear column,r3 with qtr column and r4 with month column.
    Make column in each report(r1,r2,r3,r4) is equal to their presentation variables(y,h,q,m).
    Use four sections.
    Section1-Place report that should come when only year.
    section2-Place report that should come for year and halfyear.
    Section3-Place report that should come for year,halfyear and qtr.
    Section4-Place report that should come for year,halfyear,qtr and month.
    Apply guided navigation for each section selecting guided navigation-
    For section1-
    properties->Guided navigation->check this Reference Source Request(Yes)->select report r1(year)->check this Show Section(if request returns row)
    In the same way do for remaining section2(select r2),section3(select r3) and section4(select r4)
    Thanks,
    Srikanth
    http://bintelligencegroup.wordpress.com/

  • SSRS Matrix report to show or hide year column based on parameter value "Date" selected.

    Hey experts!
    I have a requirement an ssrs matrix report should display columns (year/s) based on parameter value (date/s). 
    My Dataset fileds are: Product, Year_name, Month_name, Date
    Currently my report output looks like this-
    Param Date: 2013-08-01 00:00:0.000
    Product +Calender2011      +Calender2012     -Calender 2013........                        +Calender2014
                             Total
                      Total Jan13  Feb 13  Mar13..  Dec13   Total           Total
    Abc                      100
                        220
    10      20         30.......  20       250              400
    Xyz 110
    200 50      80         40.......  30       450              600
    My requirement:  if I'm selecting Date parameter value as '2013-xx-xx' I should only able to see Year column 'Calender2013' and rest of the years should hide. Similarly If I'm selecting Date parameter value as '2014-xx-xx' I should only able to
    see Year column 'Calender2014' .
    Appreciate your kindly help. 
    Afan

    Hi Afan,
    According to your description, you want to only show the selected year on your report, right?
    In this case, you need to get the year from the date parameter using the expression below
    =Year(Parameters!Date.Value)
    And then use the expression below to get the year from Year_Name field.
    =Right(Fields!Year_Name.Value,4)
    Then add a filter to the dataset to filter the data like below
    Expression:=Year(Parameters!Date.Value)
    Operator:=
    Value:=Right(Fields!Year_Name.Value,4)
    Reference
    http://msdn.microsoft.com/en-IN/library/dd255287.aspx
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to get value in Second Drop Down based on selection made in first dropd

    Hi All,
    I have a table with first two columns as dropdown.
    The values in first drop down are fixed. However the value in second dropdown should be populated based on selection made in first .
    e.g
    First Column had different departments say IT, SALES, HR.
    Based on department selected I have to populate employee of that department.
    For first dropdown I have taken Drop down by index.
    What should I select for second drop down and achieve desired functionality? Please guide.
    Regards,
    Madhvika

    Hi
    Use drop down by key for fixed values IT, SALES, HR. create on_select action for that drop down.
    in on_select method code like this..
      DATA lo_nd_segment1 TYPE REF TO if_wd_context_node.
      DATA lo_el_segment1 TYPE REF TO if_wd_context_element.
      DATA ls_segment1 TYPE wd_this->Element_segment1.
      data lt_segment1 type wd_this->elements_segment1.
      DATA lv_segment TYPE wd_this->Element_segment1-segment.
      data lr_column type ref to cl_wd_table_column.
    navigate from <CONTEXT> to <SEGMENT1> via lead selection
      lo_nd_segment1 = wd_context->get_child_node( name = wd_this->wdctx_segment1 ).
    get element via lead selection
      lo_el_segment1 = lo_nd_segment1->get_element( ).
      lo_el_segment1 = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).
    get all declared attributes
      lo_el_segment1->get_static_attributes(
        IMPORTING
          static_attributes = ls_segment1 ).
    now ls_segment1 contains your first drop down selection value.
      DATA : lv_dropdown type string .
      lv_dropdown =  ls_segment1-segment.
      if lv_dropdown = 'IT'.
    // here fill your second drop down based on IT value.
    endif.
    Hope it solves.
    Cheers,
    Kris.

  • F4 help for select options based on parameter value

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

  • How to select a different value based on $FLEX$ Value set

    Hi friends,
    am getting a column like position from positions_table....
    now based on this value set am selecting another column from the same table like for ex amount...using $FLEX$.vlaueset_name
    now if the value in the table is 0 or null I should make the field available for the user to enter something
    as of now it is not letting me enter any data as this value is based on the first value set we defined..
    is there a way to do that..
    hope am clear in specifying my requirement
    thanks

    Hi Balraj
    I want to select one list item value from yyy based on the xxx item value..Pls use the following andreas's link ( it's about it)
    http://andreas.weiden.orcl.over-blog.de/article-28957008.html
    pls study it carefully and develop.
    Hope it helps...
    Regards,
    Abdetu...

  • Select value based on a value in a 2nd column (similar to vlookup)

    Hello all,
    Is there an alternative to VLOOKUP function in BI 11g?
    Or what else I can use to return value of 3rd column based on the value in 2nd column?
    Dept Min_Expense Description of Expense
    Acct 1000 'COGS'
    Thank you.

    Hi,
    Yes this is possible by dynamic user assignment.
    Define an output parameter for CO1 and CO2 and an input parameter for the CO under action F of type string. In design time select the processor of action F as "Filled from Context Parameter" in the Roles tab and select the input parameter you have defined as mentioned in the previous step. Now group the output parameter of the CO1 and CO2 and the input parameter of action F together.
    Now at runtime fill the context parameter from CO1 and CO2 with the actual user name. The action F will get automatically assigned to that user.
    Thanks,
    Dipankar

  • How to dynamic select based on runtime value ?

    how to dynamic select based on runtime value ?
    I want to write a select function, which do selecting based on parameters. eg,
    CREATE OR REPLACE FUNCTION myfunction
    (tableName VARCHAR2, pkName VARCHAR2, pkValue VARCHAR2, requestString VARCHAR2)
    RETURN VARCHAR2 AS
    BEGIN
    select requestString from tableName where pkName=pkValue;
    RETURN NULL;
    END;
    myfunction('users', 'user_id', '100', 'user_name'); it will select 'user_name' from table 'users' where 'user_id' = '100'.
    This way could save lots of coding. but it can't pass compiler. how to work out ?
    Thanks.

    While this may save code, if used frequently it will be ineffecient as all [explicative deleted]. The danger is that it would be used even for repeatable statements.
    This mode of operation ensures that every statement [calling the funciton] needs to be reparsed, which is extremely expensive in Oracle (in CPU cycles, recursive SQL and shared pool memory).
    Such reparsing is rarely a good thing for the environment ... it could easily lead to buying more CPU (bigger box) and therefore adding more Oracle license ... which could quickly exceed the typical developer's salary.
    However - if you really, really want to do this, look up 'execute immendiate' in the PL/SQL manuals.

Maybe you are looking for

  • Large music collection questions...

    Hello All, I am new to iTunes and I have a couple of questions I need answers to before I make a big mess. I am moving from all windows to all mac environment. My music collection (77,000 songs) exists on several external HDD and are configured for t

  • EXIF Info

    Trying to better understand the exif data shown under the advanced TAB in File Info. There is a link http://ns.adobe.com/exif/1.0/aux/ in the Schema Section, but this link results in a page not found! I did a search on the Adobe Site but did not reva

  • Can I use Photoshop Touch on GoClever TAB T76GPSTV 7"

    I want to buy a Adobe Photoshop Touch for my tablet GoClever TAB T76GPSTV 7" . Will it work? Please help!

  • Button need to change appearance when pushed

    I just got some great help in here, to get a button to switch inbetween 2 videos. I just need to have the button when not pressed say "video1" and when pressed say"video2" and when pressed again say "video1" etc... just don't know how to go about it

  • Expensive SQL statements & no proper indexing INCLUDE LBSVAU14-BSVA FuncGrp

    Expensive SQL statements & no proper indexing INCLUDE LBSVAU14 - Function Group BSVA (Status management) Hi there Forum During a recent upgrade we have implemented EhP4 with relevant Support Packs. Our Early Watch Report nows highlights INCLUDE LBSVA