Problem with PPR in a table advanced with the insertion of several lines in create the page using 'add a new button '.

Hello experts,

I created a page that contains an array of advanced, 6-7fields (including a poplist column)

Whenever I have add a new using the line add new line button, I get a null pointer exception.

Code in Scenario1.


Public Sub handleCurrencyChangeEvent()

{

PVO OAViewObject = (OAViewObject) findViewObject ("xxCurrencyPVO1");

Line OARow = (OARow) pvo.first ();

OAViewObject dtlVO = (OAViewObject) findViewObject ("xxEcreditCardDtlVO1");

OARow dtlRow = (OARow) dtlVO.getCurrentRow ();

String currency = (String) dtlRow.getAttribute ("CurrencyCode");    / / NULL POINTER EXCEPTION

If ((currency == null) |) ("AED".equals (currency)))

{

row.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);

row.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);

row.setAttribute ("ExchangeRateRender", Boolean.FALSE);

}

on the other

{

row.setAttribute ("ExchangeRateTypeRender", Boolean.TRUE);

row.setAttribute ("ExchangeRateDateRender", Boolean.TRUE);

row.setAttribute ("ExchangeRateRender", Boolean.TRUE);

}

}

Public Sub initPVO()

{

OAViewObject appPropsVO = (OAViewObject) findViewObject ("xxCurrencyPVO1");

If (appPropsVO! = null)

{

If (appPropsVO.getFetchedRowCount () == 0)

{

appPropsVO.setMaxFetchSize (0);

appPropsVO.executeQuery ();

appPropsVO.insertRow (appPropsVO.createRow ());

Line OARow = (OARow) appPropsVO.first ();

row.setAttribute ("RowKey", new Number (1));

}

}

handleCurrencyChangeEvent();    / / If I comment on this call, there will be no null pointer when I click on the button Add a new rank and PPR will not be the first line when I select the poplist.                 

}

Public Sub createDetailRow()

{

String hdrId;

OAViewObject hdrvo1 = (OAViewObject) getxxEcreditCardHdrVO1 ();

OAViewObject dtlvo = (OAViewObject) getxxEcreditCardDtlVO1 ();

Initialize and create a line of VO

If (! dtlvo.isPreparedForExecution ())

{

dtlvo.setMaxFetchSize (0);

dtlvo.executeQuery ();

}

Line dtlrow = dtlvo.createRow ();

dtlvo.executeQuery ();

int count = dtlvo.getRowCount ();

dtlvo.insertRowAtRangeIndex (count, dtlrow);

Development of the sequence for the number of request *.

Number of dtlseq = getOADBTransaction () .getSequenceValue ("xxdm. XXDMI_ECREDIT_CARD_DTL_SEQ");

hdrId = hdrvo1.getCurrentRow ().getAttribute("CreditCardHdrId").toString (); mind vo

dtlrow.setAttribute ("CreditCardHdrId", hdrId);

dtlrow.setAttribute ("CreditCardLineId", dtlseq);

dtlrow.setAttribute ("LineNumber", count + 1);

End of sequence generation *.

dtlrow.setAttribute ("CurrencyCode", "AED");

String currency = (String) dtlrow.getAttribute ("CurrencyCode");

System.out.println ("CurrencyCode:" + currency);

dtlrow.setNewRowState (Row.STATUS_INITIALIZED);

} / / end createDetailRow()

' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)

{

super.processFormRequest (pageContext, webBean);

OAApplicationModule am = pageContext.getApplicationModule (webBean);

Event string = pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM);

* Treatment add line button *.

If ((ADD_ROWS_EVENT. Equals (Event)) & & "AdvTblRN".equals (pageContext.getParameter ("source"))) ".

{

am.invokeMethod ("createDetailRow", null);

am.invokeMethod ("initPVO");

} //**End add row button *.

otherwise if

("currCodeChangeEvent".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM)))

{

am.invokeMethod ("handleCurrencyChangeEvent");

}

===========================================================================================================================

Could please help what is wrong in the code, I followed all the steps as stated in the guide, but the table advance, the problem starts whenever I click on the button Add a new row for the creation of new line.

