Report region editable attributes

I have a report region populated by a SQL query, returns a single record.

I've edited two of the attributes and the selected item of tabular form > text field.

I want now to refer to these two fields in a process the PL/SQL block, when I look at the HTML source code of the page I see name = "f01" name = "f02" for these items. This can be changed? I tried to change the attributes of the element name = "MyField", but I find myself with two attributes for the name of the entry.

What is the best way to handle something like this and reference fields in a way that is "safe"?

Hello

You should really look into the APEX_ITEM-api.
Check http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/api.htm#BGBHDGAI

However, I will give you a little trick to manage those f01, f02 etc.

Apex stores it automatically in a table for you, so if you make them to text fields, you can access it through
APEX_APPLICATION. G_F01 name = f01, G_F02 being the name = f02 - and it is possible to have from 1 to 50.

If your query always returns just one line, then you can access it through

Start
insert into values insert_table (APEX_APPLICATION. G_F01 (1), APEX_APPLICATION. G_F02 (1));
end;

Or if you have several lines;

Start
BECAUSE me IN 1.APEX_APPLICATION. G_F01. COUNTY
LOOP
insert into values insert_table (APEX_APPLICATION. G_F01 (i));
END LOOP;
end;

However to use with updates, you also likely a hidden item aswell for reference by a sort of «update (...)» "where unique_id = apex_application.g_fXX (i).

I recommend that you spend 10 minutes reading of a few examples in the link above - I'm sure it'll be useful.

See you soon,.
Vidar

Tags: Database

