Fusion of data display objects


Hello

I have to present the results of two queries merged, invoices, and receipts that are in different tables on the database.

I have a query that returns the invoices, and another that returns revenues based on the selected invoice.

I created 2 objects in the view with these queries and I want to combine the result of both programmatically, since columns recipes need some calculations based on its respective invoice.

This result should be displayed in a single table.

Any advice on how to do this?

Can I use the iteartor or the view object itself.

PS: I don't want to change the data in the database once the merger complete, it is only for temporary display.

I use jdev 11g r1

Thank you

Thank you for all your replies.

I was able to create a view in the database that returns me all the documents I needed to present all the conditions by using the union all and analytical functions.

Thank you all for your help

Tags: Java

Similar Questions

  • Creating a display with a data source object

    Hello guys,.

    Is there a way to create a View object in JDeveloper 11.1.1.4.0 using an instead of a JDBC data source connection string? When I select new-->--> view object ADF business components, it seems that the Research Assistant for a default database connection.

    I wonder if there is a way to create a display object and specify something like ' java: comp/env/jdbc/xxxxDS ' as a data source. I know that the Module of the Application can be configured to point to a JDBC data source and then WLS can be configured to use the JDBC data source, but I wonder if it's the only way to go.

    Thank you

    David
    I know that the Module of the Application can be configured to point to a JDBC data source and then WLS can be configured to use the JDBC data source, but I wonder if it's the only way to go.

    Yes, at design time you only use inside JDeveloper JDBC connections to connect to the DB and create components ADF BC - after all development is done alone without a WLS environment.
    At run time, your AM can be configured to use a data source or JDBC connection.

  • is it possible to apply the sort on the columns added to a dynamic display object?

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    We have created a dynamic display object in the AM Impl, all objects in view columns are added dynamically.


    All lines are displayed correctly, but when sorting columns data disappear. (point of view are being refreshed, of course).


    is it possible to apply the sort on the columns added to a dynamic display object?

    This is how we show data in the JSF page:


    < af:table lines = ' #{bindings. " DynamicVO.rangeSize}' fetchSize = "#{bindings." DynamicVO.rangeSize}.

    emptyText = "#{bindings." DynamicVO.viewable? "{'No data to display.': 'Access Denied.'}".

    var = 'row' rowBandingInterval = '0' value = ' #{bindings. " DynamicVO.collectionModel}.

    selectedRowKeys = ' #{bindings. " DynamicVO.collectionModel.selectedRow}.

    selectionListener = "#{bindings." DynamicVO.collectionModel.makeCurrent}.

    rowSelection = "single" id = "t1" >

    < af:forEach elements = "#{bindings." Var DynamicVOIterator.attributeDefs}' = 'def' varStatus = 'vs' >

    "< af:column headerText =" #{def.propertyMap.label} "sortable ="true"sortProperty =" #{def.name} ".

    ID = "clmn$ {vs.index}" >

    < af:outputText value = "#{row [def.name]}" id = "ot1" / > "

    < / af:column >

    < / af:forEach >

    < / af:table >




    Thanks guys, I created a custom class that contains a model that can be sorted in a pod of support and I have to the adf work table it and it is very good about sorting.

    JSF:

    Rows = "#{pageFlowScope.crudBean.dynamicTable.collectionModel.RowCount} '"

    contentDelivery = 'immediate' var = 'row' rendered = 'true '.

    Binding = "#{backingBeanScope.crudBackingBean.tasksTable} '"

    selectionListener = "#{backingBeanScope.crudBackingBean.customListener} '"

    "rowSelection ="single"id ="t1"partialTriggers =": pt_gr2 "columnStretching =" column: clmn0 ">

    inlineStyle = "width: 100px;"  ID = "clmn$ {vs.index}" > "

  • PL/SQL functions as LOV to use in another display object

    Hello

    We had a custom search to extract data from a display object and the data displayed as a Table of ADF. Now, there are few requests for searches on this report. Go see criteria and Panel request if we allow saved search. But the fields used in the research are going through a lot of logic and thus the PL/SQL functions are implemented. We used to call these functions and lists separated by commas and then divided the list into individual elements and put in the component "select options".

    The value (String) returned by the pl/sql function is something like - APAC, EMEA, NORTH AMERICA, FDA

    I am creating a LOV based on SQL-query "Select getRegions() from dual;

    Now, I want the list separated by commas to divide so that I could use this LOV in an another view and try the display criteria and saved searches.

    I tried to assign as LOV just to check and the criteria drop-down view for region displays same value as single element - "APAC, EMEA, NORTH AMERICA, LAD."

    I want it to be 4 separate - elements

    APAC

    EMEA

    NORTH AMERICA

    DVL

    Is there anyway to achieve this?

    Or better is at - it another way to do this (maybe I'm wrong)

    Thank you.

    JDev: 11.1.2.4

    Instead of a programmatic VO of PL/SQL, I found sometimes easier to write PL/SQL functions that return a table - need to CREATE a TYPE for the data items to be returned and a TYPE of TABLE IMBRIQUE tabular form of the first kind.  The function returns the type of table, and can even be a PIPElined table function.  Then I create a VO with the following text:

    SELECT * from TABLE (my_function_returning_table)

    The function can even take parameters, which you fill with variable BIND your VO.

  • Linking with many display objects, then 2

    Hello

    Is it possible to create a link with several display objects then 2. There are two objects in view I want to put a link with a common master view object. is this possible? If Yes please tell me how to do it.

    -Thank you

    Hello, Uthman.

    As suggested by Ibtisam Zafar and 1000723 user, you can do with two links associated with the same master VO.

    I think that what's missing to make adds master and two details in the page (steps 5 and 6).

    For example, if we have a MasterVO as a master, the FirstDetailVO and the SecondDetailVO as a detail:

    1. create a link to display based on MasterVO and associated with FirstDetailVO via the idMaster field, named FirstDetailMasterVL.

    2. create a link to display based on MasterVO and associated with SecondDetailVO via the idMaster field, named SecondDetailMasterVL.

    3. in "Module-> Application data model", adds MasterVO (MasterVO1). Then, add FirstDetailMasterVL (FirstDetailVO1) and SecondDetailMasterVL inside MasterVO1.

    4. in the control of data, you can see MasterVO and inside, you will see FirstDetailVO1 and SecondDetailVO1.

    5. in the ViewController project, you can insert in the page "FirstDetailVO1" as a master-detail.

    6. to insert SecondDetailVO detail, you can add it as a table or a form. You insert SecondDetailVO as a master detail.

    You can see how the two details are updated as you navigate through the lines of MasterVO1.

    RFH.

  • XML editor integration with OFA for several display objects

    Dear all,

    I have a problem in the integration of XML with the OAF Page.

    I'm generating the xml using the XMLNode class tags. And I was succeed for object a point of view. But now I am faced with the question with two display objects (which is not dependent on each other).

    Are there any entries you its urgent.

    Thanks in advance,

    Kind regards

    Anil Kumar

    Dear all,

    I found the solution for this... Please find the Code.

    The controller code:

    If (pageContext.getParameter ("generateRpt")! = null)

    {

    String po_number = (String) pageContext.getTransactionValue ("PO_NUM");

    System.out.println ("The PO number s i-" + po_number);

    Serializable params [] = {fromDate, to this day, docNo, pendingType, reqNo, po_number}; //

    Class paramType [] =

    {String.class, String.class, String.class, String.class,

    String.Class, String.Class}; //

    DataObject sessionDictionary = pageContext.getNamedDataObject("_SessionParameters");

    HttpServletResponse response = (HttpServletResponse) sessionDictionary.selectValue (null,

    "HttpServletResponse");

    Try

    {

    System.out.println ("Inisde generate button step 2");

    ServletOutputStream os = response.getOutputStream ();

    If (ReportFormat1! = null &!) ReportFormat1.equals(""))

    {

    If (ReportFormat1.equals ('PDF'))

    {

    System.out.println ("Inisde generate button step 3");

    contentDisposition = "attachment; filename = quote Report.pdf";

    response.setHeader ("Content-Disposition", contentDisposition);

    response.setContentType("application/pdf");

    BT = TemplateHelper.OUTPUT_TYPE_PDF;

    }

    If (ReportFormat1.equals ("XLS"))

    {

    System.out.println ("Inisde generate button step 4");

    contentDisposition = "attachment; filename = quote Report.xls";

    response.setHeader ("Content-Disposition", contentDisposition);

    response.setContentType("application/vnd.ms-excel");

    BT = TemplateHelper.OUTPUT_TYPE_EXCEL;

    }

    }

    ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();

    Byte = bufutf''. getBytes();

    outputStream.write (bufutf);

    XMLNode xmlNode [] = new XMLNode [10];

    xmlNode = (XMLNode []) am.invokeMethod ("executeReportPO", params, paramType);

    System.out.println ("IN CO");

    xmlNode [1] .print (outputStream);

    xmlNode [2] .print (outputStream);

    Byte = bufutf1''. getBytes();

    outputStream.write (bufutf1);

    System.out.println ("Testying-" + outputStream.toString ());

    ByteArrayInputStream InputStream = new ByteArrayInputStream (outputStream.toByteArray ());

    ByteArrayOutputStream fileData = new ByteArrayOutputStream();

    TemplateHelper.processTemplate (((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getAppsContext (),)

    APP_NAME, TEMPLATE_CODE,

    ((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getLanguage ();

    ((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getCountry ();

    inputStream, bt, null, fileData);

    System.out.println ("inside the template code");

    Byte [] b = fileData.toByteArray ();

    response.setContentLength (b.length);

    OS. Write (b, 0, b.length);

    OS. Flush();

    OS. Close();

    System.out.println ("inside the model code1");

    }

    catch (System.Exception e)

    {

    throw new OAException (e.getMessage ());

    }

    }

    GOT the Code:

    public XMLNode [] executeReportPO (String fromDate, String to date,

    String docNo, String pendingType,

    String reqNo, String ponum)

    {

    System.out.println ("Generate Inisde AM step 1 button" + ponum);

    ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();

    ItemPendingPoVOImpl vo = getItemPendingPoVO1();

    Vo1 PoDetailVOImpl = getPoDetailVO1();

    Try

    {

    vo.setWhereClauseParams (null);

    vo.setWhereClauseParam (0, docNo);

    vo.setWhereClauseParam (1, reqNo);

    vo.setWhereClauseParam (2, fromDate);

    vo.setWhereClauseParam (3 so far);

    vo.setWhereClauseParam (4, pendingType);

    vo.executeQuery ();

    System.out.println ("Request"- + vo.getQuery ());

    String whereconditionpo = "PONO ='" + ponum + "'";

    VO1.setWhereClause (whereconditionpo);

    VO1. ExecuteQuery();

    System.out.println ("query 2--->" + vo1.getQuery ());

    System.out.println ("Inisde generate button step 2 in AM");

    } catch (System.Exception e)

    {

    throw new OAException (e.getMessage ());

    }

    s int = vo.getRowCount ();

    System.out.println ("number of rows affected" + s);

    XMLNode NodeList = new XMLNode [] [10];

    Try

    {

    NodeList [1] = ((XMLNode) vo.writeXML (4, XMLInterface.XML_OPT_ALL_ROWS));

    ((XMLNode) vo.writeXML (4,)

    XMLInterface.XML_OPT_ALL_ROWS)) .print (outputStream);

    System.out.println (OutputStream.ToString ());

    System.out.println ("Inisde generate button step 1");

    NodeList [2] = ((XMLNode) vo1.writeXML (4, XMLInterface.XML_OPT_ALL_ROWS));

    ((XMLNode) vo1.writeXML (4,)

    XMLInterface.XML_OPT_ALL_ROWS)) .print (outputStream);

    System.out.println (OutputStream.ToString ());

    return NodeList;

    } catch (System.Exception e)

    {

    throw new OAException (e.getMessage ());

    }

    }

    Kind regards

    Anil Kumar Pasupala

  • Auto refreshing display objects when the new line in the table inserted on another computer

    Greetings,

    I'm using an application of ADF JDeveloper 11.1.2.4.0 its been used by 2 separate computers.

    It's the same application, but I shared with security ADF for the person (Secretary) will see the half view of the application

    and the other person (doctor), the other half seen. Basically, I put adf username expression (rendering) for each display mode

    the specific menu, buttons, tabs, etc.

    My problem is, say the Secretary, creates a doctor's appointment, rather than re - run display objects

    every X minutes on the advice of the doctor, is there a way to notify the application that the new data are inserted into the database and must be re/refresh-execute?

    I have about 100 objects from view and I don't want to discount/re-execute all objects from view because I don't know on what table a new record its been inserted.

    Appointment is just one example, there are many paintings that both views are connected to.

    Hello

    Here is the solution to your needs: http://matthiaswessendorf.wordpress.com/2010/01/22/flexible-active-data-service/.

    Instead of the pop-up window in the sample you would be re - run the table of appointment. Now all you need is a mechanism that informs the change, which may be a trigger in the database or application that updates the new appointment

    Frank

  • sessionScope in Bind variable access to a display object

    Hi all

    I use jdeveloper 11.1.2.3.0

    I read some articles and messages on access sessionScope in Bind variable to a display object.
    If I understand correctly there is a differnece of opinion about it.

    In our applications, we use a lot of views with bind vars that use environment variables.
    as for now, we save the environment in the context of the session variables,
    and access them with a groovy expression in the var of binding of the VO.
    We also try to use adf.userSession.userData. But UserData is reset during the activation or passivation and all values of the variables are lost.

    What is the correct way to do it?
    Where we should record such as username, role and etc environment variables?
    values that are not changed through the whole session.

    I would like to know what is the best way to do it.

    Thank you very much!

    You must store the min the userdata in the model layer (groovy approach). However, you need passivate variables yourself. The framework does not automatically. You need to override the methods of activatesState (Element) in a request to passivate module data that you store in the userData plan and the passivatesState (Document, element).

    //In application module implementation class
    /**
     * Overridden framework method to passivate user data
     * in XML format by appending to the parent node
     */
    @Override
    public void passivateState(Document doc, Element parent) {
       //This code snippet stores the data in USERDATA node
      Element nodeUserData = doc.createElement("USERDATA");
      nodeUserData.setAttribute("KEY", "USER_DATA");
      // this sample only store one value regionId!
      nodeUserData.setAttribute("VALUE",
           getRegionId().toString());
      parent.appendChild(nodeUserData);
      super.passivateState(doc, parent);
    }
    /**
     * Overridden framework method to activate user data from
     * XML snapshot, stored during passivation
     */
     @Override
    public void activateState(Element parent) {
       //This code snippet reads the data stored in USERDATA node
      if (parent != null) {
        NodeList nl = parent.getElementsByTagName("USERDATA");
        for (int i = 0; i < nl.getLength(); i++) {
    
          Element e = (Element)nl.item(i);
          String key = e.getAttribute("KEY");
          String value = e.getAttribute("VALUE");
          setRegionId(new Integer(value));
          break;
        }
      }
      super.activateState(parent);
    }
    // regionId is made activation safe in this e.g
    private Integer regionId = null;
    
    private Integer getRegionId() {
      return regionId;
    }
    
    private void setRegionId(Integer regionId) {
      this.regionId = regionId;
    }
    

    Timo

  • iterator Dynamic not binding - no data displayed line

    When running, I want to change the data source of the regular VO table to a statically populated VO based on a variable pageFlowScope. I need to do this because in some cases there may be no data in the database but I want the user to be able to view the data of "placeholder". I tried to use the road to Datacontrols placeholder, but who created far too many files, so I abandoned that effort.

    I tried to follow the Andrejus Baranovskis on routes iterator dynamic Blog article:
    [http://andrejusb.blogspot.com/2010/04/dynamic-iterator-binding-to-reuse-view.html]

    The permutation of the work... sort of. I am able to see the individual attributes related to the iterator exchanged on lie, but not the data in the table (the tree liaison).
    Unlike the example of Andreas', these objects both have different definitions, but the same attributes. There is another property that must be set dynamically can someone think?

    Hello

    in your case, I would use am af:switcher component on the page. To determine the facet (you can define facets customized to contain the component to return) to display, I would use the following EL

    bindings.iteratorName.estimatedRowCount > 0--> show the tree or the table linked to the View object that has data of query,.
    It does not show a table/tree related to the View object that uses static data

    In this case, you have definitions of valid binding for two display objects and you spend just between the representations.

    Frank

  • CS4: can I ask a logic based on the fusion of data?

    Hi all

    I create a document using CS4 InDesign that has variable text in it.  Some of the variable text is 'static', it is inserted directly a data merge.  In other cases, however, I want to display a block of text (specify) If an element in the data merge has a value and another block of text, if the data merge element has a different value.  I can do it with a script?  Here's an example: in the data merge file, I have something "WorkingHours.  It can have a value of "5-8" or "24 x 7".  If the value is '8-5' I want to display ' 08:00 - 17:00 Monday - Friday ' and if the value is "24 x 7"I want to show '24 hours, 7 days a week'.  I want the text to display in a cell in a table in my document.

    If I can do this, I just create the script, save it, and then select it via the data merge Panel to insert it into the cell where I want to output data to display?

    Thank you very much

    Ed

    As Peter has already pointed out, you could do a simple IF formula in Excel, problem solved...  Well, that's if you are in a unique fusion of data.  If you are uncomfortable in Excel (first program I've ever used, I love it) you could get around that also.  Merging InDesign and data are not the ideal workflow for this sort of thing, the XM Pie to Indesign plugin is however, works costs a lot, lot$.

  • Create a button to erase/reset the data displayed in the graph

    Hello

    I'm new here and to work with labview. I searched the Forum but have not found an answer that would help me (or at least I think I thank)

    I'm working on a project to acquire process an ECG signal with an acquisition of data. In the front panel, I am trying to display 2 graphics, part of the real-time data display and the other showing all the data acquired up to now. I wanted to add a button to this second graph that, when the user wanted, deleted the data shown in the graph, but immediately continued to display the data.

    (trying to make me more clear)

    ' display all the data acquired--> X--> cleans graphic display--> press the button display all acquired data.

    If someone could help, I would be very grateful!

    Thank you very much

    FM

    Hi fred,.

    Open the finder example in LabVIEW and locate the example of 'how clear diagrams & graphics '.

    Pretty easy, don't you think?

  • ORA-31693: Data Table object 'AWSTEMPUSER '. "' TEMPMANUALMAPRPT_273 ' failed to load/unload and being ignored because of the error:

    Dear all,

    OS - Windows server 2012 R2

    version - 11.2.0.1.0

    Server: production server

    ORA-31693: Data Table object 'AWSTEMPUSER '. "' TEMPMANUALMAPRPT_273 ' failed to load/unload and being ignored because of the error:

    ORA-02354: Error exporting/importing data

    ORA-00942: table or view does not exist

    When taken expdp and faced error mentioned above. but expdp completed successfully with waring as below.

    Work "AWSCOMMONMASTER". "" FULLEXPJOB26SEP15_053001 "finished with 6 errors at 09:30:54

    (1) what is the error

    (2) is there any problem in the dump because file as above of the error. If Yes, then I'll resume expdp.

    Please suggest me. Thanks in advance

    Hello

    I suspect that what has happened, is that demand has dropped a temporary table to during the time that you run the export - consider this series of events

    (1) temp table created by application

    (2) start expdp work - including this table

    (3) the extracted table metadata

    (4) the application deletes the table

    (5) expdp is trying to retrieve data from the table - and gets the above error.

    Just to confirm with the enforcement team that the table is just a temporary thing - it certainly seems it name.

    See you soon,.

    Rich

  • Fusion of data vs search field

    Hello

    Fusion of data vs search field?

    Hi Sanjiv,

    We use data on landing pages only search but merger of field can be used on emails and landing pages.

    Thank you

    Eloqua Export

  • My cc of dreamweaver does not link, server behaviors and data display

    My cc of dreamweaver does not link, server behaviors and data display

    Hello

    Please read this thread-

    https://forums.Adobe.com/thread/2139846

  • The MTS file date display information on screen time in CC PP

    I need to display the timestamp from date of the MTS files so I can see them in PP CC15. Is it possible to get rid of it within the program? Now, I have to do it in another program and then import the file. Takes too much time this way.

    Premiere Pro does not have this feature.  The closest you can get is display the timecode for clips that have it.  If these clips were recorded using Free Run, that would give you a time, but there is no way to see the date displayed in an overlay.

Maybe you are looking for