Populate List of AutoSuggest Item from Database

Hi,
I am working in JDeveloper 11.1.2.1.0 IDE and developing an ADF Application.I just want to know how to populate the list of AutoSuggest Item from a database.
Please reply.
Thanks.

hi user,
nothing to do with you thread.
why are you cross posting here also.
duplicate:
Populate List of AutoSuggest Item from Database

Similar Messages

  • How to display items from database using catagorylookupdroplet

    Hi everyone,
    i want to know how to display items from database using catagorylookup droplet. if anybody have any code snippet please share it.
    Thanks in advance,

    <dsp:droplet name=".................../CategoryLookup">
         <dsp:param name="id" param="itemId"/>
         <dsp:oparam name="output">
              <dsp:valueof param="element.displayName"/>
                   <%-- This is show the Child Category --%>
                   <dsp:droplet name="......................./ForEach">
                   <dsp:param name="array" param="element.childCategories"/>
                   <dsp:oparam name="outputStart">Child Categories</dsp:oparam>
                   <dsp:oparam name="output">
                        <dsp:a href="">//bydefault it will take its own file's name
                             <dsp:param name="itemId" param="element.repositoryId"/>                                                                                          <dsp:valueof param="element.displayName"/>
                        </dsp:a>
                   </dsp:oparam>                                             
                   </dsp:droplet>
                   <%-- This is show the Child Product --%>          
                   <dsp:droplet name=".............../ForEach">
                        <dsp:param name="array" param="element.childProducts"/>
                        <dsp:oparam name="outputStart">Child Products</dsp:oparam>
                                  <dsp:oparam name="output">
                                       <dsp:droplet name="................/ProductLookup">
                                            <dsp:param name="id" param="itemId"/>
                                            <dsp:param name="elementName" value="Prod"/>
                                            <dsp:oparam name="output">
                                                 <dsp:getvalueof id="img102" param="Prod.smallImage.url" idtype="java.lang.String">
                                                      <dsp:img height="250" width="250" src="<%=img102%>"/>
                                                 </dsp:getvalueof>
                                            </dsp:oparam>
                                       </dsp:droplet>
                                       <dsp:a href="productView.jsp">
                                            <dsp:param name="itemId" param="element.repositoryId"/>
                                            <dsp:valueof param="element.displayName"/>
                                       </dsp:a>
    Hope this helps.
    -RMishra

  • Problem Populating Image Item From Database

    Hi All,
    I am using Oracle 9i & Forms 6i on Windows platform & working in client/server model. I created a form in which, I am reading an image file from the file system & then saving it into the database. In the Databse, i created the column as BLOB. But, when I query, this does not retrive the saved image in Image Item. But image is actually saved. When I tried, changing the database column to LONG RAW, it is working. I mean its reading the image in the image item from the database.
    Can anyone pls tell me, is there any problem like this, as we can retrive from LONG RAW but not from BLOB, or I am missin something here.
    Regards

    Hi,
    I use Forms 6i to save and retrieve image in BLOB column without problems.
    Some weeks ago, my column was long raw and I update it without problems. Nothing to do in Forms and juste modifiy query and recompile in Reports.

  • To get list of suspended responses from database

    Hi All,
    we have O2A PIP installed with below versions:
    Oracle AIA     11.1.1.5
    Oracle WebLogic    10.3.5
    SOA Suite    11.1.1.5
    O2C PIP        11.1.1.1
    In Production some of the orders are failing because of Siebel internal error and hence those responses are also erroring out in AIA.
    Now as per the resequencing logic all subsequent responses for that account is going into suspended state so that only when the faulted response was recovered successfully, the subsequent response will flow.
    The issue we have here is, whenever any new order is coming bearing same Account no. for which the response of some order has failed, the responses of new orders are also going into suspended state. now all suspended responses we can only see that in mediator_instance table, one row is getting added with same group_id of that account. leaving us with no option to identify if this response is for new order or same order which has faulted.
    we can identify all the responses which has faulted by combining mediator_instance and composite_instance table as instance of updateSalesOrderSiebelComsProvABCSImpl gets created for the response which has failed.
    but we need the list of all new orders and its group_id which is going into suspended state because of some other order's faulted response.
    Please let us know if there is any way to get this list from database.
    Thanks & Regards,
    Vivek

    In addition, this:
    String filename = files;Should be this:
    String filename = files;
    That's just because he didn't use the "code" tags, so [ i ] made everything following it become italicized.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Select list in JSP (Options from database)

    I am developing a web application on struts.
    I am having problem with my JSP.
    I have a form from where users input the keywords for search
    and when they click on a database query is performed and
    result is shown on the screen.
    Where i am stuck is that in the display screen, i wanna have one
    set of result in the drop down list (same as select in html).
    If the result from the database search is 1 i want the first option of
    select to be Yes and if its 0 then i want the first option of select to be
    No.
    what i have in JSP is following
    <select name="attt" size="2"><option value="<bean:write name="sList" property="att"/>">Yes
    <option value="<bean:write name="sList" property="att"/>">No
    Where I am stuck is that I dont know where to perform whether the
    result from database is 1 or not. Can someboday help me on how
    to solve this or get this done? Am i right so far?
    thanx in advance

    The best I could come up with was to use the second layout I mention and then add some Javascript on the page to do something like
    <style type="text/css">
    label.l {position:absolute;top:100px;left:210px;}
    input.i {position:absolute;top:100px;left:200px;}
    </style>
    <script type="text/javascript">
    var f=$x('P1_RADIO');
    var l=f.getElementsByTagName('label')[1];
    var i=f.getElementsByTagName('input')[1];
    l.className += "l";
    i.className += "i";
    </script>Basically, it takes that "Radiogroup Option 2" and the form input field and uses absolute CSS positioning to place it to the right of the Select list.
    Works great in FF (as usual), but the usual IE inconsistencies with CSS box model rear their ugly head. Looks terrible in IE, totally mis-aligned.
    Any other ideas?
    Thanks

  • CallResponder|Datagrid|delete item from Database

    Hello guys,
    I succeeded to display datas from database inside the DataGrid using the CallResponder, but until now I still don't know how can I access to the data that already stored in column in the DataGrid !
    the DataGrid Structure is (id, login, password, email, firstname, lastname), and want to access to those datas using the action script
    My question, what is the object that already stored these datasin memory? is it "dataProvider", or "data".
    When I want to delete a person from the dataGrid, I want to click on the dataGrid and then click the delete button, the button will seek for the "id" stored in the memory and finaly send the query to the server to delete the item token from the data Grid !
    example :
    I click on the second item in the DataGrid, and this item it's id = "14" so dataGrid.selectedIndex == 2, but the value of the attribute of that item is 14
    how can I access to to the values ?
    I face this problem because I don't know where the dataGrid does already stores the data that it displays, and what is the structure of it even it is ArrayList or ArrayCollection.
    I hope you understood my challenge?

    Thank you a lot, that is correct, I executed the application in debug mode and I saw that the dataProvider is already an ArrayCollection, so I can understand that all the method of an Arraycollection is already applyable to the dataProvider.
    I didn't know that it is the case, so before you reply me, I was thinking about doing that manually, by pushing the result that come from the CallResponder into an ArrayCollection that is already declared manually in the mxml file, after that adding an event listener and calling a function that is going to make a loop and store all the result into a the ArrayCollection.
    Here is the code: (I think it is useful if someone is going to select something manually from the database so he has to do the same thing and filtring the results inthe loop)
    Creating Manulally the dataProvider()
    Script :
    protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
    getAllUserResult.token = userService.getAllUser();
    getAllUserResult.addEventListener(ResultEvent.RESULT,onResult);
    protected function onResult(event:ResultEvent):void
    for (var i:int=0 ;i< event.result.length;i++){
    userMemory.addItem(event.result[i]);
    Mxml File (Declaration) :
    <fx:Declarations>
    <s:CallResponder id="getAllUserResult"/>
    <userservice:UserService id="userService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    <s:ArrayCollection id="userMemory"/>
    </fx:Declarations>
    I must thank you my brother for the answer, and for the fast reply !

  • Stop applications not listed in Login Items from launching

    When I sign in, all Microsoft Office applications as well as others not listed in Login Items launch automatically. These include Skype, iChat, my HP Printer utility, etc., which are not listed at all in Login Items. Never had this problem with Leopard.
    How do I stop this?

    Open SysPrefs > General and unselect the option to "restore windows when quitting and re-opening apps." Then, when you log out make sure and unselect the option to "reopen windows when logging back in." You can quickly do this latter by tapping the space bar. 

  • Problem creating list of data items from results of selectOne ListBox

    We are having problems with the following:
    Here's the JSF
                     <td valign="top">
                                     <h:selectOneListbox size="10" value="#{LanguageGroupsPage.selectedLanguageGroup}"
                                                         onclick="submit();">
                                        <f:converter converterId="lingonet.converters.LanguageGroupConverter"/>
                                        <f:selectItems value="#{LanguageGroupsPage.languageGroups}"/>
                                     </h:selectOneListbox>
                                  </td>
                                  <td valign="top">
                                     <t:dataList var="languagePair"
                                                 value="#{LanguageGroupsPage.languagePairsOfSelectedGroup}"
                                                 layout="unorderedList">
                                        <h:outputText value="#{languagePair.fromToString}"/>
                                     </t:dataList>
                                  </td>And here's the java code
       public List getLanguageGroups () {
          ArrayList list = new ArrayList();
          for( int i = 0; i < m_languageGroups.length; i++ ) {
             list.add( new SelectItem( m_languageGroups[ i ], m_languageGroups[ i ].getName() ) );
          return list;
       public LanguageGroupLocal getSelectedLanguageGroup ()
          return m_selectedLanguageGroup;
       public void setSelectedLanguageGroup ( LanguageGroupLocal selectedLanguageGroup )
          m_selectedLanguageGroup = selectedLanguageGroup;
       public List getLanguagePairsOfSelectedGroup () {
          if( m_selectedLanguageGroup == null )
             return null;
          try {
             ArrayList languagePairs;
             UserTransaction ut = (UserTransaction)new InitialContext().lookup( "java:comp/UserTransaction" );
             ut.begin();
             languagePairs = new ArrayList( m_selectedLanguageGroup.getLanguagePairs() );
             ut.commit();
             return languagePairs;
          catch( Exception e ) {
             m_logger.error( e, e );
             return null;
       }The idea is that when you select from the languageGroup listbox that group's languagePairs should be listed in the languagePairs datalist. Unfortunately, the list is never rendered when a languageGroup is selected. I tried to debug by putting a breakpoint in the first line of the method getLanguagePairsOfSelectedGroup. What I found is that when the item grom the languageGroup list is selected the framework invokes this method 3 times. The second time it appears to work properly, but the first and, more importantly, last time, the variable m_selectedLanguageGroup is null and so the method returns null which explains why the languagePairs datalist. However, I don't understand why the framework is invoking that method 3 times. Xan anybody explain what is going on and suggest how I might get the datalist to render? Thanks.

    A getter can be called more than once in bean's life. It is not the intention to place any expensive business and/or database logic in there. They belongs in the bean constructor, the action methods or any other event methods.
    I can see 2 ways to solve your problem. The easiest is to introduce lazy loading in the getter. Replace it by something like if (property == null) { loadProperty(); } return property; Another way is to attach a valueChangeListener to the selectOneListbox and do the loading logic in there.

  • Populate DB after moving item from right panel to left panel of shuttle

    Refer to the following forum: Re: APEX 4.1 - Populate DB based on right panel of shuttle
    Refer to the following apex app: http://apex.oracle.com/pls/apex/f?p=27554:51
    Login: demo
    PW: demo
    APEX version: 4.1.1.00.23
    Oracle 11g
    What do I need to add to the page process that when shuttle items are moved from the right panel back to the left panel, 'null' is assigned to the 'Analyst' column of the DB table?
    My current page process updates the DB table column 'DQ_ANALYST' with the name in the select list based on the items in the right panel of the shuttle. (Again see the previous thread: Re: APEX 4.1 - Populate DB based on right panel of shuttle
    declare
        tab apex_application_global.vc_arr2;
        l_count number;
    begin
        tab := apex_util.string_to_table (:P51_SHUTTLE);
        for i in 1..tab.count
        loop
        select count(*) into l_count from DQ_MANUAL_EDIT WHERE DQ_ATTRIBUTE = tab(i);
         if l_count > 0 then
           UPDATE DQ_MANUAL_EDIT
           SET DQ_ANALYST = :P51_DQ_ANALYST
           WHERE DQ_ATTRIBUTE = tab(i);
        end if;
        end loop;
    end;DB table (before clicking button):
    Field                          Analyst
    Co-Borrower Credit Score       Analyst_1
    Appraised Value               Analyst_1
    Appraisal Identifier          Analyst_1When 'Appraised Value' and 'Appraisal Identifier' are moved from the right panel back to the left panel and the 'Apply Changes' button is clicked, I am wanting the 'Analyst' column to be updated with 'null'.
    DB table (before clicking button):
    Field                          Analyst
    Co-Borrower Credit Score       Analyst_1
    Appraised Value               (null)
    Appraisal Identifier          (null)Here is my test code:
    declare
        tab apex_application_global.vc_arr2;
        l_count number;
    begin
        tab := apex_util.string_to_table (:P51_SHUTTLE);
        for i in 1..tab.count
        loop
        select count(*) into l_count from DQ_MANUAL_EDIT WHERE DQ_ATTRIBUTE = tab(i);
         if l_count > 0 then
           UPDATE DQ_MANUAL_EDIT
           SET DQ_ANALYST = :P51_DQ_ANALYST
           WHERE DQ_ATTRIBUTE = tab(i);
        end if;
    --Doesn't work but here is an example of what I am trying to accomplish
         if l_count > 0 then
           UPDATE DQ_MANUAL_EDIT
           SET DQ_ANALYST = null
           WHERE DQ_ATTRIBUTE <> tab(i);
        end if;
        end loop;
    end;

    I used the following code. First, I run an update statement setting the DQ_ANALYST to null where the DQ_ANALYST is equal to the select list field (:P51_DQ_ANALYST). Then based on what is currently on the right panel, set the DQ_ANALYST to what is in the select list field (:P51_DQ_ANALYST).
    declare
        tab apex_application_global.vc_arr2;
        l_count number;
    begin
        UPDATE DQ_MANUAL_EDIT
        SET DQ_ANALYST = null
        WHERE DQ_ANALYST = :P51_DQ_ANALYST;
        tab := apex_util.string_to_table (:P51_SHUTTLE);
        for i in 1..tab.count
        loop
        select count(*) into l_count from DQ_MANUAL_EDIT WHERE DQ_ATTRIBUTE = tab(i);
         if l_count > 0 then
                  UPDATE DQ_MANUAL_EDIT
                  SET DQ_ANALYST = :P51_DQ_ANALYST
                  WHERE DQ_ATTRIBUTE = tab(i);
        end if;
        end loop;
    end;

  • Is there a way to clear the list of "synched items" from phone?

    Please read the list of things I've done so far before responding with basic stuff.
    My iphone 4 was just updated with the latest firmware, 7.1.1. Full backup was done prior to upgrade. Subsequently, everything was wiped from the phone. Restore brought back a limited amount of apps and all pictures, but no music and no video. The Restore process displayed each file that should have been restored, but when completed, no music or videos were. restored. I tried again to restore with the same results. Tried syncing a few time and nothing was transferred.
    Frustrated as ****, I added a song to be synced. That song and only that song was synced. Short of deselecting and reselecting everything that I want on the phone, is there a way to tell the phone that nothing has been synced and to resync everything without verifying if it exists on the phone?

    You will find that by pressing the option key when you are in the File menu, that Duplicate changes to Save As… .

  • List Creation From Database Table

    I have a form that has two data blocks based on database tables:
    Block #1 = ORDER_LINE
    Block #2 = ORDER_CODE
    The ORDER_LINE block has an item in it that corresponds to an item in the ORDER_CODE block. I want to create a TLIST for this item in the ORDER_LINE block that populates the list from the values for the corresponding item in the ORDER_CODE block. I know that I can use the POPULATE_LIST built in and need a record group, etc, but I have not been able to make any of this work. Can anyone provide good instructions on how to do this? I find the On Line Help within Forms to be totally useless.
    Thanks.

    976798 wrote:
    --Hello..I want to ask that How to bind a list item with  table values? this below code does not populate items from database to list item.Pls any body give me solution.
    declare
         group_id RecordGroup;
         list_id Item:=Find_Item('LST_CLASS');
         status number;
    begin
         group_id:=Create_Group_From_Query('Answer_List','select CLASS_ID,CLASS_NM from CLASS_MSTR');
         status:=Populate_Group('Answer_List');
         message(to_char(status));
         Populate_List(list_id,group_id);
         end;Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
    Check this link: How to Dynamically Populate a Pop List ?
    Hope this helps
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.

  • How to populate a field from database through personalization

    I need to populate value of a field from database on self service transaction web page. This field is not configured as EIT or SIT, nor available in seeded transaction.I need to know abt creating some item through personalization where i can write a query . This item will execute the query and display the returned value on the page or something on the similar line.
    Thanks in advance,
    Tanveer

    This workaround should be used as a one time approach till you move to 11.5.10 CU3.
    Here are the details,
    You just need to add the following tags inside the site or function level customization document, remember it should be either site or function only no other levels are supported for adding a new item.
    before adding the following tags you need to find out the following details,
    1. what is the last item in the advancedTable, column or columnGroup in the base metadata. Do not conside the columns inside the columnGroups for this, just the last item which might be a column or a columngroup. Get the if of that item.
    2. You should know what is the view instance and viewattribute you will be attaching
    3. Remember you can only add columns through personalization and not columnGroups.
    4. Replace the appropriate values for the properties amrked with {...} with your own values. You can change the other properties to reflect any specific requirement you want. Make sure you provide correct values.
    <insert after="{the id you got from step 1}">
    <oa:column id="{yourid}" adminCustomizable="true" bandingShade="none"
    cellNoWrapFormat="false" columnDataFormat="textFormat" displayGrid="true"
    rendered="true" scope="." totalValue="false" userCustomizable="false"
    xmlns:oa="http://xmlns.oracle.com/oa">
    <ui:columnHeader xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <oa:sortableHeader id="{yourid}" adminCustomizable="true"
    cellNoWrapFormat="false" initSortSeq="none" prompt="{your prompt}"
    rendered="true" required="no" scope="." sortState="no"
    userCustomizable="false"/>
    </ui:columnHeader>
    <ui:contents xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <oa:messageStyledText id="{yourid}" adminCustomizable="true"
    cellNoWrapFormat="false" dataType="VARCHAR2" initSortSeq="none" queryable="false" rendered="true" required="no" scope="."
    selectiveSearchCriteria="false"
    serverUnvalidated="false" sortState="no" tipType="none" totalValue="false"
    userCustomizable="false" vAlign="middle" viewAttr="{your view attribute}" viewName="{your view instance name}"
    warnAboutChanges="true"/>
    </ui:contents>
    </oa:column>
    </insert>
    You can insert these tags at the end of any existing tags within the <modifications>
    </modifications> tag in the document.

  • Second list of items from selected item in first list

    Hi all,
    I have 2 dropdown lists in my jsp page. i am retrieving data from database for my first list box. the second list box data should be displayed when user select an item from the first list. the selected item from first list is necessary to get another list of items in second list. i dont want to use any buttons or submits. i want to redirect the data to the same page to get another list when user click one option from first list. Thanks in advance for any suggestion.

    use ajax or store the data in javascript array

  • Is there a list of open items at key date per customer?

    Hello,
    In FBL5N you can get a list of open items for a customer at some specific date.
    I'm looking for a summarized list that would give me a list of sums  of open items for some customer per day, so I would see for example for one month what was the sum of open items for this customer on each day.
    Is there already some similar report in SAP?
    Thanks and best regards,
    David

    Hi,
    I still don't think we understand each other.
    If I run FBL5N I have option to select:
    - Items that are or were open at the key date are displayed on one date
    - All items posted on the posting date specified fromde date1 to date2.
    - Items that were cleared at the clearing date specified
    I would like a list of all items from option 1 (Items that are or were open at the key date are displayed on one date) so items that are or were STILL open and not yet cleared on one date, but not just for one date but for more days.
    If I use your suggestion I get what items opened or cleared on one day not how many items were still open on particular day.
    So a list of how many opened items were there at the day, and notjust items that were opened on that day but also all previous items that were not yet cleared at that day.

  • Need to get catalog item from MDM of a specific supplier

    Hi gurus,
    i need to get the list of catalog item from MDM of a specific supplier,
    user will give the supplier and i need to bring the list of the catalog item
    that belong to the supplier that the user gave me,
    through abap.
    is anyone can help me with wich class+method do i need to use if i have the supplier name or id?
    thanks in advanced,
    dana.
    Edited by: dana leving on Jan 10, 2011 3:59 PM

    Hi Dana.
    You can achieve this through MDM Webservices.
    1. Create a MDM Webservice
    2. Configure the tables and list the list of fields which you want to retrieve
    3. You can specify the search criteria as well(supplier=XXX)
    4. Generate it and save it
    You can deploy the application in your landscape and call this webservice from your custom application to create shopping cart.
    The below link will give you an insight of MDM Webservices.
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/45/018c03166a0486e10000000a155369/frameset.htm
    Hope it helps.
    Regards
    Bala

Maybe you are looking for

  • Need help for SRM Data Extraction into BI-7

    Hi Experts, I am looking for help regarding SRM DataSource Extraction to BW. I am working on BW project and need to extract data from SRM Data Source 0BBP_TD_CONTR_2 and 0SRM_TD_PRO. I need to know about the extraction process from SRM. Is there a to

  • "[community]:[Page]" title is changed to "GATEWAY"

    Hi, I'm developing a portlet with a aspx web page associated (.net). There is only one page with a button web server control on it. <br> After every postback, the typical [community]:[page] title above the portlets area changes its text to "GATEWAY".

  • HT3258 iBank 4 will not open post installation of Mountain OS   Any solutions?  Thank you

    Hello,   I am an iBank 4 user.  i recently installed Mountain OS.  Thereafter, I could not open iBank.  Apparently, Mountain OS is restricting the 'launch". What can I do to rememdy this situation and get back to using iBank 4.  Any solutions? Thank

  • IPad mini wifi cellar with 6.0.2 "unable to join network"

    iPad mini wifi cellar with 6.0.2 "unable to join network" my router is DLink Dir-615, and the iPhone 4(ios5.x),iPad2(ios5.x) and notbooks(windows 7) can connect to the router successfully. And I tried to reset iPad mini's network, even reset all the

  • [SOLVED] error with mkinitcpio during installation

    Hi there I am looking to install Arch after I broke a previous installation I put this basic set of commands after reading the Installation Guide and I run it from in the live /root.  #!/bin/bash loadkeys uk mkfs -t ext4 /dev/sda7 mkfs -t ext4 /dev/s