Enable particular row of apex_item report region....

Hi guys,
I have a report region.i used apex_item to create report region.
select apex_item.checkbox(1,ADDRESS1)
chk_bx,apex_item.text(2,ADDRESS1) Address,apex_item.text(3,ITEM1) Item,null from address_details;On page load i disabled the report region by using below javascript
function disableItems(pRegionStaticId,pDisableFlag) {
alert('disa');
  $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
    if( $(this).attr('name').match(/f[0-9][0-9]/) ){
      return $(this);
  }).attr('disabled',pDisableFlag);
}After the report region get disabled,i have to enable a particular row of report region, ie when i set click first row f01[0] (f01 is checkbox), then i enable that row(clicked row), if i click second row f01[1],then i have to enable that row vice versa...
Is that any javascript to achive this?
Thanks in advance

Hi
i have a report with parameter is the year i can select a multiple value.
Below is an example for the result:
                                year
 Data        2010    2011   2012  
 hp          14         25           30    
 Dell        17         18           20
i need to get the value of the last previous i mean i this example i have the last year is 2012 i need the value of 2011
i tried a script with vb.net but i don't get the result i get only the value of year this is my script
Dim Shared Num1 As StringDim Shared values As System.Collections.ArrayList=New System.Collections.ArrayList()Public Function GetVal(Val as Integer,Year as Parameter)  as String   If Year .IsMultiValue then    For i as integer=0 to Year.Count-2          Num1= Year.value(i)                       Next    End If   Return Num1End Function
this script return me 2011 but me i want the value in of the year 2011
thanks

