Publish everything using the Page delete OPS

Hello

I created a table and ran the VO.
Now, I want to remove the lines by clicking on an image.

So I created an item and value
Element properties
---------------------
ID: remove
Style point: image
Disable Validation on the server side: true
Disable Validation on the Client side: true
Fast: delete
The URI of the image: deleteicon_enabled.gif
Action type: fireAction
Event: remove
Parameters: (name) (value) R12OperatingUnit ${oa. BLTARBOUMAPEOView1.R12OperatingUnit}
Submit: true

I wrote the Code as
PFR
---
{if ("Delete".equalsIgnoreCase (PageContext.GetParameter (EVENT_PARAM)))}
String R12OperatingUnit = pageContext.getParameter ("R12OperatingUnit");
System.out.println (R12OperatingUnit);
am.invokeMethod ("deleteOU", new [Serializable] {R12OperatingUnit});
}

AM
--
{} public void deleteOU (String R12OperatingUnit)
OAViewObject VOB = getBLTARBOUMAPEOView1 ();
Line row = VOB.first ();
{while(Row!=null)}
{if ((Row.GetAttribute("R12OperatingUnit").) Equals (R12OperatingUnit))}
Row.Remove ();
getOADBTransaction () .commit ();
throw new OAException ("Deleted Succesfully", OAException.CONFIRMATION);
}
Row = VOB. Next();
}
}


But I get the error message like
* "Java.lang.NullPointerException *"
* to xxbilt.oracle.apps.ak.BLTARBOUMAP.server.BLTARBOUMAPAMImpl.deleteOU(BLTARBOUMAPAMImpl.java:69). "


In the PFR, the R12OperatingUnit string is returned as NULL.

Please advice.


Thanks in advance,
Roselyne

HI Flo,

Please use the following code

OAViewObject VOB = getBLTARBOUMAPEOView1 ();
int fetchedRowCount = VOB.getFetchedRowCount ();

RowSetIterator deleteIter = VOB.createRowSetIterator ("deleteIter");
If (fetchedRowCount > 0)
{
deleteIter.setRangeStart (0);
deleteIter.setRangeSize (fetchedRowCount);
for (int i = 0; i)< fetchedrowcount;="">
{
line = (EmployeeSummaryVORowImpl) deleteIter.getRowAtRangeIndex (i);

For performance reasons, we generate ViewRowImpls for all
Objects in view. When we need to get an attribute value,
We use the accessors appointed instead of a generic string search.

Number primaryKey = (Number) row.getAttribute ("EmployeeId");
Number primaryKey = row.getEmployeeId ();
If (primaryKey.compareTo (empToDelete) == 0)
{
It performs the deletion.
Row.Remove ();
getTransaction () .commit ();
break; only one selected line in this case
}
}
}
Always close the iterator when finished.
deleteIter.closeRowSetIterator ();
} / / end deleteEmployee

It's delete example of sample tutorials

Your logic in AM is wrong as always you delete the first line.

You need through the lines in the original Version, and when you find the exact line with a primary key as employeeId in the example above. You must remove this line

In your case, it should compare the R12OrgId1 parameter with the corresponding value in each iterated line

Concerning
Ivar

Tags: Oracle Applications