I couldn't understand what was wrong with the code.

Thanks in advance,

Suman

Suman,

A few points:

1. Why do you call handleCurrencyChangeEvent in the event to add a line? Simply set the useful, likely of the values in the line it himself.

ex:-instead of calling the handleCurrenyChange method, simply add the below lines inside the createDetailRow()

dtlrow.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);

dtlrow.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);

dtlrow.setAttribute ("ExchangeRateRender", Boolean.FALSE);

2. it looks like you have on the field of the currency and that fireAction handleCurrencyChangeEvent action method is called, right?

Instead of using dtlVo.getCurrentRow, use the code below:

public void handleCurrencyChangeEvent(String eventRowSourceParam)
  {
  OAViewObject pvo = (OAViewObject)findViewObject("xxCurrencyPVO1");
  OARow row = (OARow)pvo.first();

  OAViewObject dtlVO = (OAViewObject)findViewObject("xxEcreditCardDtlVO1");

  //OARow dtlRow = (OARow)dtlVO.getCurrentRow();
  OARow dtlRow = (OARow)this.findRowByRef(eventRowSourceParam);

  String  currency = (String)dtlRow.getAttribute("CurrencyCode");    // NULL POINTER EXCEPTION

  if ((currency == null) || ("AED".equals(currency)))
  {
  row.setAttribute("ExchangeRateTypeRender", Boolean.FALSE);
  row.setAttribute("ExchangeRateDateRender", Boolean.FALSE);
  row.setAttribute("ExchangeRateRender", Boolean.FALSE);
  }
  else
  {
  row.setAttribute("ExchangeRateTypeRender", Boolean.TRUE);
  row.setAttribute("ExchangeRateDateRender", Boolean.TRUE);
  row.setAttribute("ExchangeRateRender", Boolean.TRUE);
  }
  }

In the controller:

