Reference a region of content in PL/SQL

I am part of an application and a final request was to send a part of complete information.  To not have to recreate the wheel, I started thinking to see if I could create a region formatted in the APEX and then referencing him just to include in the email.  So it is possible to reference the content HTML of a region similar to how a particular page ELEMENT is referenced (& ITEMNAME.) in PL/SQL?

2766104 wrote:

My first thoughts were simply take an existing non-interactive classic report and export it just as-is, really any method to make a table formatting in email would work.  Seems reasonable to just consider the ability to reference the existing (or similar) content region vs manually integrate the HTML tags in my query result.

You can use httpURIType in a process to make a web request using the URL for the print version of the report page (to include all rows in report without pagination and exclude unnecessary and interactive content), but returns the content of the page as an HTML document.

Is there other regions on the page you want is not in the email, then reuse the region report by moving it to a page overall (zero), under certain conditions including on the page of origin and a new page created using the page Printable Version model, then using the URL of the new, minimal page in the httpURIType call.

Tags: Database

Similar Questions

  • import of page loses references of region model and the page template

    I have a dev and test environment. The test workspace is an export of the workspace of dev. Both applications have the same id app.

    I export a dev page and import to test. This works.

    I run the test page and the page does not. When I had the look of admin test page model has been implemented by default and the 'report' two models of User Interface have been updated the model No. and the submission of the report was by default (standard) HTML, that is not what was in the app dev.

    I looked at the page in dev and the page model was a standard tabs, UI were region of report and the presentation of the report was 101. Standard, row of alternating colors.

    Does anyone have an experience with imports no implementation of pages they were exported?

    TIA,

    Sam

    Sam,

    The object associated with an application are created specifically for each application.

    Whenever you create a component that a unique ID is assigned for use as the primary key, although some components have composite primary keys - a page, for example, is identified solely by the application ID and the ID of the page.

    Then, unique IDS are not transferable through an import / export.

    Install an application and keep the ID of the original application won't change any internal ID in the installed application.

    If the ID name and app object were used to the "key" which would allow applications to be a little more portable/leachable (is that a Word).

    I don't see how it works, or how it would do something more flexible that it isn't already.

    The import of components and of the page, but when he tries to use the same ID internal to the models and other application classes opposed the ID internal are not the same as the IDS exported and therefore fail.

    Right. The ID of the shared components, such as templates, referenced by the page that you have installed are the IDS used in the application that you have exported the page of. Normally, you should install the page in an exact copy of this application, one with the same ID for components shared as the source application. But you've actually created two new applications in two different workspace by changing their application during the installation ID, which makes them 100% dissimilar for such purposes. (Regardless that they now have the same application ID, they cannot be correlated).

    Where can I find a list of the components that are unique to the current mix of work/App space IDS and those who are not independent.

    All components except the pages and applications, I think, get their identity papers adjusted when you change the application during the installation of the application ID.

    Now, what you could have done when you request 202 and want to make 150 has been to change the export file and changed several references to 202 to 150, remove app 202, and then use SQL * more to install the application using this file. There would have not been in the ID being adjusted.

    Scott

  • Can you have editable regions in content holders?

    Hello world

    I had a bit of difficulty getting my work, the editable regions that, through a process of trial and error, I have locked because they do not work if included in a model by the holder of a content.

    This isn't a major problem, but it does not mean I will need the same code in all of three of the four of my models. Initially I store this code in a content holder and pulling the support content in wherever she was needed in a model.

    Of course, I prefer to do the second way for efficiency, maintainability, etc., but I'm not really sure where to start to solve the problem. Does anyone have ideas on this? Is this something that certainly can not be done, or I just do right?

    I'd be interested to hear comments, thanks in advance.

    Hello Ricki,

    You can have editable in your door-content areas, even if the owner of your content is part of the model, it will be always editable through the "Edit" tab on your admin.

    "Don't forget to add some ice: editable = 'content' in your module_contentholder, after the name =" "parameter. This doc will help you, see the.

    The second important thing is to add a coma as he is mentioned in the doc, after the module_contentholder, otherwise that the content will not be rendered, it will just show you the syntax as specified in the model, and you don't want that.

    See you soon,.

    Cristian

  • Can a single reference an alias for column/expression in sql

    It's probably just an error of syntax on my part, but I'm not able to correctly reference the alias column or an expression in the sql statements. I hope that the example below will suffice as a demonstration?

    SELECT mytable.my_id, some1 "sometext", "othertext" other1, case when some1 = other1 then 'same' else 'not even' end aretheythesame
    FROM MyTable
    where my_id = 1234

    The error is "Other1": invalid identifier

    You can't do that, but you can

    select my_id, some1, other1,
            case when some1 = other1
                   then 'same'
                   else 'not same'
            end aretheythesame
     from (
    SELECT mytable.my_id, 'sometext' some1, 'othertext' other1,
      FROM mytable
      where my_id = 1234
    )
    
  • Validation of a region defined as a QUERY SQL type (updated report)

    Hello

    I am trying to perform validation on a region defined as type of QUERY SQL (editable report). The report has two columns.
    One of the columns is a Select list and I want to make sure that the user can select the same value twice
    in the report. For example, if the selection list has 5 values A, B, C, D, E, I don't want a user to be able to select
    B twice in the report. Will it use javascript to perform validation? If Yes, could someone provide some guidance on
    where to embed the javascript? Are there other alternatives than javascript? I create an element that came from a sql query
    counts the number of lines where the value of the column is the same. I then used the item in my validation logic. The problem with this logic
    is that a user can enter the same value and it is not until the 3rd attempt to select the same value that the validation works using the number of lines which is why I think that I need to somehow capture the value of the selection list when a user selects and then compare it to what is already in the database column Select.

    I hope that my question and explanations are clear.

    Thanks in advance for your help,

    Michael

    Hello

    This can be managed using javascript or a validation of the page. Here is an example of use of javascript: [http://htmldb.oracle.com/pls/otn/f?p=267:7]

    To do this, I have:

    1 - a model of button which does not send the page but just runs javascript. The model will depend on your theme, but should include:

    <a href="#BUTTON_ATTRIBUTES#">#LABEL#</a>
    

    If #BUTTON_ATTRIBUTES # appears on the template, delete it as we need it only once. You must create a new button model based on a copy of your existing across models, shared components. Normally, he would show href = "" #LINK # "-we do not want that this would become doSubmit('buttonname')." If your model does not use tags for buttons, you might need to create one from scratch.

    2 - I have updated the button on my page to use this template and then assign the setting button attributes:

    javascript:check();
    

    3. in the header of the HTML page, I added:

    <script type="text/javascript">
    function check()
    {
     var e = 0;
     var f = document.getElementsByName("f02");
     var k1;
     var k2;
     var v1;
     var v2;
     if (f)
     {
      for (k1 = 0; k1 < (f.length - 1); k1++)
      {
       v1 = f[k1].value;
       for (k2 = (k1 + 1); k2 < f.length; k2++)
       {
        v2 = f[k2].value;
        if (v1 == v2)
        {
         e = 1;
        }
       }
      }
     }
     if (e > 0)
     {
      alert("Duplicates found!");
     }
     else
     {
      doSubmit("SUBMIT");
     }
    }
    </script>
    

    In this example, SUBMIT is the name of the button and "f02" is the name attribute of the select list items that we want to check - change these needs by your page.

    Now, when the Submit button is clicked, instead of directly submit the page, the javascript function is called. This function loops through each selection list and gets its value. Then, he compared it to the remaining items. If there is a match, the e flag is set to 1. After all the items have been verified, if e is not 0, then a message appears. Otherwise, the page is sent.

    Andy

  • The content of the .sql file search

    HI -.

    Does anyone know how to search the contents of files stored on a Windows SQL? I have several saved SQL files and want to find those who have worked with a particular table.

    Thank you
    Christine

    I'm sure you can get a grep that works in the Windows command line.

    I just use the "Find in files" feature of TextPad, my favorite editor.

  • Reference Dell EQL PS4100xv problem with MS SQL replication

    Hello

    I have a Dell PowerEdge server R420 connected to an EQL. Is installed ESXi 5.1 U1 (free version). It is only a data store.

    VM is running Windows 2008 R2 STD with MS SQL 2008 R2 STD. The change in size of database per day is around 2 to 3 MB of base on my daily full backups via the MS SQL backup.

    However, when I throw a replication session between my EQL PROD and DR EQL which size of delta is ranging from 1 GB to 50 GB every time that I run a replication? Interval is about 5 to 10 minutes. I tried 20 minutes also the size to replicate is erratic.

    Why is so huge its more than 1000 MB per replication.

    Hope someone can help me with that.

    Thank you

    Paul

    Re: Storage Direct.  Yes, if you configure these volumes SQL replication, only the changed data will be included.  Only VM will see to all the files in the data store.   However, you still want to replicate your VMFS, but not as often as SQL datastore.

    Re: optimize.  Article I included has the registry setting you need.  This works for all storage formatted to NTFS.

    In addition, when you format the SQL data / log volumes, has the NTFS 64 K cluster size.   The default value is usually 4 or 8 K.  This will align all the writings and readings on the 64K of distribution of the EQL table size.   This improves performance of I/o.

  • Reference page for the content.

    Hello. I create a book that refers to images that are on a different page in the text: that is "the image on the page? Watch... »

    Can I put a page reference in the text who remembers on the image page?

    I tried to do it using referrals, but cannot work out how to anchor the image.

    You need to create a destination of the hyperlink, see here, so you must have a text box somewhere, not only an image.  Others may perform better wrapper but I would group a text box empty with the chart.  The reasoning behind the only be able to cross, reference to a text anchor point is something like an image in a page is not scheduled to move, unlike something iin a text box.

    Of course if you are linking to an anchor in any case object, it's easy, just cut the object, place the cursor in the text box where you are going and paste.

  • XML Parsong error processor external entity reference location chrome://messenger/content/messenger dial/messenger compose. XUL line 11 column 3

    Receive messages ok but by hitting 'write' button the message above is displayed. No joy with Google

    tried to restart with the modules disabled in the Help menu? It's probably the related module.

  • PL/SQL dynamic content

    Capture.jpg

    I use APEX 4.2.3 on Oracle 11 g R2.

    On my page, I have an IR base I have a column value up as a link to a URL that calls my function javascript in him passing a value of the report line.  Now, I want to display my modal window to display the data in the database for the value that was passed.  The pain I feel is the value of DOM in session state while my content area of pl/sql can be displayed.  The content of pl/sql is just a query that displays data in a tabular presentation specialist.  There are too many values to display in a report the reason for this type of area.  How can I get my DOM value in session state?  My javscript function is stuck.

    Thanks in advance.

    scottm wrote:

    Once again, my IR, a user clicks on the link and the modal display detailed information about the line that has been selected.  I can't really give a lot more other that my query will return just one row of data that will contain 34 columns.  If I set it up as a classic report, it works perfectly, but my users want not displayed like this because they will have to scroll to see all the content.  So my specialized table is really a series of tables stacked with 4 columns each.  I keep thinking of a way to make a report model to view it as I want to, but do not find a way to do it again.  I tried the model "attribute value pairs", but it did not fit on the page completely.  The image below is what I'm shooting.

    This layout of the table can be created in a custom report named column model, convert query result of single line into several lines of an HTML table. Something like this:

    Front of the lines


    Model of line 1

      
    ...

    and so on

    After the lines

    Plant NamePlant TypePlant OwnerYear Built
    #PLANT_NAME##PLANT_TYPE##PLANT_OWNER##YEAR_BUILT#
    Vessel LengthDisposal TypeEmpty DisplacementOcean Certified
    #VESSEL_LENGTH##DISPOSAL_TYPE##EMPTY_DISPLACEMENT##OCEAN_CERTFIED#

    However, in my opinion, this is limit his use of a table, and I agree with you that the attribute/value pairs (i.e. a list of description) is the correct HTML representation for this data. Assuming suitable browser support, the report can use the model of attribute/value pairs, and then enroll in the space required by displaying it on several columns using a CSS3 multi-column layout.

  • the SQL for apex 4.2 with 'apex_item.text' region report renders incorrectly

    In the APEX 4.2 page, I created region "report data.

    Type = "SQl query".

    'User interface'-> 'Template '=' area of reports.

    "Area Source 'is' select apex_item.text (1, '111') as double c1".
    The select query is actually much more complex, but generally simplified it is such, that it uses the function "select apex_item.text" construction HTML textfield.

    If I run in query Sql Developer
    select apex_item.text(1, '111') as c1 from dual;
    Then it results in:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />
    But in APEX 4.2 the report is rendered thus:
    <td  headers="c1">&lt ;input type=&quot ;text&quot ; name=&quot;f01&quot; size=&quot;20&quot; maxlength=&quot;2000&quot; value=&quot;111&quot;  /&gt ;</td>
    ("for this forum poster correctly I had to put extra spaces between ' ' & gt ' and ';' and so on)

    And APEX 4.2 shows ugly html inside the cell of report/slot for me, showing characters/symbols ">". The reason is that APEX source HTML of the page has no symbol ">" but has "' & gt; '."

    The APEX 3 I have a similar query works fine, without such an anomaly.

    What attribute should I change in APEX 4.2 region to display the result of my query as needed?

    I need this 'apex_item.text' function, I can't remove it.

    Published by: CharlesRoos on 13.02.2013 15:28

    Published by: CharlesRoos on 13.02.2013 15:29

    Published by: CharlesRoos on 13.02.2013 15:29

    CharlesRoos wrote:
    In the APEX 4.2 page, I created region "report data.

    Type = "SQl query".

    ' UI '-->' model '=' area of reports.

    "Area Source 'is' select apex_item.text (1, '111') as double c1".
    The select query is actually much more complex, but generally simplified it is such, that it uses the function "select apex_item.text" construction HTML textfield.

    If I run in query Sql Developer

    select apex_item.text(1, '111') as c1 from dual;
    

    Then it results in:

    
    

    But in APEX 4.2 the report is rendered thus:

    < ;input type=" ;text" ; name="f01" size="20" maxlength="2000" value="111"  /> ;
    

    ("for this forum poster correctly I had to put extra spaces between ' & gt' and ';' and so on)

    And APEX 4.2 shows ugly html inside the cell of report/slot for me, showing characters/symbols ">". The reason is that APEX source HTML of the page has no symbol ' > ' but '& gt;'.

    The APEX 3 I have a similar query works fine, without such an anomaly.

    What attribute should I change in APEX 4.2 region to display the result of my query as needed?

    Make sure the column attribute display as for column C1 is Standard report column.

  • Windows system environment variables in "Sql * more»

    Can I use/reference of Windows system environment variables in "Sql * more?
    For example, I want to create sql-script runs in the database server computer that variable is "ORA_HOME", uses this value to perform a few sentences of sql/plsql.

    Oracle 10g personal, Windows 7.

    Edited by: CharlesRoos the 12.11.2010 17:28

    CharlesRoos wrote:
    The business problem:
    I created 2 databases in my computer. The two databases needs storage created by a script. The names of data files (.dbf files) of storage are the same for the two database. The two database has its own directory, where it holds data for the moment files. At the moment the data files for Database1 are in the folder something like '% ORACLE_HOME%"\oradata\%databasename1%\*.dbf and the second base of data has its data files in the other folder, somewhere '' % ORACLE_HOME%"\oradata\%databasename1%\*.dbf'. Now I want the script to create the tablespace called "INDX" with the same data file name "indx1.dbf" in the two database. If in the two documents mentioned the 'indx1.dbf' file must be created by the script. I think the script must do following:

    1. get ORACLE_HOME.
    2. connect to database "databasename1"
    3. EXECUTE IMMEDIATE "Create TableSpace INDX....file=%ORACLE_HOME% || databasename1 || indx1.dbf"
    4. connect to database "databasename2"
    5. EXECUTE IMMEDIATE "Create TableSpace INDX....file=%ORACLE_HOME% || databasename2 || indx1.dbf"
    

    I don't have database Oracle close more, if the code was pseudo-code.

    ---

    I do not understand how to use?-shortcut.

    OK, my first impression is ' why must even be scripted? Creation of new spaces of storage is usually a one-off operation.

    But what side this substitution of sqlplus command line variables. This example is Linux, but works on Windows with the change in the way environment variables are referenced:

    * echo nix - $myvariable
    Windows - echo myvariable %

    First of all, sqlscript to create the TS. Note the use of the substitution variable '& 1 '.
    {code}
    [oracle@vmlnx01 ~] $ cat makets.sql cat
    set echo on the comments on check on trimsp on
    Guest & 1
    --
    CREATE TABLESPACE EDSTEST PETIT_FICHIER
    DATAFILE ' / ora01/oradata/&1/edstest.dbf'
    SIZE 5 M
    REUSE
    AUTOEXTEND ON
    NEXT 1280K
    MAXSIZE 32767M
    LOGGING
    LOCAL MANAGEMENT MEASURE
    SEGMENT SPACE MANAGEMENT AUTO
    ;
    --
    Drop tablespace edstest
    including content and data files
    ;
    output
    {code}

    Thus, the OS invites: note that the @ is separated by a space, which makes a parm from command line instead of the part of the connection string

    {code}
    [oracle@vmlnx01 ~] $ export myparm = vlnxora1
    [oracle@vmlnx01 ~] $ sqlplus system/pswd @makets $myparm

    SQL * more: Release 10.2.0.4.0 - Production on Fri Nov 12 18:13:05 2010

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > prompt & 1
    vlnxora1
    SQL >--
    SQL > CREATE TABLESPACE EDSTEST PETIT_FICHIER
    2 DATAFILE ' / ora01/oradata/&1/edstest.dbf'
    3 SIZE 5 M
    4 REUSE
    5 AUTOEXTEND ON
    6. THE NEXT 1280K
    7 MAXSIZE 32767M
    8 LOGGING
    MEASURE 9 LOCAL MANAGEMENT
    10 SEGMENT SPACE MANAGEMENT AUTO
    11;
    2 old: DATAFILE ' / ora01/oradata/&1/edstest.dbf'
    2 new: DATAFILE ' / ora01/oradata/vlnxora1/edstest.dbf'

    Created tablespace.

    SQL >--
    SQL > drop tablespace edstest
    2 content and data files including
    3;

    Tablespace has fallen.

    SQL > exit
    Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.4.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@vmlnx01 ~] $
    {code}

  • WHAT APPLICATIONS CAN BE DEVELOPED FROM SQL SERVER 2012

    I need to know what applications can be developed using SQL SERVER 2012.

    Hi, Chris,.

    This is an overview of SQL Server 2012

    http://www.Microsoft.com/sqlserver/en/us/product-info/overview-capabilities.aspx

    SQL Server 2012 application development

    http://social.technet.Microsoft.com/wiki/contents/articles/6982.SQL-Server-2012-Developer-Training-Kit-BOM-en-us.aspx#Module_5_SQL_Server_2012_Application_Development

    Post your query on TechNet Forum to get help

    http://TechNet.Microsoft.com/en-us/SQLServer/ff898410.aspx

  • Try to find the SQL forum or as it is called now? space/sous-sous-espace-time

    I'm going to...

    All places > Database > Database application development > SQL

    Then, I select "Content" and I find myself in...

    All places > Database > Database application development > PL/SQL

    I had originally forum SQL bookmark months ago unfortunately the site has obviously moved.

    A forum existed called SQL & PL/SQL. What happened to that?

    It works as it should, but I agree, it can seem confusing.

    Yes, it is used to be a space combined SQL and PL/SQL.

    The admin them have divided into two separate spaces "SQL" and "PL/SQL" as you saw, but because there is such common point between actually (and all the historical thread content), the actual questions and the discussions are on shared threads forum, therefore, the wires that you see in the SQL space are the same as those indicated in the PL/SQL space , and when you go to content or ask a question, it will appear in the same list.  That's why when you click on the 'content' of the SQL space, need you for PL/SQL space, because it is one of the two 'primary' (just how it happened - we will not worry).

    There are a few hiccups at the minute that admin you want to solve if possible, such as if you try and start a discussion of the "Presentation" of SQL space part, it does not appear in the list of PL/SQL threads, but ends up on a list of SQL threads that you can't.  They try to fill this gap, so if make sure you that you go to the page "Contained" to launch your issue/debate that will be the best.

    The reason for the two spaces, is that there are two distinct persons, appropriate fields; Steven Feuerstein is 'owner' of the space of PL/SQL, because it is a well known PL/SQL evangelist, and Chris Saxon is 'owner' of the SQL space (although we don't know much about him yet).  I think the idea is that each may have social RSS or other that are specific to each area/space, if any, but the discussions and questions are often so closely related that they are best kept together (many people ask "How can I do this in PL/SQL" when in fact we can do better in SQL).

  • Cannot see the table in the p/sql procedure but can in normal sql

    Hello

    using 11.2.0.3

    that sql format

    Select schema_owner. < table > - it works in good sql and pl/sql get message table or view does not exist.

    Other fine tables.

    Y at - it a permission to have reference to the table in the pl/sql procedure rather than sql?

    Thank you

    Hello

    I'm glad you solved the problem!

    Don't forget to mark it as "answered".  It will help others with a similar problem, and it will save time for people answering questions on this forum.

Maybe you are looking for

  • Satellite L40 crashes when you use the product recovery disc

    When you use the product recovery disc to repair my laptop it hang after language page display. Select meaning when it displays the language, I select language and press next, no action more far there... I can move one pointer. Some may help how to s

  • Broadcast the SSID off

    Safety precaution I have disabled SSID. all of my users that is connected, lose their wifi. Because their device is configured to automatically search for the 1900ac router and connect, and why can't they sign?

  • Cannot install recorder sony notebook drivers

    I have a Sony ICP-P320 digital voice recorder. I downloaded and uninstalled the program from the Sony Web site 10 times. It does not load the drivers. I followed all the links from windows to try to solve this problem. Any ideas?

  • Installation of Windows 7 in a Partition

    So I have a 500 GB HARD drive. I have a backup 210 GB partition I want to keep after the installation of Windows 7. Will it get deleted when I install windows 7?

  • Separate Photsmart print head?

    Should I understand that the new HP Photosmart printers have separate printhead contained in the ink cartridges?  I read some comments that there is a print head problems. I am not mistaken the old cartridges (96,97) had the printhead on the cartridg