Problem with Textfield autocomplete -- only uses the INSTR function
Hi dev team,
I use the new APEX "textfield autocomplete" item type and got a really damn problem with it.
I have a table with an index on the same column which I want to search with the 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 In APEX 3 I used the addon from 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 getting my INDEX used by the new APEX item? I guess not. But I still want to ask before I rebuild everything. :)
Best regards,
Tobias
Hi Tobias,
I assume you are currently using "Contains & Case Sensitive" for the "Search" attribute. Have you already tried out "Exact & Case Sensitive"? Because that will internally use the LIKE operator as your original query does and because the % is at the end it should enable the use of an index. But it might still not work, because the ORDER BY might be executed at a different time than in your original example, but it's worth a try.
Regards
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
Similar Messages
-
Problems with obtaining actual results using the FFT VI.
I'm using the FFT express VI and graphing the results. My experiment involves decreasing the amplitude of a 100Hz acoustic pressure wave, ideally to zero, by phasing it with another signal of the same frequency and amplitude. According to other analysis I believe that the amplitude from the FFT of the signal is increasing and then decreasing. However, I am not able to visually see this in real-time on the graphical display.
The change in amplitude is happening quickly, every few ms. Is this timing to fast for the process to maintain proper resolution? Is there a way to make the output from the FFT more sensitive?
Thanks for the help.The period of a 100 Hz signal is 10 ms. If your amplitude is changing every few ms, an FFT is not going to reflect this accurately. The FFT is basically defined for constant amplitude during the segment of signal being analyzed. The FFT also typically requires several cycles to give useful results. If it changes during this time, other techniques must be used to detect that. There is a large body of literature on time-frequency analysis dealing with this topic.
Lynn -
Problem with hierachy aggregation, only using last child to populate parent
The following is a report that is dynamically generated:
ACCOUNT Cash
2003 JAN 978,940
2003 FEB 1,141,812
2003 MAR 1,435,928
2003 Q1 1,435,928
2003 APR 1,663,463
2003 MAY 1,740,351
2003 JUN 1,758,067
2003 Q2 1,758,067
2003 JUL 2,124,283
2003 AUG 2,022,984
2003 SEP 2,470,520
2003 Q3 2,470,520
2003 OCT 1,522,778
2003 NOV 1,550,067
2003 DEC 2,741,664
2003 Q4 2,741,664
2003 TOTAL 2,741,664
You can see that for some reason the hierachy is not adding correctly, as it is solely taking the last month of the quarter and saying that it is the quarter's numbers. And taking the last quarter's numbers and saying that it is the year's.
I've also verified that it only occurs on asset and liability type accounts and not income and expense type accounts.
How is this occuring?
Thanks,
MichelleHi Michelle,
The data that you attached is totally correct from an accounting perspective. Since BPC is used mainly by finance people, it follows this perspective.
Let me try to explain why this is correct;
There is one big difference between balancesheet accounts (AST/LEQ in BPC) and profit and loss accounts (INC/EXP);
Balance sheet accounts are always referring to a Period End closing amount which should always be the same for the total year, Q4 and the last month of a year (as shown in your example).
Profit and loss accounts on the other hand should only show the amount that are posted to these accounts for the selected period, so the total year should be added up from jan-dec, and Q4 should be an adding up of oct-dec, etc.
Periodic values (this period -/- previous period) for balancesheet accounts are only relevant for Cash-flow calculations and some movements that need to be reported on a periodic bases (ie Investments). Cash-flow is mostly calculated into a seperate account tree, Periodic investments, when a seperate subtable dimension (type s) is used, can standardly not directly be reported in Excel, but can be calculated in Excel by retrieving this period, the previous period and than calculate the difference for these two. Another solution might be to use a custom measure to do the trick.
Hope this helps,
Alwin -
Problems creating notation from scratch using the edit function of GarageBa
I am using garage band to write music. I open
a blank loop with a grand piano system instrument and
begin editing. I encounter the following problems:
1. The software does not allow me to enter any note
below middle c on additional or ledger lines that
should be available below the stave of the treble
clef.
1.1 Connected to this issue is that it is very
difficult to write music that contains subtleties.
This directly affects the way the music sounds. The
program substitutes accidentals in the stave
conditioned by the key signature. For example writing
Chopin in GarageBand as opposed to the written sheet
music is the difference between buying a designer
dress in a Bond Street Boutique and buying a cheap
copy in Primark. "Brins Bungalo" Tutorial claims
that
Garageband "is an application suitable for both the
dabbler and the conservatorially trained."
2. When there are many notes to be entered in a bar
garageBand is not flexible to accomodate the notes
required, Notes are clustered in a bunch makiing it
difficult to read what has been written (preventing the composer checking that it has been written correctly).
3. When there are many notes to be written in a bar
e.g. more than, say four notes, (lots of quavers or semi quavers) the
program does some strange things which I am unable to
control:
a) groups unrelated larger notes with the smaller
notes and will not allow them to be separated;
b) changes the value of notes already entered;
c) sometimes splits the note being entered into two
smaller notes joined by a tie;
d) accidentals appear on notes entered or notes
already entered without my instruction;
e) it changes note values, filling up the bar, to the
value of the time key before I have a chance to finish
entering the remaining notes that I want to place in
the bar;
4. How is one able to enter "dynamics" (symbol marks
of expression). I know it is possible because many of
the preloaded loops have these expressions evident
within them. I have tried consulting GarageBand Help but this has proved impossible to fathom.
Can anyone help?
iMac Mac OS X (10.4.8)You have my sympathy as I also wanted to enter notes on a stave but GB is simply not designed to do it.
You can do an amazing amount with GB but complex scoring is not really possible. You can't print a score btw.
In answer to some of your questions,
Expression cannot be added using the scoring facility. You need to go back to the piano roll view and use the expression/modulation/pitchbend/footswitch parameters.
I think you're possibly doing something wrong as I've just done a little test and I've entered a C0 without a problem.
I've also not had problems moving notes about and getting the right length or having GB fill notes to the end of the bar.
This is how I do it.
Create a software track.
Double click on the track to get the track editor.
Press record and use the the keyboard on the piano roll to enter a note. You've now created a recording region. You can't enter notes outside a recording region so you might need to drag it out to the required size.
Swap to note entry. That gives you the double stave. Drag the grey bar that separates the arranger area from the track editor upwards. This gives you more space on the stave.
Command click anywhere on the stave and a note will appear. Just move that note to wherever you want it and click to set it in place. You can always move it again by left clicking on the note and dragging it.
Accidentals will depend on the key you've set for the song and what notes you're entering. In D for instance you won't get an accidental for F sharp but you will get one for A flat.
Let us know how you get on.
If this still doesn't give you what you need then I suggest a dedicated notation package. Create a midi file from the package and import into GB for final tweaking.
Cheers
Dick -
I only have my IPhone5 for two months and am very upset that now they may need to give me a new phone and lose anything that may not have been recently backed up by the phone. Has anyone else had this problem? How did you reseolve it? Hard reboots did not help.
jsavage9621,
It pains me to hear about your experience with the Home Phone Connect. This device usually works seamlessly and is a great alternative to a landline phone. It sounds like we've done our fair share of work on your account here. I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you. I look forward to speaking with you.
TrevorC_VZW
Follow us on Twitter @VZWSupport -
A problem with middleware when i use the t-code spro in erp .
HI everyone :
Can i transfer the data from ERP to CRM automatic by middleware when i create a new entry use t-code spro in ERP .
for example ,i create a new entry in table tvv5( the group5 ).
thank you .Hi,
Customizing data are never transferred automatically from ECC to CRM. The delta load is not valid for customizing objects.
However, a download object does exist for this table, namely object DNL_CUST_SALES. What you can do is schedule an initial load for this object to run periodically in the background.You simply need to schedule a job for program SMOF_DOWNLOAD. Or you can create a request using R3AR2, then schedule prgram SMOF_REQUEST to run as a background job to load this request. These are all the options available.
I hope this helps!
Brian. -
using search or google something it will crash or closing unexpectedly
You are right, but how could i send it to Apple? when the phone company first replaced my iphone they had in stock alots of iphones and they just sent mine back to Apple and gave me a new one, so all i did is to give them my phone, but now how could i sent it to Apple? and i cant send it by myself, and the store wont do that, its a lost for them.. so sending it to Apple wasnt an option from the begining.
and for the record, i dont think the store where i bought it is an authorized shop.. its just a store who boughts phone's from Apple in a low price and sells it in much more money.. -
How to Use the language function for assignment and validation
Hi All,
If anyone can explain me in details with example ,how to use the language function for assignments and validations?
Thanks
ArnabHi Arnab,
The expression is checked only for the current MDM session.
If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
Try connecting to the DM with the XYZ language.
It should go to the if part rather than else.
Hope it helps.
Thanks,
Minaz -
With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this problem.
Google them to confirm the settings that you need for the outgoing server, then check the setting you entered on the pad. Pay real close attention to the outgoing server name, and port. You may need to change in on the pad.
-
I'm using firefox 6.0.2 It's making problem with Bangla font ONLY on FACEBOOK others bangli website FORNT SIZE are OK. On the FACEBOOK it shows Bangla font in a very / Too small! I change font SIZE in firefox setting but i can't solve. Pls HELP me ..
Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
*http://kb.mozillazine.org/Zoom_text_of_web_pages
You can use an extension to set a default font size and page zoom on web pages.
*Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
*NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/ -
I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup from last Friday, I go to my Lightroom Backups folder - and the most recent one showing not only isn't yesterday, it's OCTOBER 28 !?? Where the hell are the daily backups between October 28 and November 14?
Oh wow - JET LAG strikes agin - my apologies; I have located the missing weeks of back-ups. After getting home from a 30-day trip to Europe, I had changed the location of my LR catalog back-ups to an external drive, and forgot that I did that. I have found them, and all is good. Never operate Heavy Machinery without enough rest. Cheers
-
I just downloaded ios7 now i can only use the phone with speaker, how can i fix this?
x
-
Strange noise problem with music layer after replacing the music file using script in CS6
Hey guys,
I got a strange problem. Sometime when I import a music file, or replace a music footage with another music file using the "replace()" or "importFile()" method, the music layer added one second noise at the beginning. like this,
Does anyone know what's going on here?
I'm using After Effects CS6 windows Server 2008 64bit.
Thanks in advance!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Hi Myleniu,
Thanks for your replay. Actually, it doesn't matter what makes up my comp, this problem just randomly happen when I render any comp. For example, I have a comp named "noise", I run a script to replace the music then render it, I use a "for" loop to do this 5 times and the music noise problem just happen one time.
I'm starting to think that win server might be the problem. -
I want to cut out a head from a photo and insert it into another photo again. In the head hair flying in the wind and the blue sky can be seen between the hairs. This blue sky I want to remove, so I can only use the head with hair flying in another photo. Is it possible to simply delete this blue color of the sky?
Make your selection and then use Refine Edge.
See this video tutorial from Bob Gager.
https://www.youtube.com/watch?v=xrl3Qwg6zSc -
Can I chat or talk with a human on the phone? I have an Adobe ExportPDF Annual. So, if I cancel today, I still have to pay half of the fee? I only used the service once or twice. I was looking for a phone number to call. But, I seemed to have been in a loop. I kept getting directed to this forum. I would have really appreciated a quick link to a phone number. Much more efficient on my end.
I expected to be canceled in a few short minutes via a phone call. Instead of have been in this endless and frustrating loop to this forum.
Help please.Phone support | Orders, returns exchanges
http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
Chat support - For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
Creative Cloud support (all Creative Cloud customer service issues)
http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )
Maybe you are looking for
-
Open a Dynamic URL from a Table column link
Hi, Jdev Version (11.1.1.6.0) I have requirement to open a dynamic URL from table column. Any time I click on link, it should generate dynamic URL based on column attribute and open in popup or browser. Can someone pls suggest how to achieve this. Th
-
How do you select a clob column in an SQL query report?
I must be missing something fundamental as there is practically no help on this on the forum. All I want to do is ... select numcol,aclob_col from table in an SQL Query report. Sounds easy??? I get no data appearing in the clob column. Doesn't work i
-
Can I stream live iPhone App Sports to my TV
Hi, I have a great sports App to watch live games on my iPhone. I now have a iPhone to TV cable. I can watch saved videos but not the live sports app stream. Is there an App or setting that makes this possible?
-
Pearl 8220 camera image quality is poor, poor, poor
The photo image quality of the camera on my BB Pearl 8220 is extremely grainy and dark. I understand this is a cell phone camera and expectations are low to begin with, but this is unacceptably low quality. The flash appears to function properly but
-
Hi, I Have a table with below structure Change_Type Old_Val New_val AB 1 2 BC 11 12 AB 21 22 BC 31 32 CD 41 42 CD 51 52 Requirement is to display the records in following fashion. AB 1 2 BC 11 12 CD 41 42 AB 21 22 BC 31 32 CD 51 52