if((ADD_ROWS_EVENT.equals(event)) && "AdvTblRN".equals(pageContext.getParameter("source")) )
{
  am.invokeMethod("createDetailRow",null);
  am.invokeMethod("initPVO");
} //**End Add Row Button**
else if ("currCodeChangeEvent".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
{
  String eventRowSourceParam = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
  Serializable[] params = {eventRowSourceParam};
    Class[] paramTypes    = {String.class};
  am.invokeMethod("handleCurrencyChangeEvent",params, paramTypes);
}

3. Why do you call initPVO when it is clicked on the Add line? Are you calling not just in the PR?

You could call it once in the PR and let. When you call it PR, you may need to remove the handleCurrencyChangeEvent of this method call.

See you soon

AJ

Tags: Oracle Applications

Similar Questions

  • Problem with the page using the not substituted VO

    Hi all



    I expanded the view object AbsenceSummaryVO of the/oracle/apps/per/selfservice/mgrviews/webui/ManagerViewsPG of the page. I created a new view object that extends the object from view of AbsenceSummaryVO, it contains a few added columns.

    These added through customization, I added to the tab of the absence of columns. The only problem is... that they are not fulfilled. It seems that Oracle ignores the request to be executed instead of the old one (old data appears perfectly). One of the current columns also changing a value hardcoded still looks like the old value (data base).



    When I look in the MDS repository, I can see the substitution is deployed, remove also the XML necessary for replacement of the filesystem is Oracle generates an error.

    Below the output from the MDS repository:

    ---

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

    < customization xmlns = "http://xmlns.oracle.com/jrad" xmlns:ui = "http://xmlns.oracle.com/uix/ui" xmlns:oa = "http://xmlns.oracle.com/oa" xmlns: user = "http://xmlns.oracle.com/user" version = "9.0.3.8.13_1566"; XML: lang = "en".

    Customizes = ' / oracle/apps/by/self-service/mgrviews/Server/AbsenceSummaryVO ">

    < replace with = "/ xx/oracle/apps/by/self-service/mgrviews/Server/AbsenceSummaryVOEx2" / >

    < / customization >

    ---



    When I look at the page on the business components used, I see the substituted object seen used. However it does not appear in the substitute for the table column, but in a 'normal' line The original view object (AbsenceSummaryVO) is missing from this list. I find it rather strange.



    Everyone recognizes this kind of behavior? And what to do about it?



    Kind regards



    Patrick

    Patrick,

    You must extend AbsSupHrchyVO instead of AbsenceSummaryVO.
    Although this page mentions that AbsenceSummaryVO is used for the columns it ignores changes to this VO.
    I expanded AbsSupHrchyVO on a test instance and added a few custom columns and they appear in the Absence sub-tab (/ oracle/apps/by/self-service/mgrviews/webui/AbsSupHrchyRN) now.

    Kind regards
    Robert

    Published by: robert.jungerius on March-24-2010 09:38

  • 11g: problem with the page open in a new window

    Hello

    I have a simple application with two pages. Page 1 contains only one button:
            <af:commandButton text="commandButton 1" useWindow="true"
                      action="dialog:action"/>
    {code}
    
    Page 2 is empty. Action is defined in adfc-config.xml:
    
    {code:xml}
        <control-flow-case>
          <from-outcome>dialog:action</from-outcome>
          <to-activity-id>untitled2</to-activity-id>
        </control-flow-case>
    {code}
    
    When I click the button, page 2 opens in new window but page 1 stays kind of "locked". It takes two clicks on the button to get page 2 to show again (the first click sort of resets the page, and the second one works as it should).
    Same behavior reproduces in a very complex application (where, for instance, a table can be scrolled but selection is impossible). 
    
    This worked in technology preview, did something change and some extra step is required or this is a bug? I can send someone a test case, if needed.
    
    Thanks, 
    Pedja                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Pedja,

    I have confirmed that it is the glasspane.

    When you open a dialog box in a new window like this, the main window is supposed to be blocked interaction until the dialog box is closed properly (this technique is sometimes called a "glasspane").

    Just close the dialog window by closing the browser window does not mean "close" dialog box. You must use the AdfFacesContext API to close the window.

    Add a command button on your page 2, bind it to an Action listener that does this:

        AdfFacesContext.getCurrentInstance().returnFromDialog(null, null);
    

    The behavior you see is correct; That is why the af: popup is probably a more "preferred" method to do so.

    I just saw your answer on the PDF - you'll still need clear the sort dialog box so that it works. You can use a ' print' button instead of a button 'command' (thus eliminating the need to use the framework of the dialogue)? I could not find any method of compensation of the dialog without actually closing the window.

    John

  • I have problems with the installation of Add-ons for InDesign CC 2015. How can I reinstall InDesign CC 2014?

    I have problems with the installation of Add-ons for InDesign CC 2015. How can I reinstall InDesign CC 2014?

    There's direction at the bottom of this blog post: http://indesignsecrets.com/avoiding-problems-installing-indesign-cc-2015.php

  • Problems with the pages of models CS3

    My site is www.cft-aft.org and I have problems with a page or two that were created from a master template that the images are not loading or projection. An example can be found at http://http :// www.cft-aft.org/Get%20Involved.html. I don't know what the problem is or how to diagnose.  All pages of this website have been created from the master template. I had some file management problems in the past, and I think I have corrected most of them (with the exception of the change of name without spaces). I understand that this could be a problem and if it is my problem with this specific page, I understand.

    I have attached a few screenshots of the presentation of dreamweaver and a screenshot of my side of local and remote sites.

    The main problem with the page get involved is not editable images do not exist. Everything lies in the local root folder of the site/htdocs, on both sides. I noticed that when I do to the top of the page get involved in DW is at the top right of the screen, he reads a long path (shown as an example on the screenshot) and on other pages which load correctly, the path is not the same thing, but they reside in the same folder. I suspect that this is probably my problem, but I'm confused, how it got like that and worse still, how fix without having to completely rebuild the page.  I am a total novice and teach me how to do this using the DWCS3 Missing Manual book, but I can't find a solution in there, so please help if anyone can, with step by step instructions.

    If anyone has any idea how it happened, I'd appreciate comments so I do this again.

    If more information is needed, please let me know.

    Thank you

    Hi, Kelly.

    What keeps you from renaming files with Word spaces? It is a good idea. On ALL of your files. Rename them to the INSIDE of the files Panel.

    You work in a defined site? Yes, you are.

    The page you we directed (with an address disheveled, but easy to fix on the track), shows a large number of links to files on your computer, do not using links to other files in your root directory.

    You must open your template and reapply links to all images. Save the model. Once you have re-applied the links in your template Master.dwt, change > models > update of the Pages... while your model is open (especially if DW does not ask if you want to update the files). Record everything (better yet, don't have other pages opens when you update the pages...).

    Depending on how you created your page "Se Involved.html", it would be preferable for you to set up a new page of the child of your template and copy the changing content of the old page. Name the new page (without spaces in the file name... lol...) and save it. You won't be totally rebuild the page, because a lot of it will flow in your model.

    Commenting on your illustration to pdf, you want the indicator model-based Yellow Page in the upper right of your page based on a model of read model: Master. Pages containing the path to the top there are incorrect. I don't know how this happens, but it could be a problem with moving the files outside the DW (bad idea)... always use the files Panel to move files. You have full access to your computer in this window.

    Beth

  • Problem with the iPad using kindle app.

    WE have 2 iPads, iPad 3 and the air of aniPad. Nor are working using the kindle App freezes and looks like he's trying to download or open a book. Which of the two in the lower part shows also cloud and who is on the side of the unit?

    Amazon made the kindle app, not Apple.

    If you have problems with the app-contact Amazon Kindle.

    http://www.Amazon.com/GP/help/customer/display.html?nodeID=200298460

  • Problem with the Satellite Pro 2100 and new modules of RAM

    Hello

    I have a Toshiba Satellite Pro 2100 and I have a problem with the memory upgrade.
    My notebook of startup only if a plug-in module to a ddr, but if I insert the two modules IN CC led orange flashing start when I try to turn on the pc. The stop led not blinking unless I take out the battery and the dc adapter.
    Here is the code of the modules:
    KTT3614/256 (original)
    KVR266X64SC25/256
    256 MB pc2100 both.
    Starting the PC with any of them, as well as the modules are both compatible.

    Any ideas?
    (Sorry for my English but I'm Italian: D)

    Post edited by: DaK_TaLeS

    Hello

    the second location of memory perhaps is the problem.
    Try to start with a module in the second slot, first an empty slot.

    Good bye

  • Problems with the Power Manager 1.51 new T60 has

    I've updated Power manager version 1.51 has and I have problems with the gauge of Power Manager in the task bar. Life remaining battery is not updated once more. Is there any chance I can find an earlier version of the software that worked perfectly before? Or there is a method to solve the problem?

    Sincerely,

    Nikita Septucha


  • Problems with the page numbering

    Hello there ' All!

    I received a few questions about the numbering of the pages:

    1. When the notes are present, they appear over my page numbers (in the lower left corner), which makes them invisible. How to avoid this?
    2. How can I ignore numbering for some pages, as the cover page, table of contents etc. ?
    3. How can I connect page numbers in my table of contents to my actual page numbers?

    Thank you!

    1A, ill-conceived layout? Page numbers should ideally be placed on your master pages, and outside of the margins, you book to plain text (i.e., top, side, or underneath the purple square). Move the frames of page number outside the place of purple Director. If there is no room for this, you need to adjust your margins!

    2. you can 'ignore' the page numbers (they will keep existing), but you can hide them in several different ways. Easier - and more dirty - trick is to put a white rectangle on them (don't do this!). You can also (Cmd) Ctrl + Shift + click on any element on a master page, so "free him" and then just delete the entire frame, with the page number and everything (I wish you didn't do this...). The best way is to assign a new master page to only those pages; a specially created for this purpose (if you have other elements that should appear on all pages), or simply the "[None]" blank page.

    3 search 'referrals' help if you use CS4. You can also search for "Table of contents", it may be useful to regenerate all the content, so the text is up-to-date as well.

  • Problem with the installation of add-on to animate CC

    Hello

    I am trying to install the add-on from the host Snap.svg from page Adobe modules:

    https://creative.Adobe.com/addons/patches/26811

    The first time I "bought" the add-on (it's a free add-on) I got a message telling me to get the creative cloud desktop application.

    I already installed (latest 3.8.0.310).

    After a while in the activity stream, this error message appears: "Installation failed, could not validate license online".

    I tried to remove the add-on from the 'My Add-ons' page and reinstall it again, but it does not work and it does even not now produce a new entry in the activity stream.

    I also tried connection then on Creative Cloud Desktop App and restart Windows.

    I have a valid license of creative cloud, this shouldn't be a problem.

    I am behind a proxy, but for the installation of applications (Photoshop, Animate, Illustrator etc) creative Cloud that was no problem since I could determine my proxy authentication information.

    By clicking on the error message in the stream of activity redirects me to a troubleshooting page in the extensions Manager, where my particular error refers only to this forum.

    So I hope that there is someone out there who can help me with this.

    As an additional info: I also tried two other add-ons free with the same result. One was to animate the CC and the other for Photoshop.

    Thanks in advance.

    Thanks kglad.

    I downloaded the file zxp from github:

    https://github.com/cjgammon/SnapSVG-animator

    Then I followed the instructions on this page:

    Installation of extensions in ZXP using the utility to manage Extensions. Animate Adobe blog

    Before, I had tried to install the file zxp using the CC of the extensions Manager, but it did not work. It is even said on the Adobe page with CC2015, you should no longer use the extensions Manager.

    But the utility to manage Extension works for me.

    Still don't understand why automatic installation via the website and through the application of CC desktop does not work well.

    But I'll use this workaround for now, so there's a zxp file available for direct download.

  • Problem with the page turns with the OSM

    Just downloaded the version 23 of the content viewer. I consult my folio/articles on an ipad 1 and I still thorny issues when it comes to the page turns:

    1 if there is no MSO, page turns very well and is aligned with the previous or next as expected.

    2. to the ESM pages, if I do not commit to the OSM, it snaps to the next page or previous fine.

    3. If I click on the ASM then try to turn the page, he jitters and shakes and remain on the page or is blocked to halfway. When I try even once, it turns out as expected.

    I heard that by disabling the function of zoom in on PDF folios will solve the problem. If I don't create my own custom Viewer (I do not have a version company, just one question release them a) how can I make pages with active MSOs run properly?

    I typed double (or triple typed, I forgot) the title of the header on the Viewer to reveal that I use in effect v23. Also use lightbox version 23 in Folio properties. Also rebooted the ipad to make sure. Any help will be greatly appreciated.

    By the way, THANKS ADOBE! A lot of people complaining about things on this forum... But if it wasn't for what you did with DPS and InDesign, there is no way I or countless others could even dream of creating an application without having to pay a programmer hunderds if not thousands of dollars to the code! InDesign is one of the most elegant and most stable programs I've ever used. Add to that the ability to create applications tablet and it's just a force to be reckoned with! I < 3 Adobe and InDesign! Wow, that last sentence looks like it has been seized by a prepubescent girl. I am a man of 41 with 2 children just to be clear!

    You're right, it's the same question, as seen in the other thread. You can fix this by disabling PDF zoom when you build your application. When you go through the process to create your simple editing application, you should see "Show the Advanced Options" on the details page of the App in DPS App Builder. You can uncheck enable PDF zoom it.

    On behalf of the team, you are welcome. Thanks for the kind words

    Neil

  • Problems with the audio using Hulu on Apple TV

    We meet a few important issues in streaming Hulu through Apple TV. The problem is with the audio. When we start a new episode of a television show, frequently, there is no audio data. The audio plays fine during the advertising leading up to the episode, but then he went to the start of the episode itself. Last night, for example, we tried to watch an episode of Casual. No sound. I restarted the same episode 3 times (which meant, annoyingly, I had to attend the same ad 3 times), and each time it was audio at the announcement, but then no sound during the episode. I unplugged Apple TV, wait a minute and plugged in. Choose the same episode and had the same problem.

    Before last night, we were sometimes able to get audio on Hulu content, but it is seldom worked without similar problems - there is no audio data, or sometimes there will be audio briefly but then it disappears. We will not experience this problem streaming other services by the Apple TV, such as Netflix, HBO or with iTunes media. Any advice?

    It is a second generation Apple TV, purchased in September 2010.

    Exactly the same problem with Hulu here on ATV2. Its been like that for months and only getting worse. Also, randomly that it recharges during playback. If you can spend the first few minutes of couple of a show (by the start/stop several times) it will play the rest of the show OK.

  • Problem with the Gateway using Vista laptop battery

    Hi all

    I've had this laptop Gateway for a year now and I have had this strange problem with it probably a good 3 months to own. Basically the little thing of battery indicator on the bottom right of the task bar will say "plugged in, not charging" while the laptop is plugged. So this is my little ghetto rig which leads me to believe that is not the battery or the charger which gives me the trouble.

    While the laptop is plugged in, and moan about there is no life left blah blah, I pop the battery and back in. Hop, I magically have full battery and be able to unplug the laptop for mobile use.

    I've read a lot online that it is a Vista problem, that I am running, and not a hardware problem. I would really like to know if this is true, because I am a student and prefer not spend the precious material fixing money when this is not the problem. As stated earlier, cell phone charges when it is plugged in, it SAID only that it does not load. When I pop the battery, it works fine until the next time that the battery is exhausted and then I plug it in and have to redo the same platform of ghetto.

    It's just a little a downside to keep popping up that darn battery in and out, and frankly, I don't think it's good for the laptop to keep doing this, even if it's worked for me for about 7-8 months now.

    Can someone please offer information about this weird issue?

    Thank you very much.

    Why my battery portable MD Gateway or Gateway MC series doesn't load at 100%?
    http://gateway-us.custhelp.com/app/answers/detail/A_ID/2624/kW/battery%20not%20charging/session/L3NpZC9UKjJBcnNsaw%3D%3D

    Also in this forum:
    Gateway Laptop: plugged in, does not support
    http://social.answers.Microsoft.com/forums/en-us/vistahardware/thread/6db4fe50-D318-44DA-a938-2fc58f4bbe7b
    on one of the post of Leaky.

    I hope I could help

  • Question about problem with the file using a clipping mask

    I use Photoshop CS6.  I bought a digital frame with a mask of clipping on Etsy.   When I go to insert the image in the image using the clipping mask image continues to show through the edges of the image (as pictured).  I tried blocking layer, but it does not work.  Any suggestions?20140925_184509.jpg

    Try this, 2 layer moving below 3 attach them.

    Hang out with the selection tool ellipse a circle that encompasses the area which should show the image

    Create a mask for the form (make sure the shape layer is selected {now layer 2 to 3} click the icon at the bottom of the layers panel that looks like a circle inside a square)

    You should now see your image.

    If you get stuck, you can capture your screen to show your progress.

    Tips for the selection tool:

    You can hold the SHIFT key to constrain to a circle

    You can hold the ALT key to draw a selection of its center circle,

    You can hold both modifier key for a perfect circle drawn in the Center.

    Finally you can hold down the SPACEBAR to move the selection before you release the mouse button.

  • problem with the page do not scroll (no scroll bar)

    I'm puzzled. I'm sure it's probably something simple, but I can't get the page of scrolling (scrolling bar) to show all text.  I'm guessing this has something to do with fixed heights or absolute positioning.  But I just can't get my head around it.  Any help anyone could provide would be greatly appreciated.

    Thanks, Kirk

    file

    http://blueyondermusic.com/history.htm

    CSS file

    http://blueyondermusic.com/pilotmagicmusic6.CSS

    Thank you

    Kirk

    You gave .header a height of 245px and which applied to the entire page.

    Place an end div tag where the header is supposed to end.

    Also, you have given the header a fixed position, which will ensure that it has been removed from the normal flow of the document. This allows content to flow behind the header.

Maybe you are looking for