Return all instances of a string value

I know that similar questions have been asked before but I am having a tough time getting things to work.
I would like to search for all instances of a string value (shown red) and return the corresponding values in the adjacent cells (shown green) so that each room number is represented.  For example, I want the search for "Adequately" to return rooms 236 and 237 (and 237 just once even though it is listed twice).  Is this possible?
Any help is appreciated.
Clay

Here's an example, similar in some ways to Yvan's, but taken a bit further.
Data table (left) contains only the original data. I've shortened the ratings to allow an easier fit on this page.
Summary table does the work in two stages.
Pulls the room numbers for rooms matching each rating. (yellow portion of table. If desired, these rows may be hidden.
Builds a list of these for each condition. (Footer row)
Formulas (all on Summary)
Row 1 is a header row, and contains the Rating labels, which must match those used on the Data table.
B2:   =IF(AND(Data :: $E2=B$1,COUNTIFS(Data :: $E$2:$E2,B$1,Data :: $C$2:$C2,Data :: $C2,Data::$B$2:$B2,Data :: $B2)=1)," "&Data :: $B2&" "&Data :: $C2&" ","")
Fill right to column F. Fill down to row 16 (as many rows as there are data rows on Data)
Note the " " at the beginning and end of the 'if true' part: " "&Data :: $B2&" "&Data :: $C2&" "
There is a single space between each pair of quotation marks. These are necessary to the second formula below.
Row 17 is a Footer row.
B17:  
=IF(COUNTA(B)-COUNTBLANK(B)=0,"",TRIM(SUBSTITUTE(CONCATENATE(B2,B3,B4,B5,B6,B7,B 8,B9,B10,B11,B12,B13,B14,B15,B16),"  ",",
There is a return character in the formula immediately before the last quotation mark. Press option-return to enter a return into a formula.
SUBSTITUTE finds the two spaces added between items in the list and replaces them with a comma followed by the return noted above.
TRIM is used to remove the single space before the first item in the list and the single space after the last.
Regards,
Barry

Similar Messages

  • Return all data without selecting any value in query filter

    Hi,
    I created a document with query filters(prompt, LOV). But sometimes users don't want to select any value and just want to return all data in the report.
    I can't find a way to achieve this. Does anyone know how to implement this ?
    Thanks.

    Hi,
    you can modify the "select" statement for your LOV and add an additionaly keyword like "ALL" in your list of values. Then you can modify your where-clause to handle the "ALL" keyword.
    E.g. (<your condition>=@prompt(....) or 'ALL'=@prompt(......) )
    Regards,
    Stratos

  • Get-NetworkStatistics returns all the values set to zero despite having internet traffic

    Hi
    I'm running Windows Server 2012 R2 and I have a problem with the Get-NetworkStatistics cmdlet: it returns all the parameters with a value of zero eventhough the wireless network adapter is up and running, including having internet access. Furthermore, if
    I double-click on the wireless network adapter, it displays the correct values for bytes sent / received.
    So it seems like the Get-NetworkStatistics cmdlet is unable to read the statistics for the wireless adapter. Any help would be appreciated.
    Thanks

    Hi,
    Is this what you're referring to?
    https://gallery.technet.microsoft.com/scriptcenter/Get-NetworkStatistics-66057d71
    If so, the best way to contact the author is by posting on the QandA tab of the gallery item.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Good practice to initalize all instance variables with type String to emptr

    Is it a good practice to initalize all instance variables with
    type String to emptry string?
    #1 approach:
    public class A
    { private String name = "";
    private String address ="";
    //etc...
    rather than
    #2 approach:
    public class A
    { private String name;
    private String address;
    //etc...
    When I read Java books, the examples don't usually do #1 approach.
    The problem is if we don't initialize to empty string, when we call
    the getter method of that instance variable, it will return null.
    Please advise. Thanks!!

    Please advise. Thanks!!It depends on your coding style. If you can avoid lots of checks for null Strings in the rest of the code then why not initialize to "".
    You have the same situation when a method returns an array. If you under circumstances return a null array reference then you have to always check for this special case, but if you return a zero length array instead you have no special case. All loops will just run 0 iterations and everything will work fine.
    So in general I guess the return of zero objects instead of null references really boils down to whether it simplicates the rest of your code by removing lots of extra checks for the special null case. This usage is especially favourable in the zero length array case. See Effective Java by Bloch, item 27.

  • Contains return all the records when the query string matches the columns

    I used the multi_column_datastore preference and created an index on three columns (item_name, description,owner_part_number). Now if I do a search:
    select * from items where contains(description, 'description') > 0;It returns all the rows in items table, but not all the rows have "description" as a word. I guess Oracle text assumes the query intends to get all the rows as the query string matches one of the column names. My question is whether Oracle Text has any preference settings to alter this behavior?
    execute ctx_ddl.create_preference('item_multi_preference', 'MULTI_COLUMN_DATASTORE');
    execute ctx_ddl.set_attribute('item_multi_preference', 'columns', 'item_name, description,owner_part_number');
    create index item_text_index on items(description) indextype is ctxsys.context filter by owner parameters('LEXER ENG_LEXER WORDLIST ENG_WORDLIST STOPLIST CTXSYS.EMPTY_STOPLIST datastore item_multi_preference MEMORY 1024M');Thanks.
    Jun Gao

    It looks like a basic_section_group fixes the problem as well, as demonstrated below and I believe a basic_section_group may be more efficient than auto_section_group.
    SCOTT@orcl_11gR2> -- recreation of problem:
    SCOTT@orcl_11gR2> drop table items
      2  /
    Table dropped.
    SCOTT@orcl_11gR2> create table items (
      2       "ITEM_NAME"             varchar2(100 byte),
      3        "ITEM_NUMBER"              varchar2(100 byte),
      4        "DESCRIPTION"              varchar2(4000 byte),
      5        "OWNER" number
      6  )
      7  /
    Table created.
    SCOTT@orcl_11gR2> begin
      2    FOR Lcntr IN 1..100
      3    loop
      4         insert into items (item_name, item_number, description, owner)
      5         values (dbms_random.string('A', 10),
      6              dbms_random.string('A', 10),
      7              dbms_random.string('L', 8) || ' '
      8              || dbms_random.string('A', 4)
      9              || dbms_random.string('A', 5)  || ' '
    10              || dbms_random.string('A', 10),
    11              dbms_random.value(1,10) );
    12    end loop;
    13  end;
    14  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    FOR Lcntr IN 1..100
      3    loop
      4         insert into items (item_name, item_number, description, owner)
      5         values (dbms_random.string('A', 10),
      6              dbms_random.string('A', 10),
      7              dbms_random.string('L', 8) || ' '
      8              || dbms_random.string('A', 4) || '111'
      9              || dbms_random.string('A', 5)  || ' '
    10              || dbms_random.string('A', 10), 1234 );
    11    end loop;
    12  end;
    13  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> exec ctx_ddl.drop_preference('ENG_WORDLIST');
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference('ENG_WORDLIST', 'BASIC_WORDLIST');
      3    ctx_ddl.set_attribute('ENG_WORDLIST','PREFIX_INDEX','TRUE');
      4    ctx_ddl.set_attribute('ENG_WORDLIST','PREFIX_MIN_LENGTH',1);
      5    ctx_ddl.set_attribute('ENG_WORDLIST','PREFIX_MAX_LENGTH',10);
      6    ctx_ddl.set_attribute('ENG_WORDLIST','SUBSTRING_INDEX','TRUE');
      7    ctx_ddl.set_attribute('ENG_WORDLIST','WILDCARD_MAXTERMS', 0);
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> execute ctx_ddl.drop_preference('ENG_LEXER');
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    CTX_DDL.CREATE_PREFERENCE ('ENG_LEXER', 'BASIC_LEXER');
      3    CTX_DDL.SET_ATTRIBUTE ('ENG_LEXER', 'PRINTJOINS', '@-_');
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> execute ctx_ddl.drop_preference('items_multi_preference');
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference('items_multi_preference', 'MULTI_COLUMN_DATASTORE');
      3    ctx_ddl.set_attribute('items_multi_preference', 'columns', 'item_name, description,item_number');
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> create index items_text_index
      2  on items(description)
      3  indextype is ctxsys.context
      4  parameters
      5    ('LEXER         ENG_LEXER
      6        WORDLIST   ENG_WORDLIST
      7        STOPLIST   CTXSYS.EMPTY_STOPLIST
      8        datastore  items_multi_preference
      9        MEMORY     1024M')
    10  /
    Index created.
    SCOTT@orcl_11gR2> create index owner_idx on items (owner)
      2  /
    Index created.
    SCOTT@orcl_11gR2> exec dbms_stats.gather_table_stats (user, 'ITEMS')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> select count(*)
      2  from   items
      3  where  contains (description, 'description') > 0
      4  /
      COUNT(*)
           200
    1 row selected.
    SCOTT@orcl_11gR2> -- correction of problem:
    SCOTT@orcl_11gR2> exec ctx_ddl.drop_section_group ('items_sec')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_section_group ('items_sec', 'basic_section_group');
      3    ctx_ddl.add_field_section ('items_sec', 'item_name', 'item_name', true);
      4    ctx_ddl.add_field_section ('items_sec', 'description', 'description', true);
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> drop index items_text_index
      2  /
    Index dropped.
    SCOTT@orcl_11gR2> create index items_text_index
      2  on items(description)
      3  indextype is ctxsys.context
      4  parameters
      5    ('LEXER         ENG_LEXER
      6        WORDLIST   ENG_WORDLIST
      7        STOPLIST   CTXSYS.EMPTY_STOPLIST
      8        datastore  items_multi_preference
      9        MEMORY     1024M
    10        section group items_sec')
    11  /
    Index created.
    SCOTT@orcl_11gR2> select count(*)
      2  from   items
      3  where  contains (description, 'description') > 0
      4  /
      COUNT(*)
             0
    1 row selected.

  • Return all the column values using the F4IF_INT_TABLE_VALUE_REQUEST

    Hi,
    How to return all the column values using the F4IF_INT_TABLE_VALUE_REQUEST?
    For example : if the row has 3 columns then after selecting the particular row, the RETURN_TAB internal table should contain all the three column values.
    Regards,
    Raghu

    Hi,
       Try the following...
    DATA : it_fields like help_value occurs 1 with header line.
    data: begin of w_vbap,
            vbeln      like vbap-vbeln,    
            posnr      like vbap-posnr,   
            werks      like vbap-werks,  
          end of w_vbap.
    data: i_vbap   like w_vbap   occurs 0 with header line,
             w_fields type help_value,
          i_dfies type table of dfies,
          i_return_tab type table of ddshretval with header line,
          i_field  type dfies.
      select vbeln posnr werks
          from vbap into table i_vbap up to 5 rows.
    if sy-subrc = 0.
       sort i_vbap by vbeln.
    endif.
      clear it_fields[] , it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'VBELN'.
      it_fields-selectflag = c_on.
      append it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'POSNR'.
      it_fields-selectflag = space.
      append it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'WERKS'.
      it_fields-selectflag = space.
      append it_fields.
      loop at it_fields into w_fields.
        i_field-tabname   = w_fields-tabname.
        i_field-fieldname = w_fields-fieldname.
        i_field-keyflag   = w_fields-selectflag.
        append i_field to i_dfies.
      endloop.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield               = 'VBELN'
         window_title           = 'Select'
        tables
          value_tab              = i_vbap
          field_tab                = i_dfies
          return_tab             = i_return_tab
       exceptions
         parameter_error        = 1
         no_values_found        = 2
         others                 = 3
      read table i_return_tab into w_return_tab index 1.
      if sy-subrc = 0.
      endif.
    Regards,
    Srini.

  • Why Would Crystal Change all "string" values to hexidecimal

    We are running Crystal Reports version 11 and using it to access a ISeries DB2 Database. We use the OLE DB (ADO) connedction to the ISeries. We have had several reports running for months, then last Friday when we ran one of the reports Crystal indicated "The database file XXXX has changed; Proceeding to fix up the Report".
    When we click OK the fix appears to take place BUT the report fails with a SQL0103 Numeric Contant error. The error is on a "Character" fields but the value has a 0x prefixed to the string. If I look at teh SQL, the SQL being run, it is bad, it has 0x prefixed to teh criteria used on the where and the value is being treated as numeric, it does not contain the single quotes.
    Also, after the so called "Database Changed; proceeding to fix", If I display the values in the database for any of the "String" defined fields....the display shows them in hexidecimal.
    The Tables Crystal thinks has changed HAVE NOT changed. There are no modifications to these tables so I'm not quite sure why Crystal thinks they have been changed.
    I'm not sure if I'm in the proper forum or not. I wanted to call Crystal support BUT it appears they have abonded talking to users, now we must go through forums.
    If any one can help on this mees, I'd appreciate it.
    Edited by: Blake Bray on Jul 28, 2008 8:40 PM

    Crystal reports tries to find any differences in the database structure, Crystal displays a message to the
    effect that u201CThe database file u2018tblxxxxu2019 has been changed. Proceeding to fix up the report!u201D.
    You will see this message once for each table that does not match Crystalu2019s internal map
    of that table. The OK button (your only option) in response to this available.
    If a Report includes subreports, then, when you do a verify the database operation (from the main report),
    Crystal checks the main report and all the subreports to see if any of the tables have changed. If it finds any
    tables that have changed, it displays the same u201Cu2026u2026Proceeding to fix up the report!u201D message and you must
    click OK on all those messages. Next, you must rerun the verify operation again, until you get the u201CThe
    database is up to dateu201D message, once for the main report and once for each subreport. (For example, if a
    report includes 3 subreports, you will get the u201CThe database is up to dateu201D message four times).
    if you do not have the data enclosed in single quotes once the sql statement is assembled, tries to make it into a number. look at your string value of your sql statement and check that you have everything in the correct ; I suspect you have a missing set of single quotes.
    Thanks,
    Parsa.

  • Select query failing to return all values

    So I've just completed my first batch insert into DocumentDB and ran into the following irregularity while verifying my documents were added correctly.  I am seeing this issue through the Portal Query Explorer and the Python SDK.
    I have found 4 id values that are in my collection, but won't get returned in a Select all type query.  
    Queries I've used to select just that item/document.  These work correctly and return my document.  Therefore, I assume the document is in the collection.
    SELECT * FROM Matches m WHERE m.id = "2997"
    SELECT VALUE m.id FROM Matches m WHERE m.id = "2997"
    However, when doing a broader SELECT query, some ids are not returned.
    SELECT * FROM Matches
    SELECT VALUE m.id FROM Matches m
    Neither of the above queries return the document with id "2997".  I've three other ids where this is the case.
    Am I missing something obvious here, or is there a bug?  I've added all ~991 documents into the collection using the same batch program.
    Edit:  Here's a test program I've drawn up to show this issue (you can take my word for it that the clients are initialised correctly):  https://gist.github.com/Fitzpasd/1dde776b00eacf68b361
    And this prints:
    1
    991
    False
    False
    False
    True

    I also have some issues with pages. When I execute a simple query like:
    SELECT x FROM Root x
    or 
    SELECT s FROM Root x JOIN s IN x.Children
    (The Children array contains more than 100 items)
    And I use the AsDocumentQuery() method in the c# API, iterating through the pages works fine (the continuation token is returned in the request)
    But when I execute the following query:
    SELECT s FROM Root x JOIN s IN x.Children WHERE x.id = "<guid>"
    the continuation token is not returned so I can't get to the next pages.
    Is this related to the same bug ?

  • Parameter not returning all values

    I have a crystal report built off an oracle DB.  For one parameter it is not returning all values.  I can display data or the entire table it shows me all values, but when i build a parameter it only shows me through August.  It is a date/time field.

    check the following thread
    [Dynamic Parameter only showing 1000 records when Crystal report is run.;
    regards,
    Raghavendra.G

  • Georaster return all values in array

    Hello,
    I want to return all values of the raster in a array, to display it in a web page.
    Is there a function which return that values in one query ?
    Thanks

    So far, there isn't a function which returns cell values in an array, but you can call SDO_GEOR.getRasterSubset(*)  to get raster data in a blob, and then using functions defined in the dbms_lob package to get raster data.

  • Accessing a return String value

    Hi there, I think this is simple question, but for a newbie - brain mashed!
    I'm trying to access a String value from a Class (Something) into another Class (SomethingElse); can someone direct me in the right direction?
    Class Something {
    public String stuff( Message msg ) {
    String sb = new String();
    ..some operation..
    return sb;
    Class Something {
    ..Need sb value!!
    Cheers for the advice!

    // ..Need sb value!! -- Here we go
    Message myMessage = new Message(); // Does the constructor take arguments? I don't know...
    String valueOfSb = mySomething.stuff(myMessage); // <--- You get sb here;) Patrick

  • [svn:osmf:] 15983: Updating VideoQoSPluginMetadataSynthesizer to create comma separated string values for all of the available keys .

    Revision: 15983
    Revision: 15983
    Author:   [email protected]
    Date:     2010-05-10 04:47:46 -0700 (Mon, 10 May 2010)
    Log Message:
    Updating VideoQoSPluginMetadataSynthesizer to create comma separated string values for all of the available keys.
    Modified Paths:
        osmf/trunk/apps/samples/plugins/VideoQoSPlugin/src/org/osmf/qos/VideoQoSPluginMetadataSyn thesizer.as

    Rob:
    "but the sad thing is, that managers will most likely respond with a "This used to be fast in MSSQL, but now it isn't any more in Oracle. Oracle is so slow ...""
    On the bright side, it sounds like most of the database calls are implemented as stored procedures, so there is an opportunity to do it right (in Oracle terms) in the stored procedures.
    I did a similar conversion a while back, converting bad SQLServer procedures to good Oracle procedures. Everyone said "Oracle is much faster that SQLServer"
    John

  • Returns all values if the user leaves the valuve empty ?

    is there a way to return all values if a user leaves lets say, the 'Project_no' valve empty..
    Below is the bit of SQL that I'm trying to get to work..
    and upper(coj.CUSTOMER_PO_NO) like upper(('%&Project_No%'))

    JamesW wrote:
    is there a way to return all values if a user leaves lets say, the 'Project_no' valve empty..
    Below is the bit of SQL that I'm trying to get to work..
    and upper(coj.CUSTOMER_PO_NO) like upper(('%&Project_No%'))And what's not working about it?
    SQL> ed
    Wrote file afiedt.buf
      1* select * from emp where job like '%&job%'
    SQL> /
    Enter value for job: CLERK
    old   1: select * from emp where job like '%&job%'
    new   1: select * from emp where job like '%CLERK%'
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    SQL> /
    Enter value for job:
    old   1: select * from emp where job like '%&job%'
    new   1: select * from emp where job like '%%'
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17-NOV-1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03-DEC-1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    14 rows selected.

  • Return all the values into cursor

    I want to return collection of varray using sys_refcursor. but it is returning only last record. I am wondering how I can return all the four records into result sys_refcursor.
    The following is not returning all the four records under SP.
    resultData OUT sys_refcursor
    for i in 1..4
    loop
    OPEN result FOR
    Select sdo_util.to_wkbgeometry
    (sdo_geometry(2002, 2958, Null,
    Mdsys.Sdo_Elem_Info_Array(1,2,1),
    arr_result123(i)
    )) as geometry
    FROM dual c;
    end loop;
    Thanks
    Al

    I have removed the for loop but no luck. I am posting my whole procedure.
    Can you please let me know what i am missing!..........urgent please.
    PROCEDURE SP_Lines
    mlatlon IN Varchar2,
    resultData OUT sys_refcursor
    ) As
    plat Varchar2(256);
    plon Varchar2(256);
    lPosition number;
    lcounter number;
    newlat number;
    newlon number;
    -- to draw lines
    geometry1 mdsys.sdo_geometry;
    geometry2 mdsys.sdo_geometry;
    begin
    Begin
    arr_result123 := arr_result(
    mdsys.sdo_ordinate_array(-79.7198833241796,43.7437243394591,-79.7170360355377,43.7503404513126),
    mdsys.sdo_ordinate_array(-79.618833241796,43.5437243394591,-79.7170360355377,43.7503404513126),
    mdsys.sdo_ordinate_array(-79.4198833241796,43.3437243394591,-79.7170360355377,43.7503404513126),
    mdsys.sdo_ordinate_array(-79.1198833241796,43.1437243394591,-79.7170360355377,43.7503404513126),
    mdsys.sdo_ordinate_array(-79.0198833241796,43.0437243394591,-79.7170360355377,43.7503404513126),
    mdsys.sdo_ordinate_array(-79.7198833241796,43.007243394591,-79.7170360355377,43.7503404513126),
    mdsys.sdo_ordinate_array(-79.7198833241796,43.7437243394591,-79.7170360355377,43.7503404513126),
    mdsys.sdo_ordinate_array(-79.7198833241796,43.7437243394591,-79.7170360355377,43.7503404513126) );
    lPosition := Instr(mlatlon, '_');
    plat := Substr(mlatlon, 1, lPosition-1);
    plon := Substr(mlatlon, lPosition+1, length(mlatlon) );
    lcounter :=1;
    --get 4 nearest points
    for rec in (
    Select sdo_cs.transform(c.geometry,4326) as geometry
    FROM Ac c
    where SDO_NN(c.GEOMETRY,
    (sdo_geometry(2001, 4326, sdo_point_type(plon, plat, null), null, null) )
    , 'sdo_batch_size =5')='TRUE'
    AND ROWNUM <= 4
    loop
    newlat := get_ordinate(rec.geometry, 2);
    newlon := get_ordinate(rec.geometry, 1);
    -- ~~ building geometries ~~
    geometry1 := sdo_geometry(2002, 4326, sdo_point_type(newlon, newlat, null), null, null);
    geometry2 := sdo_geometry(2002, 4326, sdo_point_type(plon, plat, null), null, null);
    arr_result123(lcounter) := GET_LINE_ORDINATE(geometry1, geometry2);
    lcounter:=lcounter+1;
    end loop;
    end if;
    lcounter:=1;
    OPEN resultData FOR
    Select sdo_util.to_wkbgeometry
    (sdo_geometry(2002, 2958, Null,
    Mdsys.Sdo_Elem_Info_Array(1,2,1),
    arr_result123(lcounter)
    )) as geometry
    FROM dual c, (select level lcounter from dual connect by level <=2);
    END;
    end SP_Lines;

  • GetInstancesByFilter returns no instance

    Hi,
    I've a random comportment with BusinessProcess.getInstancesByFilter. Some times, this methods returns no instance although there is instances corresponding to my filter.
    Here my code :
    Fuego.Papi.BusinessProcess bp;
    Fuego.Papi.InstanceFilter instF;
    Fuego.Instance[] instances;
    bp = BusinessProcess();
    try {
    for (int i=0;i<100;i++) {
         bp.connectTo(url : Fuego.Server.directoryURL, user : "admin", password : "password",process : "/Process1");
         // création du filtre
         instF = InstanceFilter();
         instF.create(processService : bp.processService);
         instF.addAttributeTo(variable : "prjDemande", comparator : Comparison.IS,
         value : (String)i);
         // récupération de l'instance
         instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS);
         instances = bp.getInstancesByFilter(filter : instF);
         if (instances.count() == 0) {
         logMessage("============> Pas d'instance trouvée pour "+i);
         // Récupération de l'instance
         foreach (instance in instances) {
         logMessage("=============> instance "+i+" trouvée : "+activite+" / "+demande);
         bp.disconnectFrom();
    finally {
    try{
    bp.disconnectFrom();
    The only solution, I've found is to loop on the getInstancesByFilter until it returns a result...
    Thanks you for you help
    Thierry

    Is it running on Enterprise. If it's Enterprise are you running on a J2EE container (WLS)? How do you have your Workspace configured (single, multiple)?

Maybe you are looking for