Similar Questions

  • InDesign crashing whenever I use the page tool

    InDesign CC 2015 (11.3.0.34) on Mac OS X Yosemite 10.10.5

    Whenever I select the page tool it crashes... new existing document document, no way to use the page tool, a few seconds after selecting it, closed InDesign itself!

    Even with a few members of my team on their machines.

    Anyone experienced the same problem?

    so, it looks like delete the Preferences file has solved the problem!

    Preferences in InDesign and support files

  • Using the page submit after elements in the process of treatment page

    Hi all

    I have a form of DML in which the user can update a column.

    After clicking the Apply Changes button that I need to send an email saying the record has been updated with some page elements in the body of the email.

    I am able to send email, but I'm not able to display the page elements in the body.

    After changing the save the session state for the 'yes' also he did not.

    Y at - it another option that must be set so that I can use the page elements in the body of the email.

    Thank you

    MJ

    Make sure that after settlement it is normally a reset page call, is perhaps what kills the variables you are trying to access.  You should put your mail send processes PRIOR to the reset page process...

    Thank you

    Tony Miller
    Los Alamos, NM

  • How to use the Page number in the IF condition

    Hello

    I have an obligation to change the output based on Page numbers. Can you please help me how to use the Page number in IF condition.

    Thank you

    Can u send me a sample xml and RTF file to my email in my profile identification, so that I can have a look.

  • Tips for using the pages 5.6 for writing a book?

    Hello

    Someone at - it advice for using the current version of Apple's Pages to write a book?

    Writing my last book in the old version of Pages with internal links/bookmarks function.  The table of contents allows, however I was wondering if the use of the pages is the way forward?  And if not, what are some suggestions on a Mac?

    Thank you, Tony

    Have you looked at Scrivener (http://literatureandlatte.com/).  It is designed specifically for writers of all kinds of materials.  It is useful for the Organization, research and multimedia, shaped for different destinations and hundreds of models available.  It is generally considered to be the tool first word forge to the authors.

    He has a bit of a learning curve, but it comes with a tutorial and a number of videos.  There are a lot of 3rd party videos and several courses on Udemy and elsewhere.  Once you use it, however, it is unlikely that you will return in a word processor or a publishing tool (which have two very different objectives).  There is a community of support for users, too.

    Good luck.

  • I'm unable to use the button Delete even after following the advice of the FAQ. Reinstalled RESOLVED to backup

    Hello

           My Thunderbird Ver is 38.3.0 - Today my delete button stopped working and I went to the FAQ section on the Mozilla support and found the article and followed the instructions, deleting the directoryTree.json, panacea.dat and session.json I then went to the Mail folder and  I have listed POP.NTLWORLD.COM, pop.ntlworld-1.com, pop.ntlworld-2.com and so on to pop.ntlworld-7.com.
    

    I went in and deleted the files from the Recycle Bin and Trash.msf, close the window of opportunity of disorder and restart Thunderbird.
    The system their re created the trash folder and it replace 1329 files. So I went to the delete files in the Recycle Bin, they were then removed, still unable to suppress use at this time. SO I went again through the procedure as a whole. restart Thunderbird and always files 1329 all have been recreated. I therefore deleted their brand-new and went through the whole procedure again. Now, after the reboot, I have an empty basket but am unable to delete anything in the Inbox or the junk e-mail folder or the "sent" folder.
    I am now at a loss... Help please.

    Steve Bishop

    Hello

              I have taken the bull by the horns - so to speak - I deleted Thunderbird and restarted the computer. I have mozbackup and do regular backups so I installed the latest one and hey presto all is working again.
    

    I don't know what went wrong, but its maybe solved, a bit blunt, but I'm a happy Bunny now

    Steve Bishop

  • After trying everything on the page crashsolver, 41.0 Firefox still crashes in some places. What can be the problem?

    My browser crashes even in sites, such as Google Maps, or site to ask support from Mozilla. It stil happens after I tried everything on the Mozilla troubleshooting page, but in safe mode, it is not present. This happens after reinstalling Windows 7 on my computer. What can be the problem?

    Problem solved (apparently...). As you say, the problem was with the graphics driver. I completely uninstalled the driver and all its folders and files (with the help of a program) and re-installed. Accidents to certain pages from before are gone. So thank you for the help.

  • How can I reduce the size of the Solution Explorer window when you save a web page by using the Page save (Ctrl + S)?

    Save the Page (Ctrl + S) used to open a small window of the Explorer (Windows 7 OS). All of a sudden (after update for FireFox 37.0.1), it opens a window of browser enlarged (full screen). The passage of the mouse on the window edge, arrows a size change appear, but do not meet the drag. How make the window smaller, or reset the Page save (Ctrl + S) so that it opens a small window again?

    You can open the system menu of the window selector to file via Alt + space to check if the window is not maximized?

  • Firefox uses the page host internet explorer after restarting the PC, even if I change again, it passes every time

    I use a laptop for my work. I have internet explore what is necessary for our things work related and internet intranet explore uses the intranet homepage of our work. I also use firefox and want to use a different home page (IE Bing, google, whatever...). So things work related I use IE, for web browsing of non-working, I use firefox. Recently whenever I reboot my PC and launch firefox, firefox uses my Explorer (working on the intranet) home page internet. I then easily reset on my preference (bing.com) and as long as the PC is on, if I close and Open firefox it keeps bing.com as my home page. I could do this 20 x and it will keep the bing.com homepage. However when I shut down and restart the PC, firefox goes back to the use of the IE homepage (on the intranet of the work). Is there a permanent way to fix this. Our IT Department has been no help. Started a week before what is happening they upgraded our computers to internet explore 11. I tried to reset Firefox but that does not solve the problem.

    Hi hunted, something is change or replace your prefs.js file.

    Maybe you can thwart it by creating a user.js file. This file is read at startup of Firefox and replace prefs.js. Basically, it only needs a single line, if you could open prefs.js in a text editor after you have corrected to the homepage preference, use Save as to create user.js and then remove all the lines and save/close.

    More information on user.js: http://kb.mozillazine.org/User.js_file

  • I can't read everything on the page Web as its too zoomed, how can I sort it please?

    It seems that the page is too zoomed but when I zoom back sound is not sorting it

    Press Ctrl and the sign "+" to make everything bigger.
    Press Ctrl and the '-' sign for little ones.
    Press Ctrl and the zero to return by default.

  • How can I keep my top bar with "delete" on it to go away when I click it. I want to remove successive emails using the button Delete on top of my Windows Live Mail

    I want to delete several emails in Windows Live Mail. When I click on the button Delete in the upper part, the entire bar disappears. I want to keep it there all the time to use it to remove some of the emails but it keeps going away after a single use.

    Right click on the home tab and click cut the Ribbon to deselect.

    You can also ensure that the delete button is always visible by showing it on the Quick Access toolbar at the top of the window. There is a drop-down menu at the right end of the QUICK access with the controls bar, and others can be added by right-clicking on any command on the Ribbon and select Add to quick access toolbar.

  • Using the page as a condition for interactive report item value

    Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. Conditions are 1) If the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is to 2 when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition of being added to the interactive report query.


    I tried

    CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN ' < button type = "button" class = "button-default"; ">

    < span > edit </span > < / button > ' END I just get errors.

    If I just put the condition as

    CASE WHEN: APP_USER IN ('Mencis") THEN ' < button type ="button"class ="button-default "; "> < span > edit </span > < / button > ' END

    button is displayed in the report. If I add the second condition, all I get is error. I don't know how Add an element value of the page as one of the interactive report conditions. Please help me on this.

    Mencis Joe wrote:

    Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. The conditions are 1) if the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is set to 2, when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition to be added to the interactive report query.

    I tried

    CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN '' END I just get errors.

    If I just put the condition as

    CASE WHEN: APP_USER end of '' ('Mencis") THEN

    the button is displayed in the report. If I add the second condition, all I get is error. I don't know how to add a value to the page element as one of the interactive report conditions. Please help me on this.

    Combine the predicates in the CASE expression by using an AND condition:

    case
      when    :app_user = 'Mencis'
          and :p10_dummy = 2
      then
        ''
    end
    

    Hardcode a condition like the :app_user = 'Mencis' is likely to prove problematic for all sorts of reasons, not least including the value of APP_USER is uppercase by default, unless otherwise during authentication.

    Note that the semicolon and extra double quotes in are not valid.

  • Redirect to an Apex Pl/Sql by using the page

    Hello

    I want to redirect it to a page of the apex using pl/sql.

    I m using the following code.

    Begin

    htp.p (utl_http.request (": http://application-tier server: port/apex /'"));

    End;

    Get the following error: parsererror - syntax error: token Unexpexted.

    Help, please.

    Concerning

    Far87 wrote:

    Fac586 thank you very much for your reply,

    Sorry for the unclear issue, I will make you understand.

    My requirement is to navigate between the pages.

    I have a form with field x and a button to send in the same region.

    whenever you press submit, it should check

    If x = 1 then

    GoTo page 3

    elsif x = 3 then

    GoTo page 4

    on the other

    GoTo page5

    end if;

    To do this, I created a dynamic action using the code below.

    Begin

    If: P5_x = 1 then

    HTP.p (utl_http.request (": http://application-tier server: port/apex/f?")) p = 159:3'));

    elsif: P5_x = 3 then

    HTP.p (utl_http.request (': http://application-tier server:port/apex /f? p = 159:4'));

    on the other

    HTP.p (utl_http.request (': http://application-tier server:port/apex /f? p = 159:5'));

    end if;

    end;

    Get the following error: parsererror - syntax error: token Unexpexted.

    I replaced the htp.p (utl_http.request (": http://application-tier server: port/apex/f?")) p = 159:3"))

    with owa_util.redirect_url (": http://application-tier server: port/apex/f?") p = 159:3');

    apex_application.stop_apex_engine ();

    Always make the same mistake.

    This is completely the wrong approach for normal inter-page navigation in the APEX. The use of dynamic action is not here. In this situation use branches for navigation, with conditions to control which branch is used according to the logic that you need...

  • I just bought Adobe Standard DC are trying to use the "Pages to organize."

    I recently bought Adobe and I just want to be able to use the function to organize specific extract Pages to a file and create a separate. Adobe Reader is already installed on my computer but I don't have access to some features I want. Any advice?

    Download here: https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html

    And Yes. You open the file in Adobe Acrobat Reader. Download and install Acrobat Standard.

  • A page by using the Page zero stop

    I have an Apex (v 4.2) application that uses a zero page and one level of navigation tabs. Is it possible to create a new page that still use the navigation tabs, but does not inherit page zero?

    Or can I create a 'different' page zero and have pages that inherit instead?

    Hello

    Go to each component in the page-0 and go on 'Conditions', select 'Type of Condition' as 'current Page is NOT in the Expression 1 (delimited list of pages). And in 'Expression 1', you can enter a list of the pages that the component should not be returned.

    Kind regards

    Hari

Maybe you are looking for