To access the values of a Standard report

Hello

I'm coming out of the standard functionality provided by their SUMMIT. I have a dynamic query that more or less transposes the rows and columns of the table so that the data is displayed horizontally. The query works fine for the display of information. I would like to be able to update the data in this way as well. I want to it works as a tabular presentation, but I realize I need to create a custom code to do this. My thought is that I can save the data in a collection and manipulate it from there. The problem is that I do not now how to access each field in the row and column. Is this possible?

The form looks something like what is below. I want to be able to add a line, and change the value in the columns of hours

Month1, Month2 months3 months4 MonthN employee

Thanks for any help!

Blake

Hi Blake,

As long as MonthN values for fields of a record by employee (i.e. your column headings match the fields in the record), then you have at least two possibilities:

1 - use a custom report template to generate results in columns rather than rows. You can use report templates customized for tabular forms, so you could create just the wizard of the Apex. Here is an example of a report that does this: http://htmldb.oracle.com/pls/otn/f?p=33642:146:1418332272658337

2 use the APEX_ITEM - http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_item.htm#CACEEEJE - package and create a 'tabular manual form.

If, however, the values of MonthN are not all in the same folder, and then create a collection would be the best way to go, but you must create a manual procedure to retrieve results form sent as a table and update the appropriate records

Andy

Tags: Database

