3 blocks relationship in 10g forms

Hi Guys,
Thanks in Advance
I have created three Block A,B and C,
A Block has Join B
B Block has Join C.
Problem is when I click from A Block to B Block to add new record, form clear all records from B and C
Any Help?

orasadi wrote:
Guys,
I think you dont get me,
For example I have query records, A block have some rows and B Block has some rows and C also have rows ,
Now, Im going to add one row in B Block, what happen form clear all rows from B Block and C Block and my cursor come to first rows on B Block.
Yes, sometimes it happened.
What you have to do ?
1. Delete the relation between A & B and B & C
2. Manually create the relation and Rename the Relation
It will works..
Hamid

Similar Messages

  • Display Images using READ_IMAGE_FILE in 10g forms

    Hello all, i have a simple question that I'm trying to resolve really quick.
    I've created a field on a form in 10g forms that is of IMAGE type. I've given it a name and has given it a FILE_TYPE of GIF.
    I've put some code in a POST-QUERY trigger of a block that calls the READ_IMAGE_FILE command, where I enter the filename, file_type, and block.item name. When I leave the path off the image name, forms runtime acts like it cannot find it. I get an FRM message displayed at runtime that says it "Cannot read image file". However, if I put the full path (like something pointing to a hard-coded directory on my C drive where the image file resides), the image displays fine at runtime.
    I added the images to my JAR file where I have other images stored so they get opened at runtime under the ORACLE_HOME/forms/java directory. I was thinking that when I gave the filename, runtime would know to pull it out of there. But obviously, that's not what is happening.
    Has anyone got ideas on what I could do to get the READ_IMAGE_FILE to display the image without hard-coding a path in?
    Any help is appreciated!
    Regards,
    Chris

    Here are some things to check:
    1) Alll the images in the JAR file should have the same extension
    2) In formsweb.cfg, include the JAR file in the ARCHIVE parameter and set imageBase=codebase
    3) In registry.dat, leave iconpath blank and set iconextension=gif
    4) In your READ_IMAGE_FILE call, use URL as the file type and don't use the extension on the file name. So if the image in your JAR is my_picture.gif, it would be something like READ_IMAGE_FILE('my_picture','URL','myblock.my_image_item');
    If it still doesn't work, enable the Java console and when it comes up, enter the number 5 in the console to enable the highest level of logging. Then have a look at the console to see if the JAR is getting downloaded and where it's attempting to read the image from.

  • Restriction for the use of last_record in 10g forms

    Hi,
    When I was working on Forms 6i with the query in the trigger When_new_form_instance:
    go_block('ABC');
    execute_query;
    last_record;
    first record;
    go_block('DEF');
    execute_query;
    last_record;
    first record;
    It worked and gave correct data on frontend.
    When the same was used in 10g forms, it gave incorrect data.When we removed last_record from the query, it worked.
    Could somebody tell me is there some kind of restriction for the use of last_record in 10g forms? If yes, what kind of?
    Thanks,
    Neha

    When I set Query All records to Yes.
    Surprisingly it gives incorrect data.
    This is what is bothering me.
    As i said earlier i was using last_record for
    navigation purpose to fetch all the records from the
    database and then first_record to highlight the first
    record.
    You don't need to do that, that is poor programming logic. Instead change the block property Query All Records and set it to Yes.
    This will fetch all the records from the database and the highlight will be on the first record;
    Regards,
    Tony

  • Invalid Objects - Converting 9i & 10g forms to Apex

    I'm trying to convert my 9i & 10g forms to an Apex form. After converting the 9i form to HTML and creating the Project, I then try to generate the application and get errors. I get 'Invalid Objects' with the invalid table and column name listed. Upon checking out the invalid objects, every one is a "PUSH BUTTON' on the 9i form. Looking further into the Apex items, they have a 'Yes' value under the 'Database Item' heading. First off, push buttons are not database items and I think this is the problem.
    Has anyone else encountered this problem? If so, how did you resolve. Thanks!

    When you have look in the xml file, you will see that the button is included in the block as an Item element.
    In the same Block element there is no corresponding DataSourceColumn element.
    But APEX doesn't take this into account when it uploads the xml file.
    Further on when you want to create the application, it will fail due to APEX thinking the button is a database column.
    Sadly enough we are not able to customize the query or to exclude the item (don't know why).
    Hopefully this will be solved in APEX 4.0 until then moving the button to a dummy block in Forms is a workaround.
    Regards,
    Mathieu

  • Is It Possible To Reconver 10g forms to 6i?

    Hi all,
    i want to reconvert my 10g forms to 6i. when i open a 10g forms in 6i form
    builder i got the ROS error.Is it possible or any other utility is available for
    conversion process.
    Regards
    Gopinath M

    I hear this question, when someone has migrated to 10g, did some changes and now he needs this changes backported to the old Forms 6i...
    because it is impossible you have to do something different :
    - if you know, which changes you made in 10g, do it manually in Forms 6i
    - if you know it not exactly convert the fmb to fmt... in the 6i-sources as well as in the 10g-sources. Compare the source-codes of both fmt's and find the changes in the pl/sql-sourcecodes. This is the easy part. Changes in block or item structures isn't that easy.
    The program-unit-comparison of a text-version of the fmb is possible with the FILE - ADMIN - Object List Report. That feature generates a txt-file of your sourcecodes
    try it
    Gerd

  • Enable Tracing for Oracle 10g Forms

    Hi All,
    When I try to launch Oracle 10g Forms from web, it comes up, displays blank screen and goes away. Same happens for test.fmb.
    How can I start tracing on Form Services or Oracle 10g Forms?
    Any help would be appreciated.
    Thanks in advance.

    You possibly have a popup or ad blocker active. Forms will most likely not work with a blocker.

  • 10g Forms - 11g Forms with Object Library and PLLs

    Hey All,
    Our organization is working towards converting our existing Forms 10g architecture to 11g / Weblogic. I'm currently attempting to get the 11g Developers suite working locally, and hit a bit of a snag.
    I'm using Windows XP Prof SP3.
    Here is what I have working:
    * I got the correct version of WLS installed
    * I got the Dev suite itself installed
    * I can start and run WLS
    * I can open form builder, create a simple form, run it, it works.
    Here is where I am stuck:
    I am trying to get our existing 10g forms to compile and run under the 11g architecture. These forms were all developed using smart classes in an object library and all call various PLSQL procedures in a PLL file.
    I've done the following:
    * Recompiled all PLLs and menu modules using 11g compiler binaries
    * Made sure the FORMS_PATH registry key included where my PLX, OLB and FMX files are (under the correct, HOME key, I hope).
    * changed default.env file so FORMS_PATH points to where my PLX , OLB and FMX files are
    However, when I try to run any of the forms, I get the following error immediately :
    "FRM-93652: The runtime process has terminated abnormally.
    Contact your administrator.
    Details....
    Forms Session ID is formsapp.1"
    And in the trace file, there isn't much helpful information:
    Last Trigger FORM/BLOCK/FIELD: AIS_WELCOME.<NULL>.<NULL>
    Last Trigger: PRE-FORM - (In Progress)
    --- Call Stack Trace ---
    EnumerateLoadedModules64 failed with error -1073741819
    calling call entry argument values in hex
    location type point (? means dubious value)
    EnumerateLoadedModules64 failed with error -1073741819
    01571C5E 00000000
    015714A4 CALLrel 01571870 314E9E8 314ADA4
    0157151D CALLrel 015713BC 314E9E8 314EA28 3 12BB4C
    12BB48
    014B131F CALLrel 015714FC 314E9E8 314EA28 3 314EA94
    12BD28
    014A20F5 CALLrel 014B112C 314E9E8
    014797FE CALLrel 014A1E1C 314E9E8 1 0
    665F1DEE CALLrel 66614E06 2E4C6F4 314E9E8 0 80000400
    80000040 100000
    6611B066 CALLrel 6619E0FC 24E3CF0 32105D8 2E44D10
    2E13B64 0 6611A492
    00000001 CALL??? 00000000
    --- End of Call Stack Trace ---
    Since I can create forms from scratch, it has SOMETHING to do with the subclassing / Object Library or the PLL/PLX. Can anyone give me any clues or hints? Is there any more tracing or logging I can turn on to get a better clue of the problem?
    Thanks!

    * ***NEVERMIND*** *
    I figured it out. I missed one of the the PLX files, and it was not recompiled under 11g. It is working now! Sorry to gum up the forum!

  • 10g Forms decode - [solved]

    A block in a 6i form is built on multiple tables joined in the where clause. An item Column Name property has a decode function. This works fine in 6i, however the 10g tool compiles but crashes upon build.
    Is this a bug or a wonderful Oracle "undocumented feature"?

    Ok, found the problem. ...Apparently, size matters. ;-)
    Using my test form above, I plugged your long statement into my form. I first had to remove the Carriage Returns, but otherwise, it compiled just fine at 6i, and failed in 10g.
    Taking out the spaces shortened the statement to 133 characters -- 10g still failed.
    By abbreviating 'criminal', I was able to get both versions to compile at length 123 or less.
    But as soon as I add a single character (even a space someplace), the 10g compiler fails at length 124.
    So it is a length problem, and not a decode problem.
    To fix the problem, make your problem column a non-base-table item, select l.criminal_level and s.criminal_sub_level into two hidden columns in the block, then in the post-query trigger, use pl/sql to display your column:
      If :Block1.criminal_level  = :Block1.criminal_sub_level then
         :Block1.derived_column := :Block1.criminal_level;
      Elsif :Block1.criminal_sub_level = '*' then
         :Block1.derived_column := :Block1.criminal_level || ' - ANY';
      Else
         :Block1.derived_column := :Block1.criminal_level || ' - ' || :Block1.criminal_sub_level;
      End if;

  • How to run a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

  • Calling a web service from Oracle 10g forms

    Hi Everybody
    I want to send SMS from my 10g forms.... I searched for the topic and I got the following link
    "http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html"
    Now I have downloaded "wsclient_extended_101320.zip"
    1. extracted the jar file,
    2. copied the jar file in "c:\ids10\WSclient"
    3. Specified jar file name in "default.env" "formsweb.cfg"
    4. Also specified the jar file name in "CLASSPATH" environment variable
    5. restarted OC4J instance
    6. Restarted Fotm Builder
    But I couldn't see the "webServiceProxy.proxy.SendServiceSoapClient" in Form Builder "JAVA CLASS iMPORTER"
    Can anyone plz help.....
    Wat may be the problem??
    Do I hav to follow the steps to create service as specified in demo page....or is it sufficient to download the jar file ??
    Or is there any other setting that I m missing???
    Thanx in advance....

    I created a new folder "WSclient" in "c:\ids10\forms"
    and added full path name in CLASSPATH......

  • Ctrl+Z fuctianlity is not working in oracle 10g Form

    Hi
    I am using oracle 10g form and using
    Edit_TextItem to invoke Text Editor
    When i using CTRL+Z to undo things in editor it is not working but it works when i used Form6i.
    Please help me to solve this issue. i need to this functinality to be work.
    BR,
    SPS

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • Iconic file in oracle 10g forms

    hii,,
    i am a new user in oracle 10g form,,,here i am running a form & placing all the icons in a folder,after that i changed the iconic file path in the default.env file,the path is same where the icons are kept,,but still i am unable to see the icons at the run time,,,,,
    do i need to modify some other file or the icons will be kept at some particaular place????
    plzzzz help.....

    hi
    1 How to Display Iconic Images Using Forms 9.0.x/ 10.x?
    When running an Oracle Forms 9i/10g application the icon files used must be in a web enabled
    format such as JPG or GIF (GIF is the default format) (This is unlike older versions of forms running in client-server mode when the file format is .ico.)
    Icon image files can either be retrieved by Forms as individual files on the filesystem or from a Java Archive (JAR file).
    If an application uses lots of icon images it is recommended that they are stored in a JAR file to reduce the number of HTTP round trips.
    Reference:Note 232413.1 How to Deploy Iconic Images via a JAR File in Forms 9i/10g?
    The example below details steps to configure iconic images as individual gif or jpeg files.
    It is a first approach recommended for initial testing and understanding.
    Example:
    ========
    This document has been written for use with both Windows and UNIX operating systems: Windows will use the "\" character to delimit directories and UNIX uses the "/" character. Any other differences are noted in the document.
    1) Determine the physical location of the icons on your web server. For this example, assume that the icons are stored in D:\Myfiles\icons.
    2) Create the virtual directory in the forms90.conf file that point to the location of your Forms 9i/10g icons. This file is located in:
    $ORACLE_HOME\forms90\server\forms90.conf
    To define a virtual directory forms90/icons, use the following syntax:
    # Virtual path for ICONS (used to show icons in a form ) AliasMatch ^/forms90/icons/(..*) "D:\Myfiles/icons/$1"
    Below is an example of the forms90.conf after it has been modified to include the /forms90/icons virtual directory.
    # Virtual path mapping for Forms Java jar and class files (codebase) AliasMatch ^/forms90/java/(..*) "E:\IASR2\APP/forms90/java/$1" # Virtual path for JInitiator downloadable executable and download page AliasMatch ^/forms90/jinitiator/(..*) "E:\IASR2\APP/jinit/$1" # Virtual path for runform.htm (used to run a form for testing purposes) AliasMatch ^/forms90/html/(..*) "E:\IASR2\APP/tools/web90/html/$1"
    # Virtual path for ICONS (used to show icons in a form ) AliasMatch ^/forms90/icons/(..*) "D:\Myfiles/icons/$1"
    ( For 10g use instead of "forms90" -> "forms")
    3) Direct forms to use the /forms90/icons or /forms/icons virtual directory when running on the web by modifying the Registry.dat file in the $ORACLE_HOME\forms90\java\oracle\forms\registry or $ORACLE_HOME\forms\java\oracle\forms\registry
    directory. Note that for UNIX, both the path name and file name are case sensitive. You must specify "Registry.dat".
    Modify the default.icons.iconpath entry as follows: default.icons.iconpath=http:///forms90/icons/ or default.icons.iconpath=http:///forms/icons/
    If the URL used to bring up forms on the web is: http://abc.oracle.com:7778/forms90/f90servlet or http://abc.oracle.com:7778/forms/frmservlet
    Then the entry required for the Registry.dat will be: default.icons.iconpath=http://abc.oracle.com:7778/forms90/icons or default.icons.iconpath=http://abc.oracle.com:7778/forms/icons default.icons.iconextension=gif
    4) Now use EM Website to: a) Restart the OC4J-BI-Forms Instance b) Restart the BI-FORMS HTTP Server Instance.
    5) Verify that the virtual directory has been defined properly and that the icons can be viewed in a browser.
    Assuming that exeqry.gif exists in the D:\Myfiles\icons directory, the following URL should show the icon:
    http://abc.oracle.com:7778/forms90/icons/exeqry.gif or http://abc.oracle.com:7778/forms/icons/exeqry.gif
    6) Check the form : http://abc.oracle.com:7778/forms90/f90servlet?form=D:\Testcases\F90\ICON_CHECK_IASR2.fmx or http://abc.oracle.com:7778/forms/frmservlet?form=D:\Testcases\F10g\ICON_CHECK_IASR2.fmx
    CHECKLISTS
    =============
    Icons do not appear in the browser using the URL:
    o Verify that you are using the correct machine name and port for the OC4J_BI_Forms object.
    o Check the virtual directory name to make sure that there are no typographical errors. o Check for typographical errors in the forms90.conf or forms.
    conf for the virtual directory. o Check the name of the icon on the file system. If the file is saved as Exeqry.gif, then it will not be found using the URL http://abc.oracle.com:7778/forms90/ Close all your browser sessions and open a new browser window.
    Execute the URL to bring up from the Form Builder runtime or from the browser.
    ( For 10G use "forms" instead of "forms90")USEFUL REFERENCES:==================
    [PDF] Oracle9iAS Forms Services Deployment Guide (P/N B10170-01)Configuring Oracle9iAS Forms Services ->
    Deploying Icons and Images Used by Oracle9iAS Forms Services http://otn.oracle.com/products/forms/pdf/B10170_01.pdf
    [PDF] Oracle9iForms Services - How to Deploy Iconshttp://otn.oracle.com/products/forms/pdf/webicons.pdf
    sarah

  • Can not configure Oracle 10g form  on oracle 11g client

    Hi
    I need to install oracle 10g form in my system .
    Here is my system
    1. OS --XP
    2. 32 Bit
    4. Already oracle 11g release client installed ( I think that create the problem )
    I tried to install oracle 10g form , it installed but can cont configure net manager for it , Always it point to 11g client and hence I could not configure .
    Also I tried install Oracle Forms first then 11g client , But  I got same issue .
    I think if  I created multiplr home one for 11g client and other for forms , it may work out .
    Please  help me
    Debashis

    While deploying the example 'VacationRequest' in the oracle complete guide for 11g, i got an exception like this
    "12:08:15 PM] Deploying Application...
    [12:11:16 PM] [Deployer:149191]Operation 'deploy' on application 'VacationRequestTaskFlow' is initializing on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: [Deployer:149145]Unable to contact 'bam_server1'. Deployment is deferred until 'bam_server1' becomes available.; nested exception is:
         java.rmi.UnknownHostException: Could not discover administration URL for server 'bam_server1'.
    [12:11:24 PM] [Deployer:149193]Operation 'deploy' on application 'VacationRequestTaskFlow' has failed on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: Failed to load webapp: 'VacationRequestTaskFlow.war'.
    [12:11:24 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet
    [12:11:24 PM] See server logs or server console for more details.
    [12:11:24 PM] weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] #### Deployment incomplete. ####
    [12:11:24 PM] Deployment Failed"
    Can anyone help in this.

  • Load balancing 10g forms - Connection from new browser window not supported

    Load balancing 10g forms - Connection from new browser window not supported
    We're experimenting with using webcache to load balance between multiple applications servers running OC4J forms processes.
    We currently have one machine with infrastructure and mid-tier (BI & Forms) installed, which is being used for the webcache functionality, this is load balancing between 2 other servers each of which just have the mid-tier (BI & Forms) installation
    In order to get this to work, I had to follow the instructions in the Forms deployment guide : http://download-uk.oracle.com/docs/cd/B14099_11/web.1012/b14032/tuning.htm#sthref707
    The main gist of this is that you need to set the following in the orion-web.xml file in order that the sessions are maintained:
    <session-tracking
    cookies="enabled">
    </session-tracking>
    This all works fine in most cases.
    The problem I am having is if I do one of the following on the client machine:
    1) From IE6 / IE7 run a copy of a forms application. Then open a new window using the "New Window" menu option, and attempt to run another forms application.
    2) In IE7 or Firefox 2.0 open a copy of the forms application, and then open a new tab and try and open another forms application.
    If I try either of these I get a FRM-92101 error, and the following is displayed in the java console:
    oracle.forms.net.ConnectionException: Connection from new browser window not supported
    From trawling various forums (including metalink and otn) it looks like a problem with the way coockies are handled.
    Unfortunately the usual workaround is to ensure that the session tracking option in the orion-web.xml file is disabled.
    The problem is that I need this enabled in order for the load balancing to work.
    Does anyone know of any other workarounds or patches that might help resolve this?
    We're using Application server 10.1.2.0.2 running on windows 2003 servers.

    You were right. Carriage returns were stopping it from working (the document is laid out over separate lines, so I assumed it would make no difference...).
    I've now managed to get it so the forms at least run, but they are all being run in the forms OC4J instance on the same machine as the OHS.
    Has anyone actually managed to get this to work, or am I doing something wrong?
    I did wonder if using an OHS instance on a machine with no forms installation would make any difference?
    I had raised a support call via metalink on this subject, but they eventually came to the conclusion that the only way to do this is with a hardware load balancer (Despite several documents suggesting that webcache is the way to go (including the forms deployment manual)).
    I'm at the point now of giving up and writing some custom scripts to do the job instead...

  • 10G-form: How to do MULTIPLE WORD OR SINGLE WORD SEARCH at ITEM?

    I am using 10G DB + 10G Form Builder.
    I've 'database_item' where I am storing multiline text data.
    I want to do MULTIPLE WORD OR SINGLE WORD SEARCH at this item through FORM.
    I've tried by creating the following NON Database Items on the form:
    - multiline_search_text_item, and
    - multiline_result__text_item
    And then writing execute_query in KEY-NEXT-ITEM trigger.
    I've also tried using this in the POST-TEXT-ITEM at multiline_search_text_item:
    select table.database_item into :multiline_result__text_item from table where multiline_search_text_item = :multiline_search_text_item;
    Pl help me asap.
    Gaurav

    What you want to do is not clear.
    The query you wrote will select records where the table contains exactly what has been written in the search item. You can use LIKE and a wildcard search to find records which contain the search text:
    select table.database_item into :multiline_result__text_item
    from table
    where multiline_search_text_item LIKE '%'||:multiline_search_text_item||'%';
    You can use UPPER to make this case insensitive:
    select table.database_item into :multiline_result__text_item
    from table
    where Upper(multiline_search_text_item) LIKE Upper('%'||:multiline_search_text_item||'%');
    But I suspect you want either to match the individual words in the search text to individual words in the database multiline field, or find records where the search words appear (not necessarily as whole words). In that case, check out the following:
    -- set up a table (multiline and various whitespaces)
    DROP TABLE t;
    CREATE TABLE t AS
    SELECT
      ROWNUM rn,
      owner||Chr(9)||object_name||Chr(160)||subobject_name||'    '||object_id||' '||
      data_object_id||Chr(10)||object_type||' '||created||' '||last_ddl_time||' '||
      timestamp||' '||status||' '||temporary||' '||generated||' '||secondary AS col
    FROM all_objects;
    -- check the format of the multiline text item (col)
    SELECT * FROM t WHERE ROWNUM < 4;
    -- a type for the function below
    CREATE TYPE string_tab AS TABLE OF VARCHAR2(255);
    -- this function takes a string and cuts out each word, idetifying words
    -- as being separated by any whitespace.  it returns a collection
    CREATE OR REPLACE FUNCTION string_to_tab(
      p_string IN VARCHAR2) RETURN string_tab IS
      l_string LONG DEFAULT
        RTrim(regexp_replace(p_string,'[[:space:]]+',' ')) || ' ';
      l_data string_tab := string_tab();
      n NUMBER;
    BEGIN
      LOOP
        EXIT WHEN l_string IS NULL;
        n := InStr(l_string, ' ');
        l_data.extend;
        l_data(l_data.Count) := LTrim(RTrim(SubStr(l_string, 1, n - 1)));
        l_string := SubStr(l_string, n + 1);
      END LOOP;
      RETURN l_data;
    END string_to_tab;
    -- selecting from t where ANY of the words in the search text has
    -- a match in the multiline field (as a word or part of a word), so SYS
    -- matches to MDSYS and SYSTEM
    SELECT DISTINCT
      t.rn, t.col
    FROM
      t,
      (SELECT column_value
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE InStr(t.col,x.column_value) > 0;
    -- selecting from t where ALL of the words in the search text has
    -- a match in the multiline field (as a word or part of a word), so SYS
    -- matches to MDSYS and SYSTEM
    SELECT rn, col FROM(
    SELECT
      t.rn, t.col, cnt_x, Count(*) cnt
    FROM
      t,
      (SELECT column_value , Count(1) over(PARTITION BY 1)cnt_x
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE InStr(t.col,x.column_value) > 0
    GROUP BY t.rn, t.col, cnt_x
    WHERE cnt = cnt_x;
    -- selecting from t where ANY of the words in the search text
    -- match a word in the multiline field, so SYS matches only to SYS
    SELECT DISTINCT
      t.rn, t.col
    FROM
      t,
      (TABLE(CAST(string_to_tab(t.col) AS string_tab))) t2,
      (SELECT column_value
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE t2.column_value = x.column_value;
    -- selecting from t where ALL of the words in the search text
    -- match a word in the multiline field, so SYS matches only to SYS
    SELECT rn, col FROM(
    SELECT
      t.rn, t.col, cnt_x, Count(*) cnt
    FROM
      t,
      (TABLE(CAST(string_to_tab(t.col) AS string_tab))) t2,
      (SELECT column_value , Count(1) over(PARTITION BY 1)cnt_x
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE t2.column_value = x.column_value
    GROUP BY t.rn, t.col, cnt_x
    WHERE cnt = cnt_x;For your application you would replace 'SYS INDEX' with a variable (the search field). You can use upper() and wildcards for case insensitive & 'fuzzy' searches. You might need to modify the function so it removes other delimiters such as commas and colons.

Maybe you are looking for

  • How can I change the Y-axis (circular) grid spacing, in Polar Plot VI?

    When using Polar Plot VI, I need more control over the plotting parameters. This means tweaking the sub-VIs in various ways. What I need to do most is make the polar magnitude axis less busy, i.e. only draw circles every 10 instead of every 5 divisio

  • Design a network for voip over wan

    Hi all,             I need your valuable suggestions how to design a network of voip using voip. Suppose there is a Site A and Site B and you are using different service providers and creating different vlans in each site for voice and data.Lets say

  • Mass Download/Extract of BW Master Data Documents

    Hello I am looking for a solution to enable a mass extraction of Master Data Documents on a nightly basis. Basically we are storing documents against materials in R/3 using CV03n, we are then using the Mass Upload Program to load these into BW on a n

  • Old ical with new cloud

    I am using iCloud and Lion on all systems except 1, my office machine. I can't get the calendars on that machine to sync with iCloud. Any hints or tips please.

  • JAWS and Selection Events - JComboBox, JTabbedPane

    Hi, I am adding accessibility to one of our Products for a client that has employed a blind person. I am having trouble with JAWS reading items in JComboBoxes and items in JTabbedPanes. If I start JAWS then our application which runs in a browser as