Display of the header in the Group Section data

I'm trying to reformat our 1099 forms and manage obtaining the address appears w / in the table that contains the information of every employee of our company. I can't download the data, because it contains sensitive information, but basically I have a group for info each employee:

< LIST_G_MAIN_SELECT >
< G_EMP >
Rob < NAME > < / NAME >
< SSN > 11-111-1111 < / SSN >
< EMP_ADDRESS > 500 any street < / EMP_ADDRESS >
< / G_EMP >
< G_EMP >
< NAME > Steve < / NAME >
< SSN > 22-111-1111 < / SSN >
< EMP_ADDRESS > 450 Street < / EMP_ADDRESS >
< / G_EMP >
< / LIST_G_MAIN_SELECT >
< C_COMPANY_ADDRESS > 1000 N 1st STREET < / C_COMPANY_ADDRESS >


In my model that I use a <? for each: G_EMP? > and then have the info of the employee in the table but I also need to put the C_COMPANY_ADDRESS in each table as well. When I point to this area it is not. I guess it's b/c that is outside the Group?

Thanks in advance!
Rob

Hi Rob,

Put them in the variable outside the place where it is accessible and access inside the loop
put this before the loop.

and inside the loop to access as

or

make the loop of the root IE. absolute path not relative path
something like

inside the loop, you access the address as

or

Would be happy to help you, if I have xml and model, delete sensitive information and send my id :).

Tags: Business Intelligence

