Get NPES trying to create a line of the iterator of table on the loading of the page.


Hi all

I'm new to ADF and try to learn from its concepts. I've created a workflow with the train and using 7 jspx pages as the train stops. When I move from one stop to the next stop, the data are made to the database.

My use case is, I want to fill an iterator of table on the loading of the page based on the data provided on the previous stop.

I tried to use the code to find the iterator and create the line the view object in support Builder bean as well as file impl application module(call the executable action method) but every time I got the same null pointer exception.

The code used for creating line iterator:

BindingContext bindingContext = BindingContext.getCurrent ();
BindingContainer DCBindingContainer = (DCBindingContainer) bindingContext.getCurrentBindingsEntry ();
IdIterator DCIteratorBinding = bindingContainer.findIteratorBinding("iteratorName");

ViewObject vo = idIterator.getViewObject ();

Line rw = vo.createRow (); It is the line where I'm getting null pointer exception.

Trace of the exception:

at oracle.adf.model.bean.DCDataVO.initFKs(DCDataVO.java:621)

at oracle.adf.model.bean.DCDataVO.createInstance(DCDataVO.java:592)

at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1993)

at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2492)

at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2533)

at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:2514)

at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:11079)

Please correct me if I'm wrong, but that's what I think I understand that, iterator links are not initialized correctly on appeal by Builder or application module impl of the file that I use.

I will need to create a listener of phase of page for the task flow and and use the method afterPhase to call my method for line creation and insertion in the table iterator. ?

But this approach causes the phase listner class to call for each workflow page I don't want I need to fill out the table only for a single page and not to other pages of six.

Please help me in this problem by providing suggestions and pointers.

My version of JDev is 11.1.1.6.

Thanks in advance.

~ Abhishek

Hi Ben,

Thanks for your reply. But it did not solve my problem.

To solve my problem, what I did is mentioned below:

In my support for this page two, I create a listner beforePhase method and named her beforePhase displaying page jspx tag property.

when the phaseId is RENDER_RESPONSE, so I call my method to set the extracted database of the values in the table iterator. and it updated the iterator with new values.

Thank you all for your answers.

Tags: Java

