the form validation (Checkbox) does not work for the interactive report

Hello

I use the oracle apex 4.0 and oracle 11g.

I wrote a under select query on interactive report

Select
apex_item. CheckBox(1,RESIDD) | apex_item. Hidden(2,RESIDD) row_selector.
apex_item. Text(3,RESNUM) as resnum
of 'PDRRES '.

and written validation to display the error message ( error of function return text ) as

DECLARE
vRow directory;
BEGIN
-apex_application.g_print_success_message: = NULL;

BECAUSE me in 1... apex_application.g_f01. COUNTY
LOOP
vRow: = apex_application.g_f01 (i);
apex_application.g_print_success_message: = apex_application.g_f01 (i) | » -'|| apex_application.g_f03 (vRow) ;
END LOOP;
END;

Output: No data available error message

As long as it works for sql report with above logic because apex built in line selector
but it fails in the case of interactive report for some reason any.

Please suggest.

Saroj Nayak

Saroj Nayak says:

DECLARE
vRow BINARY_INTEGER;
BEGIN
--  apex_application.g_print_success_message := NULL;

FOR i IN 1 .. apex_application.g_f01.COUNT
LOOP
vRow := apex_application.g_f01(i);
apex_application.g_print_success_message := apex_application.g_f01(i)||'-'|| apex_application.g_f03(vRow) ;
END LOOP;
END;

You have set the value of vRow to the value of the number box i which is checked. There is probably nothing in the apex_application.g_f03 with RESIDD as index table

What you want is hollow loop all the hidden objects g_f02
and with in this loop through all verified elements checkbox g_f01
and if the values of these in the game, you have your line for checking f03

for k in 1 .. apex_application.g_f02.count
loop
  for p in 1 apex.application.g_f01.count
  loop
    if   apex_application.g_f01(p) =  apex_application.g_f02(k)
    then
      apex_application.g_print_success_message := apex_application.g_f01(p)||'-'|| apex_application.g_f03(k) ;
    end if;
  end loop;
end loop;

Nicolette
PS your NPA between

{ code }Your code { code } without the spaces between {, } and code 

Tags: Database

Similar Questions

Maybe you are looking for

  • WLan can be activated only when the NB200 is running

    I have a laptop Equium n and a netbook NB200.I implemented the new netbook NB200 a couple of days and had the same problems experienced by others trying to turn on the Wifi! Now it's OK, but I find that the laptop can't access Wifi now if the Netbook

  • Debugging on Live device with plug Eclipse 1.1

    Hello I just spent ages trying to debug my application on a live device. I followed the instructions found here... http://supportforums.BlackBerry.com/T5/Java-development/debug-an-application-running-on-a-live-black... and for my simple application,

  • BBM add an Avatar

    Hello How can I put an Avatar photo in BBM? I tried the app but I found nothing can´t. Maybe it is called different here but with Avatar, I mean my "profile picture"? You understand me and help me? In Whatsapp, it's very simple to just go to settings

  • Issue MRA Expressway

    Hi all I had configured Highway c + e and traversal area present you on C and E. But the event log show me an error by minute and jabber cannot open a session. Anyone know what the average error? ------------------------------------------------------

  • Lightroom 6 (not CC) does not open

    After working for several weeks 6 Lightroom (version no cloud) does not open. I repeatedly get just "Unexpected Lightroom" box with pages of technical stuff that I would like to paste here, but the box won't let me copy and paste (which is extremely