How to create a ViewObject attribute where value to get database query

Hi Expert,

I have a case for the value of database query. How to create the view additional attribute object where the value get database query?

parameter binding of attributeId object in view I can do this in ADF with JDeveloper 11.1.1.6.

Thank you

Kind regards

Wade W

My problem is solved, maybe it's a bug in the JDeveloper 11.1.1.6.0

I've got error (oracle.jbo.expr.JIEvalException) Houston-25077: name amount not found in the given object: oracle.jbo.server.ViewRowSetImpl@8690e3.

When I develop by tab Overview (presentation of the business components). It is so strange, because I have an another transient viewAttribute that refer to another object in view and not get an error message like this before I create viewAttribute HeaderAmount.

Maybe its ridiculous appearance, but when I go to View (lineVO.xml) object and tab to the source xml file, I have edited here. like to write

<>

Name = "HeaderAmount".

IsUpdateable = "false".

IsSelected = "false".

IsPersistent = "false".

PrecisionRule = 'true '.

Type = "Oracle.jbo.domain.Number"

ColumnType = 'NUMBER '.

AliasName = 'VIEW_ATTR. '

SQLType = 'DIGITAL' >

<>

Value = "ActivityHeaderId" / >

and make sure this xml file are:

<>

Name = "ActHeaderView1VO".

ViewLink = 'model. ActHeaderLineLink ".

Type = "Oracle.jbo.Row"

Reversed = 'true '.

IsUpdateable = "false" / >

When I try to re-run the application model and it's work...

Thanks for your help. really appreciate

Tags: Java