Similar Questions

  • Error when you try to create a region of the page generated by the anonymous pl/sql block

    Hi guys I tried to create a region of the page which is the source and anonymous pl/sql block and I have been making a few mistakes. Basically what I want this region to do, is to give the current user of the application one summarized data compared to there user name which is: app_user the code I used was

    declare

    ven_ret varchar2 (15);

    BEGIN

    ven_ret: = (select u.vendor of USERS4ARCHITEC u )


    where

    u.e_mail = V ('APP_USER')

    and not exists (select null from arch_tbl I where u.vendor = i.vendor and user_id = V ('APP_USER'))

    order u.vendor in ven_ret);

    END;

    /

    the structure of the table to the USERS4ARCHITEC table is

    User varchar2 (15) vendor2 (20)

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

    user@1                                                                          sap

    user@1                                                                          oracle

    user@1                                                                           IBM                                                            <---------sample data

    user@2                                                                          Oracle

    user@2                                                                          cisco

    the structure of the table to the arch_tbl table is

    user                                                     vendor

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

    user@1                                                 sap

    So if user@1 logs in the application of the region using the pl/sql code code above should display oracle and IBM, because these two sellers are always under his username that he has already used a form to insert the sap into the arch_tbl table. Please tell me what I'm doing wrong here. Thank you guys

    Why would you build a type psedu at APEX report MANUALLY when you can just build a relationship with the same selection you use now for your pl/sql dynamic region?  What is the purpose of building your own report when the tool made for you?

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • Spacing of lines in the Pages

    I have major problems with the spacing of the lines in the Pages 5.6.1. The default setting is '1', suggesting no doubt single spacing, but it is much broader than that should generally be understood by this term. For example if I type high address of the recipient on the left, using a reasonable font size the entire address comes out much too deep to fit in a standard A4 envelope window. I have to manually select, define Style - line spacing IE 4pt. I have to do this every time I write a letter (and I write a lot of letters). This has never been a problem in AppleWorks.

    IF anyone knows how to get around this, I would be grateful to know. Thank you.

    1 LineSpacing depends on the font size.

    You must define the spacing 'Exactly' and also check if there is before or after paragraphs spacing that pushes the lines apart.

    Peter

  • Have blank lines on the page open automatically

    Hello

    Is it possible to have empty lines when the page is rendered as a table? It is a wizard that is generated in a table.

    Thank you
    Mary

    Create a process
    Choose the type of data handling processes
    Select Add lines slot table form
    Select on the laundry front header
    Enter the number of lines to add

    Kind regards
    Shijesh

  • How to create Mulitple tab in the Page

    Dear all,
    How to create Mulitple tab in the Page (UI)

    One way is to download the OA Framework Metalink Dev guide. You can also navigate to Jdevdoc (under your Jdev installation) and find the index.html file. There you have the reference to the Dev Guide. You can get the right information here too.

    Concerning
    Sumit

  • Create a validation on the Page IExpense

    Hello

    I need to create a validation on the page of iExpense, where... the user selects the type of expense and adds details such as start date total etc...

    When he clicks on the next button, validation can take place when when checking should be done with the database to search for if the user has created the same before report. If so it should allow user to create the new report.

    The problem I m facing here is... the validation must be done at the next button... and this button is common on all pages as it's a track.

    How can I do this... I m totally confused.

    Can someone help me fulfill this requirement. I know I should do the extension, I want to know what objects all I extend.

    Thanks in advance,
    Kone

    Kaushik,

    When you follow the method mentioned by AJ, you can find VO named "ExpenseTypesVO" under the path "oracle.apps.ap.oie.common.server".

    According to the statement present in it, required table where we need to insert the new type of expense is "AP_EXPENSE_REPORT_PARAMS".

    Kind regards
    Anand

  • Create a line for the new entity using createInstance2 with AttributeList


    I use JDeveloper 11.1.2.3.

    I am creating a method in the Module of the Application to create a new entity row in a child table.

    I think I'm to provide the value of the foreign key for the parent table in the AttributeList argument.

    I have search the Forum and carried out a large number of "Googling", but have not been able to find an example where AttributeList is not null.

    Can you point me to an example?

    Thank you

    I created a method in bean managed to add a line through the iterator for the "join table", passing the primary key for each parent table.

    protected void createHistoryForProblem (String or activity, long fkProbrcptReceiptDtl)
    {
    Get the link for the page container
    BindingContainer bindingContainer = this.getBindingContainerByPath("com_gac_apps_receiving_view_requestConformityPaperworkPageDef");
                                                                           
    DCIteratorBinding dcib = (DCIteratorBinding) bindingContainer.get("AllDetailForAProblemForAReceiptIterator");
       
    RowSetIterator rsi = dcib.getRowSetIterator ();

    Insert a new line
    Line newContactRow = rsi.createRow ();

    disable data validation
    newContactRow.setNewRowState (Row.STATUS_INITIALIZED);

    initialize the columns in the row.
    newContactRow.setAttribute ("FkProbrcptReceiptDtl", fkProbrcptReceiptDtl);
       
    newContactRow.setAttribute ("FkProbrcptReceiptActvy", 2);
      
    Insert the new line
    rsi.insertRow (newContactRow);
    rsi.setCurrentRow (newContactRow);
       
    OperationBinding operationBinding = bindingContainer.getOperationBinding ("Commit");

    Object result = operationBinding.execute ();
    If (! operationBinding.getErrors () .isEmpty ())
    {
    StringBuffer sb = new StringBuffer();
         
    List errors = operationBinding.getErrors ();
         
    for (object error: errors)
    {
    SB. Append (error + "/ n");
    }
         
    throw new RuntimeException ("error occurred during the Commission of the data in createHistoryForProblem-" + sb.toString ());
    }
    }

  • Shift-click to create straight lines with the Brush tool is no longer works in 2015 CC

    Hello!

    I feel a maddening thing I can't explain, maybe a bug or a dark environment?

    If I use the pencil tool, I can click on the same spot on the canvas, then releases, then hold SHIFT key and click in another location on the canvas to create a straight line between the two points. This is expected behavior, and Photoshop has done this for years, as long as I can remember.

    Until recently, the same has worked with the Brush tool. Since the upgrade to 2015 CC, however, shift-click on demand exactly as if I was clicking simply - he draws another full brush, but without a straight line connecting the two clicks. Weird.


    Everyone knows the same behavior? (CC and Yosemite are completely up to date.)


    Best,

    Jason

    Image%202015-08-04%20at%201.04.07%20PM.png

    (this little test of the brush is also to express my emotional state right now.)    : |

    Spacing stops on this special brush?

  • Adobe Reader highlight tool is more full of text, simply create a line around the text

    The highlight in Adobe reader tool no longer works as before.  Instead of filling the text, as it is used, the tool creates just a line around the text.  This makes it much harder to identify strengths.

    I am running Win 8 and using Adobe Reader XI version 11.0.09.

    I have attached a screenshot to illustrate.  The way the tool used to work, they testify as I want it, highlight all the text in the document.  As it is it currently works, is shown on the first line of the text, where a part of the text was highlighted with the tool as it works now.  I have just created a yellow line around the text.

    I checked how the highlight settings are both the former highlight text and the new text, and they look identical.  Percentage of the color settings and opacity are the same.

    Screenshot (2).png

    Very frustrated.  Any help appreciated.

    Try to run a repair from Acrobat (via the Help menu) installation.

  • Blue line on the page footer text and the page number?

    OK, so after the upgrade to InDesign CC 2015 (and opening a file, conversion to a new format, deletion of a page of the file), a blue line appeared as if by magic on my footer text and page number (both are from the master page). Without any explanation whatsoever. I have not met before, so I have no idea of what the program is trying to tell me. Anyone know what this means?

    Screen Shot 2015-06-16 at 14.54.08.png

    Thank you

    Johanna

    Hi lohari,.

    We are aware of some issues with typographic text in ID CC 2015. We are working on a fix.

    In the meantime, you can use the following workaround : open preferences > display performance and set the 'Greek Type below' to 0 pt.

    Thank you

    Ravi

  • CFDOCUMENT cut the last and the first line in the pages

    Hello, all:

    I use the CFDOCUMENT tag to create a pdf file. It's a line of simple text and images (for example, width = height 58 = 58). All right,
    but the last line and the first line fell by half. The line is half pages.
    I have download correction [hf701 - 60212.zip], but have the same problem.

    Please tell me how to set the page layout?
    I use windows XP. the text is displayed as < PRE > tag, pictures < IMG SRC = "" * "width = height 58 = 58 >."

    Kind regards

    There are several fixes to this problem. Latest fixes just be published in the last several days. If you use cfmx7.01, you must apply the hotfix in this technote. This fix should be used even if you have applied the hotfix rollup 2 for 7.01 or you apply the individual hotfix (hf701 - 60212.jar) prior to 04/08/2006.

    If you use 7.02, you must apply the fix of this technical note. Apply the additional fixes to cfdocument, he released with 7.02.

  • After the installation of update ver14.0.1, when you print a page on aweb site, why is that each line of the page to be printed each line on a separate page? !

    Each line in the document is printed on a separate page, IE: ten lines will print 10 separate pages for printing.

    Try of the reset described here:

    http://KB.mozillazine.org/Problems_printing_web_pages#Reset_printer

    Make sure that you reset all the print preferences.

  • 7520 all-in-One: 7520 all-in-One scanning now a straight line of the page when using the ADF

    A week ago I noticed that the analyses using the ADF put a black line about an inch from the right edge of the page.  This will not occur during the analysis of flat glass; only when you use the ADF.  I checked the glass and paper tray are clean and free of debris.  I wish that it there a way to display an image of what I'm talking about.

    The line is about the thickness of a vertical margin of Notepad and gray line.

    Someone at - it ideas other than buying another printer?

    BINGO!  That's all.  The glass was dirty.  Thank you very much.

  • Color printing: the print has colored lines across the page viertical obliterate the copy.

    I have a printer Officejet Pro 8600 working with my vista 32 bit.system.   My copies of original color print color strines vertical on the page. I have cleaned the print heads and aligned. Everything prints fine other circuits. What is the problem? Is there a solution? Is - it physical hardware or software?

    I understand that your copies have vertical lines through them. I have a useful document that might help.

    Click here for the document.

    Let me know if it helps.

  • HP C5380 all-in-one printer: a thick black/gray line down the page when scanning.

    1 HP Photosmart C5380 all-in-One Printer

    2. Windows 7 64 bit

    3. no error is, as usual but preview and print with a dark gray line / think through the page.

    4. I got a new monitor.

    How can I fix?  the optical reading area is clean, no dust or dirt present and it just started this without reason. The connections are good, I unplugged and plugged the cables of the computer and the printer and the problem is still there.

    When I scan the document line is present and even when I print the line appears on the printed page is not my screen.

    bbjae, it looks like there may be a residual electric charge accumulated in the unit.  When was the last time you did a Hard Reset on this unit?

    Hard Reset:

    * Unplug the unit while the printer is on

    Disconnect the other end of the power cord from the wall jack directly

    * Wait 30 seconds

    * Plug power back in and make sure that the device is running

    So, it is a document with the steps to help fix the vertical lines and scratches in the copies or scans, click on the link below:

    http://support.HP.com/us-en/document/c01887471

Maybe you are looking for

  • My printer is offline, how to get it back online?

    How can I get my printer online?

  • Satellite L650 - Touchpad turn off after BIOS update

    HelloI recently got a new laptop, a L650-1CN,.I run different types of software from Toshiba, and one of them is Tempro,He shows me messages when a new update is available. Today I saw the message that a new BIOS update v.1.80 was available.I downloa

  • Satellite A300D - fan turns very hard and the laptop gets very hot

    I was wondering if someone could point me in the right direction as what to do with the overheating problem that I currently have with my A300D. I had the laptop for less than a year, it is still under warranty but I don't know where to go or what to

  • SPA941 incoming calls

    Hello I have the phone above, connected to my broadband router as a stand-alone phone. The phone works very well for outgoing calls, but all incoming calls get the busy tone and are disconnected. As I'm a beginner at all this, please can someone tell

  • Windows media player stopped to work while listening to music

    I can't find the windows media player, when I go into the Panel and look in programs to remove and re instal it, I tried to locate him everywhere but can't find it. When I look in "all programs he's not here, I can not install new media player until