Check and uncheck a Check_box

Hi all

I have a button and a check box in a table, I use the button to check the check_box when I click on it, and there are one or more checkbox disabled with this code

GO_ITEM('DIS_DOCS.DOCTOR_NAME');
    FIRST_RECORD;
                LOOP
    :DIS_DOCS.CHECK := 'Y' ;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE' ;
    DOWN ;
    END LOOP ;

and it works well

now I want to change the code to also uncheck all records if they are all true? How to make

I mean I want to use the button for both processes (check if there is one or more uncontrolled and uncheck if they are all checked)?

Thank you

DECLARE

all_checked BOOLEAN: = TRUE;

BEGIN

GO_ITEM('DIS_DOCS.) DOCTOR_NAME');

PREMIER_ENREGISTREMENT;

LOOP

IF: DIS_DOCS. CHECK = N THEN

all_checked: = FALSE;

EXIT;

END IF;

WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";

NEXT_RECORD;

END LOOP;

PREMIER_ENREGISTREMENT;

LOOP

IF all_checked THEN

: DIS_DOCS. CHECK = 'N';

ELSIF: DIS_DOCS. CHECK = n, THEN - or only

: DIS_DOCS. CHECK = "Y";

END IF;

WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";

NEXT_RECORD;

END LOOP;

PREMIER_ENREGISTREMENT;

END;

Concerning

Tags: Oracle Development

Similar Questions

Maybe you are looking for

  • Music plays is not without enabled cellular data

    First, I had a problem with a mysterious spike in the use of the data, to the point where only a few days in my cycle, I was getting the Verizon warning messages.  In other words, I have not changed my habits at all. Recently, I went and disabled acc

  • How much does it cost to swap an iPhone 16GB 6 for 64 GB?

    How much does it cost to swap an iPhone 16GB 6 for 64 GB?

  • magnetic area near touchpad

    Hi guys,. I'm having a T420. I realized that the box right next to my touchpad is magnetic! is this normal? concerning CG

  • Has no Audio after than Windows 10 Upgrade on the venue Pro 8

    I upgraded my windows Pro 8.1 for Windows 10 8 coming.  After upgrading my audio system failed.  There is no speaker output.  I can't say for sure, but I guess that the microphone input has also failed.  I tried to address in trying to update the aud

  • AF:inputfile?

    HelloI use Jdeveloper - 11.1.1.7.0. I have a requirement as"mandatory Validation through javascript".I use .jsff - af:panelformlayout hold AF: inputFile and af:commandbutton. all by pressing the button if left af:inputFile empty average, trigger the