Similar Questions

  • How to create a user interface, where my customers can create an account with my site

    How to create a user interface, where my customers can create an account with my site

    Hello

    Some associates of threads

    Re: How can someone create an account / register on my site?

    Re: Can I create a login/password in the Muse for a HTML5 page or two?

    Let me know if you have any question.

  • How to create scopes ViewObject dynamically

    Hello


    I need to create the view scope object dynamically.

    IE while running, I'll pick the name ViewObject alone, extended VO should get created.

    then any body tell me how to do it.

    I use Jdeveloper version: 11.1.1.3.0


    Kind regards
    Vini

    Published by: Vini on February 17, 2011 22:13

    Method in your AM:

    public String buildVOExtended (String basicVOName) {}
    String fullBacicVOName = new (StringBuilder ("model")). Append (basicVOName). ToString();
    String extendedVOName = (new StringBuilder (basicVOName)).append("_EX").toString ();
    NewView ViewDefImpl = new ViewDefImpl (ViewDefImpl.DEF_SCOPE_SESSION, extendedVOName, fullBacicVOName);
    /*
    * Here doing what you need to do as newView.addViewAttribute ("test1", null, String.class);
    */
    newView.resolveDefObject ();
    newView.registerDefObject ();
    createViewObjectForDef (extendedVOName, newView);
    Return extendedVOName;
    }

  • How to create a Pool of connections to two different databases in OBIEE

    Hello

    I have a requirement where few reports coming from databases and a few others to another database. I created two pools of connections and added the frame connection details. But when I created the report I get error as below.

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 17001] Oracle error code: 942, message: ORA-00942: table or view does not exist to the call of the OCIStmtExecute OIC. [nQSError: 17010] Prepare the SQL statement failed. (HY000)

    Now, I would like to see if I can create a pool of connections to two different databases. If so, how that happen.

    Thank you!

    Hi Antonio,.

    Cross database joins are possible, no problem for it. But you do not do so in an object of unique data base in the physical layer using 2 pools of connections connection to the source A and B, then adding objects to A and B children of your unique database.

    You create 2 databases in the physical layer, each with its own connection pool, then you can do your knuckles crossed on the physical schema.

    As a picture is worth a thousand words, take a look:

    The physical diagram uses objects of A and B and define the rules of the join between them, it is a cross-database join. But in the physical layer of the database A and B are 2 separate objects each with its own pool of connections.

  • dbms_xmlgen-&gt; create oracle XML attribute with value type

    I use the dbms_xmlgen to create my xml message and I use the oracle TYPEs to create xml message elements.

    I need to create something like this:
    < type Emp 'name' = > xyz < / Emp >

    I tried to create the type as below
    create type emp_t as an object ("type" "@type")...

    But do not know how I need to set the value of this attribute.

    Help, please. Thanks in advance for your help.

    Can be

    SQL> select * from v$version where rownum=1;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    
    SQL>
    SQL> select  dbms_xmlgen.getxml('select ename, ''name'' as "@type" from emp') from dual;
    
    DBMS_XMLGEN.GETXML('SELECTENAM
    --------------------------------------------------------------------------------
    
    
     
      SMITH
     
     
      ALLEN
     
     
      WARD
     
     
    
    SQL> 
    
  • How to create a dependent list of values based on the relationship master detail

    Hello

    I'm on jdev 11.1.2.4.

    1. I have a table main 'Reception' with the columns receipt_id and student_id (ReceiptVO)

    2. as well as an array of details 'Receipt_Detail' with the columns receipt_id, course_id (ReceiptDetailVO)

    (There are some othere columns in the two tables, but I've only mentioned those which is relevant to this example.)

    3. the two tables are related with receipt_id.

    I want to create a dependent class LOV that filter courses related to the student selected in the main table. (There is a student_course table that holds student_id, relationship of course_id, StudentCourseVO)

    to do this, I have

    1 created VO based on the student_course table

    2 Add a view that filters based on the id of the student

    3 assigned this VO to receipt_detail tables course_id

    It comes

    in the accessor receipt_details VO view, I do not show the ability to select the student_id of the main table (IE ReceiptVO). It only shows the columns in the ReceiptDetailVO.

    Please can you help me?

    Thank you

    What you need in your ReceiptDetailVO is the StudentId of master ReceiptVO attribute.

    To do this, you can:

    1. for your ViewLink (between ReceiptVO and ReceiptDetailVO), you must generate the Source accessor:

    In this way, in the VoRowImpl Java to ReceiptDetailVO class, you will get a way to access master ReceiptVO line (you can find a new method with the name that you gave the name of the accessor in the top of the dialog box)

    2. then, in the ReceiptDetailVO, create Transient attribute, say, MasterStudentId. Access Java's VORowImpl class, within the get for this new attribute accessor method, use the previous step name accessor method to get the line main and finally master StudentId.

    3. the rest is easy - use this new attribute transitional to filter LOV about the student teacher ID...

  • How to create a photo album, where I have a picture on my home page, and when you click it, it op

    I am trying to create albums on my web page where the cover image is displayed on the home page. When someone clicks on the images I want to open a gallery that opens with all the images in this series. I want the images to display one by one with the viewer moving to the next image by pressing the arrow next to the picture, or by a sequence of numbers at the bottom that the viewer can click on. I use mac and Dreamweaver cs5.

    Thank you

    57 + photo library solutions you could use.

    http://www.1stWebDesigner.com/CSS/57-free-image-gallery-slideshow-and-lightbox-solutions/

    Nancy O.

    ALT-Web Design & Publishing

    Web | Graphics | Print | Media specialists

    http://ALT-Web.com/

    http://Twitter.com/ALTWEB

  • How to create a ViewObject richeTableau?

    Hello world

    I created ViewObject, and once executeQuery(), VO contains the database lines.
    I would like to create Table and put in JSP page. I got there (to the JSP page) richeTableau table. What is data (from VO) possible at this table, or should I create new Table with data from VO.

    I tried table.setValue (VO); but it does not work.

    Is it possible create VO richeTableau?

    Thank you

    Hello

    I think your problem is that you create a new instance of the application module:
    Refreshing ADF table in JSF

    It's for 10g should be the same for 11g.
    (Here's an example also: http://www.oracle.com/technology/products/jdev/tips/shmeltzer/setwhereclause/index.html)

    concerning
    Peter

  • How to create a SelectOneChoice using different Tables in the database

    Hi all

    I have a requirement where I have two tables have been created in the database: -.

    Master
    Slave

    Main table has columns as Id and Name. Are similar to values associated with the columns: -.
    ID:-1, 2, 3
    Name:-mobile phone, T-Shirts, bags of University

    In the table of the slave I have columns like Id and elements. Are similar to values associated with the columns: -.

    ID:-1.
    Items:-Nokia, Samsung, Motorola
    ID:-2
    Items:-Adidas, Reebok, Gucci
    ID:-3
    Items:-Reebok Adidas, VIP,.

    I need restore the values of mobile phones (Nokia, Samsung, Motorola), in SelectOneChoice1, t-shirts (Adidas, Reebok, Gucci) values in SelectOneChoice2 and bags of University (Adidas, Reebok, VIP) in SelectOneChoice3.
    I have two controls of data with me, it is main table and isn't the slave table but how do you get the different values in each of the SelectOneChioce.

    Please suggest. !!
    Thank you

    chk
    http://andrejusb.blogspot.com/2008/12/cascading-lovs-in-Oracle-ADF-11g-update.html
    http://www.YouTube.com/watch?v=nXwL2_RP7AQ
    http://blogs.Oracle.com/Shay/entry/got_to_love_cascading_lovs_in

  • How to perform an addition of column values in an insert query that would insert in the 3rd column, and the values how to insert into another table.

    I have two tables (2) RESULT TAB (1)

    CREATE TABLE TAB

    (

    NUMBER OF SNO

    A NUMBER,

    B THE NUMBER.

    NUMBER OF THE SUM

    );

    CREATE AN ARRAY OF RESULT

    (

    NUMBER OF SNO

    NUMBER OF THE SUM

    )

    my doubt is:

    (1) I want to insert a table TAB, my question is how to insert a column to the SUM using the column A AND B... Here im adding two values of the column and store result in the AMOUNT column.

    SNO   A  SUM           

    1 100 150 250

    2 300 100 400

    I want to like this, it is possible with single insert query?


    (2) at the time of the insertion TAB of values that SNO, and the values of table TAB $ insert in the table of RESULTS... is it possible these two inserts at the same time?

    in fact, im using another this table.fro TAB and easy to understand I write like that, please solve this problem

    First, you post in the wrong forum as this one is only for Oracle's SQL developer tool. So you might ask your question in the general forum of SQL.

    Second, you might solve your problems with bind variable:

    Insert tab

    (sno, a, b, sum)

    values

    (: SNO,: A: B: A + B :))

    You should not use sum as column name because it is a reserved word.

    More you cannot insert into two different tables with a single SQL, but you can use PL/SQL to do this:

    Start

    insert into tab values (: SNO,: A: B: A + B :);)

    insert into result values (: SNO,: A + B :);)

    end;

    If you meet sno from a sequence, you could do something like this:

    Start

    insert into values tab (seq_sno.nextval,:,: B,: A +: B) return sno in: SNO.

    insert into result values (: SNO,: A + B :);)

    end;

    Hope that helps,

    dhalek

  • How to create a folder or a report of a parameter query and a Union

    I have created folders with the unions, but I'm having difficulty coverting a parameter query and a Trade Union.

    The following works fine in SQL * Developer without parameters, but I want to change to use parameters for the year and the quarter and use it in Discoverer:
    SELECT TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000') FEID,
      AV.FIRM_NAME VENDOR_NAME,
      AV.BIDCLASS CONTRACT_CODES,
      AV.AWAMT AWARD_AMOUNT,
      AV.SOL_MODE FORMAL_INFORMAL,
      AV.CERT BUSINESS_ENTITY,
      AV.ETHNICITY ETHNICTY,
      AV.PO_NUMBER_FORMAT CONTRACT,
      SUM(VP.INVOICE_AMOUNT) AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV,
      CONFIRM.VSTATE_VENDOR_PAYMENTS VP
    WHERE ( ( AV.PO_NUMBER = VP.PO_NUMBER
    AND AV.VENDOR_ID       = VP.VENDOR_ID ) )
    AND (TO_CHAR(VP.PAYMENT_DATE,'Q') = '4')
    AND ( TO_CHAR(VP.PAYMENT_DATE,'YYYY') = '2009' )
    GROUP BY TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000'),
      AV.FIRM_NAME,
      AV.BIDCLASS,
      AV.AWAMT,
      AV.SOL_MODE,
      AV.CERT,
      AV.ETHNICITY,
      AV.PO_NUMBER_FORMAT 
      union 
    SELECT TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000') FEID,
      AV2.FIRM_NAME VENDOR_NAME,
      AV2.BIDCLASS CONTRACT_CODES,
      AV2.AWAMT AWARD_AMOUNT,
      AV2.SOL_MODE FORMAL_INFORMAL,
      AV2.CERT BUSINESS_ENTITY,
      AV2.ETHNICITY ETHNICTY,
      AV2.PO_NUMBER_FORMAT CONTRACT,
      0 AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV2
    WHERE 
    not exists (SELECT 'X'
                  FROM CONFIRM.VSTATE_VENDOR_PAYMENTS VP2
                 WHERE av2.po_number = vp2.po_number
                       AND (TO_CHAR(VP2.PAYMENT_DATE,'Q') = '4') 
                       AND ( TO_CHAR(VP2.PAYMENT_DATE,'YYYY') = '2009' )) 
    AND (TO_CHAR(AV2.AWDATE,'Q') = '4') 
    AND (to_CHAR(AV2.AWDATE,'YYYY') = '2009')
    GROUP BY TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000'),
      AV2.FIRM_NAME,
      AV2.BIDCLASS,
      AV2.AWAMT,
      AV2.SOL_MODE,
      AV2.CERT,
      AV2.ETHNICITY,
      AV2.PO_NUMBER_FORMAT 
    Can anyone provide a solution?

    Thank you
    Robert

    Hello
    You can take the parameters to select so that you will be able to create the conditions above them.
    Try to use this SQL instead of your and the discoverer workbook create the conditions and parameters:

    SELECT TO_CHAR (NVL (AV. TAX_ID, 999999999), '000000000') FEID,.
    AV. $VENDOR_NAME FIRM_NAME,
    AV. BIDCLASS CONTRACT_CODES,
    AV. AWAMT AWARD_AMOUNT,
    AV. SOL_MODE FORMAL_INFORMAL,
    AV. CERT BUSINESS_ENTITY,
    AV. ETHNICITY ETHNICTY,
    AV. PO_NUMBER_FORMAT CONTRACT,
    TO_CHAR (VP. PAYMENT_DATE, 'YYYY') P_YEAR,.
    TO_CHAR (VP. PAYMENT_DATE, 'Q') P_QTR
    SUM (VP. INVOICE_AMOUNT) AMOUNT_PAID_$
    TO CONFIRM. VSTATE_PAID_AWARD_VENDORS AV,
    CONFIRM. VP VSTATE_VENDOR_PAYMENTS
    WHERE ((AV. PO_NUMBER = VP. PO_NUMBER
    AND AV. VENDOR_ID = VP. VENDOR_ID))
    - AND (TO_CHAR (VP. (PAYMENT_DATE, 'Q') = '4') *.
    - AND (TO_CHAR (VP. (PAYMENT_DATE, 'YYYY') = '2009') *.
    TO_CHAR GROUP (NVL (AV. TAX_ID, 999999999), '000000000').
    AV. FIRM_NAME,
    AV. BIDCLASS,
    AV. AWAMT,
    AV. SOL_MODE,
    AV. CERT,
    AV. ETHNIC ORIGIN,
    AV. PO_NUMBER_FORMAT,
    TO_CHAR (VP. PAYMENT_DATE, 'YYYY') P_YEAR,.
    TO_CHAR (VP. PAYMENT_DATE, 'Q') P_QTR
    Union
    SELECT TO_CHAR (NVL (AV2. TAX_ID, 999999999), '000000000') FEID,.
    AV2. $VENDOR_NAME FIRM_NAME,
    AV2. BIDCLASS CONTRACT_CODES,
    AV2. AWAMT AWARD_AMOUNT,
    AV2. SOL_MODE FORMAL_INFORMAL,
    AV2. CERT BUSINESS_ENTITY,
    AV2. ETHNICITY ETHNICTY,
    AV2. PO_NUMBER_FORMAT CONTRACT,
    TO_CHAR (VP. PAYMENT_DATE, 'YYYY') P_YEAR,.
    TO_CHAR (VP. PAYMENT_DATE, 'Q') P_QTR
    AMOUNT_PAID_ $0
    TO CONFIRM. VSTATE_PAID_AWARD_VENDORS AV2
    WHERE
    There is not (SELECT 'X'
    TO CONFIRM. VSTATE_VENDOR_PAYMENTS VP2
    WHERE av2.po_number = vp2.po_number
    AND (TO_CHAR (VP2. PAYMENT_DATE, 'Q') = TO_CHAR (VP. (PAYMENT_DATE, 'Q') )
    AND (TO_CHAR (VP2. PAYMENT_DATE, 'YYYY') = TO_CHAR (VP. PAYMENT_DATE, 'YYYY') ))
    - AND (TO_CHAR (AV2. (AWDATE, 'Q') = '4') *.
    - AND (to_CHAR (AV2. (AWDATE, 'YYYY') = '2009') *.
    TO_CHAR GROUP (NVL (AV2. TAX_ID, 999999999), '000000000').
    AV2. FIRM_NAME,
    AV2. BIDCLASS,
    AV2. AWAMT,
    AV2. SOL_MODE,
    AV2. CERT,
    AV2. ETHNIC ORIGIN,
    AV2. PO_NUMBER_FORMAT,
    TO_CHAR (VP. PAYMENT_DATE, 'YYYY') P_YEAR,.
    TO_CHAR (VP. PAYMENT_DATE, 'Q') P_QTR

    Tamir

  • How to create the custom using Javascripts in PLM for Agile process validator

    I have already created customized using ASP.Net validators. But now I need to create custom using Javascript validator.

    Please provide me the details

    1. how to create custom validator and where to create?

    2 provide me with code samples for custom validators javascripts

    Thank you

    Floquet

    I am currently using 6.1.1.5

  • How to create a change of color on a polygon?

    Hi all

    How to create the image below where the text is another color on the polygon?

    At Oasis.png

    Thank you very much

    Daniel

    1. Draw the shape
    2. Write text
    3. Convert the text to outlines text
    4. Select both
    5. In the window, click on exclude paths overlap Pathfinder.
  • How to create DVDs of Windows 8 upgrade installation?

    If I have upgraded to Windows XP Pro SP3 on the Internet 8, how to create a DVD to use if I get a new hard drive and you want to do a new installation facility?  Can it be created from this installation of Windows 8?

    Hello Eric SR,.

    Thank you for the question!

    I'm sorry to know that have problems you with the Windows Installation. As I understand it, you need to make a Setup DVD to be used as a new installation of Windows 8 Windows XP upgrade.

    Unfortunately, you can't have an Installation DVD to use as a new installation. It is not possible that the operating system has been upgraded.

    Good day!

    Hope this information helps.

  • Please show or ask how to create the value of arrayOfValues of setValuesAtTimes parameter?

    Hello AEScriptComm,

    I have a few small scripts that use the method setValueAtTime successfully placing a keyframe on the existing layers of maskPath, but as you can see in the scripts below, results of setValueSatTimeS errors using IE: "Array is not of the correct type", "value is not an array" or "Null is not an object", depending on ,...

    (A) what variable is used as the value of parameter IE:

    .maskPath;

    . maskPath.value;

    . maskPath.value.vertices

    (B) what kind of table is used as the parameter value as in:

    var addTheseKeys = new Array ((1,2,3,4);    (as a parameter of the time)...

    (with either)

    var keyValues = new Array([10,10],[100,100],[15,50],[100,120]);             ...." ]) "

    (GOLD)

    var keyValues = [[10.10], [100 100], [15.50], [100 120]];                               ... (Array of arrays? RE: " ]] " )

    I just read a 'push' of the values in a table may be necessary?, but I was hoping someone who knew setValuesAtTimes could show it please...

    1) .. How to create the value of arrayOfValues of setValuesAtTimes parameter?

    1 (a): WORK setValueAtTime script...

    App.Project.Item (1) .layer (1).property("Masks").property ("mask 1");

    var app.project.item = myProperty (1) .layer (1) .mask (1) .maskPath;

    myShape = app.project.item (1) .layer (1) .mask (1).maskPath.value;

    myProperty.setValueAtTime(1.0,myShape);

    1 (b): If there is no script setValuesAtTimes...

    prop1 = app.project.item var (1) .layer (1).property("ADBE_Transform_Group").property ("ADBE Position");

    var fourKeys = 4;

    var addTheseKeys = new Array (1,2,3,4),

    var keyValues = new Array (10, [10], [100 100], [15.50], [100 120]);

    var app.project.item = myProperty (1) .layer (1) .mask (1) .maskPath;

    myShape = app.project.item (1) .layer (1) .mask (1).maskPath.value;

    var myVertices = app.project.item (1) .layer (1) .mask (1).maskPath.vertices;

    myProperty.setValuesAtTimes (keyValues, addTheseKeys);

    app.beginUndoGroup ("Keys");

    ~ for (var k = 0; k < fourKeys; k ++)

    //~ {

    ~ prop1.setValueAtTime (keyValues [k], addTheseKeys [k]);

    //~ }

    myProperty.setValuesAtTimes (keyValues, addTheseKeys);

    app.endUndoGroup ();

    .. Thanks for any advise\suggestions,

    J

    (A). maskPath.value; It's always a Shape(). (maskPath is a property, not of a shape on its own, and maskPath.value.vertices is only a part of the shape data).

    (B) nothing of what you propose... that is why your failed script fails.

    var keyValues = new Array([10,10],[100,100],[15,50],[100,120]); and

    var keyValues = [[10.10], [100 100], [15.50], [100 120]]; are just as good as arrays of points, the only thing is that keyValues are arrays of objects Shape().

    Read the guide and script for how to report a form of this post (just wrote it...): http://forums.adobe.com/thread/1419866?tstart=0

    Your keyValues array should look like this: [keyValues0, keyValues1, keyValues2, keyValues3], where each entry is a Shape().

    Xavier.

Maybe you are looking for

  • How to move files between accounts?

    Hello I used my MacBook with administrator account because I got it. (over 4 years) I guess that there is a problem or annoying with it, so I made a new user with normal privileges account today. But I have no idea how to make to move all the files,

  • Loop of calculation of gain and phase in multisim

    I am trying to simulate the loop gain and phase for an oscillator in multisim.  I use the Middlebrook method and can get the gain in current and the gain in voltage by using the function "add the words" in the analysis.  Then, I need to use these win

  • Intel W500 with Windows 7 video card problem

    Hi all I installed windows 7 on my w500 (it was Vista when I bought it a year). and I have the latest installed updates including graphic driver intel. but the ruin the screen. This problem only occurs when I use the themes Aero, and if I use the dis

  • vCenter agent name inconsitency in vRA 7.0.1

    Hey all,.I've never used the configurationadmin (I've always done manually) before, and it fails for me that it cannot find the endpoint resource.That's what I install during installation (in the Wizard)This is what failed the configurationadmin conf

  • Save the workspace

    Kindly guide me,How to save the workspace so that when I open Acrobat Reader next time, my last file and my last page, I was reading should be opened by default.