Similar Questions

  • Make the editable attribute

    Hello world

    I used the function 'Make attribute editable' DW CS4 so that I can change the class on a h3 on pages given birth from a template, for example.

    < h3 id = "banner_home" class = "@(image_name) @" > text goes here. < / h3 >

    This will only allow me to change the name of the class, but I was wondering if there was a way to also change the text in the h3, IE. where it says 'insert text here. "

    Is this possible?

    Appreciate any assistance.

    All you have to do is to add an editable region between the tags.  Since the content between the tags is not an attribute of tags, you can't do it with editable attributes, but a simple combo box will do the trick.

  • Editable attribute fails to update file name change

    I use regions editable for image swap on bearings so that I can disable one of the images flown over by changing the url of the image itself. I do this to show what section of the Web site visitors are in currently. I think that this quite common. Using templates is ideal for this, but without the editable for swap image attribute I could not identify visitors to the section using the swap image.

    If I change the name of the image it does not update the url of the editable attribute. The find and replace feature also does not affect this. It updates all other instances of this image, but not the template param code. Any ideas? I tried to open the nested and caraa models, update the names with the search- and -replace and could not operate. I had to delete all editable areas and update the pages of models and then re-create the and the bearings. Tedious. Wanted to know if someone has bypassed this or if I do wrong etc.
    Thank you, Tim

    If you're still reading this thread, here's a solution for you.

    In this model, include the following markup-

    <>
    href ="... bgtesting2.html" > None "

    In the anchor tag, mention the name of the image that you want to track with the
    parameter. By doing this, you say DW page template should also be
    analyzed for the path to the file, and this will force the setting as
    updated.

    Note that this conditional region never 'prints' since it is testing the
    Boolean false to the truth that will never happen.

    CAPICHE?

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "Murray * AS *" wrote in message
    News:e2lveb$SBD$1@forums. Macromedia.com...
    > I see what you mean. Child page settings are managed, but the
    > parameter of the model is not. I check with higher authorities... 8)
    >
    > --
    > Murray - ICQ 71997575
    > Adobe Community Expert
    > (If you * MUST * write me, don't don't LAUGH when you do!)
    > ==================
    > http://www.dreamweavermx-templates.com - model of yard!
    > http://www.projectseven.com/go - DW FAQs, tutorials & resources
    > http://www.dwfaq.com - DW FAQs, tutorials & resources
    > http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "The79bomb" wrote in message
    > news:[email protected]...
    > Dear Murray,.
    > Thank you once more for the answer. I assure you that the type is set to
    > URL. I have
    > relocated a part of image files in a folder under what they got from many
    > Browse
    > easily. When Dreamweaver MX asked me if I wanted to update the links to
    > these
    > files I said yes. She started to date for some time. When I had finished
    > a new
    > file based on one of the templates and the links were were not updated
    > for
    > these files that I had moved. I checked the model and quite sure that the
    > templateParam tags don't had not been updated to reflect the moved files. I have
    > will be
    > have to do some additional tests to verify this but all the files I have
    > moved and
    > update was not updated in the templateParams. Yours, Tim
    >>
    >
    >

  • Model of User Interface for interactive report region

    3.2 where we establish the model of user interface for interactive reports region?

    No matter what on the theme of the box I go to, the region of interactive reports shows the same. What and where do I change the model so that alternate lines use two different colors?

    There is no model for interactive reports as for a 'normal' report You need to edit the CSS and provide your own for this purpose.

    I think that most of the things are marked with the #apexir - firebug with combustion chamber is priceless. This thread may help:

    Re: changing the appearance of the interactive report.

  • How to implement reports region 100% to the universal theme?

    Theme 26 a model "reports 100% region. We use this model to the traditional reports. During the passage of our application to universal theme, we lose the horizontal (width 100%) portion of the classic reporting regions. How can we restore the classic reports area to the full stretch at the universal theme?

    user12045295 wrote:

    Please update your forum profile with a recognizable username instead of "user12045295": Video tutorial how to change username available

    Theme 26 a model "reports 100% region. We use this model to the traditional reports. During the passage of our application to universal theme, we lose the horizontal (width 100%) portion of the classic reporting regions. How can we restore the classic reports area to the full stretch at the universal theme?

    Select the report of stretching in the model of Report Options.

  • ORA-20987: APEX - interactive report region does not exist in the application

    ORA-20987: APEX - interactive report region does not exist in the application

    I'm trying to get the query of an international registration (interactive report) on a specific page in my application.

    The code I am using is thesi:

    create or replace function get_report_query (nPage_id number)

    return varchar2

    as

    l_report apex_ir.t_report;

    l_query varchar2 (32767).

    l_list varchar2 (32767).

    number of nRegion_id;

    number of nIR_id;

    OWA.vc_arr nm;

    VL owa.vc_arr;

    BEGIN

    SELECT region_id

    IN nRegion_id

    Of apex_application_page_regions

    WHERE application_name = "E-BRIL.

    AND page_id = nPage_id

    AND source_type = "interactive report";

    nIR_id: =.

    apex_ir.get_last_viewed_report_id (p_page_id = > nPage_id,)

    p_region_id = > nRegion_id);

    NM (1): = "DUMMY_JUST_TO_SET_UP_OWA_UTIL";

    VL (1): = 'WHATEVER ';

    OWA.init_cgi_env (nm.count, nm, vl);

    l_report: = APEX_IR. () GET_REPORT

    p_page_id = > nPage_id,

    p_region_id = > nRegion_id,

    p_report_id = > 0);

    l_query: = l_report.sql_query;

    because me in 1.l_report.binds.count

    loop

    l_list: = l_list | i||'. '|| l_report. Binds (i) .name | » ='|| l_report. Binds (i) .value;

    end loop;

    Return l_query;

    end;

    /

    I want to get the query of the IR on my page 3. And I run;

    get_report_query (3)

    That's what I get:

    ORA-20987: APEX - interactive report region does not exist in application, page 3 and 1278226325207011749 region. -Contact your administrator of the application.

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 630

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 911

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 33

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 55

    ORA-06512: at "EBR_OWNER. GET_REPORT_QUERY', line 19

    The regio_id seems ok, because when I ask this region_id of apex_application_page_regions, id 1278226325207011749 is returned.

    Page 3 is also correct.

    I tried to follow Denes Kubicek his blog (Denes Kubicek ApEx BLOG: interactive report query is).

    What I'm doing wrong here?

    We use the Apex 4.2.

    Thanks in advance.

    Reg,

    Chris

    1717220 wrote:

    Please update your forum profile with a recognizable username instead of "1717220": Video tutorial how to change username available

    ORA-20987: APEX - interactive report region does not exist in the application

    I'm trying to get the query of an international registration (interactive report) on a specific page in my application.

    The code I am using is thesi:

    create or replace function get_report_query(nPage_id IN number)
    return varchar2
    as
    l_report  apex_ir.t_report;
    l_query  varchar2(32767);
    l_list  varchar2(32767);
    nRegion_id number;
    nIR_id number;
    nm  owa.vc_arr;
    vl  owa.vc_arr;
    BEGIN 
    
        SELECT region_id
        INTO nRegion_id
        FROM apex_application_page_regions
        WHERE application_name = 'E-BRIL'
          AND page_id = nPage_id
          AND source_type = 'Interactive Report';
    
        nIR_id :=
          apex_ir.get_last_viewed_report_id (p_page_id        => nPage_id,
                                            p_region_id      => nRegion_id);
    
        nm(1) := 'DUMMY_JUST_TO_SET_UP_OWA_UTIL';
        vl(1) := 'WHATEVER';
        owa.init_cgi_env( nm.count, nm, vl );
    
        l_report := APEX_IR.GET_REPORT (
                        p_page_id  => nPage_id,
                        p_region_id => nRegion_id,
                        p_report_id => 0); 
    
        l_query := l_report.sql_query;
        for i in 1..l_report.binds.count
        loop
            l_list := l_list||i||'. '||l_report.binds(i).name||'='||l_report.binds(i).value;
        end loop;
    
    return l_query;
    end;
    

    I want to get the query of the IR on my page 3. And I run;

    get_report_query (3)

    That's what I get:

    ORA-20987: APEX - interactive report region does not exist in application, page 3 and 1278226325207011749 region. -Contact your administrator of the application.

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 630

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 911

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 33

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 55

    ORA-06512: at "EBR_OWNER. GET_REPORT_QUERY', line 19

    The regio_id seems ok, because when I ask this region_id of apex_application_page_regions, id 1278226325207011749 is returned.

    Page 3 is also correct.

    I tried to follow Denes Kubicek his blog (Denes Kubicek ApEx BLOG: interactive report query is).

    What I'm doing wrong here?

    We use the Apex 4.2.

    The '0' in line 31 should be "nIR_id".

    What is the purpose of the lines 24-26?

  • Report regions - use of the Ref Cursor?

    APEX 4.2

    See http://mikesmithers.wordpress.com/2012/02/22/getting-apex-to-play-with-ref-cursors

    The above article is older than 2 years. The techniques shown in the link above still valid today if we want to create a report region in the APEX are based on a function that returns a Ref Cursor? Are there improvements in this area for the next APEX 5.0 and/or database Oracle 12 c?

    Thank you

    HELEN wrote:

    APEX 4.2

    See http://mikesmithers.wordpress.com/2012/02/22/getting-apex-to-play-with-ref-cursors

    The above article is older than 2 years. The techniques shown in the link above still valid today if we want to create a report region in the APEX are based on a function that returns a Ref Cursor?

    If the function returns the ref cursor is the only point of access that you have data then Yes, it probably is. If you have direct access to the underlying database objects and the function does not have something very complicated, then you are probably better off creating your own body of the function returning SQL query data source.

    Everything about the dynamics of ref Cursor now I divided in 2 layers, with a function for generating the dynamic SQL and another for bind parameters open the ref cursor. APEX apps can then reuse the functions of SQL query in function body return SQL query data sources (if you take a bit of care to keep the bind variable names vaguely APEX-point-friendly).

    Are there improvements in this area for the next APEX 5.0 and/or database Oracle 12 c?

    See this for the technical background on why APEX is not yet support ref Cursor and this for more information of the Oracle team on the possibility of future support. Obviously, he did not he in 4.1. I suspect that data REF CURSOR region sources depended on a minimum requirement of DB of the 11.1.0.6 (where was introduced support for the conversion of the REF CURSOR in the cursors DBMS_SQL). As minimum DB for APEX 5.0 version is 11.1.0.7, it would be a possible feature for 5.0, but it is not classified as one.

  • Editable attribute descendants models

    I used successfully editable attributes in the models before. I have a basic model, and other models are derived from this basic model and can change model properties.

    However, I now want to have this same editable attribute (< body id = "@(id) @" >) cannot only be changed with models that derive from the base, but also children models. I can't understand how to do this.

    So what I want to look like this:

    base.dwt
    portfolio_base.DWT (derived from base_dwt)
    portfolio_a.DWT (derived from portfolio_base.dwt)
    portfolio_b.DWT (derived from portfolio_base.dwt)

    I can change the attributes can be changed in portfolio_base, but not its descendants. Can anyone help?

    TIA, Lars

    It would be the passthrough attribute.

    Try this-

    and see how that plays.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "larclap" wrote in message
    News:ebt13g$AQF$1@forums. Macromedia.com...
    > I used successfully editable attributes in templates before. I have a
    > basic
    > and other templates are derived from this basic model and can
    > Change
    > Properties of the model.
    >
    (> However, I now want to have that same editable attribute)<>
    (> id = "@(id) @" >) not only changed with the models resulting
    > the
    > starting point, but also the child models. I can't figure out how to
    > this.
    >
    > So I want looks like this:
    >
    > base.dwt
    > portfolio_base.dwt (derived from base_dwt)
    > portfolio_a.dwt (derived from portfolio_base.dwt)
    > portfolio_b.dwt (derived from portfolio_base.dwt)
    >
    > I can edit the editable attributes in portfolio_base, but not sound
    > descendants. Can anyone help?
    >
    > TIA, Lars
    >

  • Refreshing a report region does not work

    Hello

    I have a report interactive area (emp) and a P1_ename_filter (list of type selection) filter field with dynamic action on the change that has to refresh the emp region.

    But it does not work: I see the discount on the intermittent, but then there's the same record without applying the filter

    I have the example on apex.oracle.com:

    https://Apex.Oracle.com/pls/Apex/f?p=4550:1:103040501310506:

    https://Apex.Oracle.com/pls/Apex/f?p=102726:LOGIN_DESKTOP:104044067688962:

    user and developer demo/demo (TR1 workspace)

    Concerning

    Gianpaolo

    gianpagi wrote:

    I have a report interactive area (emp) and a P1_ename_filter (list of type selection) filter field with dynamic action on the change that has to refresh the emp region.

    But it does not work: I see the discount on the intermittent, but then there's the same record without applying the filter

    The P1_ENAME_FILTER element did not appear in the attribute of Page elements to be submitted for the IR region. This is required to set the filter value in session state before running the report query when the report is refreshed.

  • Horizontal scroll bar in the model of interactive report region 5 Apex (universal theme)

    Hello

    We have migrated our application from 4.2 (theme: 21 scarlet) to 5.0 (changed to universal theme). Most of our reports are interactive reports and have more than 20 columns to display in the reports. 4.2 in the 'Region of report"model horizontal scroll bar came from bottom of page like below and has been easy for the user to scroll through the options to the right and see all the columns.

    Apex4.2.PNG

    In the universal theme apex 5 with 'interactive report' model in order to see the columns on the far right in the first lines user must scroll the vertical bar first, then scroll horizontal straight bar and vertical bar to go to the top


    Apex5.PNG


    How can you have the scroll as in 4.2 bar region of report model. I think that we need to make some changes in CSS and also need to copy the existing model and make changes and use this model in all reports.


    Thank you.

    RAM


    Hi Tim,.

    Thanks for the reply. I tried this option before posting forum. It did not work. Now, after changing position attribute fixed to the ' Page "(or region) in the report attributes section it works." " When we migrated the app at UT, he has been on 'None '. Problem solved now. Thank you.

  • Download the CSV reports region: a dynamic file name can be used?

    Request Express 3.1.1.00.09
    Oracle Database 10 g Enterprise Edition Release 10.2.0.4.0 - 64 bit
    Firefox 3.0.10

    Hi all

    In Application Builder-> attributes report-> export-> exit report CSV activate = 'Yes'

    I want to assign dynamic file name, based on a variable in the application.
    The text in this box always seems to be used as a literal value.

    I want to do possible?

    Kind regards
    Bob.

    Yes, in the report name field, you can use a page or application as file name... This is the syntax: & my_item. where my object is a page element or application...

    Thank you

    Tony Miller
    Webster, TX

  • Modify a report region model

    Hello

    I am new to Apex, so my question may sound elementary! :-(
    I would like to create a report of mutiple on a region, such as explained and described in many places on this forum, but I'm stuck at the beginning!

    -How is it possible to copy a region of report model?
    and
    -How can I copy a page template?

    Thanks a lot for your lights

    Kind regards
    Fred

    Hi Fred,.

    In your application, go to the components shared, models. Click the Create button, and then select the model type. On the next prompt, make sure that you select the option "as a copy of an existing model", and then click Next until you get a list of current models. Change the name of the template that you want to copy and modify the copy? drop-down menu of no to Yes and click the button copy of xxxx models. You will then return to the list of models - click on your new template for editing.

    Andy

  • How to access the values in column fron a report (region)

    Hello

    In the region of report footer section, I want to access the value of a column (e.g. name col = COL01) for first place. I know that I can access total number of rows using #TOTAL_ROWS #. Is it possible to do this?

    Thanks in advance,
    Paresh

    Hello

    I did not have a v2 to try this out, but try this:

    1. in your report, add the following in the header of the region:

    <div id="TheReport">
    

    2 - in the foot of the region:

    </div>
    <script type="text/javascript">
    var t = document.getElementById("TheReport");
    var r = t.getElementsByTagName("TABLE")[1];
    var rows = r.rows;
    var tds = rows[0].cells;
    var k;
    if (tds)
    {
     for (k = 0; k < tds.length; k++)
     {
      if (tds[k].id == 'ENAME')
      {
        alert(rows[1].cells[k].innerHTML);
      }
     }
    }
    </script>
    

    Remove your old javascript code and replace line alert() with all you need to do with the value of .cells [k] .innerHTML lines [1].

    This includes in your report in a div tag The JavaScript find it and gets the second table (the table report is a table of the area which is now within the DIV tag). As older versions of the Summit has not used the attribute "headers" on cells, we check the ID values for the column headings in row [0] - once we found the right column, we retrieve the corresponding value according to the data in row of lines [1].

    Andy

  • How to create a horizontal scroll bar for interactive report region?

    Hello

    I use APEX 4.2.5.00.08 and created interactive reports that contain many columns. However when viewing the results of the report, due to the large number of columns report/table data is outside of the region and a horizontal scroll bar appears in the window of my main browser. This seems not very good from the point of view of the customer/end user and I was wondering if it is possible the size of declare the region according to a specific size and have a scroll bar horizontal that it contains, so that users can view the rest of the report columns using the scroll instead bar rather than do what he done right now and go to the screen and having to use the main browsers horizontal scroll bar at the bottom.

    I tried on IE8, Chrome and Firefox 27.0.1 and get the same result. I tried to follow the ideas in this thread, in interactive report horizontal scroll bar, but nothing is.

    You have ideas on how I can get around this please?

    Concerning

    Hi user10248308


    Try this


    Step 1:-modify the interactive report

    Step 2:-under defination region-> header area

    put

    Step 3:-under area Defination-> foot of the region

    put


    Please come back if this is not yet resolved.

  • The part of report of a report region table setting to fill the region

    I need to make them with any part of the report, the section of report fills the width of the region, the column spacing all also in the entire region.

    The screenshot below shows the report occupies only a small part of the region. I need the region to this width to maintain the page layout consistency between pages.

    I can change the CSS so that it affects

    . Report-standard-alternatingrowcolors {}

    Width: 750px;

    }

    And then the same set the columns to specific width, but this application is displayed on a number of different resolutions, thereby affecting the specific widths is not all good.

    If I value percentage widths it does not.

    Any ideas?

    Screen Shot 2014-10-24 at 10.04.52.png

    The following screenshot shows what I want to achieve, even if it made specific widths specifying, in px, which means that it is not scalable for different resolutions.

    Screen Shot 2014-10-24 at 10.08.42.png

    The external table that contains the table of standard report also must be set to 100% width. Change the CSS rule:

    table[id^="report_"],
    .report-standard {
      width: 100%;
    }
    

Maybe you are looking for