Similar Messages

  • How do I set an id to a table row in a report region?

    How do I assign an id to a table row in a report region? I am trying to uniquely identify a row in the result set. What I want to do is have the report region render an id for each tr tag i.e.
    <tr id='1'>...</tr>
    <tr id='2'>...</tr>
    <tr id='3'>...</tr>
    Thanks,
    Boyan

    Hello,
    In the Before Each Row attribute of the report template you are using add something like this.
    &lt;tr id="row_#ROWNUM#">ID's in HTML should never start with a number it won't break anything but it's wrong that's why I put row_ first
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Show APEX Row Number in Report Region

    I would like to display the row number in the report region at the beginning of each row for each page (based on the number of rows to display per page).
    So if the number of rows per page is 15, I would want to show each row from 1 to 15. When going to the next page (16 - 31) I would like to show row 1 to 15 again next to each row.
    And if the number of rows per page is 20, I want to see row numbers 1 to 20 on each page.
    Since I believe an Update button only processes the current page, I would like to then use this row numbers (1 - 15) to get the values of the displayed column for each row to perform an insert to another table.

    You can use something like this:
    SELECT apex_item.text (1, '#ROWNUM#') row_num, empno, ename,
           deptno, comm, sal, mgr
      FROM empExample is here:
    http://apex.oracle.com/pls/apex/f?p=31517:284
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • How to get the number of rows in a report region

    Hi all,
    Is there a way to get the number of rows returned in a report region, without issuing an additional "select count(*) from some_table"?
    I mean something like the substitution string #ROW_NUM# but for the total rows.
    Thanks,
    Pedro.

    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/ui.htm#CHDDGGEG
    For classic report regions, the region footer supports the following substitution strings:#ROWS_FETCHED# shows the number of rows fetched by the Oracle Application Express reporting engine (the page size). You can use these substitution strings to display customized messages to the user. For example:
    Fetched #ROWS_FETCHED# rows in #TIMING# seconds.
    *#TOTAL_ROWS# displays the total number of rows that satisfy a SQL query used for a report.*
    #FIRST_ROW_FETCHED# and #LAST_ROW_FETCHED# display the range of rows displayed. For example:
    Row(s) #FIRST_ROW_FETCHED# through #LAST_ROW_FETCHED# of #ROWS_FETCHED# displayed>
    Ta,
    Trent

  • Export for all rows of a Report Region

    Hi,
    I have a html region with a query button to restrict which rows get selected in a reports region below it.
    But I also want to have a link to export all rows in the report to a csv file. Button the report region may already
    have selected data in it that is not necessarily all rows in the report. Thus I guess I am wondering if I should
    create a whole separate hidden report region that will always select all rows in the query to relate the
    export link to? Or if I can someone use the current report region and select all rows for the export but
    not requery or change the currently displayed report regions results?
    Thanks in advance!

    Yes I just created a hidden report i.e. one with all columns set to
    APEX_APPLICATION.G_EXCEL_FORMAT = TRUE
    And then just create a javascript function to call the export routine...

  • How to set the color to the particular row in a report

    Hi
    I have a report in which I have an edit link(I changed the id as edit link)..When I click that link, all the details(the whole row details) will be appearing on the items nearer to the report to save the changes....
    I want to set the color for the particular row when a link is clicked and the color should not be changed until I save the changes in items...After saving the changes, the report should come in the normal color...this is my requirement..i refered many forums regarding this...But could not find solution....If anyone knows,please help me...
    Fazila

    Here is how I would implement
    Create renderer
    Add SkinnableContainer element and create a skin for this container namely SkinnableContainerSkin
    find the fill section in the skin
    add bitmap fill to the fill section and give the source of the image which you are planning to use(Hopefully this is a direct way of doing, may be you need to hack this a little to get it to work)
    I've never tried this, but should help you give some idea.

  • Get information from a row in a report region to be used in conditions

    Hi,
    I have a page with 2 regions.
    First region is a report from a table (departments) and the other region is another report region (employees).
    One of the columns in the departments report is a link that when I click on it, it will refresh the second region to show the employees by department.
    My issue is when I open the page for the first time or get back from another page, I want to show by default the employees for the first department. I don't know how to get this value and assign it to a a Page Item and use this page item in the second report.
    I appreciate any help.
    Thanks
    andrese

    Andrese
    For page item (which you populate when user clicks on department report link), write default value as plsqlfunction body and try something like
    DECLARE
    v_dummy tbl_dept.dept_id%TYPE;
    BEGIN
    SELECT dept_id INTO v_dummy FROM tbl_dept WHERE ROWNUM = 1;
    RETURN v_dummy;
    END;I take it you populate dept_id into page item, when users click on department report link. You can change this according to your requirement. Also make sure that the SELECT query matches with your department report query so that first row of your department report always matches with above SQL query output.
    Please note that this may not work if your department report query contains any GROUP BY/ORDER BY/HAVING clauses
    Cheers,
    Hari
    Edited by: Hari_639 on Oct 5, 2009 9:04 PM

  • Current value of a column.row in a Report region

    Hi
    I have a report that I want to display a single row per page. No problem there. I also want to show, in a separate region below the value of two specific columns for that row (they are large text items that I want to show as text areas).
    My problem is how to have the source of the text area data items match the current report row above. What I want is sort of;
    SELECT TEXTFIELDNAME FROM TABLE WHERE KEY = value from column1 in the report above above (like the #EMPNO# notation when linking a report column to another page)
    Or maybe there is a better way ?
    Any pointers much appreciated.
    Jules

    Hi Jules,
    As always you've some options to achieve what you would like to do.
    If you know AJAX, you could do it that why, if not an "easier" why of doing it:
    1) Create an hidden item
    2) In your report make a link to the same page, but give as parameter the hidden item with the pk as value
    3) In your where clause of your select to fill in the text area, you search for the hidden item (WHERE key = :HIDDEN_ITEM)
    Hope that helps,
    Dimitri
    -- http://dgielis.blogspot.com

  • Can I change the reort total: text in the summary row in a report region?

    Hi all,
    This might has been asked before, I tried searching the forum but couldn't find an answer. In the report attribute, if I tick the sum checkbox then run the page, the last row would give me the summary numbers which is what I want. However is there a way I can change the "report total" text in the last row of the first column?
    Thanks very much for your time.
    Pete

    Hello user9546327,
    I had the same problem, until I realised that the text seems to be printed under the first column of the report. If that one is a hidden column, the text won't be printed in the report.
    Solution:
    In the 'Report Attributes' tab, move the first visible column (= attribute 'Show' is ticked) to the top of the report columns.
    Best regards,
    Sabine

  • Reports region only shows 15 rows

    I have a strange problem with a reports region. The region runs a simple SQL select against a table. My table has 18 rows but the report region only displays 15 rows.
    I ran the SQL directly against the database and all 18 rows are returned, so it's not a problem with the query.
    Under the Report Atrributes tab for the region, I checked the Layout and Pagination section. Number of rows was set to 15, which I thought explained my problem.
    I deleted the value in number of rows. But the region still only shows 15 rows.
    If I change the value in number of rows to 20, all 18 rows are shown. But again, if I delete the 20, only 15 are shown.
    Is there some other setting somewhere which is defaulting the report to 15 rows?

    That item is cleared as well. Very strange. Still can't see anything on the page that's causing it to only show 15 rows.
    Edit -
    Setting it to 999999 seems to cure the problem until I find a solution. Very strange, maybe it's a bug?
    Message was edited by:
    Antilles

  • Dynamic action with interactive report region refresh

    Hi!
    I'm using APEX 4.02
    I've got a page with 2 regions.
    Region1 is a (input) form
    Region2 is an interactive report on the same table as region 1
    When entering values on the form I'm trying to dynmically lookup similar records in the table with the interactive report.
    I've made a dynamic action on the change of the form fields which should refresh the interactive report region. I can see this one fires if I add a alert to debug if it fires.
    The dynamic report is based on a query with bind variables pointing to the form fields, for example
    where
    field1 = :P2_FIELD1
    This works great on the page load, so no dynamic action is fired but I can see the rows in the report region are the ones I am looking for.
    But the refresh of the report region is not working, it is never refreshing and/or showing the correct data after a change of the form fields, so it looks like the dynamic action "refresh region" is not working on the interactive report.
    Any ideas why this can go wrong ?
    I would like to solve this using standard dynamic actions and preferrably not via PL/SQL or JS, shoudl be possible if I should believe the documentation... ;)
    Cheers
    Bas
    Edited by: bklerk on 26-apr-2011 3:07

    Hi,
    When you change value to item, I assume you do not set value to session state.
    Use interactive report advanced attributes "Page Items to Submit" , set items session state before report is refreshed.
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/app_comp.htm#sthref1235
    Similar post/issue here
    Hide and show region - hides on refresh
    Regards,
    Jari

  • Show alert in row of Report Region

    Hi,
    I've a report region containing say 30 rows and columns:
    1. Error_reason
    2. Error_code
    3. Action (apex_item.select_list values 'No Action','Incorrect','Valid')
    If 'Valid' is chosen then Error_code will be processed i.e. record will move to master table.
    Now if already this Error_code is present in master table there is a validation process which runs when clicked SUBMIT and should show an alert showing a red cross next to the column Action for that row or mark the row red.
    How can it be implemented?
    Can I use apex_item.text(value 'X') with hidden=false from validation process where error_code is present in master table?
    Please suggest ASAP.
    Thanks.

    You said Now if already this Error_code is present in master table then you want red cross next to the column Action for that row or mark the row red.
    Why do you need in the Submit processing when you can identify them when the report displays? You could even suppress the duplicated rows from displaying !
    SELECT ERROR_REASON, ERROR_CODE, ACTION,
    decode( (select count(*) from ERR_MASTER B where B.ERROR-CODE = A.ERROR_CODE)
            ,0,null,'<img src="#IMAGE_PREFIX#FNDCANCE.gif" ALT="DUPLICATE" />') "Status"
    FROM <ERROR_ENTRY_TABLE> A
    WHERE ....Of course, you have to change the table and columns names in the above query to match what you have. Its the DECODE that is the point I am trying to convey.
    Now go to Report Attributes and change the Status Columns Type to Standard Report Column.
    Regards,

  • Report Region show all rows?

    Hi,
    I have a report region in which I want to show all rows. Setting the pagination scheme to No Pagination doesn't
    seem to do the trick. I have set Number of Rows and Maximum Row Count both to NULL. Nothing seems to work.
    Is there some trick to get all rows to be displayed?
    Thanks in advance!

    Hi,
    I have two report regions on different pages. On both I have set 'Number of Rows' and 'Maximum Row Count' to null. One report will return all the records in a query (~800), the other report will only return 500. I can't see any other differences in the reports that would cause this behaviour.
    I didn't really want to restrict my reports to a set number of rows, is this really the only option?
    Thanks,
    Rochelle.
    Edited by: Rochelle K on Nov 5, 2009 10:13 AM

  • Apex 4.2 Report region sql query with "apex_item.text" renders wrongly

    In APEX 4.2 page i have created region "Report data".
    Type="SQl Query".
    "User Interface"-->"Template"="Reports Region".
    "Region Source"="select apex_item.text(1, '111') as c1 from dual".
    Actually the select query is little bit more complex, but generally simplified it is such, that it uses function "select apex_item.text" to construct HTML textfield.
    If i run in Sql Developer query
    select apex_item.text(1, '111') as c1 from dual;Then result is:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />But in APEX 4.2 the report is rendered so:
    <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 to display correctly i had to put extra spaces between" &gt" and ";" and so on)
    And APEX 4.2 shows ugly html inside report cell/slot for me, displaying characters/symbols ">". The reason is that APEX HTML page source does not have symbol ">" but has " &gt ;" .
    In APEX 3 i have similar query working well, without such anomaly.
    What attribute should i change in APEX 4.2 region to display my query result as needed?
    I need that function "apex_item.text", i cannot remove it.
    Edited by: CharlesRoos on 13.02.2013 15:28
    Edited by: CharlesRoos on 13.02.2013 15:29
    Edited by: CharlesRoos on 13.02.2013 15:29

    CharlesRoos wrote:
    In APEX 4.2 page i have created region "Report data".
    Type="SQl Query".
    "User Interface"-->"Template"="Reports Region".
    "Region Source"="select apex_item.text(1, '111') as c1 from dual".
    Actually the select query is little bit more complex, but generally simplified it is such, that it uses function "select apex_item.text" to construct HTML textfield.
    If i run in Sql Developer query
    select apex_item.text(1, '111') as c1 from dual;Then result is:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />But in APEX 4.2 the report is rendered so:
    <td  headers="c1">&lt ;input type=&quot ;text&quot ; name="f01" size="20" maxlength="2000" value="111"  /&gt ;</td>(for this forum to display correctly i had to put extra spaces between" &gt" and ";" and so on)
    And APEX 4.2 shows ugly html inside report cell/slot for me, displaying characters/symbols ">". The reason is that APEX HTML page source does not have symbol ">" but has " &gt ;" .
    In APEX 3 i have similar query working well, without such anomaly.
    What attribute should i change in APEX 4.2 region to display my query result as needed?Ensure that the Display As Column Attribute for the C1 column is Standard Report Column.

  • Number of Rows Displayed in a SQL Report Region

    Hi,
    Just wondering whether it is possible to control the 'Number of Rows' displayed under the 'Layout and Pagination' section within the Report Attributes page.
    Basically need to know if I can programmatically control this or even better, can it be customized by the user as the user may want to see say 15 rows, 200 rows or 'All' rows of a certain region on the page. FYI, I have three different report regions on one page and want to give the user the flexibility to modify the number of rows displayed per region.
    Thanks.
    Tony.

    Tony,
    you can find that in this how-to document:
    http://www.oracle.com/technology/products/database/htmldb/howtos/howto_report_rownum.html
    Denes Kubicek

Maybe you are looking for