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
Tags: Database
Similar Questions
-
Create null values in the database for interactive report link column values
Hello
I'm pretty new to APEX and tries to create an interactive report with the form. This report examines essentially for more information for a particular employee. If the employee has any information in the table, the report presents information with a button change beside him. If there is no record in the table for this employee, a create button appears. Now when you click create, a new creation page. This page contains the employee number as a single display field with the value from the previous page. This value is displayed in the page, but it is not in the database. Create the page has view-only number and a couple of other columns. The other columns get inserted into the table with an empty number!
Can someone please? Looks like the page keeps the value zero for the number of the employee who came during the search of the interactive report. Hope I made myself clear, being the newbie hope I haven't used any incorrect terminology.
Thank you!
RobetWithout the DB column, apex will not determine which DB column the data in this field are mapped to (it would be quite impossible to guess the destination since the name of the element column).
If you want to assign to the previous element of the page, use the default section
return: P1_EMP_NUM
By default the value Type: body of the PLSQL function
and configure the attributes of source as I said before
-
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
-
Problem with the cascading for interactive report selection list
Hi all.
I'm trying to implement the solution of cascading to the tabular presentation list.
https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:
But instead of the form of paintings, I use interactive report. After executing the query, I get the error:
ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored
My Sql query for the report:
select apex_item.hidden(1, a."DATA_ID")DATA_ID, apex_item.select_list_from_query(10, b.WAVE_GROUP, 'select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group', 'onchange="f_set_casc_sel_list_item(this,f11_'||LPAD (a.DATA_ID, 4,'0')||')"', 'YES', '', '- Select Group -', 'f10_' || LPAD (a.DATA_ID, 4, '0'), NULL, 'NO' )WAVE_GROUP, apex_item.select_list_from_query(11, b."WAVE_USER", 'SELECT username d, ' ||'username r FROM dwd_user where groups = '||b."WAVE_GROUP", '', 'YES', '', '- Select User -', 'f11_' || LPAD (a.DATA_ID, 4, '0'), NULL, 'NO' )WAVE_USER from "DWD_WAVE_MASTER" a, dwd_wave_assignment b where a.data_id = b.data_id and b.wave_id = 'wave_1'
If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.
Use: APEX 4.2.6 with Database 11g.
apex_item.select_list_from_query(11, b."WAVE_USER", 'SELECT username d, ' ||'username r FROM dwd_user', '', 'YES', '', '- Select User -', 'f11_' || LPAD (a.DATA_ID, 4, '0'), NULL, 'NO' )
Can someone please help!
Thank you
Nabila
The nabila Islam wrote:
I'm trying to implement the solution of cascading to the tabular presentation list.
https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:
But instead of the form of paintings, I use interactive report. After executing the query, I get the error:
ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored
My Sql query for the report:
- Select
- apex_item. Hidden (' 1, a. "DATA_ID DATA_ID").
- apex_item.select_list_from_query (10,
- b.WAVE_GROUP,
- "select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group,"
- "onchange =" f_set_casc_sel_list_item (this, f11_'|) LPAD (a.DATA_ID, 4, '0'). ") » ',
- '' YES. ''
- '',
- -Select Group «-»,
- "f10_" | LPAD (a.DATA_ID, 4, '0'),
- NULL,
- 'NO '.
- ) WAVE_GROUP,.
- apex_item.select_list_from_query ("11, b.") WAVE_USER,"
- "SELECT user name d.
- |' username r FROM dwd_user where group = ' | b."WAVE_GROUP."
- '',
- '' YES. ''
- '',
- "- Select user -",
- "f11_" | LPAD (a.DATA_ID, 4, '0'),
- NULL,
- 'NO '.
- ) WAVE_USER
- of 'DWD_WAVE_MASTER' a, b dwd_wave_assignment
- where a.data_id = b.data_id
- and b.wave_id = 'wave_1. '
If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.
Use: APEX 4.2.6 with Database 11g.
- apex_item.select_list_from_query ("11, b.") WAVE_USER,"
- "SELECT user name d.
- |' username r FROM dwd_user ",
- '',
- '' YES. ''
- '',
- "- Select user -",
- "f11_" | LPAD (a.DATA_ID, 4, '0'),
- NULL,
- 'NO '.
- )
What is the data type of DWD_WAVE_ASSIGNMENT. WAVE_GROUP? If it is not a number, then it must be enclosed in quotes when it is used as a literal:
apex_item.select_list_from_query(11, b."WAVE_USER", 'SELECT username d, ' ||'username r FROM dwd_user where groups = ' || dbms_assert.enquote_literal(b."WAVE_GROUP"), '', 'YES', '', '- Select User -', 'f11_' || LPAD (a.DATA_ID, 4, '0'), NULL, 'NO' )
-
Questions about the icons for interactive report
When I created an interactive report, rectangular icons were created automatically on the left side of the report on each line.
When you click on one of the icons, it displays the details of the line in vertical order.
Here are my questions:
1. when I hid a few columns in the interactive report and clicks on the icon, it does not display the details of the hidden column. But I want to hide these columns in the report but displays all the details when you click the icon. How can I do this?
2. How can I hide the icons?
3. How can I use the icons don't not to view the details of a line, but towards a modifiable page to edit the same details?
Thank you
GuyHello
1. when I hid a few columns in the interactive report and clicks on the icon, it does not display the details of the hidden column. But I want to hide these columns in the report but displays all the details when you click the icon. How can I do this?
You can create another region, or the page that will show you your line of description of identifier, or rowid. You can do this by changing the column type of link to "target of the link to Custom.
2. How can I hide the icons?
Access the interactive report-> column-> change of link column link (link column exclude)
3. How can I use the icons don't not to view the details of a line, but towards a modifiable page to edit the same details?
The same as answer 1.
Best regards, Kostya Proskudin!
-
Add columns in the area of interactive reports
Hello Experts,
I will add a column more in the interactive area, but is not thinking about the main screen of the report...
I only add a column in my query and set the position in the report area but still its not shown on main screen...
Please help me...
Thank you
Xandot wrote:
I will add a column more in the interactive area, but is not thinking about the main screen of the report...
I only add a column in my query and set the position in the report area but still its not shown on main screen...
After adding new columns to existing NPA, you must select them for display as developer and Save the new report as the default main.
Please see the documentation for interactive report.
-
Click on search for result code doesn't display the line containing the search results
I use the latest version of DreamweaverCC2014 on the latest version of Mac Mavericks. I use Dreamweavers find and replace to find code in an open html document. In the search results Panel results aren't clicking on me at the relevent code line in the document. It used to work well in the previous version of DW, I was using.
In the DW help note it is said: ' display the results of a particular search in context: select window > results to display the search panel. " Double-click on a line in the search panel. If you are looking for the current file, the Document window displays the line containing that search result. ' http://helpx.adobe.com/Dreamweaver/using/Text.html#search_for_and_replace_text
Double-click does not display the line containing the result of the search for me. It seems to work OK in my CSS files, but not in HTML longer (1010 lines).
Any advice? Someone at - it the same problem? Thank you
I have the same problem with all the HTML files that have external style sheets. for example .
So it seems to be a bug around that. When you delete the above, double click functionality works.
-
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.
-
all help and support links get the notebook containing the scrpt for said linl
When I click on a link for support, homepage products, call, etc., using windows, link brings up Notepad containing the script for the link. I'm doing something wrong or is my computer is having problems?
Hello
1 did you changes to the computer before the show?2. do you receive any error messages?
3. who is the operating system that you are using?
4. how you are trying to access help and support in Windows?Perform the steps described in the articleReference:Change default programs using Set Program Access and computer defaultsChange the programs that Windows uses by defaultI hope this helps. -
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
Maybe you are looking for
-
Satellite A30, Win XP Pro SP3 - modem does not work
Another problem with this laptop Satellite A30The built-in modem does not work. * Explanation: *.The driver is correct and downloaded from the Toshiba support site.The modem is identified as "Toshiba software modem amr" and is installed on com3 port.
-
Since the virus attack, I can't get the calculator to open or work
Original title: I EXPANDED Calc. EX_ IN WINDOWS\SYSTEM32, BUT STILLCALCULATOR DOES NOT WORK AFTER VIRUS ATTACK MY CALCULATOR COLLAPSED WORK TODAY, I HAVE FOLLOWED THE ISTRUCTION I EXPANDED CALC. EX_ WINDOWS\SYSTEM32 BUT NOW TRY TO OPEN THE CALCULATOR
-
After the automatic installation of Windows updates, laptop computer stops unexpectedly
After that I installed the automatic updates my laptop stops unexpectedly. No one knows why this happens?
-
How can I restore my computer (Windows Vista Premium) back in the day, it was brand new? I want to clean the top/everything, yes everything! Help! PLEASE
-
HelloMaybe I'm missing something obvious - but can I create a view that shows me all the hosts and the vMotion portgroup, NIC, NIC say political (as active and standby)?Thank you