Similar Questions

  • Without scroll bars when search results are displayed in the "content" section

    Hello

    I use reactive HTML5 in 2015 of Robohelp.

    The Azure_Blue layout works very well, but when search results are set to appear in the 'content' section no scroll bar is displayed, if you can't navigate to the results of research which are off the screen. Scroll bars are displayed when its set to appear in the sidebar. Tried with many different browsers - same result.

    Is it bug? Others do for this problem?

    See screen capture below.

    See you soon

    The CSS fix mentioned by Willam resolves the problem.

  • I recently bought 13 Photoshop elements for windows. My Version Set commands are not alive.  They are light gray both edit and display in the media section of the Organizer.  How can I make them work?

    Everyone knows this and if yes, how did you it works?

    PSE13 presents a new exhibition of miniatures: the speculative point of view. It is active by default. The thumbnails are resized to fill completely the 'media' section; the positive side is that it shows more thumbnails or larger; This is very useful for Visual browsing and research. But it masks the texts (name of file...) and version sets icons.

    Just go back to the old 'detailed view' in the view menu or remember the shortcut: Ctrl D. Your choice will stick the next time.

  • Want JMS adapter to consume the HornetQ section data

    Hi all
    I have a stand-alone hornetQ topic with a durable subscriber. Now I want a BPEL process with adapter to JMS that will consume the hornetQ field data. I have all the hornet associated jar files. I already have all the jar files in the folder of wls. Then set the PRE_CLASSPATH in the setDomainEnv script. But now, JMS adapter, I chose option of third party. After that, it will ask for JMS JNDI connection. What should I enter here? I need to create any JNDI in weblogic console? If yes then please give me steps to that end.

    Thanks in advance.

    Hello

    In the 2nd screen it ask the service name and it can be any name and select advance option queues in the display 3.

    If you configure you queue name to the foreign server on the destination tab, and then in the configuration of the card in the screen 7 you will see the queue, select the name and give the correct JNDI name eis/aqjms/queue or ist/aqjms/threads - in case if you use default JNDI names.

    Hope this helps you.

    Kind regards
    Tarak.

  • Report of the Group of dates for end of month

    Hi guys

    I need to get 6 months of data grouped by months end dates...

    I need to automate this query so that it looks always to date for the last 6 months

    How do I get there?

    The reason for writing the automated query, it's that this sql script is assigned to the business objects reporting.

    I use the pl/sql

    Here's the DOF

    create the table #Something
    (
    base_date datetime, int connections
    )

    Insert #Something
    Select ' 01 jul 2013', 21 Union all the
    Select ' 02 jul 2013', all 22 union
    Select ' 03 jul 2013', 210 Union all the

    ....

    ...

    Select July 31, 2013,"Union 498
    ' Select ' 01 August 2013 ', 44 Union all the
    ' Select ' 05 August 2013 ', 66 Union all the
    ...

    ....

    Select ' 03 dec 2013", 456 union all
    .

    .

    'Select December 31, 2013,"788

    ..............................................................................

    Desired output

    Connection of base Date

    31 jul 500 (not exact, just randomly)

    August 31 600

    30 sep 356

    31 Oct 676

    30 Nov 544

    31 Dec 456

    ..............................................................................

    Hope this helps

    Hello

    In Oracle, you can do this:

    SELECT LAST_DAY (TRUNC (base_date)) AS last_day_of_month

    SUM (connections) AS total_connections

    OF something

    WHERE base_date > = TRUNC (ADD_MONTHS (SYSDATE,-6), 'MONTH')

    AND base_date<  trunc="" (           ="" sysdate,     ="">

    GROUP OF LAST_DAY (TRUNC (base_date))

    ORDER BY last_day_of_month

    ;

    If you would care to post some CREATE TABLE and INSERT statements so you want the results of work from these data of the sample, then I could test this.

    Using Oracle?  #Something (with a sign # at the beginning) is not valid a table name, and datetime is not a valid data type in Oracle.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

    The query above works if base_date is a DATE or TIMESTAMP.

    Since it is now January 2014, what are "the last 6 months?  The above query assumes that they are the last 6 months, that is, July to December 2013.

    If you mean the current (incomplete) and 5 months before it (i.e. August 2013 to January 2014), then add 1 month to the two deadlines in the WHERE clause:

    WHERE base_date > = TRUNC (ADD_MONTHS (SYSDATE,-5), 'MONTH')

    AND base_date<  trunc="" (add_months="" (sysdate, ="" 1) ="">

  • Distiller 4.0 will not be displayed in the topic of my printer (XP)

    Hello

    This isn't the right forum, but I couldn't find one that applied because I use XP and my system and SW is old but still works fine.

    I was deleting unnecessary files and deleted adobe pagemaker 6.5 which unbeknowst me deleted Adobe Distiller 4.0 that came with it.

    I love Adobe Distiller 4.0 because I can make a .pdf of what either.  I often use it to make a PDF on a Word, Excel, and even Web pages.

    I reloaded it, but it will not be displayed in the printers section.  Basically, I go to print something and choose the option to distil instead of my printer and it would create the .pdf.

    I was wondering if someone could help.  I don't really like to download any free .pdf decision-makers because I really liked how distillation works.

    Thank you.

    Paula

    To clarify a bit for you (I don't know which Acrobat Distiller 4 was designed for, but probably 4 or 5). At that time, there were 2 distillers that caused confusion. One was the printer driver that you are talking about and the other was in the program. The print driver was actually Setup to run Distiller in the background, where the name of the driver. In current versions, the driver was renamed the Adobe PDF printer. This may have been distributed as part of package PM that you had, but I don't think he was probably part of the packaging itself, but an add on. You should seek an additional part of the distribution to install. In addition, you also probably have Acrobat Distiller installed program and be available in another program in your system.

    When properly installed, you should have, the pilot program of printing and AcroTray.exe running in the background. (Listed under Acrobat Assistant a few announcements at the beginning of the program) is a program that runs in the background to allow the print driver send print file (.ps file) to send to distill the PDF creation to complete. All three should be there. You can check if you have an Acro... or such driver in the System32 folder. That would be your printer driver is needed.

  • Freeze the header and scrolling that only data lines as in great.

    Hi all

    Recently, I created a region of type Pl/Sql and also a button in the view. Once he clicks the view button we display all columns of 38 and the user will have to scroll horizontally to view the data. It looks good to them also. Y at - it an option as to freeze the header display only the rows of data in excel.


    Thank you
    David...

    NP, David

    Be sure to keep a copy of your PL/SQL code existing prior to the update to the COL tags!

    Andy

  • First group title below displays under the column headers using the model 23 classic report with the help of repeat titles on break

    Hello

    I am migrating an application from 3 APEX APEX 4.2 on a thing I noticed with the classic reports when I put them in the model 23, it's that the first section break has break notch under the headings of columns for this section of line while the remaining lines properly have it display above the headers on the subsequent sections of group.


    When I look at firebug code I saw that all the tables but the first, the break line is included in the last line of the previous table, so I can see how it did not work for the holidays since.

    I have tow questions.

    1. is it really intentional because it seems not terribly elegant and my users to zero immediately above as a perceived bug.

    2. is there a reasonable job around always use headers repeat on break? I have multiple reports on the same page in places so switch to interactive reports is not a quick fix for me in this case.

    Example of a question can be seen at apex.oracle.com at home

    Thank you

    Brad

    Roadling wrote:

    Hello

    I am migrating an application from 3 APEX APEX 4.2 on a thing I noticed with the classic reports when I put them in the model 23, it's that the first section break has break notch under the headings of columns for this section of line while the remaining lines properly have it display above the headers on the subsequent sections of group.

    1. is it really intentional because it seems not terribly elegant and my users to zero immediately above as a perceived bug.

    The Standard report template definition in issue 23 contains thead and tbody elements:

    Before the column header

    
    

    Column title template

    #COLUMN_HEADER#
    

    After the title column

    
    
    

    After the lines

    
    
    
    
    
    
    #PAGINATION#
    
    
    
    

    This is intentional, the best practice for marking up HTML tables. What is not expected is the problem that arises when this model is used with the break of repeat titles on break formatting option. The repeated headings result table consisting of soup of tags containing several poorly constructed tbody and thead, which is not valid elements.

    2. is there a reasonable job around always use headers repeat on break? I have multiple reports on the same page in places so switch to interactive reports is not a quick fix for me in this case.

    Create a copy of the report model Standard in Standard (break formatting) for use with reports of the break, remove the thead and tbody definitions of template tags and the breakdown of the reports to use the new model of change. (Or, if you use mainly break reports using the Standard template, keep the tags in the copy and remove them from the original in order to minimize the number of reports, you need to change.)

    Personally, I would create a report model of line custom to break complex reports in order to be able to have complete control over the structure and presentation.

  • See her repeat the two section header

    Hi all


    The region are displayed in each page, but I also want to display the category once that he break to another page. for example in the next region 1 page and B must be repeated. Here's the rtf model. All ideas will be useful.


    Thank you


    Sushil


    Region 1

    A

    1 G

    B

    1 B

    next page

    Region 1

    B
    1 C



    <? for-each-group@section:G_1;. / REGION_CODE? >

    Region <? REGION_CODE? >

    <? start: body? > <? for-each-group: current - group () ;. / CATEGORY_NAME? > <? sorting: current-group () / CATEGORY_NAME; ' ascending '; data-type = "text"? >

    <? CATEGORY_NAME? >

    EMP ID

    NAME

    F EMP_ID

    NAME E

    <? end for each group -? >

    <? : slim body? >

    <? end for each group -? >

    <? end for each group -? >

    It will be possible for you to send your files?

  • How to select the group header with detailed data in a SQL

    Dear Sir

    I wish I had a little help from you. My goal is to create a view where the data should be in the appropriate format. In this format, I want to have for each header of a group.

    I have 3 tables that they ar connected to the other (representing hierarchical data where financial plan breaks in different groups).

    CRM_PLAN
    CRM_PLAN_ID
    DATE
    AMOUNT

    CRM_PLAN_PE
    CRM_PLAN_PE_ID
    TITLE
    AMOUNT
    CRM_PLAN_ID (REF CRM_PLAN key. CRM_PLAN_ID)

    CRM_PLAN_MONTH
    CRM_PLAN_MONTH_ID
    YEAR
    MONTH
    AMOUNT
    CRM_PLAN_PE_ID (foreign key to CRM_PLAN_PE. CRM_PLAN_PE_ID)

    Data looks like:

    CRM_PLAN
    CRM_PLAN_ID | DATE | AMOUNT
    1. 01.01.2012. 500
    2. 01.02.2012 | 200

    CRM_PLAN_PE
    CRM_PLAN_PE_ID | TITLE | AMOUNT | CRM_PLAN_ID
    1. Organization 1. 100. 1
    2. Organization 2. 400. 1
    5: 3 organization | 200 | 2


    CRM_PLAN_MONTH
    CRM_PLAN_MONTH_ID | YEAR | MONTH | AMOUNT | CRM_PLAN_PE_ID
    1. 2012 | 1. 60. 1
    2. 2012 | 2. 40. 1
    5: 2012 | 1. 350. 2
    4. 2012 | 2. 50. 2
    3: 2012 | 1. 200 | 3


    I would like to than the view that returns data as:

    MONTH | AMOUNT
    Organization 1. null
    1. 60
    2. 40
    Organization 2. null
    1. 350
    2. 50
    3 organization | null
    1. 200

    The main question is hot to write a sql as source for display to insert before each group a line with the value of the title of the table CRM_PLAN_PE column. Is it still possible? Perhaps you could suggest another method.

    Notice will be used in the form of oracle where will be possible to change the data - I will make the necessary arrangements by trigger INSTEAD of.

    Kind regards
    Igor

    Published by: user5528050 on 29.11.2012 02:23

    Published by: user5528050 on 29.11.2012 02:24

    Published by: user5528050 on 29.11.2012 02:25

    Hi, Igor,.

    In this case, I think ROLLUP is a little simpeler GROUPING SETS, but you could do it anyway:

    SELECT       CASE
               WHEN  GROUPING (tab2.id) = 0
               THEN  TO_CHAR (tab2.id)
               ELSE  tab1.title
           END               AS col_1
    ,       SUM (tab2.amount)     AS col_2
    FROM       tab1
    JOIN       tab2     ON  tab1.id     = tab2.tab1_id
    GROUP BY  tab1.title
    ,            ROLLUP (tab2.id)
    ORDER BY  tab1.title
    ,         GROUPING (tab2.id)     DESC
    ,            tab2.id
    ;
    

    If tab2.id cannot be NULL, you can use

    NVL ( TO_CHAR (tab2.id)
        , tab1.title
        )
    

    instead of the CASE expression and simplify the ORDER BY clause to

    ORDER BY  tab1.title
    ,            tab2.id            NULLS FIRST          
    
  • CTX_DOC. MARKUP in the html section groups

    Hi all

    Running Oracle 9.2.0.8 on AIX...

    I created full-text indexes Oracle by using the following parameters:
    ctx_ddl.create_preference( 'crt_user_datastore_en', 'user_datastore' );
    ctx_ddl.set_attribute( 'crt_user_datastore_en', 'procedure', 'ctxsys_multi_index_en_prc' );
    ctx_ddl.set_attribute('crt_user_datastore_en', 'output_type', 'CLOB');
    
    ctx_ddl.create_preference( 'crt_user_datastore_fr', 'user_datastore' );
    ctx_ddl.set_attribute( 'crt_user_datastore_fr', 'procedure', 'ctxsys_multi_index_fr_prc' );
    ctx_ddl.set_attribute('crt_user_datastore_fr', 'output_type', 'CLOB');
    
    CTX_DDL.create_preference('CRT_PREF_EN','BASIC_WORDLIST');
    ctx_ddl.set_attribute('CRT_PREF_EN','FUZZY_MATCH','ENGLISH');
    ctx_ddl.set_attribute('CRT_PREF_EN','STEMMER','ENGLISH');
    ctx_ddl.set_attribute('CRT_PREF_EN','SUBSTRING_INDEX','TRUE');
         
    CTX_DDL.create_preference('CRT_PREF_FR','BASIC_WORDLIST');
    ctx_ddl.set_attribute('CRT_PREF_FR','FUZZY_MATCH','FRENCH');
    ctx_ddl.set_attribute('CRT_PREF_FR','STEMMER','FRENCH');
    ctx_ddl.set_attribute('CRT_PREF_FR','SUBSTRING_INDEX','TRUE');
     
    CTX_DDL.create_section_group('CRT_HTML_SECTION','HTML_SECTION_GROUP');
    CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'title', 'TITLE');
    CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'body', 'BODY');
    
    
    ctx_ddl.create_preference('CRT_LEXER_EN', 'BASIC_LEXER');
    ctx_ddl.set_attribute('CRT_LEXER_EN', 'skipjoins', '-');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_text', 'YES'); 
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'base_letter', 'YES');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_stems', 'ENGLISH');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_themes', 'YES');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'theme_language', 'ENGLISH');
    
    
    ctx_ddl.create_preference('CRT_LEXER_FR', 'BASIC_LEXER');
    ctx_ddl.set_attribute('CRT_LEXER_FR', 'skipjoins', '-');
    ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'index_text', 'YES'); 
    ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'base_letter', 'YES');
    ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'index_stems', 'FRENCH');
    ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'index_themes', 'YES');
    ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'theme_language', 'FRENCH');
    
    end;
    
    
    CREATE INDEX MULTI_CONTENT_EN_IDX ON CONTENTS
    (top_html_content_en)
    INDEXTYPE IS CTXSYS.CONTEXT
    parameters ('filter ctxsys.null_filter DATASTORE crt_user_datastore_en LEXER CRT_LEXER_EN wordlist CRT_PREF_EN section group CRT_HTML_SECTION');
    
    CREATE INDEX MULTI_CONTENT_FR_IDX ON CONTENTS
    (top_html_content_fr)
    INDEXTYPE IS CTXSYS.CONTEXT
    parameters ('filter ctxsys.null_filter DATASTORE crt_user_datastore_fr LEXER CRT_LEXER_fr wordlist CRT_PREF_fr section group CRT_HTML_SECTION');
    Now, my question is... I want to stress the terms of the query, using the CTX_DOC.markup procedure. It comes, since I was a user_data_store that combines 3 columns of data in a CLOB with sections HTML predefined, what is the best way to extract individual sections for display?

    The reason for my dilemma is that the front-end .NET application assembles the page content into pieces, by injecting a content server here and there and I can just refer all marked content pieces as a CLOB.

    is this just a bad design from me approach? Is the only solution, given the implementation a CLOB, using a combination of instr and substr on the CLOB to extract the part I need?

    Another solution that has just occurred to me... instead of creating groups of sections html in my user_data_store procedure, I could inject more XML, then use a xml_section_group, so I can take advantage of some features of XML on the clob which are perhaps more effective than simply instr/substr combination?

    Thanks for advice/ideas...

    Edited by: pl_sequel may 4, 2010 15:34

    If you spend at least 10g, you can use ctx_doc.snippet. In 9i, you can use ctx_doc.highlight to get the offsets and lengths, instead of using substr and InStr. You can use it to write your own code snippet function. Please see the example below.

    SCOTT@orcl_11g> -- test environment:
    SCOTT@orcl_11g> create table contents
      2    (id               number primary key,
      3       title               varchar2 (15),
      4       body               clob,
      5       top_html_content_en  varchar2 (1))
      6  /
    
    Table created.
    
    SCOTT@orcl_11g> insert all
      2  into contents values (1, 'title1 test', 'word3 word2 body1 test word1 word2 word3', null)
      3  into contents values (2, 'title2 tests', 'word3 word2 word1 body2 tested word1 word2 word3', null)
      4  into contents values (3, 'title3 test', 'word3 word2 word1 body3 testing word1 word2 word3', null)
      5  select * from dual
      6  /
    
    3 rows created.
    
    SCOTT@orcl_11g> create or replace procedure ctxsys_multi_index_en_prc
      2    (p_rowid in rowid,
      3       p_clob     in out nocopy clob)
      4  as
      5  begin
      6    for r in
      7        (select * from contents
      8         where  rowid = p_rowid)
      9    loop
     10        dbms_lob.writeappend (p_clob, 4, '');
     11        dbms_lob.writeappend (p_clob, length (r.id), r.id);
     12        dbms_lob.writeappend (p_clob, 5, '');
     13        dbms_lob.writeappend (p_clob, 7, '');
     14        dbms_lob.writeappend (p_clob, length (r.title), r.title);
     15        dbms_lob.writeappend (p_clob, 8, '');
     16        dbms_lob.writeappend (p_clob, 6, '');
     17        dbms_lob.append (p_clob, r.body);
     18        dbms_lob.writeappend (p_clob, 7, '');
     19    end loop;
     20  end ctxsys_multi_index_en_prc;
     21  /
    
    Procedure created.
    
    SCOTT@orcl_11g> show errors
    No errors.
    SCOTT@orcl_11g> begin
      2    ctx_ddl.create_preference( 'crt_user_datastore_en', 'user_datastore' );
      3    ctx_ddl.set_attribute( 'crt_user_datastore_en', 'procedure', 'ctxsys_multi_index_en_prc' );
      4    ctx_ddl.set_attribute('crt_user_datastore_en', 'output_type', 'CLOB');
      5
      6    CTX_DDL.create_preference('CRT_PREF_EN','BASIC_WORDLIST');
      7    ctx_ddl.set_attribute('CRT_PREF_EN','FUZZY_MATCH','ENGLISH');
      8    ctx_ddl.set_attribute('CRT_PREF_EN','STEMMER','ENGLISH');
      9    ctx_ddl.set_attribute('CRT_PREF_EN','SUBSTRING_INDEX','TRUE');
     10
     11    CTX_DDL.create_section_group('CRT_HTML_SECTION','HTML_SECTION_GROUP');
     12    CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'title', 'TITLE');
     13    CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'body', 'BODY');
     14
     15    ctx_ddl.create_preference('CRT_LEXER_EN', 'BASIC_LEXER');
     16    ctx_ddl.set_attribute('CRT_LEXER_EN', 'skipjoins', '-');
     17    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_text', 'YES');
     18    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'base_letter', 'YES');
     19    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_stems', 'ENGLISH');
     20    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_themes', 'YES');
     21    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'theme_language', 'ENGLISH');
     22  end;
     23  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11g> CREATE INDEX MULTI_CONTENT_EN_IDX ON CONTENTS
      2  (top_html_content_en)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  parameters
      5    ('filter ctxsys.null_filter
      6        DATASTORE crt_user_datastore_en
      7        LEXER CRT_LEXER_EN
      8        wordlist CRT_PREF_EN
      9        section group CRT_HTML_SECTION')
     10  /
    
    Index created.
    
    SCOTT@orcl_11g> -- 10g method:
    SCOTT@orcl_11g> begin
      2    ctx_doc.set_key_type ('PRIMARY_KEY');
      3  end;
      4  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11g> select id,
      2           ctx_doc.snippet
      3             ('MULTI_CONTENT_EN_IDX',
      4              id,
      5              '$test')
      6             keywords_in_context
      7  from   contents
      8  where  contains (top_html_content_en, '$test') > 0
      9  /
    
            ID KEYWORDS_IN_CONTEXT
    ---------- ---------------------------------------------
             1 1
               title1 test
               word3 word2 body1 test word1 word2
               word3
    
             2 2
               title2 tests
               word3 word2 word1 body2 tested word1
               word2 word3
    
             3 3
               title3 test
               word3 word2 word1 body3 testing word1
               word2 word3
    
    SCOTT@orcl_11g> -- 9i method:
    SCOTT@orcl_11g> create or replace function my_snippet
      2    (p_index_name       in varchar2,
      3       p_primary_key       in number,
      4       p_query        in varchar2,
      5       p_context       in number default 0)
      6    return               varchar2
      7  as
      8    v_document          clob;
      9    v_hightab          ctx_doc.highlight_tab;
     10    v_start               varchar2 (2000);
     11    v_end               varchar2 (2000);
     12    v_keyword          varchar2 (2000);
     13    v_kwic               varchar2 (2000);
     14  begin
     15    ctx_doc.set_key_type ('PRIMARY_KEY');
     16    ctx_doc.filter ('MULTI_CONTENT_EN_IDX', p_primary_key, v_document, TRUE);
     17    ctx_doc.highlight ('MULTI_CONTENT_EN_IDX', p_primary_key, p_query, v_hightab, TRUE);
     18    for i in 1 .. v_hightab.count loop
     19        if p_context > 0 then
     20          v_start := substr (v_document, 1, v_hightab(i).offset - 1);
     21          if i > 1 then
     22            v_start := substr (v_start, v_hightab(i-1).offset + v_hightab(i-1).length);
     23          end if;
     24          v_start := '  ' || rtrim (v_start);
     25           v_start := substr (v_start, instr (v_start, ' ', -1, p_context));
     26          if i < v_hightab.count then
     27            v_end := substr (v_document, 1, v_hightab(i+1).offset - 1);
     28          else
     29           v_end := v_document;
     30          end if;
     31          v_end := substr (v_end, v_hightab(i).offset + v_hightab(i).length);
     32          v_end := ltrim (v_end) || '     ';
     33          v_end := substr (v_end, 1, instr (v_end, ' ', 1, p_context) - 1);
     34        end if;
     35        v_keyword := ' ' || substr (v_document, v_hightab(i).offset, v_hightab(i).length) || ' ';
     36        v_kwic := v_kwic || v_start || v_keyword || v_end || ' ... ';
     37    end loop;
     38    return substr (rtrim (v_kwic, '...'), 1, 2000);
     39  end my_snippet;
     40  /
    
    Function created.
    
    SCOTT@orcl_11g> show errors
    No errors.
    SCOTT@orcl_11g> variable words number
    SCOTT@orcl_11g> exec :words := 0
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11g> column keywords_in_context format a45 word_wrapped
    SCOTT@orcl_11g> select id,
      2           my_snippet
      3             ('MULTI_CONTENT_EN_IDX',
      4              id,
      5              '$test',
      6              :words)
      7             keywords_in_context
      8  from   contents
      9  where  contains (top_html_content_en, '$test') > 0
     10  /
    
            ID KEYWORDS_IN_CONTEXT
    ---------- ---------------------------------------------
             1 test  ...  test  ...
             2 tests  ...  tested  ...
             3 test  ...  testing  ...
    
    SCOTT@orcl_11g> exec :words := 1
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11g> /
    
            ID KEYWORDS_IN_CONTEXT
    ---------- ---------------------------------------------
             1 title1 test
               word3 ...  body1 test word1 ...
    
             2 title2 tests
               word3 ...  body2 tested word1 ...
    
             3 title3 test
               word3 ...  body3 testing word1 ...
    
    SCOTT@orcl_11g> exec :words := 2
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11g> /
    
            ID KEYWORDS_IN_CONTEXT
    ---------- ---------------------------------------------
             1 1
               title1 test
               word3 word2 ...  word2 body1 test
               word1 word2 ...
    
             2 2
               title2 tests
               word3 word2 ...  word1 body2 tested
               word1 word2 ...
    
             3 3
               title3 test
               word3 word2 ...  word1 body3 testing
               word1 word2 ...
    
    SCOTT@orcl_11g> exec :words := 3
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11g> /
    
            ID KEYWORDS_IN_CONTEXT
    ---------- ---------------------------------------------
             1 1
               title1 test
               word3 word2 body1 ...
               word3 word2 body1 test word1 word2
               word3
               ...
    
             2 2
               title2 tests
               word3 word2 word1 ...  word2 word1 body2
               tested word1 word2 word3
               ...
    
             3 3
               title3 test
               word3 word2 word1 ...  word2 word1 body3
               testing word1 word2 word3
               ...
    
    SCOTT@orcl_11g> 
    
  • No Add button in the users section and groups on LenovoEMC Storage Manager 1.4.4.14439

    I just install my new Iomega PX4 - 300 d and have enabled security. When I go to the users section and groups, there is no Add button to create new users or groups.

    The Add button is available in other sections and I created with success of new volumes/shares.

    I read the instructions and following the guides online without success.

    Is there another setting that I missed?

    He solved.

    I disabled the security and then reactivated it.

    The add users/groups button reappears.

  • How to put a heading for a group of controls without line below the title text?

    Hello

    Is it possible to write a heading for a group of controls and indicators made by "chiseled online", such as the chiseled line remain invisible under the title text and remain visible everywhere else? For example, the titles 'Printer', 'Range', 'Copies' and 'Zoom' in a Microsoft Word form in the PDF file attached. Note that there is no line under the title text and there is no text box surrounding the text of the title. I want to have that kind of title for the Group of controls and indicators in a GUI of my LabVIEW application.

    Any help will be appreciated.

    Thank you.

    Javed

    Any label you use as long as you COLOR IT CORECTLY. Use the background with transparent border color... just set the boxes of color as shown.

  • Using Vista Home Premium 64 x. In Windows Explorer how to group by name to display with the simple letters like A, B, C, D, etc. instead of A - H, P, Q - Z?

    Original title: group Windows Explorer by name

    Using Vista Home Premium 64 x.  In Windows Explorer how to group by name to display with the simple letters like A, B, C, D, etc. instead of A - H, P, Q - Z?  In XP, it could be sorted by simple letter, which makes it easier in a folder with many files.  Thanks in advance.

    Hi kmcmi,

     

    Welcome to Microsoft Answers Forums.

    Well this feature is not available in Windows Vista.

    It only works on Windows XP.

    I've added a useful link

    Behavior and change folder views

    http://windowshelp.Microsoft.com/Windows/en-us/help/3a3bfe59-5268-4FB3-81c5-7972c28939cd1033.mspx

    Hope this information is useful.

    Let me know if it worked.

    All the best!

    Thanks and greetings

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to remove and hide the group header

    Hello

    I want to combine metadata fields and you want to give the name to the group. But I want to remove the skin on the page.

    Please provide inputs on how to achieve this.

    Thanks in advance

    You can set disableFieldGroupHeaders = 1 to completely hide the group header.

    To just remove the link to hide, you can set the following in a side effect of rule:

    <>

     

    '$>

    <$exec setresourceinclude("std_field_group_header_show_hide",="" std_field_group_header_show_hide)$="">

    Jonathan

    https://jonathanhult.com

Maybe you are looking for

  • Store/communicate IMAQ image (binary) between the structures of the case

    Hi all I am trying to build a VI for a controlled industrial vision system and it has 2 process: first an image of calibration comes a sequence of discrete of images. After that, the user can start and stop the continuous controlled process of machin

  • How to detect fraud sites on the net

    in fact, I came to know websites are offering you opportunities to earn money on the internet by clicking on the sites for example 'two Dollar click'. I want you please teach me how to detect its authentication and its evidence. Thank you

  • My Music folder

    My 'Office' files/folders found their place in the folder "my music"! So when I opened my music folder I see "Desktop (99) (number of files/folders on my desktop) C:\Users\"my name ' and then the entire list of folders and files. I don't know how I d

  • Is it possible to find what part of my code sends the e-mail.

    I have a problem as follows: an e-mail is sent as a daily alert to the list of recipients. The sender is our group of e-mail to the development team. One of the recipients email is no longer valid. Therefore, every day, we receive e-mail back "ofyour

  • How to write this Simple query?

    Select * from studentwhere(select count (first_name) of student) > 1;Basically I want a list of student table where the counties of first names are more than 1. However he shows me the output forSelect * from student;any suggestions?