How to get APEX_APPLICATION elements index for lines checked

Hi, I built a report like this:
SELECT
APEX_ITEM. CHECKBOX (11, CAA_NO, GET_RB_CA_CHECKED (: P13_REIMBURSEMENT_FORM_ID, CAA_NO,: CURRENT_USER_EMPLID)) as CA_CLEAR,
APEX_ITEM. TEXT (12, GET_RB_CA_CLEAR_AMT (: P13_REIMBURSEMENT_FORM_ID, CAA_NO), null, null, GET_CA_SELECTABLE (:P13_REIMBURSEMENT_FORM_ID,:CURRENT_USER_EMPLID)) as CA_CLEAR_AMT,)
+ "TNE_CASH_ADVANCE." "" CAA_NO ""CAA_NO,"+
+ "TNE_CASH_ADVANCE." "" APPLY_DATE ""APPLY_DATE,"+
+ "TNE_CASH_ADVANCE." "" BUSINESS_UNIT ""BUSINESS_UNIT,"+
+ "TNE_CASH_ADVANCE." "" APPLY_AMOUNT ""APPLY_AMOUNT,"+
+ "TNE_CASH_ADVANCE." ' ' CURRENCY_CD ' 'CURRENCY_CD ' +.
OF
+ 'TNE_CASH_ADVANCE ' +.
WHERE APPLICANT =: P13_APPLICANT_EMPLOYEE_NUMBER

You can see that the 2nd is an input box for the user to enter the number.
But here's a nuisance. For the submission process:

DECLARE
P_CAA_NO VARCHAR2 (14);
NUMBER OF P_WO_AMT;
NUMBER OF P_WO_TOTAL;
BEGIN
P_WO_TOTAL: = 0;
+ / * erase all profits. prepare for the write-off of validation * / +.
DELETE TNE_RB_CLEAR_CA
WHERE REIMBURSEMENT_FORM_ID =: P13_REIMBURSEMENT_FORM_ID;
BECAUSE me in 1.APEX_APPLICATION. G_F11. Count
LOOP
P_CAA_NO: = APEX_APPLICATION. G_F11 (i);
P_WO_AMT: = APEX_APPLICATION. G_F12 (APEX_APPLICATION. G_F11 (i));
raise_application_error (-20001, P_WO_AMT);
P_WO_TOTAL: = P_WO_TOTAL P_WO_AMT; +
END LOOP;
END;

We know that the arrary F11 will return only selected lines. But this leads to a mistake on go get the F12.
The F12 will have a bad index (i). Right?

Anyone has any experience on this? Thanks in advance.

Add one more APEX_ITEM - element hidden with the same ID as in your ARTICLE in the BOX. As you wrote, F11 (i) returns only selected ID. checkboxes so, if you add an element with the same ID value to compare with your box. In your loop, if these two values are the same, this means checkbox for the current, I even checked. E.g.:

Select
apex_item. Hidden(1,TABLE_ID) | apex_item. Hidden (2, SEQ_ID) | apex_item. CheckBox(3,SEQ_ID) "remove."
NAME
of une_table

Erase your process:

BECAUSE me in 1... apex_application.g_f01. COUNTY
LOOP
FOR j from 1... apex_application.g_f03. COUNTY
LOOP
IF apex_application.g_f03 (j) = apex_application.g_f02 (i) THEN
/ delete process using only the i-references.
END IF;
END LOOP;
END LOOP;

With this condition you don't need to use APEX_APPLICATION. G_F12 (APEX_APPLICATION. G_F11 (i)); but:

P_WO_AMT: = APEX_APPLICATION. G_F12 (i);

Kind regards
Przemek

Tags: Database