Similar Questions

  • 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 capture the value of type column report

    It would be a great help that you might suggest the following

    (i) Java script that I wrote on the standard status column (in a tabular report) fails.
    This happens because of the standard status column, if I use the text field then called Javascript function and showing correct results.

    Now, here, I want to know how to capture the value of the column standard report, since javascript fails due to
    the column values of standard report unrecognized.

    Example:

    Columns of the report as a table:
    ```````````````````
    Standard report column: salary
    TextField report column: new treatment
    Report column standards: difference

    I've written the javascript on column New_salary function which returns the value of the salary column to calculate the difference.

    For this column of report types, the javascript function does not work, that is to say, it does not show the difference., since it is not read
    the value of the column Salary (which is the Standard type of report column)
    Once I have change the Salary column to text (display as saved state) javascript field works fine.

    All entries on how to capture the standard value of the column, so that I can access the value of the javascript function.

    Thanks in advance
    Vijay

    Hi Vijay - I had problems with the forum as well (and my workspace OTN so)!

    You have two questions, I think.

    First of all, that the old wage is not an input element, you can not get to it by referring to an ENTRY tag. you will need to change that to something like:

    var s1 = d[k-1].firstChild.nodeValue;
    

    This means that there is nothing else in the cell apart from the text - as in < td > < table > 123. If there is something else there that stops you getting the value using the above, you can go through these nested tags referring to objects further firstChild-

    var s1 = d[k-1].firstChild.firstChild.nodeValue;
    

    As I don't see your page, you need to check yourself to see firstChild how much you need. This example assumes that you had something like: < td > < b > 123 < /b > < table >

    Second, the values of s and s1 are strings. You must convert these numbers to be able to perform calculations. You have two javascript functions to do this: ('string') parseFloat and parseInt ('string'). One contains decimals, the other is not - but know that one is not very accurate (it can change "123.456' in ' 123.455999999995' or something similar - not very good! '").

    So, your calculation should be:

    var diff = parseInt(s) - parseInt(s1);
    

    Andy

  • Access the values of cells in neighboring XTable Diadem

    Hello

    Can someone please help me understand how to access values in adjacent cells in the case of XTable EventValSet?

    Void XTable1_EventValSet (ByRef ByRef this, lines, columns, cells) ' set the event handler

    Select the box collar
    Case 1
    neighbor2 = This.Columns (2). Cell.Text ' this is pseudo-code... Note how you deal properly with an adjacent cell?
    Case 2
    neighbor1 = This.Columns (1). Cell.Text
    Select end

    End Sub

    This code is for discussion... I couldn't find a way to do it.

    Thank you

    Jim

    Kevin,
    I contacted R & D on this issue, and they offered very useful answers.

    The first thing we need to understand is that the XTable stores all values. This allows XTables to have very high performance, even for large sets of data. For this reason, there is no built-in way to access the values of the cells surrounding (or arbitrary). We are limited to what we receive in the case of managers since the XTable is a structure based on events.

    Alternatively, we can write our own class that implements the XTable. In this way, we have the ability to reuse the Manager of EventValGet in the EventValSet Manager to access arbitrary cell values. Our new class must implement all the cell properties that are available in the EventValGet code, but they are not too many, so it is not unreasonable. Here is an example:

    class MyNewCell
    Public text
    end class

    Void XTable1_EventValSet (ByRef ByRef this, line, column, cell)
    Dim oCell
    Set oCell = new MyNewCell

    Nearby Sun
    Select the box collar
    Case 1
    Call XTable1_EventValGet (This, lines, columns + 1 oCell, false)
    neighbour = oCell.Text ' Note This is pseudo-code... get a cell adjacent to the previous line
    Case 2
    Call XTable1_EventValGet (This, line, column - 1 oCell, false)
    neighbour = oCell.Text
    Select end

    MsgBox neighbor

    End Sub

    Void XTable1_EventValGet (ByRef this, line, column, ByRef cell, IsInputCell) ' Erzeugter event handler
    Cell.Text = line & "-" & Col
    End Sub

    It is worth noting that, although there is workaround, it is against the rules of design XTable.

  • To access the values of the Atrributes VO at the bean object

    Scenario is,

    I have two attributes in the original Version, but I want to access the values of attributes, I can get the values of Vo using vo, getAtrribute (), but I want to access the values of the attributes when the user will enter new values, I want access to a new value to manage the bean to handle.

    I dropped VO as a form on the Page

    Version: Release 11g Jdev 2, 11.1.2.0.0

    Zaid

    You tell me that after 30 answers, it's not good

    and it is a totally different matter, then you need to open a new topic for each new question (ignore this time but remember)

    As you say that annual is the primary key in the primary table, then obviously you want to sink it is the current value in the child records, why you need the next sequence number to add detail records?

    Anyway check this box

    Immerse yourself in Oracle: get the next value in the sequence in ADF

    Ashish

  • What is the differece between a Standard report column and that is set to display text (escape special characters)?

    Hello friends,

    My requirement is

    I want to create a table. Presents some columns to display text.

    so my question is,

    What is the difference between a Standard report column and display text (escape special characters) in the attribute column property?

    Kind regards

    Arianne.

    Hi ujwala1234,

    ujwala1234 wrote:

    Hello friends,

    My requirement is

    I want to create a table. Presents some columns to display text.

    so my question is,

    What is the difference between a Standard report column and display text (escape special characters) in the attribute column property?

    Kind regards

    Arianne.

    Here is the difference:

    • Standard report column: this is used when your column in the SQL query returns the HTML markup. For example the query SQL with APEX_ITEM API columns or columns where you have mixed data in the column with the markup. In short, APEX rendering engine treats the column as HTML markup and analysis accordingly to display the required HTML element.
    • Display text (escape special characters): this type analysis the column data in the form of data stored in the database (no HTML). During analysis if the data contains special characters then it escapes and displays the data.

    Yes, you can mix the manual in the form of built on APEX_ITEM with normal standard report (display text) columns.

    I hope this helps!

    Kind regards

    Kiran

  • Cannot access the value of parameter task flow when type java.lang.string

    Hi all

    I use Jdev 11.1.1.6.0 version.

    Here's the scenario. I enclose the workspace.

    A taskflow (testScope1TF) simply have 2 obligatory parameters corresponding type is String and ArrayList.

    This stubborn taskflow placed as a region in a pop up (p1) in a fragment (testScope2Fragment.jsff).

    Have a command to link to testScope2Fragment.jsff and from there, I'll put the value of the parameter.

    Pop until I can access the value of the ArrayList, but for string, it is show null. However all these setting set the same bean. What is the reason for the string parameter showing null?

    Can anyone help to understand this strange behavior.

    Here is the link to sample workspace

    https://drive.Google.com/file/d/0b-8Suq_hutEhNE01blZFUnlQdzQ/view?USP=sharing

    To run the example - ScopeTestPage.jspx run-> click on commandLink 1 -> press the commandButton control pop up 1.

    In output integrated wls console like below.

    ------------------------------------------------------------------------

    Table list size: 2

    String value parameter: null

    Here's the code-testScope2Fragment.jsff.

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1" "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "" "

              xmlns:f=" http://Java.Sun.com/JSF/core ">

    < af:panelStretchLayout id = "PSL1" >

    < f: facet name = "center" >

    < af:panelGroupLayout layout = "scroll".

                               xmlns:af=" http://xmlns.Oracle.com/ADF/faces/rich "" "

    ID = "pgl1" >

    < af:commandLink text = ' commandLink 1 ' id = 'cl1' partialSubmit = 'true '.

    actionListener="#{viewScope.TestScope2Bean.tesctScope2Method}"/ >

    < af:popup id = binding = "#{"p1"viewScope.TestScope2Bean.viewScopePopUp}" >

    < af:dialog id = "d1".

    title = "Pop of the scope on the view upwards the Value: #{viewScope.TestScope2Bean.testScopeView String}" >

    < af:region value = "#{bindings.testScope1TF1.regionModel}" id = "r1" / > "

    < / af:dialog >

    < / af:popup >

    < / af:panelGroupLayout >

    <!-id = "af_one_column_stretched"->

    < / f: facet >

    < / af:panelStretchLayout >

    < / jsp:root >

    public class TestScope2Bean {}

    String testScopeView = null;

    ArrayList < String > testScopeViewList = new ArrayList < String > ();

    Private RichPopup viewScopePopUp;

    public TestScope2Bean() {}

    Super();

    }

    public void tesctScope2Method (ActionEvent actionEvent) {}

    Add the code in the event here...

    this.setTestScopeView (In ViewScope Test");

    testScopeViewList.add ("sjdjshdsj");

    testScopeViewList.add ("cdsfdsfsf");

    RichPopup.PopupHints applyHoldspopUpHints = new RichPopup.PopupHints ();

    this.getViewScopePopUp () .show (applyHoldspopUpHints);

    }

    {} public void setTestScopeView (String testScopeView)

    this.testScopeView = testScopeView;

    }

    public String getTestScopeView() {}

    Return testScopeView;

    }

    {} public void setViewScopePopUp (RichPopup viewScopePopUp)

    this.viewScopePopUp = viewScopePopUp;

    }

    public RichPopup getViewScopePopUp() {}

    Return viewScopePopUp;

    }

    {} public void setTestScopeViewList (ArrayList < String > testScopeViewList)

    this.testScopeViewList = testScopeViewList;

    }

    public ArrayList < String > getTestScopeViewList() {}

    Return testScopeViewList;

    }

    }

    Thanks in advance.

    I took as look at your code. The problem is that you use a popup in the region and regions have a bit different (refer to http://www.oracle.com/technetwork/developer-tools/adf/learnmore/67-queryform-in-popup-253861.pdf) in the regions. Must be addressed the refreshment of the ifNeeded region to make your sample (see image below):

    Timo

  • How can we access the value of the field in a line removed in the buffer of the component?

    In the PeopleSoft component buffer when it removes a parent row children lines are also deleted, therefore, not possible to access the value of the field of these lines.

    Example: If we have RECORD1 at level 1 and RECORD2 (which contains the INCIDENT_NBR field) at level 2.

    If a row is deleted at level 1, level 2 lines are also deleted, but before delete, I need access to the value of INCIDENT_NBR and make sure no line (s) not many for this value in a third record record RECORD3.

    If any line exist in the RECORD3 record an error message should appear in the case otherwise the delete process can go.

    I put the peoplecode in RECORD2. INCIDENT_NBR. SavePreChange (at the record level) because this control must be carried out in all cases for all the component where my RECORD2 record is used.

    When I display the value of the field I always get a null (00000000 digital).

    It is possible that in PL/SQL within a trigger, but unfortunately in this case, I can not catch the error produced by RAISE_APPLICATION_ERROR (-20000, 'Suppression of an incident not allowed when there are dagnostics'); in Peoplecode.

    Does anyone know if there is a way to get the values of the fields in the deleted lines?

    Thank you

    A rowset object has two properties

    ActiveRowCount

    All lines of lines in an exclusive set of deleted rows

    Number of lines

    All lines of a set of lines included the deleted rows.

    So I would say, to loop through all lines and check for deleted rows and make any desired logic, something like:

    For & i = 1 to & rs. Number of lines

    & line = & rs. GetRow (&i);)

    If & row. IsDeleted then

    & rec = & rank. GetRecord (1);

    & fld = & rec. GetField (FIELD. YOURFIELD);

    / logical necessary * /.

    End - If;

    -End;

  • Could not access the value of the component off ValueChangeListener

    In many cases, I need to use the value of some UIComponent during execution in many places in the application. But the problem is that I could not access the value of the component outside the ValueChangeListener of this component. I tried to store this value in a temporary local variable, I also tried to use the opportunity to link , but it did not work.

    This thread changes made on the ValueChangeListener can't think where else

    said I should go ahead everything in the ValueChangeListener but is not useful in my case and it's really limit my choice later.

    So question is: How to access the value of the element external ValueChangeListener?

    I use Jdeveloper with ADF 11.1.2.3 technology

    Hello

    You can create a bean (depending on the application, choose the scope), add a variable with accessors and then use it in the 'value' property of the component.

    Arun-

  • To access the values stored in the configuration item

    I change a series of workflow that uses the values stored in a table within a configuration item. The item is shared between several workflow, with being initially populated via an online form. I want to add an additional field to the user interface that will be used in workflows to other institutions.

    The workflow that fills the element, I can fill and access the values of the Interior, no problem. I can export and see the values being stored in the element. When I try and access it in another stream of work, the values appear to be blank.

    I guess I wonder how workflows would share these values are the values in the table consulted positiionally? Other that the key defined for the single value, i.e. name, they don't seem to have a unique identitier. I enclose a small snippet of the content of the element below. Thank you.

    #string #test # #string #test # # string; string # #; #Date #20130501180811-0400 #; #string #cluster - 1 #; Array # # {#} #; #string #05012013 #;

    Yes, table ellements are accessible by position / via the index.

    What values appear empty in the workflow one another? All the values stored in the configuration item, or only the extra value you add? In your statement, it seems to be an empty array (after the string "cluster-1" ').

    If possible, could prepare you a couple of sample workflows (one that fills the configuration item) and those who read it, that demonstrates the problem?

    -Ilian

  • How can we access the value defined for the attribute search criteria

    Hi guys,.

    Is it possible to access the value that has been set to attribute programmatically in the bean in support of a search term?

    Kind regards!

    Schuhler

    Check the sample 85 ADF code corner sampleshttp://www.oracle.com/technetwork/developer-tools/adf/learnmore/85-querycomponent-fieldvalidation-427197.pdf

    Frank shows how to access the variables.

    Timo

  • A search criterion and the result as a table in the header. Wanted to bind the result table to bean to access the value of the key

    The search criteria and the result is displayed in the table in a group header.  I want to get the value of the selected row and analyze the value of Vo in the next page for a variable binding. So I need to manage the value biniding to the bean tbal, but there is no option to bind the table to a bean. So, how can I get the selected value.

    Kind regards

    K M Krishna.

    First tell us your version of jdev, please.

    to get to the selected line you need not to link the table to a managed bean. You can for example drag the necessary attributes of the VO on the page and drop them as components of a inputText. the framework then generated the attribute bindings and sets the values of the current row for them. As you do not really need the inputText elements switch to source view (! it is essential!), then remove them. This will eliminate the Visual component, but attribute bindings are stored.

    Know you can access the values through their EL or as you get the value of an attribute via it's mandatory.

    Timo

  • How to access the values of the object View Other or objects entities

    HelloW.
    I need help, I have the validation of the IUCN IUCN impl methods, I need to access the values of other objects in view o entities to validate.
    How do I?
    Help, please

    Go you to other entities via binding accessors when entities you will access are related by an association. Otherwise to access other objects in the view definition of your needs through accessors from view in the connected user reviews section.

    http://download.Oracle.com/docs/CD/E17904_01/Web.1111/b31974/bcentities.htm#insertedID12

  • access the value in the document class

    Hello I am trying to access a value in the document class. but I can't make it work.

    what I have is:

    can someone tell me how to access the value of myArray?

    Bomberman.As:

    package {}

    import flash.display.MovieClip;

    public class bomberman extends MovieClip {}

    public var myArray:Array = []; trying to access this value

    public void bomberman() {}

    init();

    trace (document.docClass);

    }

    private void init() {}

    var square: Array = [];

    for (var i: Number = 0; i < 11; i ++) {}

    for (var j: Number = 0; j < 11; j ++) {}

    var temp: grassSquare;

    If (i == 0 |) I == 10) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    } Else if (i %2! = 0) {}

    If (j == 0 | j == 10) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    myArray.push (false);

    } else {}

    myArray.push (true);

    }

    } else {}

    If (j %2 == 0) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    myArray.push (false);

    } else {}

    myArray.push (true);

    }

    }

    }

    }

    }

    }

    }

    Bomberman.fla:

    import flash.events.KeyboardEvent

    var User1:Player1 = new Player1;

    stage.addEventListener (KeyboardEvent.KEY_DOWN, User1.fl_SetKeyPressed);

    User1.x = 75;

    User1.y = 60;

    addChild (User1);

    Player1.as:

    package {}

    import flash.display.MovieClip;

    import flash.events.Event;

    import flash.events.KeyboardEvent

    import flash.ui.Keyboard

    SerializableAttribute public class extends MovieClip {Player1

    private var upPressed:Boolean = false;

    private var downPressed:Boolean = false;

    private var leftPressed:Boolean = false;

    private var rightPressed:Boolean = false;

    private var currentSquare:uint = 12;

    public void Player1() {}

    this.addEventListener (Event.ENTER_FRAME, fl_MoveInDirectionOfKey);

    stage.addEventListener (KeyboardEvent.KEY_DOWN, fl_SetKeyPressed);

    }

    public void fl_MoveInDirectionOfKey(event:Event)

    {

    If (upPressed & & this.y > = 100 /* & & document.myArray [currentSquare-1] * /)

    {

    This.y-= 40;

    upPressed = false;

    currentSquare-= 1;

    }

    If (downPressed & & this.y < = 340 / * & & this.myArray [currentSquare + 1] * /)

    {

    This.y = 40;

    downPressed = false;

    currentSquare += 1;

    }

    If (leftPressed & & this.x > = 125 / * & & /*this.myArray[currentSquare-11]*/)

    {

    This.x-= 50;

    leftPressed = false;

    currentSquare = 11;

    }

    If (rightPressed & & this.x < = 425 / * & & /*this.myArray[currentSquare+11]*/)

    {

    This.x += 50;

    rightPressed = false;

    currentSquare += 11;

    }

    trace (currentSquare);

    }

    public void fl_SetKeyPressed(event:KeyboardEvent):void

    {

    switch (event.keyCode)

    {

    case Keyboard.UP:

    {

    upPressed = true;

    break;

    }

    case Keyboard.DOWN:

    {

    downPressed = true;

    break;

    }

    case Keyboard.LEFT:

    {

    leftPressed = true;

    break;

    }

    case Keyboard.RIGHT:

    {

    rightPressed = true;

    break;

    }

    }

    }

    }

    }

    any class that is added to your list of display:

    MovieClip (root) .myArray

  • How to access the value of a group of radio in javascript

    Definition of radio as a group below:
    STATIC2:mango; 1: 5; 3, grapes, Apple; 4, pineapple; 2, orange

    We need to access the value of a group of radio in javascript. Please let us know how to reach?

    Hello

    You can use the API javascript Apex as $v

    var l_my_value = $v('Px_MY_RADIO');
    

    http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/javascript_api.htm#CHDEJEIG

    BR, Jari

Maybe you are looking for