Problem with Textfield autocomplete--> only use the INSTR function

Hello team dev,

I use the new "textfield autocomplete" item type APEX and you have a crazy problem with it.

I have a table with an index on the same column I want to search with AutoComplete field.

Index:
CREATE BITMAP INDEX TEST.GEO_DATA_IDX1 ON TEST.GEO_DATA (postcode)
NOLOGGING TABLESPACE TS_INDEX;
Select which is automatically generated by APEX 4:
SELECT   a.*
  FROM   (  SELECT   DISTINCT postcode AS RV
              FROM   TEST.GEO_DATA
             WHERE   country_id = :P1_COUNTRY
          ORDER BY   1) a
 WHERE   INSTR ("RV", :p$_search_string) > 0 AND ROWNUM <= :p$_max_rows;

-- plan
Plan
SELECT STATEMENT  ALL_ROWSCost: 4,308  Bytes: 45,31  Cardinality: 1,97            
     2 SORT UNIQUE  Cost: 4,307  Bytes: 45,31  Cardinality: 1,97       
          1 TABLE ACCESS FULL TABLE #TABLE# Cost: 4,306  Bytes: 47,311  Cardinality: 2,057  
The APEX 3, I used the addon of Tyler Muth with my own Select:
SELECT   DISTINCT
            postcode AS DV,
            postcode AS RV
     FROM   TEST.GEO_DATA
     WHERE   country_id = L_COUNTRY
     AND    postcode like l_search||'%'
     ORDER BY 1

-- Plan
SELECT STATEMENT  ALL_ROWSCost: 840  Bytes: 152,867  Cardinality: 13,897                                
     8 SORT ORDER BY  Cost: 840  Bytes: 152,867  Cardinality: 13,897                           
          7 HASH UNIQUE  Cost: 838  Bytes: 152,867  Cardinality: 13,897                      
               6 VIEW VIEW index$_join$_001 Cost: 836  Bytes: 232,111  Cardinality: 21,101                 
                    5 HASH JOIN            
                         2 BITMAP CONVERSION TO ROWIDS  Cost: 31  Bytes: 232,111  Cardinality: 21,101       
                              1 BITMAP INDEX RANGE SCAN INDEX (BITMAP) #INDEX#
                         4 BITMAP CONVERSION TO ROWIDS  Cost: 45  Bytes: 232,111  Cardinality: 21,101       
                              3 BITMAP INDEX SINGLE VALUE INDEX (BITMAP) #INDEX#
Is there a chance to get my INDEX used by the new element of the APEX? I do not. But I still want to ask before I just rebuild. :)

Best regards

Tobias

Hi Tobias,.

I guess that you are currently using "contains and case sensitivity ' to the attribute of"search ". Have you ever tried out "Exact and case sensitivity? Because that internally uses the LIKE operator as does your original query and the % is at the end, she must allow the use of an index. But it might still work, because ORDER BY can be run at a different time in your original example, but it's worth a try.

Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf

Tags: Database

