Search region source code

Hi,
Is there any way to do a text search on all the SQL statements used for region sources ? I want to know all the regions where a database link was used in the SQL code.
Thanks
Matthias

Check out our APEX Views (under Utilities). You can use them to write your own sql to query all apps in your workspace and they are pretty well documented.
-- Sharon

Similar Messages

  • ORA-06502 when searching region source

    The following is listed as a limitation of Apex 3.1, for both interactive reports and the application builder, although the specific context is not mentioned.
    The row length limit is 32k (just as with Classic Reports). You can include more columns but if too many are selected to be displayed, the user will get the following error - "ORA-06502: PL/SQL: numeric or value error: character string buffer too small". This should be considered when creating your report.You can find that here: http://www.oracle.com/technology/products/database/application_express/html/3.1_known_issues.html
    I'm getting this very error when trying to search region source for one of my application items. Presumably the region source is larger than the 32k limit where my particular page item is being used?
    Can anyone from Oracle verify that this is still a problem in Apex 3.2.0.00.27?
    Earl

    >
    The following is listed as a limitation of Apex 3.1, for both interactive reports and the application builder, although the specific context is not mentioned.
    The row length limit is 32k (just as with Classic Reports). You can include more columns but if too many are selected to be displayed, the user will get the following error - "ORA-06502: PL/SQL: numeric or value error: character string buffer too small". This should be considered when creating your report.
    You can find that here: http://www.oracle.com/technology/products/database/application_express/html/3.1_known_issues.html
    I'm getting this very error when trying to search region source for one of my application items. Presumably the region source is larger than the 32k limit where my particular page item is being used?
    Can anyone from Oracle verify that this is still a problem in Apex 3.2.0.00.27?
    EarlAnyone have any ideas about the above? I'm getting this error when searching region source code, here:
    Home>Application Builder>Application nnn>Application Reports>Page Components>Search Region Source
    Any help would be appreciated. Thanks.
    Earl

  • Search Directories source code

    I am currently developing a tool that is a search directory optimizer. I was wondering where the search directories source code is located? I want to make my front panel look like the current search directory window, but then im adding the optimizer functions to the bottom. Thanks!
    Solved!
    Go to Solution.

    Hi alright meow,
    I believe the source for this panel is part of one of the DLL calls made by Teststand directly rather than in a sequence file located in the Teststand directory.  Therefore it will not be publicly available.
    Justin D
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

  • Search Region Source doesn't work for some searches

    I am updating a table, and I wanted to search our Apex app to see what reports are using the table. I typed in the table name and no results came back.
    I knew of one report that definitely uses that table, so I went to it, copied the table name from the query source, and tried the search again - Still no results.
    I tried a different table name, and got a whole bunch of hits.
    The table name that doesn't work is floor_suite_billing
    I even tried partials of that name, but I do not get the report that uses that table.
    Is there something I am missing?
    TIA
    John

    So, I created a test report using "select * from floor_suite_billing" and did a search. This new report came up in the results but the other one didn't.
    Then I tried searching for other keywords from the query but that report still does not show up..
    does anyone have a reliable way of searching Apex?
    Thanks!
    John

  • Get SQL Query from the Region Source

    Hi,
    The below query gives me the region source code,
    SELECT region_source into p_sql_stmt
    FROM apex_application_page_regions
    WHERE region_id = 01129836282 AND
    page_id = 54 AND
    application_id = 215;
    Initially I use to have only the SQL region source code as mentioned below , So using the above query i use to pass the sql code to p_sql_stmt
    SELECT PROJECT_ID,EMPLOYEE_ID,EFFECTIVE_DATE FROM AR_V_ADDRESS_HISTORY WHERE PROJECT_ID = :P51_PROJECT_ID
    Now the changes what i did in the page region source is i am using a PLSQL return query which is mentioned below
    declare
    qry varchar2(32000);
    begin
    qry := ' SELECT PROJECT_ID,EMPLOYEE_ID,EFFECTIVE_DATE';
    for c1 in ( SELECT * FROM AR_ADDRESS_TYPE)
    loop
    qry := qry ||
    ' , GET_ADDRESS_LINE_1(PROJECT_ID,EMPLOYEE_ID,' || c1.address_type_id || ' ,TO_DATE(EFFECTIVE_DATE)) "' || c1.name ||'_ADDRESS_TYPE_1"';
    qry := qry ||
    ' , GET_ADDRESS_LINE_1(PROJECT_ID,EMPLOYEE_ID,' || c1.address_type_id || ' ,TO_DATE(EFFECTIVE_DATE)) "' || c1.name ||'_ADDRESS_TYPE_2"';
    end loop;
    qry := qry || ' FROM AR_V_ADDRESS_HISTORY
    WHERE
    PROJECT_ID = :P51_PROJECT_ID ';
    return(qry);
    end;
    If i execute the above code in the with dbms_output.put_line in the SQL developer or TOAD it prints the sql query which i wanted, Since i am using this in a apex page i need to get the SQL code from the apex page.
    Can any one please suggest me how to get this sql code using the above plsql code.
    Please suggest me in this issue
    Thanks
    Sudhir

    One way to get the sql statement is
    Create a global variable in the package spec where your function returns sql statement and assign the final sql statement to the package spec variable before the return.
    Write a wrapper function to return the stored sql statement value.
    Example code below:
    create or replace package xx_test_pkg as
    g_sql_stmt CLOB;
    function get_sql() return clob;
    function get_stored_val() return clob;
    end;
    create or replace body package xx_test_pkg as
    function get_sql return clob ..
    v_sqlstmt clob;
    begin
    v_sqlstmt := 'select * from emp';
    -- assign to global variable before returning the value
    g_sql_stmt := v_sqlstmt;
    return v_sqlstmt;
    end;
    function get_stored_val() ....
    begin
    return g_sql_stmnt;
    end;
    end;

  • Tracking Down GUI Hooks In Source Code

    I'm working on a new project (undocumented code) and have to track down where certain runtime parameters are being changed. The GUI provides a way for the user to set the parameters. I have to track down the GUI code for the popup box where the parameters are set, and then track down what that GUI code is doing.
    I was hoping for general advice on this kind of sleuthing. For example, would I want to start with a global search of the source code for the title of the popup box?? Any other advice?
    Thanks in advance,
    John

    The java reflection model would provide some form of
    inspection facility, but you would not be able to
    affect the object states, only view them. Secondly,
    you would require that the source provides this
    access...
    rusty,
    I was actually just looking for tips for searching the source code itself.... I figured that I want can be done using that method, assuming you know what to look for....
    I was hoping for tips about what to look for.
    thanks,
    john

  • Extra blank lines in source code

    I have built a website in Dreamweaver CS4 and have a client editing pages in Contribute CS5. Both of us are working on Windows 7, and the site is hosted on Linux. When she makes edits to the page, something is introducing a GAZILLION blank lines in the source code. A typical page for this site is about 380 lines of code. The problem page is now more than 310,000 lines code with 100-200 blank lines between every "real" line of code. What the...?!
    I need to know how to stop this and how to remove the blank lines from the source code using Dreamweaver.
    The page in question lives here: http://www.alexandercitychamber.com/member-category.html
    HELP!!!
    Jeff

    Hello, Diane -
    We've got two separate issues here, but I think we have the solution to both.
    1. How to stop Contribute from adding blank lines in the code, and
    2. How to clean up a GAZILLION lines of blank code in a document.
    First, Number 1. I assume you're working in Dreamweaver. If not, I'm not sure how to guide you. But, when you define a Contribute Site, there is an area to specify administrative roles and permissions. Under each Role, at the bottom, you will see a popup for what kind of server the site is hosted on. The default is Windows. I had to change this to Unix (Linux) to match the hosting of our problem site. Find out what platform your host is using. You will have to specify this under each admistrative Role. After doing this, I had the client make some edits, then I opened the files in Dreamweaver. No new blank lines. I admit, I still have my fingers crossed somewhat.
    Okay, now how to clean up your source code and remove blank lines. A developer friend found this on some forum I had not seen. I don't know where, but I am grateful to the person who wrote it. It didn't get all the blank lines in my files, but I think some of the others, which I removed manually, were probably from the client pasting content in from Word. Here's what to do:
    1. Open the file in Dreamweaver
    2. Click CTRL + F, or go to EDIT > FIND AND REPLACE
    3. Select "Current document" in "Find In" (You can also select the folder if you have multiple files.
    4. Search in "Source Code"
    5. Check the box labeled "Use regular expression"
    6. Type "[\r\n]{2,}" (without quotes) in "Find"
    7. Type "\n" (without quotes) in "Replace"
    8. Press "Replace All"
    The operation chugged for a few minutes with my 301,000-line document. Yours may a take a little longer, but it did work. Good luck!
    Jeff
    [email protected]

  • Extra indent in source code created in dreamweaver

    When I open a html file created in dreamweaver with a browser
    and view source code from the browser, there are extra indents
    added to the source code.
    For example, if I write a line of code in dreamweaver
    [tab]<p>one indent</p>
    it becomes
    [tab][tab]<p>one indent</p> in a browser
    Is there a setting in dreamweaver to make this from
    happening?

    Hello, Diane -
    We've got two separate issues here, but I think we have the solution to both.
    1. How to stop Contribute from adding blank lines in the code, and
    2. How to clean up a GAZILLION lines of blank code in a document.
    First, Number 1. I assume you're working in Dreamweaver. If not, I'm not sure how to guide you. But, when you define a Contribute Site, there is an area to specify administrative roles and permissions. Under each Role, at the bottom, you will see a popup for what kind of server the site is hosted on. The default is Windows. I had to change this to Unix (Linux) to match the hosting of our problem site. Find out what platform your host is using. You will have to specify this under each admistrative Role. After doing this, I had the client make some edits, then I opened the files in Dreamweaver. No new blank lines. I admit, I still have my fingers crossed somewhat.
    Okay, now how to clean up your source code and remove blank lines. A developer friend found this on some forum I had not seen. I don't know where, but I am grateful to the person who wrote it. It didn't get all the blank lines in my files, but I think some of the others, which I removed manually, were probably from the client pasting content in from Word. Here's what to do:
    1. Open the file in Dreamweaver
    2. Click CTRL + F, or go to EDIT > FIND AND REPLACE
    3. Select "Current document" in "Find In" (You can also select the folder if you have multiple files.
    4. Search in "Source Code"
    5. Check the box labeled "Use regular expression"
    6. Type "[\r\n]{2,}" (without quotes) in "Find"
    7. Type "\n" (without quotes) in "Replace"
    8. Press "Replace All"
    The operation chugged for a few minutes with my 301,000-line document. Yours may a take a little longer, but it did work. Good luck!
    Jeff
    [email protected]

  • How to get source code for commands like diff or cat

    Hi all
    I'm learning c programming and i'd like to read some code for the basic commands on the linux system
    I remember apt has one such option that allows getting pakcage source code
    is there a similar one for pacman ?
    or do i have to search those source code myself ?
    and also in BSD system all the codes are availeble in a code repository
    thx

    diff and cat. Or was that too literal?
    Last edited by Ghost1227 (2009-04-18 23:57:55)

  • PL/SQL Region Source

    Hello,
    I'm trying to link my region source code to a select list button. I've created this PL|SQL anonymous block :
    DECLARE
    query varchar2(32767);     -- query
    where varchar2(4000);      -- where clause
    boolean varchar2(1) := 'N';      -- identifies if where clause exists
    BEGIN
    query := ' SELECT "ID", '||
         '      "PROVINCE", '||
         '      "SOIL_CODE", '||
         '      "MODIFIER", '||
         '      "LU", '||
         '      "LAYER_NO", '||
         '     "UDEPTH", '||
         ' "LDEPTH", '||
         '     "HZN_LIT", '||
         '     "HZN_MAS", '||
         '     "HZN_SUF", '||
         '     "HZN_MOD", '||
         '     "COFRAG", '||
         '     "DOMSAND", '||
         '     "VFSAND", '||
         '     "TSAND", '||
         '     "TSILT", '||
         '     "TCLAY", '||
         '     "ORGCARB", '||
         '     "PHCA", '||
         '     "PH2", '||
         '     "BASE", '||
         '     "CEC", '||
         '     "KSAT", '||
         '     "KP0", '||
         '     "KP10", '||
         '     "KP33", '||
         '     "KP1500", '||
         '     "BD", '||
         '     "EC", '||
         '     "CACO3", '||
         '     "VONPOST", '||
         '     "WOOD", '||
         '     "SOILTYPE"'||
         ' FROM "#OWNER#"."SLF_CANADA" ';
    IF :P6_LANDUSE_QUERY = '1'
         THEN
         where := 'LU = "A"';
         boolean := 'Y';
    END IF;
    IF :P6_LANDUSE_QUERY = '2'
         THEN
         where := 'LU = "N"';
         boolean := 'Y';
    END IF;
    IF boolean = 'Y'
         THEN
         query := query || ' WHERE '|| where;
    END IF;
    RETURN query;
    END;
    The region type is set to SQL Query (PL|SQL function returning query). Then I run the application I receive this error:
    ORA-06550: line 4, column 1: PLS-00103: Encountered the symbol "WHERE" when expecting one of the following: begin function package pragma procedure subtype type use form current cursor ORA-06550: line 5, column 1: PLS-00103: Encountered the symbol "BOOLEAN" ORA-06550: line 47, column 2: PLS-00103: Encountered the symbol "WHERE" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return
    I've tried many other approaches but I'm at my wits end. Any suggestions?
    Thanks in advance,
    Patrick
    Message was edited by:
    Patrick_Rollin

    Patrick - I'd avoid using reserved words like BOOLEAN and WHERE as variable names.
    Scott

  • How to search a term in the source code

    Hello ,
       How to search a term in the source code. I have selection screen , on which a program name will be given and term to search. How can I proceed to know whether this term is available in the source code of the program
    Thanks and regards,
    Satya

    Hi naga,
    1. one option is to retrive the source code of the requried program,
       into internal table using the syntax READ REPORT (just see f1 help on it)
    READ REPORT prog INTO itab [MAXIMUM WIDTH INTO wid].
    2. Then we can loop / search the internal table for the required term.
    regards,
    amit m.

  • 2.1 RC1 - Search Source Code results - Go To package name doesn't work

    Hi.
    When I perform a search through Reports -> Data Dictionary -> PLSQL -> Search Source Code and I right-click -> Go To ... on a row of the results, nothing happens.
    Regards.
    Alessandro
    Edited by: archimede on Dec 2, 2009 12:29 PM

    Sorry Vadim, but the procedure to reproduce the bug is different:
    1) Open the Reports tab
    2) Expand Data Dictionary node
    3) Expand PLSQL node
    4) Click on Search Source Code
    5) Select a Connection
    6) Click on Text Search, enter a string to search and click Apply
    7) On the results page, right-click any line and select Go To <package name>
    8) The package opens on line 1, not the line shown on step 7
    While we're at it, do you think it would be possible to make the above process more user-friendly? Like, for example, right-clicking on a Connection and have the Search Source Code option there (that would take me directly to step 6)?
    Regards.
    Alessandro

  • How to search for a string in ALL Function Modules source code

    Hello,
    I want to search for the string "HELLO" in all FUNCTION MODULES source code(FM, no reports/programs).
    Is this possible? How?
    Cheers,
    Andy

    hi,
    Execute RPR_ABAP_SOURCE_SCAN to search for a string in the code ... Press where-used-list button on the program which takes to the function group or the function module where it is used ..
    Regards,
    Santosh

  • 30EA2 - Search Source Code results - Go To package name problem

    As mentioned here 2.1 RC1 - Search Source Code results -> Go To <package name> doesn't work , Reports -> Data Dictionary -> PLSQL -> Search Source Code -> right-click -> Go To doesn't go to the specific line: can this be fixed?
    Alessandro

    Sorry Vadim, but the procedure to reproduce the bug is different:
    1) Open the Reports tab
    2) Expand Data Dictionary node
    3) Expand PLSQL node
    4) Click on Search Source Code
    5) Select a Connection
    6) Click on Text Search, enter a string to search and click Apply
    7) On the results page, right-click any line and select Go To <package name>
    8) The package opens on line 1, not the line shown on step 7
    While we're at it, do you think it would be possible to make the above process more user-friendly? Like, for example, right-clicking on a Connection and have the Search Source Code option there (that would take me directly to step 6)?
    Regards.
    Alessandro

  • Source code for SAP's search components

    Hello all!
    Does anyone know where I could find the source code to SAP's provided TREX search components?  I would like to copy and modify one slightly, and would prefer to use their code instead of developing it from scratch if I can help it.
    Thanks in advance for the help!
    Best regards,
    Fallon

    Hi,
    Which one do you need?
    The class names you can find under
    System Administration -> System Configuration -> Knowledge Management -> Content Management -> User Interface -> Mapping -> (advanced) -> Search Dialog Box Component.
    Most of them are in km.appl.ui.search_api.jar
    Best regards,
    Avishai Zamir

Maybe you are looking for

  • PI 7.11 - LookupException

    Hi, I'm using a RFC Lookup in a Java Mapping. In PI 7.0 it was working fine. Now we use the Mapping in our PI 7.11 Testsystem and I get following LookupException: The channel with object ID bde7c594d5023c38913437978a558708 could not be found in the I

  • Formatting  XML file to avoid mapping parser error

    Hi, We have requirement in our project to process input xml file which is of the below format: <message> <data> <xml version=1.0 code=utf/> <test> <data>book</data> </test> </data></message> Since <xml>  tag is at the middle it is throwing a exceptio

  • Adobe Acrobat 10 inactive in Outlook 2013. Activating it in the COM add-in does not work.

    How do I get a link to adobe on the ribbon and activate Acrobat PDF maker in the COM add-in?

  • Tomcat writing files - access denied

    I've problem with my simple jsp. I just want to create file on server in custom directory. At my tomcat at localhost it works fine, but at my server doesn't - permisson denied. I've googled a bit and found the problem is (probably) fact, that tomcat

  • About post install scripts...

    hi, i wonder if there is a solution for the post-install script problem to prevent some commands like "rm -rf /" to be executed. I know that Gentoo hasn't got this problem because ebuild scripts use a particular language that doesn't implement a such