Similar Questions

  • How to get back my data for the health and the watch Apps once I've restored my phone?

    How to get back my data for the health and the watch Apps once I've restored my phone?

    From the backup, you're going to be restoration.

    If you back up to iTunes, make sure that it is an encrypted backup.

  • How to get an RMA number for a money-back guarantee?

    September 13, 2014

    Hi all

    I'm trying to figure out how to get an RMA number for a warranty for my iOmega ix2 return. I checked my warranty and it's good for another year. The Lenovo Web site sent me round and round, never really getting to any kind of page which will allow me to enter my serial number and other data of warranty.

    I would like to call or chat but it's Saturday, and these options do not appear to be taken over the weekend.

    Someone has a direct link to the page of Lenovo/iOmega NAS support guaranteed returns?

    Thank you in advance.

    Best,

    Jeff

    Comment to Moderator: Email addresses removed to defeat spammers robots.

    Suggest that you only contact your local support via phone staff. OU can any of here first... http://support.Lenovo.com/us/en/downloads/ds034667

  • How to get the code produced for my Windows XP disc if I have the drive?

    Acquisition of Product Code Windows XP

    How to get the code produced for my Windows XP disc if I have the drive?  I signed the BONE when I bought it all first, but have no way of knowing if this is the way to receive a copy of the product key.

    Here are some utilities, which will display your product keys:

    Belarc Advisor: http://www.belarc.com/free_download.html
    (He did a good job of providing a wealth of information.
    However may not detect a key to office, then try one of the other two below)

    Also: http://www.nirsoft.net/utils/product_cd_key_viewer.html
    and: http://www.magicaljellybean.com/keyfinder.shtml

    Paid (free demo is available): Recover Keys: http://recover-keys.com/
    "quickly scans your system for more than 3000 + software '.
    and produces a list of software activation keys.

    13 keyfinder programs:
    http://pcsupport.about.com/od/productkeysactivation/TP/topkeyfinder.htm

    J W Stuart: http://www.pagestart.com

  • HP laser jet 3030 how to get an email Id for this print using eprint

    How to get an email ID for jet Laser HP 3030 to use eprint

    This isn't a matter of comercial, I Chron. Hp and I have Hp laser Jet 3030 printer how to connect the two

    Please aadvice

    Raymond [redacted for privacy] Canada

  • How to get the device model, for example app works on PlayBoook or BlackBerry 10?

    How to get the device model, for example app works on PlayBoook or BlackBerry 10?

    You can use this class: http://goo.gl/GtMLP for information on devices

    something like this:

    String myDeviceModel = android.os.Build.MODEL;
    String myDeviceBrand = android.os.Build.BRAND;
    String myDeviceDevice = android.os.Build.DEVICE;
    
  • All they can do is go on the Internet Explore. So my question is how to get features of office for a guest user?

    Hi, I want to let my friend use my laptop and I need to set up a guest account. The problem is that when I did it, we cannot access Office so that the person cannot create any word or excel files, etc. All they can do is go on the Internet Explore. So my question is how to get features of office for a guest user?

    Don't add a guest account, add another standard user if you want another user to access programs as well.

    User account - add a new user in Windows 8

  • How to get my serial number for Acrobat DC std to install? I have only the number of contract!

    How to get my serial number for Acrobat DC std to install? I have only the number of contract!

    Hello

    You can find serial number here sign in French - Adobe ID . Please make sure you sign in with your Adobe under which you purchased Adobe Acrobat DC Standard ID.

    See this KB doc for help: find the serial number of your product Adobe quickly

    Let us know if you need help.

    Kind regards

    Meenakshi

  • How to get my homepage index.html to stand, I've added files?

    Hello

    How to get my homepage index.html to stand, I've added files?

    I created folders in the root and Idex.htlm file, but when I ADDED a file to the file, the INDEX or photos. Files HTML moves downwards.

    see you soon,

    Dreamer.101

    I do not think too that you can have the index at the top of the "stack".

    However, you can group the files / folders by Type, Date modified and file size by double clicking on the topic at the top of the File Manager.

    --

    Nadia

    Adobe Community Expert: Dreamweaver

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

    Unique templates CSS | Tutorials | SEO articles

    http://www.DreamweaverResources.com

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

    Web Design & development

    http://www.perrelink.com.au

    http://Twitter.com/nadiap

  • How to get rid of the reference lines on the front panel

    I forgot how I created a couple of horizontal and vertical lines on the front panel. It seems that the original on the front lines. When I move my program to another monitor with a different resolution, the layout is messed up because of the reference lines cannot change the resolution. Everybody respected this before? How to get rid of them?

    Attached are the 2 creen shot of facades.

    Thanks in advance.

    Ah, I figured out. I accidentally selected the "scale with objects pane" from the context menu of a button in the tab. This is whence the reference lines.

    Thanks for all your guys help and advice.

  • How to get the element selected listfield and goto next page?

    Assalaamualikum

    I try parsing the XML from a url and show in listfield.

    problem:

    How to get the selected item and passing the variable and than goto next page?

    my code:

    package parsepack;

    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Vector;

    Import javax.microedition.io.Connector;
    Import javax.microedition.io.StreamConnection;

    Import net.rim.device.api.system.Bitmap;
    Import net.rim.device.api.system.Display;
    Import net.rim.device.api.ui.DrawStyle;
    Import net.rim.device.api.ui.Field;
    Import net.rim.device.api.ui.FieldChangeListener;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.Manager;
    Import net.rim.device.api.ui.UiApplication;
    Import net.rim.device.api.ui.component.ListField;
    Import net.rim.device.api.ui.component.ListFieldCallback;
    Import net.rim.device.api.ui.container.MainScreen;
    Import net.rim.device.api.ui.container.VerticalFieldManager;
    Import net.rim.device.api.xml.parsers.DocumentBuilder;
    Import net.rim.device.api.xml.parsers.DocumentBuilderFactory;

    to import org.W3C.DOM.document;
    Import org.w3c.dom.Node;
    Import org.w3c.dom.NodeList;

    extends xmlparsing public class UiApplication implements ListFieldCallback, FieldChangeListener
    {

    Public Shared Sub main (String [] args)
    {
    xmlparsing app = new xmlparsing();
    app.enterEventDispatcher ();
    }

    public long mycolor;
    Connection _connectionthread;
    private static ListField _list;
    private static Vector listElements is new Vector();.
    public display display = new MainScreen();
    MainManager VerticalFieldManager;
    VerticalFieldManager subManager;

    public xmlparsing()
    {
    Super();
    pushScreen (screen);

    final Bitmap Imagearriereplan = Bitmap.getBitmapResource ("blackbackground.png");

    mainManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL |) Manager.NO_VERTICAL_SCROLLBAR)
    {

    public void paint (Graphics graphics)
    {
    graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Imagearriereplan, 0, 0);

    Super.Paint (Graphics);
    }

    };

    subManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL |) Manager.VERTICAL_SCROLLBAR)
    {
    protected void sublayout (int maxWidth, maxHeight int)
    {
    int displayWidth = Display.getWidth ();
    int displayHeight = Display.getHeight ();

    Super.sublayout (displayWidth, displayHeight);
    setExtent (displayWidth, displayHeight);
    }
    };

    Screen.Add (mainManager);

    _list = new ListField()

    {

    public void paint (Graphics graphics)

    {
    graphics.setColor ((int) mycolor);
    Super.Paint (Graphics);

    }

    };
    myColor = 0x00FFFFFF;
    _list. Invalidate();
    _list.setEmptyString ("* only supplies not available *", DrawStyle.HCENTER "");
    _list.setRowHeight (50);
    _list.setCallback (this);
    mainManager.add (subManager);
    listElements.removeAllElements ();
    _connectionthread = New Connection();
    _connectionthread. Start();
    }

    protected boolean navigationClick (int status, int time)
    {
    Try
    {
    Here, go to another screen if you need.

    }
    catch (System.Exception e)
    {
    System.out.println ("Exception:-: navigationClick()" + try ());
    }
    Returns true;
    }

    private class login extends thread
    {
    Public connection()
    {
    Super();
    }

    public void run() {}
    Doc document;
    StreamConnection conn = null;
    InputStream is = null;
    try {}

    Conn = Connector.open (StreamConnection) ("http://ec2-54-248-241-248.ap-northeast-1.compute.amazonaws.com/koperasi-akr-trial/cgi-bin/gw-pinjama...

    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance ();
    docBuilderFactory.setIgnoringElementContentWhitespace (true);
    docBuilderFactory.setCoalescing (true);
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder ();
    docBuilder.isValidating ();
    is = conn.openInputStream ();
    doc = docBuilder.parse (is);
    doc.getDocumentElement () .normalize ();
    List of NodeList = doc.getElementsByTagName ("ID");
    for (int i = 0; i)< list.getlength();="" i++)="">
    Node node = list.item (i) .getFirstChild ();
    listElements.addElement (textNode.getNodeValue ());
    }
    } catch (Exception e) {}
    System.out.println (try ());
    } {Finally
    If (is! = null) {}
    try {is.close ();
    } catch (IOException ignored) {}
    } If (conn! = null) {}
    Try {conn.close () ;}
    catch (IOException ignored) {}
    }} UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}
    _list. SetSize (listElements.Size ());
    subManager.add (_list);
    Screen.Invalidate ();
    }
    });
    }

    }

    ' public void drawListRow (list ListField, Graphics g, int index, int y, int w)
    {
    Your string = (String) listElements.elementAt (index);
    int yPos = 0 + y;
    g.drawLine (0, yPos, w, yPos);
    g.drawText (, 5, 15 + y, 0, w);
    }

    public {get {Object (ListField list, int index)
    {
    Return listElements.elementAt (index);
    }
    public int indexOfList (String prefix, ListField list, int, string)
    {
    Return listElements.indexOf (prefix, string);
    }
    public int getPreferredWidth (ListField list)
    {
    Return Display.getWidth ();
    }
    public final void insert (String toInsert, int index) {}
    listElements.addElement (toInsert);
    }

    ' Public Sub fieldChanged (field field, int context) {}

    }
    }

    Thank you.

    I told you that replace the navigationclick() method where initialize you your listfield

    as I think that changing your code and then answer me

    _list = new ListField()
    {
    protected boolean navigationClick(int status, int time)
    {
      Dialog.inform("hi");
      return true;
    }
    
    public void paint(Graphics graphics)
    {
    graphics.setColor((int) mycolor);
    super.paint(graphics);
    }
    };
    
  • Satellite L500-154 - how to get the software packaged for Win7

    How can I get the software "Bundled" for Win 7, I will install Win 7 full (no updates), in the moment is runing Vista on the laptop

    As far as I know, you can't have Win7 recovery media. Laptops ship with Vista can update only.

  • How to get the new update for the help and support

    OT:how to get the new update of the abd support help

    How to get help and support update

    Hello rickstemberger,

    Please click the number of the KB article for more information on how to add Windows Vista Help files.
    KB Article ID: 917607 -I can not open Help files that require the Windows Help program (WinHlp32.exe)

    Microsoft stopped including the 32-bit help files viewer in versions of Windows starting with Windows Vista and Windows Server 2008.
    However, with article 917607, you can download the appropriate version of the Windows Help program (WinHlp32.exe) and add them
    the operating system.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How to get a new language for Windows Vista Enterprise.

    Greetings,

    I have Windows Vista Enterprise x 64, and I want to install the Croatian language. The problem is that I do not have the file it self.

    I found the web page of microsoft http://windows.microsoft.com/en-us/windows-vista/How-do-I-get-additional-language-files and there is only one sentence concerning Vista Enterprise: "If you are using Windows Vista Enterprise, contact your system administrator for more information about installing additional languages".

    Sense I am my own system administrator and I don't know how to get the file, I ask you to help me find my language.

    You communicate anywhere / he who gave you permission to install Vista Enterprise.

    See you soon.

    Mick Murphy - Microsoft partner

  • Please someone help on how to get windows 7 drivers for compaq nc6220

    I've recently upgraded a laptop (compaq nc6220) to windows 7 and I don't seem to find find windows 7 drivers to run it.

    I need assistance on how to get windows 7 drivers, to drive the foregoing, named mobile.

    Thank you

    Hi brephosa8701,

    Unfortunately the nc6220 doesn't have Windows 7 drivers on the HP.com website, I suggest that you try to use Windows Vista drivers and see if that can solve some problems for you.

    http://h20000.www2.HP.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=UK&prodNameId=447348&prodTypeId=321957&prodSeriesId=447371&swLang=8&TaskID=135&swEnvOID=2096

Maybe you are looking for

  • Can I unlock my iPad Pro for another iPad pro

    MY iPad was stolen out of my truck today and it has only wifi and it is blocked it is impossible to get a wifi signal while it is locked, I can open it from a different ipad

  • The iPad Pro keyboard light up?

    I just bought the iPad Pro cell! Unfortunately, I have to wait five weeks for the pencil and keyboard!    So, I bought the software keyboard for the iPad Pro to see how I like it. It seems to do a little heavy Pro. However, I don't like the fact that

  • Retirement of old-school needs help

    'The name of the file above is not valid' keep popping up when I try to register under and will not let me save the file in Word Pad in my documents. How can I solve this problem?  Thanks, Greg

  • M1212nf Scans come out huge when issued

    Hi all I read some posts here regarding the scans coming out in great, but none applies to the m1212nf that seems. The only option for scanning you get is "Scan." I went through all the settings, including the definition of the DPI, color mode, and t

  • SD card card

    I.m said that you need a fast read/write speed on the sd card. Anyone would be able to tell me specifically how fast? 3 MB enough?.(for the video camera).