Similar Questions

  • Problem with lines in Illustrator using the Wacom Tablet

    Hi all

    I have no idea why I'm having this problem in Illustrator. I use the small Intuos Pen Tablet (CTL-480), and my lines in illustrator is really strange. Even when I turn off the pressure in the brush settings, there is a gap in the line (it takes just one line of the same thickness). The Tablet works perfectly in Photoshop, but because I use the tablet to create art using plates (typography), it is easier and better for me to use illustrator. You are not sure that someone else had a similar problem or know maybe a setting I could change or try to fix it?

    I have attached a picture of the problem.

    Screen Shot 2016-05-06 at 7.58.21 PM.png

    Screen Shot 2016-05-06 at 6.46.21 AM.png

    Thank you for your help.

    This is a known issue.

    If all you want is a line single width, do not use brushes. Use the pencil tool and a simple blow

    If you apply a calligraphy brush, apply the effect zig - zag to it with a value of 0, then a setting of about 100 (turn on the preview to adjust)

  • Problem with burning a DVD using the AVCHD format

    I just finished on a video project of 19 minutes (photos and short video clips), and I was able to burn it to a DVD in standard quality with first Elements 10.  When I try to burn AVCHD, however, I get an error just until it's ready to start burning.  It encodes all media and all switches to the menu burn when the "error" appears.  There is no other explanation.  I also tried to burn to a folder and I get the same result.

    I used the first items 10 for 4 years to do this same type of project, and I was able to burn on AVCHD successfully in the past.  Any ideas why it doesn't work anymore?

    Specifications of the computer: desktop computer Dell Inspiron 3847, processor i5 12 GB of RAM, 1 TB hard drive w / 770 GB free.

    I appreciate all help.

    A.T. - I finally thought to it.  After I had removed 3 of 4 songs and their respective video clips / photos in the problem project, I took a thorough review to the media with the rest one song left to see if there was something unique about.  As I mentioned earlier, I had all the different file types in the project problem included in the test project, and the test project had burned successfully to AVCHD.  After having scoured what was left of my files, I found a picture that I had used the effect of the "line of demarcation" (edit - effects - line drawing).  I decided to remove the effect to see what would happen.  Once I did, I was able to burn this new project to test a DVD AVCHD (a value of 1 only one song from the media).  I then made the same change to my complete project and then it worked.

    Very frustrating, but I'm very happy that I found the culprit.  I note that I used a couple of the photo / video effects projects successfully, but never this 'dividing line' a before.  I would warn anyone against using it now!

    In response to a recent question, I was not able to burn a folder when I had this problem either (4.7 GB).

    Thanks again for your help.  I really appreciate that people are available to help solve the problems of this kind.

    Happy holidays!

  • JDeveloper 12.1.2 has a problem with links when you use the data bean control

    Build JDEVADF_12.1.2.0.0_GENERIC_130608.2330.6668

    The problem that I am facing is:

    I used the data bean control to create our user interface. After that I dragged my jsff page data control, links have been created.

    I opened the XML pagedef to my page. On the Bindings tab and executable, I added a few links more by clicking on the Green plus sign. After I saved my changes, I noticed that some other links have been replaced by a link to the different executable files.

    This behavior occurs almost everytime I have edit links. Does anyone else see this problem?

    It looks like another instance of the bug described in https://java.net/jira/browse/ADFEMG-156

    This bug is fixed in 12.1.3. If you need the fix in 12.1.2 you should open a SR with support.oracle.com and ask a backport.

    Timo

  • Problems with Weaver of dreams using the creative cloud

    Hello

    I downloaded the creative cloud in order to to use the Weaver of dreams (for my college

    class). I have no knowledge on this program, I watched the tutorials on

    the adobe and of course YouTube Web site. Everytime I open CC and attempt

    to open the app to Dream Weaver... it does work for me. I did something

    bad, do I need special software? I need all the help I can get with

    This thing, thank you very much!

    Jessica Reed

    If you try to open the DW of the CC desktop app, that will not work. The application of CC desktop is only for download, install and update the program (and a few extras).

    You will need access to your Applications (Mac) folder or in your Program Files (x 86) (PC) folder, and then to Adobe > Dreamweaver (your version) to find your actual application file. Create a shortcut or alias on your desktop to this file for future use.

  • Problem with update of table (using the subquery to retrieve value)

    Hello
    I update a table based on the value of the subquery.
    Here's the update statement.

    UPDATING temp xm
    SET xm.col1 = (SELECT DISTINCT col1
    Of
    (SELECT col1, col2 COUNT (col2)
    FROM table2
    WHERE col1 = xm.col1
    AND col2 = xm.col2
    GROUP BY col1)
    where col2 in (select... in the table3)
    )
    WHERE xm.col5 = < value >
    AND xm.col6 = < value >

    When I run this statement I get following error.
    ORA-00904: "XM". "" Col1 ": invalid identifier.

    Can someone help me why I get this error?
    Why doesn't the main table alias in the subquery?

    Is it possible to avoid this / re - write the query in a different way?

    Thank you

    Published by: user552703 on November 2, 2009 20:42

    You can nest only 1 level deep (referring to the table to be updated).

    Have you looked at using the MERGE command? It is "easier" perform updates of this nature, assuming you are using a recent version of Oracle (9 or MORE).

  • I have a problem with Windows accepts only not the connection password.

    Original title: why have I lost my windows login password?

    Hello
    It's strange. Suddenly, I found that my Windows 7 login password is more accepted. Of course I made sure that caps lock is not on, typed correctly, etc. I have made no changes in the system and have had the same connection for more than a year.
    I restored it with system restore (good to enter Safe Mode was not easy... topic for another time).
    So now I'm back to normal and created a password on a flash drive recovery disk.
    But, why or how would it happen?
    Very curious.

    Thanks a lot for your suggestions.

    Jack

    If you were able to get in Mode safe without logon then automatic logon mode must have previously been activated.

    To find out what happened to your password you could do this:
    1. Log in under your spare admin account.
    2. Click on the globe to start, and then type the three letters cmd into the search box and press ENTER.
    3. Enter the following command and press ENTER:
      NET user 'Jack '.
    The command will tell you everything about the account of Jack, for example when the account of the last use and what was his password has changed. This implies, of course, that you have a fully tested alternative admin account. Having one would have saved you perform a system restore, even as having a spare House key removes the need to break a window...
  • Is there a problem with Adobe Reader DC using the command line to open a file?

    Hello

    I am a developer and we use Adobe Reader to view our PDF help files in our application.  For years, we used WinExec() to open Adobe Reader, by specifying the file to open on the command line and it has been working perfectly.  In other words, upward until our users began to load Adobe Acrobat Reader DC.  Despite this work very well when you type a command using CMD.exe, it simply does not help WinExec() from another application programmatically.  Also, I modified the code to try using CreateProcess() or ShellExecute() and these functions do not work either.

    It may have to do with the fact that there is a switch or a parameter now within the DC, but I don't know what it is, or why it happens.  If anyone can shed some light on this it would be much appreciated because it severely hampers our latest version of the software.

    Kind regards

    Leigh.

    A common cause is not to put quotes on the command line, so instead of

    "c:\program files...\acrord32.exe" "c:\documents and settings\...my file.pdf.

    You write

    "c:\program files...\acrord32.exe" c:\documents and settings\...my file.PDF

    This has always been bad, but older versions it would accept anyway. (It was a recent change but not in DC).

    I would recommend using ShellExecute instead of the command line, however. That simulates a double-click and executes everything the user has created for PDFs (perhaps Reader, Acrobat maybe, maybe something else).

  • Problems with running script by using the Get-Content cmdlet

    #Code to generate the report.

    ##-------------------------

    $vm = gc "vm.txt."

    and {foreach ($vm in Get-VM-location $DC) {}

    $parent is get-view $vm. ExtensionData.Parent

    $path = $vm. Name

    While ($parent. Parent) {}

    if($parent.) Name - only "vm") {}

    $path = $parent. Name + "\" + $path

    }

    $parent = get-view $parent.parent

    }

    # < #.

    Get-Datastore - VM $vm |

    Select @{N = 'Cluster'; E = {Get-Cluster - VM $vm |} {{Select - ExpandProperty name}}.

    @{N = "DataStore"; E={$_. Name}},

    @{N = 'The virtual computer name'; E = {$vm. Name}},

    @{N = 'Path of the VM'; E = {$path}},

    @{N = "ProvisionedStorage"; E = {Get-FriendlyUnit-value ($vm. ProvisionedSpaceGB * 1 GB) | % {"{0, 7:f2} {1,2} ' f $_"} Value, $_. Unit}}}.

    @{N = "UsedStorage"; E = {Get-FriendlyUnit-value ($vm. UsedSpaceGB * 1 GB) | % {"{0, 7:f2} {1,2} ' f $_"} Value, $_. Unit}}}

    }} $report | Export-Xlsx-path $ExcelFile - WorksheetName $DC - AppendWorksheet SheetPosition - end

    You could just that lead to the function of export-Xlsx

    Get-VM-name $vm |

    Select @{N = 'Cluster'; E = {Get-Cluster - VM $_______ |} {{Select - ExpandProperty name}}.

    @{N = "DataStore"; E = {Get-Datastore - VM $_______ |} {{Select - ExpandProperty name}}.

    @{N = 'The virtual computer name'; E={$_. Name}},

    @{N = 'Path of the VM'; E = {$path}},

    @{N = "ProvisionedStorage"; E = {Get-FriendlyUnit-value ($_.)} ProvisionedSpaceGB * 1 GB) | % {"{0, 7:f2} {1,2} ' f $_"} Value, $_. Unit}}}.

    @{N = "UsedStorage"; E = {Get-FriendlyUnit-value ($_.)} UsedSpaceGB * 1 GB) | % {"{0, 7:f2} {1,2} ' f $_"} Value, $_. Unit}}} |

    Export-Xlsx-path $ExcelFile - WorksheetName $DC - AppendWorksheet SheetPosition - end

  • Using the crypt function

    Hi, I have a login page and I want to encrypt the password. What I must first encrypt it and place it in the DB? I already have a 'normal text' user name and pass word in there to test and everthing works fine, I restrict access to work on the admin page after login. So, my next step is to harden a bit of security. I searched the web and couldn't find static function crypt as examples below. Not quite normal I have to do. I read on another site where you would need to put passwords in the DB already encrypted by PHP and then write a script to compare. I don't necessarily want to create passwords encrypted on the fly (I think), as in the case of a new user type scenerio, are some users to access the admin section and want these "*" appears in the password field.

    steevo2 wrote:
    > Hi, I have a login page and I want to encrypt the password. What I need to
    > first encrypt it and place it in the DB?

    Yes. The best way to do it with PHP is to use the sha1() function,
    which produces an encryption of 40 characters in a string. This means that
    your password in the database column must be 40 characters wide.

    Dreamweaver is not a way to encrypt the data before inserting it into
    the database, you will need to do it manually. Put this at the top of the
    page contains it the user registration form:

    <>
    If (isset($_POST['password'])) {}
    $_POST ["password"] = sha1($_POST['password']);
    }
    ?>

    > I read on another site
    > where you would need to put passwords in the DB already encrypted by PHP
    > and then write a script to compare.

    All you need to do is add the same code as above at the top of the page
    who uses the Log user Dreamweaver Server behavior.

    > wanting * to show
    > upward into the password field.

    This is done by selecting the password for the TextField input Type
    element in the property inspector.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • I had a problem with slow, so I used "reset". The popup ran forever so I stopped it. Now I can not remove or add the program.

    I had a problem with slow, so I used "reset". The popup ran forever so I stopped it. Now I can not use, remove or add the program. How should I proceed?

    TIA,
    BWSwede

    Try to create a new profile.

    See "create a profile":

    If the new profile works then you can transfer files from a profile in the new profile, but make sure not to copy corrupted files.

    What problems do you have that you want to reset Firefox?

    Firefox creates a new folder of old data of Firefox on the desktop?

    If reset you Firefox and a new profile is created and some of your data (bookmarks, passwords, cookies, form data) is automatically imported and your current profile will be moved on the desktop (old data of Firefox).

  • printing with printer deskjet 2050 using the black cartridge only

    printing with printer deskjet 2050 using the black cartridge only

    all solutions? PLIs answer me. thanx

    Hi d33com,

    Follow the steps below to set the black ink only.

    1. open the printing preferences (step 1)

    2. click on the Advanced button (step 2)

    3. click on the drop down arrow next to the print in grayscale to change black ink only.

  • my computer recently crashed and when I tried to use photoshop, then I got the message: - message - problem with display driver, temporarily disabled the improvements. Does that mean, they will return when the problem is solved?

    My computer recently crashed. A fixed it but! When I then tried to use photoshop I got the message: - message - problem with display driver, temporarily disabled the improvements. Does that mean, they will return when the problem is solved?

    Update or restore your graphics driver.

  • I have a new subscription to creative cloud, which is paid, received a Bill and I have an account. When I launch Illustrator, so I can only use the trial version. A pop-up Adobe says that it cannot find any subscription associated with my Adobe

    I have a new subscription to creative cloud, which is paid, received a Bill and I have an account. When I launch Illustrator, so I can only use the trial version. A pop-up window Adobe says that it cannot find any subscription associated with my identification code Adobe what can I do to change this?

    Hello Hans,.

    Please check the help below document:

    https://helpx.Adobe.com/manage-account-membership/CC-reverts-to-trial.html

    Kind regards

    Sheena

  • CANCEL - Can I chat or talk on the phone with a man?  I have an Adobe annual ExportPDF.  So, if I have to cancel today, I still have to pay half of the tax?  I've only used the service once or twice.

    Can I discuss or talk on the phone with a man?  I have an Adobe annual ExportPDF.  So, if I have to cancel today, I still have to pay half of the tax?  I've only used the service once or twice.  I was looking for a phone number to call.  But it seemed to me being in a loop.  I kept is directed to this forum.  I'd really appreciate a quick link to a phone number.  Much more efficient on my end.

    I expected to be canceled in a few minutes via a phone call.  Instead of have been in this endless and frustrating loop on this forum.

    Help please.

    Hello

    Please check the help below document:

    Cancel your subscription or membership. Creative cloud

    You will need to sign in to your adobe account and then access the link below to contact support by calling/chat.

    Contact the customer service

    Kind regards

    Sheena

Maybe you are looking for

  • T530

    No its all of a sudden... Please notify MT Nicolas

  • Need help with total replacement of hard drive and reinstall

    Hello everyone, first of all, I would like to thank you for all the help I get, I hope. I have a HP Envy 14 Beats edition laptop 1260se and I recently bought a new SSD that really made my laptop fast. The only problem I have is that I bought the HP r

  • Acer V7 ZQY: battery (AP13B8K) suddenly dead

    Hello This laptop is a little more than a year. The accumulator has been in charge of 30% to something like 70% when I realized that the percentage has not increased more. I have read the information of the battery (charge status, tension etc.) but i

  • Where is a Support Center for the Panama?

    Hello, any one know it is the Panama a Support Center where I can take my laptop 3000 C200 to repair. If possible, I want the phone number and address. Thank you, Pedro Enrique.

  • Never finished Windows Update

    A new facility with my Windows 7 disc that has been activated. I tried the fix of this problem without success.