The search for Clob columns in interactive report
I use APEX 3.2 with 10g. I have an interactive report with a query that takes several recordings of 'comments' and the concatenates using a function that returns a Clob. In the report, there are several of these comments columns mixed with some small varchar2 columns.Using the search bar, if I type in a Word and click OK, it does not seek my Clob columns. On the other hand, I can use the drop-down list in the search bar to indicate I want to only search one of these Clob columns, then the research works.
Is there a reason that my filters 'Text line contains' do not include my Clob columns? I have defined, as the "Standard report column" and they all "filter" checked as a permitted operation.
Greg
I found a work around for this problem. IR reports do not seem to automatically search for CLOB columns as a search ROWTEXT (unless you are specifically targeting this column). So, I wrapped the CLOB column with:
DBMS_LOB.substr(clob_column_name,4000,1)
This converts the CLOB Varchar2 column, which made the report «see» IR Of course, this only works if you want to search for the first 4000 bytes, but the data in my CLOB columns are never more than a few sentences long.
Tags: Database
Similar Questions
-
Record the value for checkboxes deselected in interactive report
Hello.
We have an interactive relationship with checkbox column.
Created under APEX_ITEM. CHECKBOX2...
Check box is selected, if the database column element value is 1 or disabled if the value is 0.
Users can also check boxes for all the lines they want and save the changed check box.
Save us the value with the process as... BECAUSE me in 1... apex_application.g_f09. COUNTY...
and update the value 1 in the database.
Now the question.
Is it possible to uncheck the checked value and update the value of database to 0?
1 line FOR i... apex_application.g_f09. COUNTY counties only checked checboxes.
How can we determine the lines where unchecked and update the value of database?
the reason is, that users want to use interactive report already in use and not of new application, in the form of new.
Thank you.
Concerning
Hi DejanH,
Yes it is possible. Please read my blog on how to do this:
http://blog.iAdvise.EU/2013/06/12/checkboxes-in-editable-reports-in-apex/
Kind regards
Joni
-
contains the clause in the search for interactive report of a clob column
Hello
I use the Version APEX 4.2.4.00.08
How to use an interactive report contains the when searching a clob column so that it uses the CONTEXT index?
Thank you
Chandra.
I wrote it in the SQL used for IR
I created an APEX application that stores all our it's the HOWTO documents. (word, excel, pdf)
ctx_doc.snippet creates the HTML code.
select D.doc_id ,D.doc_filename ,dbms_lob.getLength( D.doc_blob ) as download ,decode( :P12_SEARCH, null, '-- nothing --', ctx_doc.snippet( 'IT_DATA.DOC_CTX_IX' -- my Oracle Text index name , D.doc_id, :P12_SEARCH ) ) as snippet from it_data.documents D where :P12_SEARCH is null or contains( D.doc_blob, :P12_SEARCH ) > 0
MK
-
Using synonyms in the search for name
Hello
I try to use synonyms in an oracle namesearch. Set up a seqarch name as in the second example described in the developer's guide to the oracle text to http://download.oracle.com/docs/cd/E18283_01/text.112/e16594/search.htm application
Now the name, for I am looking can hold one '&', for example 'B & V '.
I would like to find this text when I enter "B & V", B & V' or 'B and V.
I found a thread on how to set up a thesaurus with synonyms for '&' and 'and' to 'and' and ampersand or special characters
Now I'm wondering how to combine this.
Thanks for the help in advance,
DirkYour change was correct and it works. For reserved words in the braces enclosing aims to tell Oracle Text as text rather than apply the special meaning they have as reserved words. Since "und" is not a reserved word, it didn't need to be escaped by placing braces. When you set "&", then "und" synonymously as you did the search for 'B und V' correctly found "B and V, as in the modified below demo. In this particular case, the search might work without applying the format_string, but you need to keep it in the query so that it is applied to these values in need, for example, if you searched for "B & V' or 'B & V".
SCOTT@orcl_11gR2> create table emp ( 2 first_name varchar2(30), 3 middle_name varchar2(30), 4 last_name varchar2(30), 5 email varchar2(30), 6 phone varchar2(30)); Table created. SCOTT@orcl_11gR2> -- added row of data: SCOTT@orcl_11gR2> set define off SCOTT@orcl_11gR2> insert into emp values 2 ('Jane', 'Doe', 'B & V', '[email protected]', '321-654-0987'); 1 row created. SCOTT@orcl_11gR2> SCOTT@orcl_11gR2> create or replace procedure empuds_proc 2 (rid in rowid, tlob in out nocopy clob) is 3 tag varchar2(30); 4 phone varchar2(30); 5 begin 6 for c1 in (select FIRST_NAME, MIDDLE_NAME, LAST_NAME, EMAIL, PHONE 7 from emp 8 where rowid = rid) 9 loop 10 tag :='
'; 11 dbms_lob.writeappend(tlob, length(tag), tag); 12 if (c1.EMAIL is not null) then 13 dbms_lob.writeappend(tlob, length(c1.EMAIL), c1.EMAIL); 14 end if; 15 tag :=' '; 16 dbms_lob.writeappend(tlob, length(tag), tag); 17 tag :=''; 18 dbms_lob.writeappend(tlob, length(tag), tag); 19 if (c1.PHONE is not null) then 20 phone := nvl(REGEXP_SUBSTR(c1.PHONE, '\d\d\d\d($|\s)'), ' '); 21 dbms_lob.writeappend(tlob, length(phone), phone); 22 end if; 23 tag :=' '; 24 dbms_lob.writeappend(tlob, length(tag), tag); 25 tag :=''; 26 dbms_lob.writeappend(tlob, length(tag), tag); 27 if (c1.FIRST_NAME is not null) then 28 dbms_lob.writeappend(tlob, length(c1.FIRST_NAME), c1.FIRST_NAME); 29 dbms_lob.writeappend(tlob, length(' '), ' '); 30 end if; 31 if (c1.MIDDLE_NAME is not null) then 32 dbms_lob.writeappend(tlob, length(c1.MIDDLE_NAME), c1.MIDDLE_NAME); 33 dbms_lob.writeappend(tlob, length(' '), ' '); 34 end if; 35 if (c1.LAST_NAME is not null) then 36 dbms_lob.writeappend(tlob, length(c1.LAST_NAME), c1.LAST_NAME); 37 end if; 38 tag :=' '; 39 dbms_lob.writeappend(tlob, length(tag), tag); 40 end loop; 41 end; 42 / Procedure created. SCOTT@orcl_11gR2> show errors No errors. SCOTT@orcl_11gR2> begin 2 ctx_ddl.create_preference('empuds', 'user_datastore'); 3 ctx_ddl.set_attribute('empuds', 'procedure', 'empuds_proc'); 4 ctx_ddl.set_attribute('empuds', 'output_type', 'CLOB'); 5 end; 6 / PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> begin 2 ctx_ddl.create_section_group('namegroup', 'BASIC_SECTION_GROUP'); 3 ctx_ddl.add_ndata_section('namegroup', 'fullname', 'fullname'); 4 ctx_ddl.add_ndata_section('namegroup', 'phone', 'phone'); 5 ctx_ddl.add_ndata_section('namegroup', 'email', 'email'); 6 end; 7 / PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> begin 2 ctx_thes.create_thesaurus ('nicknames'); 3 ctx_thes.create_relation ('nicknames', 'John', 'syn', 'Jon'); 4 end; 5 / PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> SCOTT@orcl_11gR2> -- added synonyms to thesaurus: SCOTT@orcl_11gR2> begin 2 ctx_thes.create_relation ('nicknames', '&', 'syn', 'and'); 3 ctx_thes.create_relation ('nicknames', '&', 'syn', 'und'); 4 end; 5 / PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> SCOTT@orcl_11gR2> begin 2 ctx_ddl.create_preference('NDATA_WL', 'BASIC_WORDLIST'); 3 ctx_ddl.set_attribute('NDATA_WL', 'NDATA_ALTERNATE_SPELLING', 'FALSE'); 4 ctx_ddl.set_attribute('NDATA_WL', 'NDATA_BASE_LETTER', 'TRUE'); 5 ctx_ddl.set_attribute('NDATA_WL', 'NDATA_THESAURUS', 'NICKNAMES'); 6 ctx_ddl.set_attribute('NDATA_WL', 'NDATA_JOIN_PARTICLES', 7 'de:di:la:da:el:del:qi:abd:los:la:dos:do:an:li:yi:yu:van:jon:un:sai:ben:al'); 8 end; 9 / PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> create index name_idx on emp (first_name) 2 indextype is ctxsys.context 3 parameters 4 ('datastore empuds 5 section group namegroup 6 wordlist ndata_wl'); Index created. SCOTT@orcl_11gR2> SCOTT@orcl_11gR2> -- added function to format search string: SCOTT@orcl_11gR2> create or replace function format_string 2 (p_string in varchar2) 3 return varchar2 4 as 5 v_string varchar2 (32767) := ' ' || p_string || ' '; 6 begin 7 -- add extra spaces around ampersand: 8 v_string := replace (v_string, '&', ' & '); 9 -- remove duplciate spaces: 10 while instr (v_string, ' ') > 0 11 loop 12 v_string := replace (v_string, ' ', ' '); 13 end loop; 14 -- add { and } around each reserved word: 15 for r in 16 (select keyword, 17 ' ' || keyword || ' ' keyword2 18 from v$reserved_words) 19 loop 20 v_string := replace (upper (v_string), r.keyword2, ' {' || r.keyword || '} '); 21 end loop; 22 return ltrim (rtrim (v_string)); 23 end format_string; 24 / Function created. SCOTT@orcl_11gR2> show errors No errors. SCOTT@orcl_11gR2> -- example of usage of function: SCOTT@orcl_11gR2> select format_string ('B und V') from dual; FORMAT_STRING('BUNDV') -------------------------------------------------------------------------------- B UND V 1 row selected. SCOTT@orcl_11gR2> SCOTT@orcl_11gR2> -- query modified to apply foramt_string function to :name variable: SCOTT@orcl_11gR2> var name varchar2(80); SCOTT@orcl_11gR2> exec :name := 'B und V' PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> column first_name format a10 SCOTT@orcl_11gR2> column middle_name format a11 SCOTT@orcl_11gR2> column last_name format a9 SCOTT@orcl_11gR2> column phone format a12 SCOTT@orcl_11gR2> column email format a22 SCOTT@orcl_11gR2> select first_name, middle_name, last_name, phone, email, scr 2 from (select /*+ FIRST_ROWS */ 3 first_name, middle_name, last_name, phone, email, score(1) scr 4 from emp 5 where contains 6 (first_name, 7 'ndata (phone,' || format_string (:name) || ') OR 8 ndata (email,' || format_string (:name) || ') OR 9 ndata (fullname,' || format_string (:name) || ')', 10 1) > 0 11 order by score (1) desc) 12 where rownum <= 10; FIRST_NAME MIDDLE_NAME LAST_NAME PHONE EMAIL SCR ---------- ----------- --------- ------------ ---------------------- ---------- Jane Doe B & V 321-654-0987 [email protected] 97 1 row selected. SCOTT@orcl_11gR2> -
I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?
Set a password to disk... disk tab in the utility... and just give to those you want to use the TC...
-
Stop the search for the missing files from LabVIEW
Is there a way to prevent the search for lack of screws LabVIEW? If I load a VI and one of its dependencies is spent, I want LabVIEW to fail immediately and to wonder where is the file.
What version of LabVIEW are you using?
Just hit ignore. It stops to load files that it cannot find and load than it can.
-
I want to uninstall a toolbar that has been the result of the search for something specific
Hello
I want to uninstall a toolbar that has been the result of the search for printable piano music.
I uninstalled the stuff accompanying this research but I can't get rid of the toolbar. Can I just download an another toolbar as C.NET or what?I have a Dell dimension 4700 desktop, XP and I have ' yet to learn through this forum help and everyone.
Thank you
Gina Davis
Original title: how to uninstall toolbat Inbox
(IE unknown version)
Hello
Tools are what bar you referring? That's a browser or another program?
Method 1:
Run this fixit to remove it completely.http://support.Microsoft.com/mats/Program_Install_and_Uninstall/Method 2:
You can uninstall the toolbar by following the steps below:
a. open your Internet browser.
b. click on 'Tools' then 'Add-ons' in IE; Click on "Tools" and "Manage Add-ons."
c. find the add-on "Toolbar" in the list of available modules.
d. remove the add-on toolbar in Internet Explorer, select the toolbar and click "disable".
If you want to remove the toolbar, you can do this by uninstalling it in Add or remove programs. -
Windows 7 continues the search for updates
Recently, I have restored my laptop to factory settings, and after you install the service pack 1 update, this does not block the search for updates. I tried everything on this site but without success. Help, please. Thank you.
The installation of the plant is the worst possible Windows, that no tech fan would go because of the bloatware and installation utility factory duplicate that interfere with better integrated in the operating system versions. Corruption as it is so just wait until you make a clean reinstall Windows 7 .
If you want to try to wrestle with the factory install, so first thing I "d to recover some lost performance is Clean Up Factory Bloatware. " It also checks and fix the integrity of the installation itself, which is not only limited but damaged by bloatware.
Then, if the problem run the troubleshooting Windows Update - Microsoft Windows Help tool
Then, try to Reset Windows Update components.
Finally, as a last resort, run the System Update tool .
Let us know how it goes and if there are any questions or problems.
-
My computer (explorer.exe) continues the search for readers/records.
Hi experts, I need help on my PC.
After working with my PC for several hours and minutes when I click/Open 'My Computer' it continues the search for my hard drives and folders in libraries, favorite & computer. He just continues to research and does not display my partition/HARD drive. http://i793.Photobucket.com/albums/yy217/aznix2020/Untitled.PNG
However, its not freezing or hang up and I can always open my drives/folders by using the command run and after a while it will work fine again.
Is not a serious problem at the moment because it works well after a while but it's a hassle.
Also im wondering if this is my drive display relationships safely remove HARD in the options in the task bar. Although the option remove appear for less than a month before I encountered this problem.
My PC is win7 32 bit sp1. Thanks in advance.This problem can be caused by a video driver obsolete or damaged, file system on your PC can be damaged or do not correspond with other files and certain applications or services that are running on your computer may be responsible for Windows Explorer to stop working.
Refer to the following suggestion and check the status of the issue.
Install the following update and check if that helps
Windows Explorer may hang in Windows 7 or in Windows Server 2008 R2.
https://Support2.Microsoft.com/kb/2515325?WA=wsignin1.0
If the problem persists, see the suggestions mentioned in the following and check the status of the issue
Error: Windows Explorer has stopped working.
http://support.Microsoft.com/kb/2694911
Note: Before you perform an upgrade in-place, you must be prepared for the worst scenarios that led to your existing data on your computer being deleted. These data include data personal, settings, information about the hardware and software drivers. In case of a worst case scenario, you may have to reinstall all the programs. Make sure that you back up personal data to disks or other external storage devices before performing an upgrade on the spot.
Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.
Important: System Restore will return all system files not as documents, email, music, etc., to a previous state. These files of types are completely affected by the restoration of the system. If it was your intention with this tool to recover a deleted file to non-system, try using a file instead of system restore recovery program.
Please let us know if you need assistance.
-
e-mail Outlook 2013 index is not in the search for a window 7
Dear all
Research of a window does not work correctly.My emails are not yet indexed and watch not when he search with the search for a windowPlease help me what I can do to fix thisThanks in advanceRAM kishanso -
has someone at - he found a solution to the search for global marker?
has someone at - he found a solution to the search for global marker?
the glaring omission of global search for markers - or exclusion of metadata to the project search function marker - is a big handicap for any project of long form doc.
Is there a work around or maybe a plan to remedy this bizarre situation in an upgrade?
big fan of the first, and even if there is plenty of downturns, it seems as if there is always planned if solutions non-existent
Thank you!
Hi Charliepus,
Sorry about that. Create a feature here: http://adobe.ly/feature_request
Thank you
Kevin -
How do I see the search for the other column table in a report
Hello
I created a 'form on the report' to get entry to reception. Reception table has the column account_code. How add place holder account_name column whose value can be fetch from table account_master.
It is an interactive report on the form region. I've learned there are two ways, one is to alert the request in the "source" of the report and include account_name column by joining the table account_master. Another way is to create a calculation field? (not sure).
I need to know what is the best way to achieve this. I use APEX 4.2.6. EPG.
Thank you
-Anand
Hi Anad,
To configure a new column, you must run the page
In the interactive report drop-> select the columns-> relating to the structure and then save it as the primary default report
Thank you
Sunil bhatia
-
The headers of columns in interactive reports wrap
How is it possible to wrap column headers in interactive reports?
I tried to add tags br but which causes the br tags is displayed in Excel if the region is exported.
Kind regards
ToddHello
Setting the width of 1px, will force the browser to wrap in the first space met in the chain. The width of the column, therefore, becomes the width of the widest word in the column.
Individual topics may appear with the title to directly reference the attribute id for this position. ID's are identified in styles using #ID, so:
#apexir_EMPNO {color:red}
would be to style the EMPNO column with red text - as shown here: [http://apex.oracle.com/pls/otn/f?p=267:23]
Andy
-
I have a relationship with a search function.
WHERE UPPER(BRANCH||) e /'|| MAIN_HEADING | » /'|| SUB_HEADING |'. ' || PART) LIKE '% "| UPPER(:P197_SEARCH) | '%'
OR UPPER(SUBJECT||) e -'|| PERSONAL_NO | » -'|| NAME | » -'|| UNIT) LIKE '% "| UPPER(:P197_SEARCH) | '%'
One of the columns (subject) on the report is a descriptipn field
If the user types, for example, range rover early elimination %
The search picks up whatever it is, with an early elimination and a range rover in the column of the OBJECT.
If they type in the early elimination of range rover %, it does not pick up anything. I think it's because the data are typed, in the order of early elimination, and then a range rover.
Is it possible, that research will get the data bit matter the order of the words.
GusHello Gus
You are right. Just checked myself.
It would seem that the IRR search box is better suited to single word or exact string searches.
That said, this WORK will BE
(1) use an IRR
(2) add a 'filter' on the column of the OBJECT (for example the OBJECT CONTAINS "range rover")
(3) add a second 'filter' on the column of the OBJECT (for example the SUBJECT CONTAINS "early elimination")You get the right result!
Does not matter the order in which you define filters in.
What do you think?
Simon Gadd
-
What is the best way to view an interactive report with 20 columns
Hello
I have an interactive report, given the number of columns (about 20).
What is the best way to view this report... by default to scroll horizontally to see all the columns.
I want to avoid horizontal scrolling.
Thank you
DeepakHello Deepak,
You mean apart using a smaller font size or a larger screen?
You can think to combine / wrapping columns (so more data in a column).
Or hide some less important data and show only on request.Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this response in marking it as useful or Correct ;-)
Maybe you are looking for
-
Tecra M1: can not update my DVD on a DVD - RW - error messages
On the new adjusting disc, as soon as the Tecra M1 turns on, it comes up with an error:Error IDE #1 I saw that the old DVD was a master/slave setting, where as on the cable, this disc is select. No details on how to set it, if possible, anywhere. Hel
-
Thompson bridge came on my screen
For no apparent reason, when I tried to get on the internet, a screen titled 'Thompson' came and he said that I was not authenticated. He already had my e-mail address in the box and then some black spots where my password should be. When I retyped m
-
Why can't I suddenly read or write emails on my Hotmail account?
I can't suddenly write or read emails from my Hotmail account or even go to a new folder. I get a message that says "stop". This is only happening on my computer at home; my phone works fine. I tried to restart and change my password, but none wor
-
HP Photosmart c7280 Windows 7 32 bit Error message "printer configured for 02 ink." I got this printer from the Australia to the United Kingdom. I check the site of hp UK for correct ink cartridges replace who was exhausted. I bought a HP 363 ink c
-
How to make a transparent text so as to keep the whiteness
This can be very simple, but have failed to do it again. Have tried all the effect different merger on the text layer, but so that it makes the text more transparent it becomes too dark, how to avoid this? And while Im at it, it is the final effect o