2 report regions in one html region

Hi All,
I am trying to group 2 report regions together. Is there any way to include these 2 report regions in another html regions. Please help.
Thanks,
TJ

There is a blog posting
http://deneskubicek.blogspot.com/2007/06/multiple-reports-in-one-region.html
This link is also included in the page and describes what needs to be done.
See the login page of my demo application. There, you can see how to apply for a workspace login if more details needed.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
-------------------------------------------------------------------

Similar Messages

  • Best way to turn a looped region into one regular region.

    Hello,
    This is going to be a very easy question for someone to answer.
    When I record a small part (say just a 2 bar lick) I then pull the end corner to loop it.
    FANTASTIC.
    But I would rather view it on the main window as one solid region, rather than seeing the little ''bite marks'' that make it look like an accordion, or a bunch of regions pushed together. To me, that looks messy.
    I have yet to find a way to quickly turn it into one region. Would the best way really be to bounce in place, because merging or joining does not seem to work for loops.
    Again, I'm sure it is something I'm missing here that it quite simple.
    I'm still trying to get my logic legs and put my PT ones on hold for the time being.
    Cheers.

    Bounce in place.

  • Urgent:how to add two table regions to one query region

    hello
    In my page a serach region is there and for that region i need to add two tables and two are based on two different view objects.how can i implemnet this thing please let me know.
    advance thanks

    Hi Wei Fang,
    You can try by creating a 2 line template (1 Template, 2 linetype) under a loop note.
    So your smartform tree structure will be shown like this:
    LOOP
        TEMPLATE1.
    On the LOOP part, pass the internal table of your data to the working areas.
    On the template put all the data of the summary on your first linetype, and put
    the detail data on your second linetype.
    Good luck and hopefully this will solve the problem
    Edited by: Prawira Fadjar on Oct 22, 2008 10:04 AM

  • Embed PDF file in HTML region

    Hi There
    I have a simple report - with a link to view an underlying document. The document will be displayed on a seperate page with one HTML region. Say the file to display is statement.pdf and it is has already been uploaded to apex images. There is a hidden field P3_FILENAME on the display page. This gets set from the report. On the HTML region:
    <div style="">
    <embed height="600" width="1200" name="Statement" src="#WORKSPACE_IMAGES#&P3_FILENAME." type="application/pdf" />
    </div>but it does not work. However, if I simply do this and 'run' the page - it displays fine.
    <div style="">
    <embed height="600" width="1200" name="Statement" src="#WORKSPACE_IMAGES#statement.pdf" type="application/pdf" />
    </div>Looking at the source of the resultant failing page I can see that the values were correctly set.
    Any ideas?
    thanks
    P

    I think the HTML is looking for the explicit &P3_FILENAME. and can't find it because it is being referenced through the HTML rendering engine rather than the PL/SQL engine which would handle the variable substitution.
    Try creating a PL/SQL region where you write out the div tags as strings using DBMS_OUTPUT.PUT_LINE. I use this to create some rather complicated reports and it works great for letting me do variable substitution amongst my HTML. Here's a simple example (mine's a procedure I call to feed in page variables):
    create or replace PROCEDURE PROC_DASH_SAFETY(x_org NUMBER, x_dt DATE)
    AS
      v_dt_disp        VARCHAR2(15);
      v_dt             DATE           := x_dt;
      v_org_id         NUMBER         := x_org;
      v_fact_id        NUMBER;
      v_org_nm         VARCHAR2(47);
      v_org_tz         VARCHAR2(4);
      ontime           VARCHAR2(47);
      v_saf_ct         PLS_INTEGER    := 0;
      v_eff_ct         PLS_INTEGER    := 0;
      saf_aud_t        NUMBER;
      saf_aud_a        NUMBER;
      eqp_aud_t        NUMBER;
      eqp_aud_a        NUMBER;
      saf_chk_t        NUMBER;
      saf_chk_a        NUMBER;
      saf_loss         NUMBER;
      eff_mpg_t        NUMBER;
      eff_mpg_a        NUMBER;
      eff_idl_t        NUMBER;
      eff_idl_a        NUMBER;
      eff_brk_t        NUMBER;
      eff_brk_a        NUMBER;
      pm_tgt_pct       NUMBER;
      pm_ct            INTEGER;
      pm_act_pct       NUMBER;
      pm_done          NUMBER;
      pm_ovrdue        NUMBER;
    begin  -- 100
      select ORG_NM, TZ into v_org_nm, v_org_tz from ORG_ENTITIES
       where ORG_ID = v_org_id;
      v_dt_disp   :=  to_char(v_dt,'MM/DD/YYYY');
      select CASE WHEN v_org_tz = 'MST' and sysdate - v_dt < 33/24
                     THEN '<span class="grn">Yes</span>'
                WHEN v_org_tz = 'MDT' and sysdate - v_dt < 33/24
                     THEN '<span class="grn">Yes</span>'
                WHEN v_org_tz = 'MST' and sysdate - v_dt >= 33/24
                     THEN '<span class="red">No</span>'
                WHEN v_org_tz = 'MDT' and sysdate - v_dt >= 33/24
                     THEN '<span class="red">No</span>'
                WHEN v_org_tz = 'CST' and sysdate - v_dt < 32/24
                     THEN '<span class="grn">Yes</span>'
                WHEN v_org_tz = 'CDT' and sysdate - v_dt < 32/24
                     THEN '<span class="grn">Yes</span>'
                WHEN v_org_tz = 'CST' and sysdate - v_dt >= 32/24
                     THEN '<span class="red">No</span>'
                WHEN v_org_tz = 'CDT' and sysdate - v_dt >= 32/24
                     THEN '<span class="red">No</span>'
                WHEN v_org_tz = 'EST' and sysdate - v_dt < 31/24
                     THEN '<span class="grn">Yes</span>'
                WHEN v_org_tz = 'EDT' and sysdate - v_dt < 31/24
                     THEN '<span class="grn">Yes</span>'
                WHEN v_org_tz = 'EST' and sysdate - v_dt >= 31/24
                     THEN '<span class="red">No</span>'
                WHEN v_org_tz = 'EDT' and sysdate - v_dt >= 31/24
                     THEN '<span class="red">No</span>'
                WHEN v_org_tz = 'PST' and sysdate - v_dt < 34/24
                     THEN '<span class="grn">Yes</span>'
                WHEN v_org_tz = 'PDT' and sysdate - v_dt < 34/24
                     THEN '<span class="grn">Yes</span>'
                WHEN v_org_tz = 'PST' and sysdate - v_dt >= 34/24
                     THEN '<span class="red">No</span>'
                WHEN v_org_tz = 'PDT' and sysdate - v_dt >= 34/24
                     THEN '<span class="red">No</span>'
                ELSE '<span class="red">No</span>'
           END as PRINT_TIME
      into ontime
      from dual;
      htp.p('<p class="lgl">Dashboard information is confidential.  Refer to your employee handbook for confidentiality guidelines.</p>');
      --htp.p('<p>'|| v_org_nm ||' on '|| v_dt_disp ||'</p>');
      htp.p('<table border="0" cellpadding="0" cellspacing="0" summary="Run Information" width="800">');
          htp.p('<tr><td>Dashboard for '|| v_org_nm ||' on '|| v_dt_disp ||'</td><td> </td>');
          htp.p('<td>Dashboard run on time? '|| ontime ||'</td></tr>');
      htp.p('</table>');
      htp.p('<table border="3" cellpadding="0" cellspacing="0" summary="Daily Dashboard">');
      --Safety
      htp.p('<tr><td><table border="0" cellpadding="0" cellspacing="0" summary="Safety Information" width="400">');
      select COUNT(ID) into v_saf_ct from DASHBOARD_AUDITS
       where DATE_INDEX = v_dt and ORG_ID = v_org_id;
          htp.p('<tr><th><div title="Safety">Safety</div></th><td class="c">Target</td>');
              htp.p('<td class="c">Actual</td><td class="c">%</td>');
              htp.p('<td style="text-decoration: underline;">Loss Free Day?</td></tr>');
      IF v_saf_ct = 1 THEN
        select LOSS into saf_loss from DASHBOARD_AUDITS
         where DATE_INDEX = v_dt and ORG_ID = v_org_id;
        select AUDIT_TARGET, AUDIT_ACTUAL, CHKRD_TARGET, CHKRD_ACTUAL, MECH_TARGET, MECH_ACTUAL
          into saf_aud_t, saf_aud_a, saf_chk_t, saf_chk_a, eqp_aud_t, eqp_aud_a
          from DASHBOARD_AUDITS
         where DATE_INDEX = v_dt and ORG_ID = v_org_id;
    ----Safety Audits
        IF saf_aud_t > 0 THEN
          htp.p('<tr><td>  Safety Audits</td><td class="c">'|| saf_aud_t ||'</td>');
              htp.p('<td class="c">'||saf_aud_a||'</td>');
            IF ROUND(saf_aud_a*100/saf_aud_t,2) >= 100 THEN
              htp.p('<td class="cgr">'||ROUND(saf_aud_a*100/saf_aud_t,2)||'%</td>');
            ELSIF ROUND(saf_aud_a*100/saf_aud_t,2) < 100 THEN
              htp.p('<td class="crd">'||ROUND(saf_aud_a*100/saf_aud_t,2)||'%</td>');
            ELSE
              htp.p('<td class="crd">-</td>');
            END IF;
          ELSE
          htp.p('<tr><td>  Safety Audits</td><td class="c">No Audit Target set</td>');
              htp.p('<td class="c">'||saf_aud_a||'</td><td class="c">-</td>');
          END IF;
          IF saf_loss = 1 THEN
              htp.p('<td class="cgr">Yes</td></tr>');
          ELSE
              htp.p('<td class="crd">No</td></tr>');
          END IF;
    ----Equipment Audits
        --eqp_aud_t        := 0;
        --eqp_aud_a        := 0;
        IF eqp_aud_t > 0 THEN
          htp.p('<tr><td>  Equipment Audits</td><td class="c">'||eqp_aud_t||'</td>');
              htp.p('<td class="c">'||eqp_aud_a||'</td>');
            IF ROUND(eqp_aud_a*100/eqp_aud_t,2) >= 100 THEN
              htp.p('<td class="cgr">'||ROUND(eqp_aud_a*100/eqp_aud_t,2)||'%</td></tr>');
            ELSIF ROUND(eqp_aud_a*100/eqp_aud_t,2) < 100 THEN
              htp.p('<td class="crd">'||ROUND(eqp_aud_a*100/eqp_aud_t,2)||'%</td></tr>');
            ELSE
              htp.p('<td class="crd">-</td></tr>');
            END IF;
          ELSE
          htp.p('<tr><td>  Equipment Audits</td><td class="c">No Equipment Audits Target Set</td>');
              htp.p('<td class="c">'||eqp_aud_a||'</td><td class="c">-</td>');
          END IF;
    ----Checkrides
        IF saf_chk_t > 0 THEN
          htp.p('<tr><td>  Check Rides</td><td class="c">'||saf_chk_t||'</td>');
              htp.p('<td class="c">'||saf_chk_a||'</td>');
            IF ROUND(saf_chk_a*100/saf_chk_t,2) >= 100 THEN
              htp.p('<td class="cgr">'||ROUND(saf_chk_a*100/saf_chk_t,2)||'%</td></tr>');
            ELSIF ROUND(saf_chk_a*100/saf_chk_t,2) < 100 THEN
              htp.p('<td class="crd">'||ROUND(saf_chk_a*100/saf_chk_t,2)||'%</td></tr>');
            ELSE
              htp.p('<td class="crd">-</td></tr>');
            END IF;
          ELSE
          htp.p('<tr><td>  Check Rides</td><td class="c">No Checkride Target Set</td>');
              htp.p('<td class="c">'||saf_chk_a||'</td><td class="c">-</td>');
          END IF;
      ELSE
          htp.p('<tr><td colspan="4">This information has not been recorded.</td></tr>');
      END IF;
      htp.p('</table></td>');
      select COUNT(ID) into v_eff_ct from VF_TARGET_PERF
         where ORG_ID = v_org_id and v_dt between BEGIN_DATE and NVL(END_DATE,sysdate);
      IF v_eff_ct = 1 THEN
        select MPG, IDLE_TIME, HARD_BRAKES into eff_mpg_t, eff_idl_t, eff_brk_t
          from VF_TARGET_PERF
         where ORG_ID = v_org_id and v_dt between BEGIN_DATE and NVL(END_DATE,sysdate);
      ELSE
        eff_mpg_t        := 0;
        eff_idl_t        := 0;
        eff_brk_t        := 0;
      END IF;
      select SUM(TRIP_DISTANCE)/SUM(TRIP_FUEL), SUM(HARD_BRAKE_COUNT),
              SUM(IDLE_TIME)/SUM(TRIP_TIME)*100
        into eff_mpg_a, eff_brk_a, eff_idl_a
        from PEOPLENETIF.TRIP_DATA
       where TRUNC(TRIPSTART_TIMESTAMP) = v_dt-1
         and VEHICLE_LABEL IN
             (select EQUIP_TAG from EQUIPMENT
               WHERE ORG_ID = v_org_id and EQUIP_TYPE_ID = 1)
         and TRIP_FUEL > 0 AND DRIVING_MPG <= 10;
      htp.p('<td><table border="0" cellpadding="0" cellspacing="0" summary="Performance" width="400">');
          htp.p('<tr><th>Efficiency</th><td class="c">Target</td>');
          htp.p('<td class="c">Actual</td><td class="c">%</td>');
              htp.p('<td class="c"> </td><td class="c"> </td></tr>');
    ------MPG
          htp.p('<tr><td>  MPG</td><td class="c">'||eff_mpg_t||'</td>');
              htp.p('<td class="c">'||ROUND(eff_mpg_a,2)||'</td>');
      IF eff_mpg_t > 0 THEN
        IF ROUND(eff_mpg_a/eff_mpg_t*100,1) >= 100 THEN
              htp.p('<td class="cgr">'||ROUND(eff_mpg_a/eff_mpg_t*100,1)||'%</td>');
        ELSE
              htp.p('<td class="crd">'||ROUND(eff_mpg_a/eff_mpg_t*100,1)||'%</td>');
        END IF;
      ELSE
              htp.p('<td class="c">-</td>');
      END IF;
              htp.p('<td class="c"> </td><td class="c"> </td></tr>');
    ------Idle Time
          htp.p('<tr><td>  Idle Time</td><td class="c">'||eff_idl_t||'</td>');
              htp.p('<td class="c">'||ROUND(eff_idl_a,2)||'</td>');
      IF eff_idl_t > 0 THEN
        IF ROUND(eff_idl_a/eff_idl_t*100,1) > 100 THEN
              htp.p('<td class="crd">'||ROUND(eff_idl_a/eff_idl_t*100,1)||'%</td>');
        ELSE
              htp.p('<td class="cgr">'||ROUND(eff_idl_a/eff_idl_t*100,1)||'%</td>');
        END IF;
      ELSE
              htp.p('<td class="cgr">-</td>');
      END IF;
              htp.p('<td class="c" colspan="2">PM''s</td></tr>');
    ------Hard Brakes
          htp.p('<tr><td>  Hard Brakes</td><td class="c">'||eff_brk_t||'</td>');
              htp.p('<td class="c">'||ROUND(eff_brk_a,0)||'</td>');
              --htp.p('<td>'||ROUND(eff_brk_a/eff_brk_t,1)||'%</td>');
              htp.p('<td class="c">-</td>');
              htp.p('<td class="cu">Complete</td><td class="cu">Overdue</td></tr>');
    ------Preventative Maintenance
      select COUNT(ID) into pm_ct from DASHBOARD_PM
       where ORG_ID = v_org_id and DATE_INDEX = v_dt;
      IF pm_ct = 1 THEN
        select PM_TARGET into pm_tgt_pct from PM_TARGETS
         where ORG_ID = v_org_id and v_dt >= START_DATE and v_dt <= NVL(END_DATE,sysdate);
        select PM_COMPLETE, PM_DUE into pm_done, pm_ovrdue
          from DASHBOARD_PM where ORG_ID = v_org_id and DATE_INDEX = v_dt;
        IF pm_ovrdue = 0 THEN
          pm_act_pct       := 100;
        ELSIF pm_done > 0 THEN
          pm_act_pct       := ROUND((pm_done-pm_ovrdue)/pm_done*100,1);
        ELSE
          pm_act_pct       := 0;
        END IF;
          htp.p('<tr><td>  PM Currency</td><td class="c">'||ROUND(pm_tgt_pct,1)||'%</td>');
              htp.p('<td class="c">'||ROUND(pm_act_pct,1)||'%</td>');
        IF pm_tgt_pct > 0 THEN
          IF ROUND(pm_act_pct-pm_tgt_pct,1) < 0 THEN
              htp.p('<td class="crd">'||ROUND(pm_act_pct-pm_tgt_pct,1)||'%</td>');
          ELSE
              htp.p('<td class="cgr">'||ROUND(pm_act_pct-pm_tgt_pct,1)||'%</td>');
          END IF;
        ELSE
              htp.p('<td class="crd">Set Target!</td>');
        END IF;
              htp.p('<td class="c">'||pm_done||'</td><td class="c">'||pm_ovrdue||'</td></tr>');
      ELSE
          htp.p('<tr><td>  PM Currency</td><td class="c">- %</td>');
              htp.p('<td class="c">- %</td>');
              htp.p('<td class="cgr">Enter PMs!</td>');
              htp.p('<td class="crd">- %</td>');
              htp.p('<td class="c">--</td><td class="c">--</td></tr>');
      END IF;
      htp.p('</table></td></tr>');
      EXCEPTION
        when VALUE_ERROR then
          dbms_output.put_line('VALUE_ERROR exception raised');
    end;
    /

  • Display image in HTML region???

    I made blank page, and on that page I made html region. Then I go to the Shared Components>Images Create and Upload the image DMD.gif
    to the Application 106, that the Application with which I'm working.I trying to put that image to the html region.
    In html region in Source I put this code, but it doesn't working:
    .<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    .<html xmlns="http://www.w3.org/1999/xhtml">
    .<head>
    .<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    .<title>Untitled Document</title>
    .</head>
    .<body>
    /img src="/i/DMD.gif" align="top"/
    .</body>
    .</html>
    I'm workin with Application Express 2.1!
    Edited by: user10187476 on Aug 27, 2008 2:35 AM

    In the HTML Region just put
    &lt;img src="#WORKSPACE_IMAGES#DMD.gif">
    or if you associated the image with the application
    &lt;img src="#APP_IMAGES#DMD.gif">
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to display selected records on one HTML page?

    Hi,
    I would like to display selected part of records on one page in HTML region. For example I have a Master - Detail table set named Procedures and Tasks (each Procedure can have one or more tasks)
    I would like to be able to display all Tasks for a given Procedure in one HTML region on a page... The problem is that the number of tasks vary between procedures and can change in time. Also, the 'task description' can be very large so a simple report list of all tasks is something I cannot use... (I would like eg for the task name to be here, and the task_description to be there - unlike the report where everything is in one line...) The following are my ideas but non of them seemed to be feasable here...
    1. Use a report based on vertical columns (However I am using Theme 10 for which there are no vertical column templates. The only vertical templates I can see are the default ones but I have no idea how to customize them - where are they?)
    2. In HTML region use &ITEM_NAME. substitutions. In order to display more than one &EMN_NAME. (based on eg. EMPID) I suspect that I would need to write some kind of javascript loop. Has anyone have an idea about how would such a script look like?
    3. Display each Task in a separate screen. This is something I would want least but better than nothing - to have a customized report which would display one task at a time with some kind of pagination to it...
    Please let me know if someone has tried something simmilar or maybe there is a 4th option which will be simpler and easier...
    Many thanks,
    Pawel.
    I tried to make a very simple illustration of what I would like to achive here:
    http://htmldb.oracle.com/pls/otn/f?p=44995:3:9461299983704828937::::
    Message was edited by:
    padmocho

    Just to answer this one myself....
    In order to achive the above I used a PL/SQL Dynamic Content page and entered a html content in htp.prn('');
    Then, I created a PL/SQL LOOP which searches through the various rows...
    In the end, whenever I wanted to display html content I just used htp.prn and for variables I used htp.p(<var_name>);
    Maybe, it helps ;)

  • Html region print report in APEX 3.0

    Hi all!
    I have some HTML regions on some pages of my application.
    Do you know how to receive print reports of this regions in some formats e.g. PDF, EXCEL, HTML, rtf ?
    Is't any idea or any link ?
    Regards,
    Roman

    Hi all!
    I have some HTML regions on some pages of my application.
    Do you know how to receive print reports of this regions in some formats e.g. PDF, EXCEL, HTML, rtf ?
    Is't any idea or any link ?
    Regards,
    Roman

  • Can't get around this error after adding second dataset...A scope is required for all aggregates used outside of a data region unless the report contains exactly one dataset

    I added a dataset to an existing report and broke an aggregation.  In the old (i.e. single dataset) report, this expression below worked fine.  I wanted to get a distinct count of the vst_ext_id field when my educated field was like "VTE1*"
    = CountDistinct(IIF(Fields!educated.Value like "VTE1*", Fields!vst_ext_id.Value, Nothing))
    After adding a new dataset, this no longer works and I get the error " A scope is required for all aggregates used outside of a data region unless the report contains exactly one dataset".  Having done some research online, I found that I
    needed to specify my dataset explicitly and I thought this new expression might work, but still no success...
    = CountDistinct(IIF(Fields!educated.Value,"DataSet1" like "VTE12*", Fields!vst_ext_id.Value,"DataSet1", Nothing))
    Am I missing something?  Based on online responses, this explicit dataset naming convention seems to help most people, but it isn't working for me. 
    Thanks in advance!
    Brian

    I found the answer.  Apparently, my expression syntax was off.  This expression does the trick...
    = CountDistinct(IIF(Fields!educated.Value like "VTE12*", Fields!vst_ext_id.Value,Nothing),"DataSet1")
    I just happened upon this particular syntax searching online.  I was trying to specify the dataset name after each .value, but I never got that to work.   This is the only time I have found this particular syntax online. 

  • Display word/pdf document in the HTML region or report

    Hi,
    How to display blob content stored in a table in HTML region or report region.
    I already have a process to display the image content.
    But my question here is how to display word/pdf document within the html region so that the user can read the document without downloading it.
    Any suggestions/solutions would be of great help.
    Thanks in advance...
    Thanks,
    Ramesh P.

    I was dead wrong.
    The display of images from BLOB is a special case because APEX provides a Display Image item type.
    Moreover, HTP/HTF packages also do not provide for handling of BLOB content. So AJAX cannot be used.
    Which implies that the only way to get binary content, other than images, is with the use of a WPG_DOCLOAD.DOWNLOAD_FILE call.
    This in turn implies that it may not be feasible to "inject" the BLOB into an exist HTML DOM in the Browser.
    Regards,

  • How to - link from HTML Region to Report Column?

    Dear Apex gurus,
    Ok, I'll go straight to my question. I have a file upload page with Report Region (conditional) which comes up after file uploading process. Under Report I have a column to delete uploaded file (column has an image in link, target in application, item name: P2_DELETE_ID and value: #DOC_ID#). Basically the Report picks up just uploaded file ID and allows me to delete the file by having Hiden Page Item (P2_DELETE_ID) and Before Header Process:
    BEGIN
    DELETE FROM EBA_ASSET_ORDER_TEMP_DOCS
    WHERE doc_id = :P2_DELETE_ID;
    END;with condition: Value in Expression 1 is Not Null, and Expression 1 set to:
    P2_DELETE_IDI have and another conditional Region (which is HTML) and it comes up after file uploading process as well. The region Source is:
    &lt;div id="FinalMessage">&lt;/div>
    &lt;br />
    &lt;div >&lt;a href="javascript:confirmFileDelete(htmldb_delete_message,'f?p=&APP_ID.:2:&SESSION.:REMOVE_ID:::P2_DELETE_ID:#DOC_ID#');">&lt;img >src="/i/delete.gif" style="position: relative; top: 1px;"/>Remove Uploaded File&lt;/a>
    &lt;/div>where id="FinalMessage" - is the Sucess/Error message from JS
    and .....href="javascript:confirmFileDelete....... - is my actual question. So, I am trying to hide my Report Region and show only my HTML region where I will be able using this (.....href....) link delete file from my table. I am able to dele file using report colum link but my .....href.... link dosnt want to delete my file, doen't even want to pick up file ID. Is there a way where I can link my .....href.... link to pull from Report Column????
    Thanks

    I am getting crazy now:
    It gives me an error message whan I am trying to add RETURN to my process, here is my process, seems to be fine and I can fined what is going on, may be I am blind:
    DECLARE
    n_size NUMBER;
    v_filename VARCHAR2(500);
    P2_FILE_INPUT VARCHAR2(1000) := v('P2_FILE_INPUT');
    BEGIN
    INSERT INTO EBA_ASSET_ORDER_TEMP_DOCS (DOC_ID, NAME, CONTENTS, mime_type, CREATED_ON, DOC_SIZE, FILENAME)
    SELECT ID, P2_FILE_INPUT, BLOB_CONTENT, mime_type, CREATED_ON, DOC_SIZE, FILENAME
    FROM apex_application_files
    WHERE NAME = P2_FILE_INPUT
    RETURNING DOC_ID INTO :P2_DELETE_ID;
    DELETE apex_application_files
    WHERE NAME = P2_FILE_INPUT;
    END;error:
    1 error has occurred
    ORA-06550: line 13, column 38: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 10, column 4: PL/SQL: SQL Statement ignored
    Edited by: Yasen® on Oct 5, 2009 3:28 PM

  • How to load a large amount of HTML into HTML region?

    I am trying to display a clickable image map (HTML <map>) in a region. The HTML source for the image map is fairly large and will not fit in the Apex editor (HTTP 400 error when I Apply Changes). I would also rather not manage that much HTML in the Apex web editor. So I stored the code in a file and added it to my applications file storage.
    I have tried various methods of getting the HTML to load when the page is rendered. I tried a URL region, but that leads to all kinds of ACL/security issues that we do not want the customner to have to deal with. i also tried some PL/SQL:
    DECLARE
    l_file_id NUMBER;
    BEGIN
    SELECT id
    INTO l_file_id
    FROM APEX_APPLICATION_FILES
    WHERE filename = 'myhtml';
    APEX_UTIL.GET_FILE(
    p_file_id => l_file_id,
    p_inline => 'YES');
    END;
    But that just replaces the entire page, not just the region it's defined in (even when the HTML is without <head> etc).
    Various attampes wih #APP_IMAGES#myhtml and &APP_IMAGES.myhtml just give me the translation of the APP_IMAGES variable.
    So, how do I load a large chunk of HTML into a region dynamically at run time? I also need this to interact with APEX in the sense that JavaScript will set APEX variables and cause a SUBMIT when the use clicks on the image map.

    Hi Andy,
    ATD wrote:
    Does your HTML define the regions/points on the map using AREA tags?Yes. it is actually generated using MapSefrver from huge tables of SDO_GEOMETRY (Oracle Spatial).
    If so, you could define a report template that does this and use this for a report based on a table that has the settings for shape, coords, href etcHmm, the code (HTML map) is auto-generated so if I understand you correctly, this might be difficult. One of the HTML is approximately 180KB of text.
    I found a way to do this using dynamic PL/SQL. I created a new table that has a varchar filename and a CLOB for the file data. I then imported the HTML into the table using SQL Developer (copy&paste, nice!). I then created an HTML region and used the following:
    declare
    html clob;
    len number;
    st number;
    c number;
    begin
    select length(data)
    into len
    from FILES
    where name = 'state_query.html';
    st := 1;
    while len > 0
    loop
    if len > 32000 then
    c := 32000;
    else
    c := len;
    end if;
    select substr( data,st,c )
    into html
    from FILES
    where name = 'state_query.html';
    htp.p( html );
    st := st + c;
    len := len - c;
    end loop;
    end;
    Edited by: CoyoteTech on May 13, 2009 7:27 AM

  • Possible to display null item value as 'All'  in blank HTML region?

    Apex 4.1
    Theme 21
    Hi There,
    I have select list which has null and other values. I have created a blank HTML region with the following text
    Report for the year &P2_YEAR. and for geography &P2_GEOG.
    Now P2_YEAR works fine because, it is always populated with a year. However, &P2_GEOG has 'All' as null value since we can see the report for all geographies. However, if the all option is selected, the above &P2_GEOG. shows as null. Since its not a PL/SQL proc, I cannot put in a NVL. I am guessing one possible way is to write a PL/SQL code before region and then check if its null and then try to populate a new hidden field and show, something like that. Wondering if there is a way to do it directly in the HTML region?
    Thanks,
    Sun
    Edited by: ryansun on Jul 2, 2012 12:49 AM
    Edited by: ryansun on Jul 2, 2012 12:50 AM
    Edited by: ryansun on Jul 2, 2012 12:55 AM

    Hi Morten,
    in the validation callback you could use apex_util.set_session_state to modify the page items value. We do that ourself in the "Number Field" native item type plug-in.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Html Region Background showing outside of Region

    Hi, I would have assumed that if I had a html region as an URL, then it would display the full html page inside the region.
    However, what actually happens is the content is inside the html region, but the background appears outside the region.
    I just want the whole web page to appear in the region, in the same way as it does in my browser.
    HELP!!!
    For reference, this is my web page. I have fully qualified the gif so I do not need to copy it anywhere and can edit in only one place:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>My APEX Test Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body background="http://myserver:7778/myimages/mybackground.gif">
    <h1><strong>My APEX Test Page</strong></h1>
    <h2>Title</h2>
    <h3>Sub Tile</h3>
    <p>A little bit of detail!</p>
    </body>
    </html>

    Hello,
    The issue is some of the styles are declared inline in the html and some have specific colors assigned, your grass background being on the body background don''t override the styles at the region level, (this is specific css stuff not some bug in APEX).
    You'll probably want to create a new region template and report template and strip out the class and style declarations and you might have to edit the page template a bit as well.
    Carl

  • Multiple Regions on one page

    Hello,
    I am using APEX 4.0.1. I am having hard time in designing my page. I have 4 regions in the format like below:
    Top1 Top2
    Bottom1 Bottom2
    - Top 1 is a report region
    - Bottom 1 is a Chart region
    - Bottom 2 is a report region
    - Top 2 contains 2 chart, one HTML Chart and second flash pie chart.
    I am not sure how to create these regions.
    Thanks in Advance,
    Suman
    Edited by: user546012 on Oct 22, 2010 11:48 AM

    Please do the following:
    1) Change your username to something more friendly.. We are a friendly group here (for the most part..) and we like to know who we are talking to.
    2) Please DO NOT post here about having a STRICT deadline. We are are working class people here and do NOT get paid to do this.. It's whats called FREE SUPPORT. You can ALWAYS get a refund, but don't spend it all in one place..
    Try looking at the APEX 4.0 feature called sub-regions..
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.

  • Image display in HTML region

    Hi ,
    I'm unable to display image in HTML region, I'm using this syntax for displaying the image
    <img src="#IMAGE_PREFIX#IT logo.jpg">
    first i uploaded the image to "Shared Components" - "Images" .
    then referencing the image in one of the HTML Region in "Region Header".
    When i run the report i see "X" icon on the report.it's not showing the image.
    any body come across this problem. please mail me back
    Thanks.

    [img src="#IMAGE_PREFIX#IT logo.jpg"]
    should be:
    [img src="#WORKSPACE_IMAGES#logo.jpg"]
    chet
    Message was edited by:
    chet
    I had the folder mapping in there which is wrong for the #WORKSPACE_IMAGES# call

