AJAX Autocomplete: HTMLDB_Get is not defined...

Hello,
I have tried to implement the AJAX Autocomplete example from Denes Example Applications, but get the following error message (by firefox):
"htmldb_Get is not defined" !
I had a look at several posts here, but could not solve the problem.
I am still working with Apex V1.6 ! Is that a problem?
I tried to find the appropriate .js-file with the "htmldb_Get" function in order to put it in my workspace and reference it, but firstly I am not sure if I got the right one and secondly it should work without that as it should already be implemented, isn't it!?
Thanks for your help!
Johnny
P.S.
When I type in anything into the textfield it just gives me an empty list....without content !!

Johnny Be Good from Hamburg,
Where is the corresponding .js file stored? On the file system or uploaded into your workspace? If it is in the workspace, is it associated with any application?
I had the same problem for some reason and got a tipp to look at that detail.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://htmldb.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • Ajax Autocomplete Tabular does not work using apex_item.text in SQL Query.

    Hello,
    Is it possible to use the search function which is used in, Dennis Kubicek example, ENAME topic Ajax Autocomplete Tabular
    in a sql query using apex_items?
    Query line :
    , apex_item.text(17,xp.part_nr,null,null,'onfocus="f_register(this);" autocomplete="off"') PART
    At first I followed the example by adding 'onfocus="f_register(this);" autocomplete="off" in the element attributes in the report field.
    This didn't work... so tried to add the it in the attirbutes parameter of the apex_item.
    But this still doesn't work. No errors are given, it does not respond.
    Could somebody please help me?
    Thx!
    Astrid

    Well, I'm trying to take this one step further, but I seem to be having some difficulty.
    I'm trying to make a Filter screen to create a dynamic where clause filter screen.
    This is a page I made with Popup LOVS, just to show you my goal (now trying to use autofilters)
    http://apex.oracle.com/pls/otn/f?p=29989:5
    I have a table on my system that tells you where the field is, and I'm using that to get the table (didn't want to change the javascript, so I pass in a static value).
    This is the javascript code I used
    <pre>
    <script language="JavaScript" type="text/javascript">
    function f_register(p_this,p_name)
    var p_registered = $x('P5_ITEM_ID').value;
         var p_this_name = $x(p_this).id;
    //alert(p_this_name);
    if (p_registered != p_this_name)
    register(p_this_name, "COSTING_M", p_name, "blue", "red");
    $x('P5_ITEM_ID').value = p_this_name;
    </script>
    </pre>
    This is my query
    <pre>
    select column_name || apex_item.hidden(1,column_name) Col_name,
    apex_item.SELECT_LIST_FROM_lov(2,'=','OPERATOR') OPERATOR,
    apex_item.text (3,
    NULL,
    20,
    200,
    'onfocus="f_register(this,''' || column_name || ''');" autocomplete="off"',
    'f3_' || '#ROWNUM#',
    NULL
    ) value,column_id
    from user_tab_cols
    where table_name = 'COSTING_M'
    ORDER BY ROWNUM
    </pre>
    and here is my on-demand process
    <pre>
    declare
    TYPE CurTyp IS REF CURSOR;
    v_row varchar2(4000);
    rec CurTyp;
    V_TABLENAME NKW.UTFIELD_M.TABLE_NAME%TYPE;
    begin
    BEGIN
    SELECT TABLENAME INTO V_TABLENAME
    FROM NKW.UTFIELD_M
    WHERE FIELD_NAME = :TF_SL_COLUMN;
    EXCEPTION WHEN NO_DATA_FOUND THEN RETURN; END;
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&amp;','&');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&lt;','<');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&gt;','>');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&quot;','"');
    owa_util.mime_header('text/xml', FALSE);
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<rowset>');
    open rec for
    'select distinct ' || :TF_SL_COLUMN || ' ' ||
    'from NKW.' || V_TABLE_NAME || ' ' ||
    'where '||:TF_SL_COLUMN||' like :1||''%'' ' ||
    'and rownum < 100 ' ||
    'order by '||:TF_SL_COLUMN
    using :TF_SL_SEARCH;
    loop
    fetch rec into v_row;
    exit when rec%NOTFOUND;
    htp.prn('<row>' || htf.escape_sc(v_row) || '</row>');
    end loop;
    htp.prn('</rowset>');
    end;
    </PRE>
    I made some slight mods to make the table dynamic from my source table (this is to grab master files when they exist and not to when they don't).
    I get my select list, but it's blank on all fields, any suggestions?
    thanks,
    Scott

  • Ajax Select Value + Ajax Autocomplete - using both on same item

    I am really loving this ApEx demo application as it is teaching me TONS of new things.
    It is by far the most helpful apex lesson site I have found:
    http://htmldb.oracle.com/pls/otn/f?p=31517:80
    I have a question regarding two of these lessons:
    Ajax Select Value
    Ajax Autocomplete
    I want to use these two for the same item.
    I have got both to work correctly individually.
    Here is my scenario:
    I have a <name> field that auto completes.
    It will set the <credit_limit> page item, according to what this <name> field has.
    The problem:
    Typing in the name without using the auto complete feature works as it displays the <credit_limit>.
    But, when I choose the name from the generated select list, it returns null.
    If I then remove a letter from the <name>, retype it (without selecting it from the list), tab; it will display the <credit_limit>.
    Any idea how to fix this?
    I want to be able to select the <name> from the auto complete select list and have it fill out the <credit_limit>.
    I found a post that might be related to this problem:
    Application Process is not fired when selecting from popup lov

    More information:
    P20_NAME_TX
    HTML Form Element Attributes: onKeyPress="checkEnter(event)" autocomplete="off" onChange="f_getPurchaseOrderCreditLimit()";
    I have also tried without the onKeyPress:
    autocomplete="off" onChange="f_getPurchaseOrderCreditLimit()";
    (It still functions the same without this except the enter key does not do anything; what does onKeyPress="checkEnter(event)" do?):
    HTML Header
    <script type="text/javascript" src="#WORKSPACE_IMAGES#textfield_autofilter.js"></script>
    <script language="javascript">
    NS4 = (document.layers ) ? true : false;
    function checkEnter(event)
    var code = 0;
    if (NS4)
    code = event.which;
    else
    code = event.keyCode;
    if (code==13)
    doSubmit('SEARCH');
    </script>
    <script language="JavaScript" type="text/javascript">
    function f_getPurchaseOrderCreditLimit ()
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=getPurchaseOrderCreditLimit',0);
    get.add('P20_NAME_TX',html_GetElement('P20_NAME_TX').value)
    gReturn = get.get();
    if(gReturn)
    {  html_GetElement('P20_CREDIT_LIMIT_CY').value = gReturn  }
    else
    {  html_GetElement('P20_CREDIT_LIMIT_CY').value = 'null'  }
    get = null;
    </script>

  • Problems using Ajax-AutoComplete with FireFox

    Hello
    I'm trying to use the JSF-Ajax AutoComplete (java 1.4) with the FireFox with no success. The errors, according to the firefox console, is: BPUI IS NOT DEFINED.
    The DIV does`t show and the backing method responsible to do the completion result was`t called.
    This situation does`t occur with IE.
    i appeciate any help.
    Regards

    This is most likely more of a Dragon problem than Firefox. I would suggest also opening a ticket on their end to. Most likely it just is not familiar with new versions of Firefox and has yet to be updated.

  • Firefox pops up an error message on certain pages, all other browsers work fine, how can I make firefox ignore the "error" [e2219] css init error: ReferenceError: g is not defined

    Basically I want to replace the Ajax Control Toolkit Slider in favor of the Component One Studio for iPhone Slider for better mobile/desktop consistency (the ajax slider doesn't work well with iPhone). I created a simple page that works on every browser and platform (iPhone, Android, Mac, Windows) except Firefox, which fails on every platform. I have already tried disabling all plugins (safe mode) and clearing cache, I have also tried this with different versions of Firefox on different platforms. I posted this error on the Component One forum but since this only occurs with Firefox I believe this is a Firefox issue.
    I searched for this error on the forums and Google but didn’t get any results:
    ''[e2219] css init error: ReferenceError: g is not defined''
    The console has this message:
    ''[12:05:26.954] uncaught exception: [Exception... "prompt aborted by user" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource:///components/nsPrompter.js :: openTabPrompt :: line 462" data: no]''
    You can see the error by visiting http://www.componentone.com/i/
    Visit the same URL with IE, Chrome or Safari and there is no error. If I click [OK] the page loads normally enough for me. Is there some JavaScript or CSS line I can put in the page to make Firefox ignore the error? If so that would be great because even if there is a fix put into Firefox itself there will be those millions of users out there that will not upgrade.

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • Javascript Error - Uncaught ReferenceError: $s is not defined in ApEx 3.0.1

    Hi,
    I am using Oracle ApEx 3.0.1 and am trying to implement the Ajax Loading animation on a report I am running. The problem though, is that I am getting a javascript error on the following line:
    window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 10);Looks like in Oracle ApEx 3.0.1, I am getting the javascript error:> Uncaught ReferenceError: *$s is not defined*
    What would I need to change, to get this to work with no javascript errors in Oracle ApEx version 3.0.1 ?
    Thanks.
    Tony.

    Hi,
    It might be that $s function is not introduced on 3.0
    Try
    window.setTimeout('document.getElementById("AjaxLoading").value=document.getElementById("AjaxLoading").HTML)', 10);Regards,
    Jari

  • Ajax autocomplete but using onclick.

    Hi,
    I've been using the ajax autocomplete functionality on a text item as described in Denes' website:
    http://htmldb.oracle.com/pls/otn/f?p=31517:53
    However I've been given a requirement to change it so that as soon as a user clicks into the field and before they type anything they see a complete list of the options available to them below. (The reason I don't use a select list is the user could still type their own input, the list just provides a guide of regularly chosen options).
    I've been looking at the code and scratching my head as to how to acheive this. I tried converting it to run using an onClick trigger, but failing. I'm basically trying to fool the javascript by giving the event a key if the key is null. This is not working as the process works off a keypress and I'm not sure on how the event object(?) in javascript works. Does anybody have any ideas/examples on this?
    Thanks,

    Hi,
    Try amending the textfield_auotfilter.js file :-
    Replace
       if (document.all) {
         html_GetElement(p_TextFieldName).onkeyup = function () {return showSelectList(event);};
       } else {
         html_GetElement(p_TextFieldName).onkeyup = function (e) {return showSelectList(e);};
    With
       if (document.all) {
         html_GetElement(p_TextFieldName).onkeyup = function () {return showSelectList(event);};
         html_GetElement(p_TextFieldName).onfocus = function () {return showDefaultSelectList(event);};
       } else {
         html_GetElement(p_TextFieldName).onkeyup = function (e) {return showSelectList(e);};
         html_GetElement(p_TextFieldName).onfocus = function (e) {return showDefaultSelectList(e);};
    Replace
    function showSelectList(e) {
       var keynum;
       var p_TextFieldName;
       if(document.all)  {
         keynum = e.keyCode
         p_TextFieldName = e.srcElement.getAttribute("id");
       } else {
         keynum = e.which
         p_TextFieldName = e.target.getAttribute("id");
       if (v_oldValues[p_TextFieldName] != html_GetElement(p_TextFieldName).value) {
         v_oldValues[p_TextFieldName] = html_GetElement(p_TextFieldName).value;
         if (html_GetElement(p_TextFieldName).value != "") {
           do_showSelectList(p_TextFieldName);
         } else {
           removeSelectList(p_TextFieldName);
       } else {
         if (keynum == 40 || keynum == 38 || keynum == 9) {
           if (!e.shiftKey) {
             if (html_GetElement("_"+p_TextFieldName+"SELECTLIST")) {
               html_GetElement("_"+p_TextFieldName+"SELECTLIST").focus();
         if (keynum == 13) {
           do_pushBackValue(p_TextFieldName);
    With
    function showSelectList(e) {
       var keynum;
       var p_TextFieldName;
       if(document.all)  {
         keynum = e.keyCode
         p_TextFieldName = e.srcElement.getAttribute("id");
       } else {
         keynum = e.which
         p_TextFieldName = e.target.getAttribute("id");
       if (v_oldValues[p_TextFieldName] != html_GetElement(p_TextFieldName).value) {
         v_oldValues[p_TextFieldName] = html_GetElement(p_TextFieldName).value;
         if (html_GetElement(p_TextFieldName).value != "") {
           do_showSelectList(p_TextFieldName);
         } else {
           do_showSelectList(p_TextFieldName);
       } else {
         if (keynum == 40 || keynum == 38 || keynum == 9) {
           if (!e.shiftKey) {
             if (html_GetElement("_"+p_TextFieldName+"SELECTLIST")) {
               html_GetElement("_"+p_TextFieldName+"SELECTLIST").focus();
         if (keynum == 13) {
           do_pushBackValue(p_TextFieldName);
    Add
    function showDefaultSelectList(e) {
       var keynum;
       var p_TextFieldName;
       if(document.all)  {
         keynum = e.keyCode
         p_TextFieldName = e.srcElement.getAttribute("id");
       } else {
         keynum = e.which
         p_TextFieldName = e.target.getAttribute("id");
       if (html_GetElement(p_TextFieldName).value == "") {
           do_showSelectList(p_TextFieldName);
    }Regards
    Paul

  • ReferenceError: callcuser is not defined

    I tested the script below in IE,Chrome, Safari all no problem except in Firefox. I had updated my firefox to the latest version 30.
    Error console is prompting me this error ; ReferenceError: callcuser is not defined
    Appreciate if you can help.
    cur_user = this.CheckCurrentJUser(callcuser);
    function callcuser(CheckCurrentJUser){
    cur_user = CheckCurrentJUser;
    CheckCurrentJUser: function(callcuser){
    var url='index.php?option=com_fabrik&format=raw&controller=plugin&c=plugin&task=userAjax';
    new Ajax(url,{
    data:{method:'GetCurrentLoginUser'},
    onComplete:function(r){
    callcuser(r);
    ).request();
    },

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Ajax Autocomplete -- all links open in new windows

    Hi
    I used Ajax Autocompete in one of my applications. But after i click the link which uses ajax autocomplete, strange behaviour is happens with other links in Internet Explorer. The other links that are supposed to be opened in the same window now start opening in new windows. This does not happen in Firefox. can someone suggest a reason and a solution to this problem.
    Thanks in advance
    k3k

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • IE issue with Ajax autocomplete

    Hi,
    I'm using the Ajax autocomplete function as described at http://htmldb.oracle.com/pls/otn/f?p=31517:53:3795080723385850::NO (Denes Kubicek). Everything works fine except that when I use IE7, I can't save the field information into the database (save on button click). Every other fields are correctly saved. I tried with Firefox and Opera and it works perfectly. My concern is that our end users only use IE7 at work.
    Any idea why this happens?
    Thanks.

    Jen,
    My name is Jeff Canepa.  I work at Adobe as a Software Quality Engineer.  I am unable to reproduce the problem you describe.  Would it be possible for you to add me as a Co-Author ([email protected]) of your form so I can take a look at it's design?  If you are not comfortable with this then perhaps you could export the design template file (FCDT) and email it to me?  In addition, any more information you might be able to provide regarding the systems of those that are getting the error would be helpful (OS version, PC/Tablet, file they tried to upload).
    Regards,
    Jeff Canepa
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • Ajax autocomplete problems

    Hi
    On my oracle workspace I have tried to get Denes Kubicek Ajax Autocomplete example to work.
    After searching the threads the nearest I can get to making the example work is:
    type in a letter and this displays a select list which is blank.
    The select statment used for the select list seems to be OK.
    I have been trying to solve this but as I am a beginner at using Firebug to debug I am not having much luck
    regards
    Tony

    Dan,
    Thanks. I haven't noticed this is missing. For the code i forgot to escape "&lt;". ;)
    It is now fixed.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Ajax Autocomplete (Denes Kubicek)

    Hi,
    I am using Denes Kubicek examples for Ajax Autocomplete:
    http://htmldb.oracle.com/pls/otn/f?p=31517:53:2727115168911885::NO
    The example works great for one text field, but I am trying to see if it works for two text fields.
    I added this to the region footer.
    <script language="javascript" type="text/javascript">
    <!--
    register("P3_ENAME", "EMP", "ENAME", "blue", "red");
    register("P3_DEPT", "DEPT", "DNAME", "blue", "red");
    //-->
    </script>
    But that didn't work.
    Can this be done?
    Thanks
    VC

    Hi Denes,
    Forget my previous post.
    Here is the javascript code I placed in the Page Header:
    <script language="JavaScript" type="text/javascript">function f_register(p_this){
              var p_this_name = $x(p_this).id;                    
              //alert(p_this_name);                    
              if (p_this_name == 'P3_ENAME')                         
              alert(p_this_name);                         
              register("P3_ENAME", "EMP", "ENAME", "blue", "red");
              else { register("P3_DEPT", "DEPT", "DNAME", "blue", "red");
    }</script>I can't enter any data in the text field with the onFocus element.
    Not sure what I am doing wrong.

  • Error reference not defined?

    I get error referenceerror:usd is not defined. CURRDEF=USD, what is suppose to do is
    user chooses sales center from dropdown and it will change the currency depending on
    what it is. i would think here is not passing it. not sure what im doing wrong.
    on firebug it shows
    var v_data_sales ={pvCurrCd:USD,
    pnSalesCenterID: $(this).find("#pnSalesCenterID").val()
    below is my code
    the first part is where you select a sales center
    HTP.P('<td class="reqlabel1">Sales Center:</td>');
            HTP.P('<td class="tablelabel">');
             HTP.P(Get_Sc_Dd(PVNAME=>'pnSalesCenterID', PVORAID=> VUSERNAME, PVDEFVAL => NSALESCENTERID, PVEVENT=>'class="reqinput1"  onChange="makeRequest();"   style="width:260px"'));
    CURRDEF := get_criteria_rec('PROP_CURR_DEF',dml_p_oracle_user.get_rec(VUSERNAME).global_region).include_list;
          HTP.P( '<script>
    function makeRequest(){
    var v_data_sales ={pvCurrCd:'||CURRDEF||',
              pnSalesCenterID: $(this).find("#pnSalesCenterID").val()
         $.ajax({
              url:contr_entry_pkg.select_sales_center,
              data:v_data_sales,
              async:false,
              success: function(vRetVal){
                       var jsonObj =  eval("("+vRetVal+")");
         HTP.P( '</script>');       
             HTP.P('<td class="reqlabel1">Currency:</td>');
            HTP.P('<td class="tablelabel">');
             HTP.P(Get_Currency_Dd(PVNAME=>'pvCurrCd', PVDEFVAL => NULL, PVEVENT=>'class="reqinput1" onblur="makeRequest();"  style="width:200px"'));
           HTP.P('</td>');

    I've done no work with ajax and HTP.P, but it looks like that error would be coming out of contr_entry_pkg.select_sales_center being called with pvCurrCd => 'usd' and pnSalesCenterID => some appropriate centre ID.
    I'd
    a) Test contr_entry_pkg.select_sales_center to see if it returns that sort of an error
    b) see if it works with pvCurrCd => 'USD' - perhaps something is turning it to lowercase.
    Message was edited by: davidp2
    contr_entry_pkg.select_sales_center is presumably a stored procedure in a PL/SQL package, so you could test it from SQLPlus.

  • AJAX autocomplete and table component

    I am struggling building a page that contains a AJAX autocomplete component a submit button and a table component to display the output.
    My autocomplete component and submit button work fine when I use a statictextfield to display the output.
    My table works fine when I use a dropdown component to provide the query parameter.
    However when I change the dropdown to a autocomplete or the statictextfield to a table and adjust the code accordingly I keep getting errors.
    I based mij app on the following turotials:
    Ihttp://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/databoundcomponents.html
    http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/ajax_samples.html#3
    The code of my autocomplete reads:
    public void autoComplete1_complete(FacesContext context, String prefix, CompletionResult result)
    // TODO: return your own list of items based on the prefix, like this:
    // result.addItem(�Hello�);
    // result.addItem(prefix.toUpperCase());
    if(prefix == null || prefix.length() < 1) {
    return;
    String prefixLeadingCap = prefix.substring(0,1).toUpperCase() + prefix.substring(1) + �%�;
    Try {
    CachedRowSetX glosseRowSet = getSessionBean1().getGlosseRowSet();
    glosseRowSet.setObject(1, prefixLeadingCap);
    } catch(SQLException e) {
    return;
    glosseDataProvider.refresh();
    if(!glosseDataProvider.cursorFirst()); {
    return;
    do {
    String glosseName = (String)glosseDataProvider.getValue(�glosse.glossenaam�);
    result.addItem(glosseName);
    while(glosseDataProvider.cursorNext());
    The SQL query it's based on:
    SELECT ALL glosse.glossenaam
    FROM glosse
    WHERE glosse.glossenaam LIKE ?
    The code of my submit button reads in combination with the statictextfield reads:
    public String button1_action() {
    try {
    getSessionBean1().getGlossarRowSet().setObject(1, autoComplete1.getText));
    glossaryDataProvider.refresh();
    } catch(Exception e) {
    error("Cannot switch to glosse " + glosseDataProvider.getValue("glosse.glossenaam"));
    log("Cannot switch to glosse " + glosseDataProvider.getValue("glosse.glossenaam"), e);
    if(!glosse.DataProvider.cursorFirst()) {
    return null;
    do {
    String glosseVerklaring = (String)glossaryDataProvider.getValue("glossary.verklaring");
    staticText1.setText(glosseVerklaring);
    while(glosseDataProvider.cursorNext());
    return null;
    The SQL query I bound to my table component:
    SELECT ALL glossary.idGlosse
    glossary.glossenaam
    glossary.verklaring
    glossary.deskundigen
    glossary.bron
    FROM glossary
    WHERE glossary.glossenaam =?
    The only thing I can think of causing my problem is the code of the prerender() method.
    For the dropdown I used the following code, which worked ok:
    public void prerender() {
    if (glossaryDD.getSelected() == null ) {
    try {
    glosseDataProvider.cursorFirst();
    getSessionBean1().getGlossaryRowSet().setObject(1, glosseDataProvider.getValue("glosse.glossenaam"));
    glossaryDataProvider.refresh();
    } catch (Exception e) {
    error("Cannot switch to glosse " + glosseDataProvider.getValue("glosse.glossenaam"));
    log("Cannot switch to glosse " + glosseDataProvider.getValue("glosse.glossenaam"), e);
    To have it work with an autocomplete textfield I replaced the if statement with:
    if(autoComplete1.getText().equals("")) {...}
    this causes a NullPointerException.
    Leaving the if out and just coding the
    try {}
    catch() {}
    resulted in a QLException and the reamrk: statement parameter 1 not set.
    What did I overlook when coding this use case.
    Kind regards,
    Annet

    Afters hours of coding and trying I finally got this part of my app working. However, I am not sure my solution is a robust one, what do you think:
    Here's the code of the prerender() method that does the tric:
    public void prerender() {
    if (glossaryAutoComplete.getValue() == null ) {
    try {
    getSessionBean1().getGlossaryRowSet().setObject(1, "Aggression"));
    glossaryDataProvider.refresh();
    glossaryAutoComplete.setText("Aggression");
    } catch (Exception e) {
    error("Cannot switch to glosse " + glosseDataProvider.getValue("glosse.glossenaam"));
    log("Cannot switch to glosse " + glosseDataProvider.getValue("glosse.glossenaam"), e);
    First I can't overloolk the consequences of hard-coding "Default" in the prerender() method, everthing seems to work fine...
    Second it doesn't seem to matter whether I use setValue("Default") or setText("Default"), to set the initial display value of the auto complete text field...
    Third I really don't understand why hard coding works and the following code, especially the: glosseDataProvider.getValue("glosse.glossenaam") bit, doesn't
    public void prerender() {
    if (glossaryAutoComplete.getValue() == null ) {
    try {
    glosseDataProvider.cursorFirst();
    getSessionBean1().getGlossaryRowSet().setObject(1, glosseDataProvider.getValue("glosse.glossenaam"));
    glossaryDataProvider.refresh();
    } catch (Exception e) {
    error("Cannot switch to glosse " + glosseDataProvider.getValue("glosse.glossenaam"));
    log("Cannot switch to glosse " + glosseDataProvider.getValue("glosse.glossenaam"), e);
    Could anyone of you shed some light in this darkness?
    Kind regards,
    Annet

  • Unit of measure EA not defined for language RU

    Hi gurus,
    have you encountered this error while creating a PO? can't find any supporting document online.
    please help how to resolve.
    thanks,
    mm

    Hi Manohar,
    Language RU (Russian) is not defined in our system and therefore the translation in CUNI is not the appropriate solution for this error.
    Instead, we just maintained the vendor master to be in EN language to stop the system error.
    thanks for your input anyway.
    melanie

Maybe you are looking for