Maybe you are looking for

  • Is there a way to redetermine the cost center for an internal order on a PO

    When we create a PO for an asset we enter an internal order number and a cost center is determined from the internal order. Sometimes after the po is created the cost center on the IO changes. The po is not updated automatically on the PO and it resu

  • Firefox is set to open a new page when a link is selected, however it opens underneath/behind

    Firefox is set to open a new page when a link is selected, however it opens underneath/behind the page containing the link. In other words I can't see the new page because it is beneath the one I'm looking at. 75% of the time this happens, 25% of the

  • How to make blog that looks like Wordpress or Blogger

    I LOVE the functionality of iweb's blog in terms of placing photos from Aperture and iphoto, but I want to be able to have all my entries on one scrolling page with the archives separated by year/month like other blogging software. I read that I coul

  • Replacing linked image

    Hi everybody, well, after having had to dive into InDesign CS2 plugin development a while ago, there's on most likely rather complicated thing that I haven't yet been able to solve myself. Probably someone here has a tip for me. So, basically, my plu

  • Is there a switch I can use with thunderbolt display and 2 computers

    I have the new Mac Mini and the new Macbook Air plus the 27 inch thunderbolt display.  The majority of the time, I will be using the thunderbolt display hooked up directly to the Mac Mini.   I have already tested the theory that if I turn off the Mac