How to use checkbox in a report in oracle apex to insert values in a table











up vote
0
down vote

favorite












I have a table call OUTGOING which has many fields but the ones to be populated in this situation is:




  • FILENUMBER

  • OUTGOINGDATE

  • DEPARTMENT


now i have a report which whas an sql



 SELECT APEX_ITEM.CHECKBOX2(1,registry.filenumber) "Select",

INCOMINGREQUESTNOTIFICATION.REQUESTEDFILE as REQUESTEDFILE,
INCOMINGREQUESTNOTIFICATION.FILENUMBER as FILENUMBER,
INCOMINGREQUESTNOTIFICATION.REQUESTEDDEPARTMENT as REQUESTEDDEPARTMENT,
INCOMINGREQUESTNOTIFICATION.REQUESTDATE as REQUESTDATE,

REGISTRY.STATUS as STATUS
from REGISTRY REGISTRY,
INCOMINGREQUESTNOTIFICATION INCOMINGREQUESTNOTIFICATION
where REGISTRY.FILENUMBER(+) =INCOMINGREQUESTNOTIFICATION .FILENUMBER
and INCOMINGREQUESTNOTIFICATION.STATUS ='PENDING'


which is fine .. what i need is for




  • INCOMINGREQUESTNOTIFICATION.FILENUMBER as FILENUMBER

  • INCOMINGREQUESTNOTIFICATION.REQUESTEDDEPARTMENT as REQUESTEDDEPARTMENT

  • and sysdate


to be inserted in the outgoing table under the relevant names of course.



I have a pl/sql



 DECLARE
L_FILENUMBER WWV_FLOW_GLOBAL.VC_ARR2;
BEGIN
L_FILENUMBER := APEX_APPLICATION.G_F01;
FOR IDX IN 1 .. L_FILENUMBER.COUNT
LOOP
IF L_FILENUMBER(IDX) IS NOT NULL THEN
INSERT INTO OUTGOING
(FILENUMBER,OUTGOINGDATE,DEPARTMENT)

VALUES
((to_number(APEX_APPLICATION.G_F01(1)))
,SYSDATE
,to_char(APEX_APPLICATION.G_F02(2)) )

;

END IF;
END LOOP;
END;


which is not working.. However if i leave only filenumber



DECLARE
L_FILENUMBER WWV_FLOW_GLOBAL.VC_ARR2;
BEGIN
L_FILENUMBER := APEX_APPLICATION.G_F01;
FOR IDX IN 1 .. L_FILENUMBER.COUNT
LOOP
IF L_FILENUMBER(IDX) IS NOT NULL THEN
INSERT INTO OUTGOING
(FILENUMBER)

VALUES
((to_number(APEX_APPLICATION.G_F01(1)))

;

END IF;
END LOOP;
END;


its inserting only the file number fine . This is all being done via a submit button.



NB: i also tried putting outgoing date and department in the declare statement but it still doesnt work



enter image description here










share|improve this question




























    up vote
    0
    down vote

    favorite












    I have a table call OUTGOING which has many fields but the ones to be populated in this situation is:




    • FILENUMBER

    • OUTGOINGDATE

    • DEPARTMENT


    now i have a report which whas an sql



     SELECT APEX_ITEM.CHECKBOX2(1,registry.filenumber) "Select",

    INCOMINGREQUESTNOTIFICATION.REQUESTEDFILE as REQUESTEDFILE,
    INCOMINGREQUESTNOTIFICATION.FILENUMBER as FILENUMBER,
    INCOMINGREQUESTNOTIFICATION.REQUESTEDDEPARTMENT as REQUESTEDDEPARTMENT,
    INCOMINGREQUESTNOTIFICATION.REQUESTDATE as REQUESTDATE,

    REGISTRY.STATUS as STATUS
    from REGISTRY REGISTRY,
    INCOMINGREQUESTNOTIFICATION INCOMINGREQUESTNOTIFICATION
    where REGISTRY.FILENUMBER(+) =INCOMINGREQUESTNOTIFICATION .FILENUMBER
    and INCOMINGREQUESTNOTIFICATION.STATUS ='PENDING'


    which is fine .. what i need is for




    • INCOMINGREQUESTNOTIFICATION.FILENUMBER as FILENUMBER

    • INCOMINGREQUESTNOTIFICATION.REQUESTEDDEPARTMENT as REQUESTEDDEPARTMENT

    • and sysdate


    to be inserted in the outgoing table under the relevant names of course.



    I have a pl/sql



     DECLARE
    L_FILENUMBER WWV_FLOW_GLOBAL.VC_ARR2;
    BEGIN
    L_FILENUMBER := APEX_APPLICATION.G_F01;
    FOR IDX IN 1 .. L_FILENUMBER.COUNT
    LOOP
    IF L_FILENUMBER(IDX) IS NOT NULL THEN
    INSERT INTO OUTGOING
    (FILENUMBER,OUTGOINGDATE,DEPARTMENT)

    VALUES
    ((to_number(APEX_APPLICATION.G_F01(1)))
    ,SYSDATE
    ,to_char(APEX_APPLICATION.G_F02(2)) )

    ;

    END IF;
    END LOOP;
    END;


    which is not working.. However if i leave only filenumber



    DECLARE
    L_FILENUMBER WWV_FLOW_GLOBAL.VC_ARR2;
    BEGIN
    L_FILENUMBER := APEX_APPLICATION.G_F01;
    FOR IDX IN 1 .. L_FILENUMBER.COUNT
    LOOP
    IF L_FILENUMBER(IDX) IS NOT NULL THEN
    INSERT INTO OUTGOING
    (FILENUMBER)

    VALUES
    ((to_number(APEX_APPLICATION.G_F01(1)))

    ;

    END IF;
    END LOOP;
    END;


    its inserting only the file number fine . This is all being done via a submit button.



    NB: i also tried putting outgoing date and department in the declare statement but it still doesnt work



    enter image description here










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a table call OUTGOING which has many fields but the ones to be populated in this situation is:




      • FILENUMBER

      • OUTGOINGDATE

      • DEPARTMENT


      now i have a report which whas an sql



       SELECT APEX_ITEM.CHECKBOX2(1,registry.filenumber) "Select",

      INCOMINGREQUESTNOTIFICATION.REQUESTEDFILE as REQUESTEDFILE,
      INCOMINGREQUESTNOTIFICATION.FILENUMBER as FILENUMBER,
      INCOMINGREQUESTNOTIFICATION.REQUESTEDDEPARTMENT as REQUESTEDDEPARTMENT,
      INCOMINGREQUESTNOTIFICATION.REQUESTDATE as REQUESTDATE,

      REGISTRY.STATUS as STATUS
      from REGISTRY REGISTRY,
      INCOMINGREQUESTNOTIFICATION INCOMINGREQUESTNOTIFICATION
      where REGISTRY.FILENUMBER(+) =INCOMINGREQUESTNOTIFICATION .FILENUMBER
      and INCOMINGREQUESTNOTIFICATION.STATUS ='PENDING'


      which is fine .. what i need is for




      • INCOMINGREQUESTNOTIFICATION.FILENUMBER as FILENUMBER

      • INCOMINGREQUESTNOTIFICATION.REQUESTEDDEPARTMENT as REQUESTEDDEPARTMENT

      • and sysdate


      to be inserted in the outgoing table under the relevant names of course.



      I have a pl/sql



       DECLARE
      L_FILENUMBER WWV_FLOW_GLOBAL.VC_ARR2;
      BEGIN
      L_FILENUMBER := APEX_APPLICATION.G_F01;
      FOR IDX IN 1 .. L_FILENUMBER.COUNT
      LOOP
      IF L_FILENUMBER(IDX) IS NOT NULL THEN
      INSERT INTO OUTGOING
      (FILENUMBER,OUTGOINGDATE,DEPARTMENT)

      VALUES
      ((to_number(APEX_APPLICATION.G_F01(1)))
      ,SYSDATE
      ,to_char(APEX_APPLICATION.G_F02(2)) )

      ;

      END IF;
      END LOOP;
      END;


      which is not working.. However if i leave only filenumber



      DECLARE
      L_FILENUMBER WWV_FLOW_GLOBAL.VC_ARR2;
      BEGIN
      L_FILENUMBER := APEX_APPLICATION.G_F01;
      FOR IDX IN 1 .. L_FILENUMBER.COUNT
      LOOP
      IF L_FILENUMBER(IDX) IS NOT NULL THEN
      INSERT INTO OUTGOING
      (FILENUMBER)

      VALUES
      ((to_number(APEX_APPLICATION.G_F01(1)))

      ;

      END IF;
      END LOOP;
      END;


      its inserting only the file number fine . This is all being done via a submit button.



      NB: i also tried putting outgoing date and department in the declare statement but it still doesnt work



      enter image description here










      share|improve this question















      I have a table call OUTGOING which has many fields but the ones to be populated in this situation is:




      • FILENUMBER

      • OUTGOINGDATE

      • DEPARTMENT


      now i have a report which whas an sql



       SELECT APEX_ITEM.CHECKBOX2(1,registry.filenumber) "Select",

      INCOMINGREQUESTNOTIFICATION.REQUESTEDFILE as REQUESTEDFILE,
      INCOMINGREQUESTNOTIFICATION.FILENUMBER as FILENUMBER,
      INCOMINGREQUESTNOTIFICATION.REQUESTEDDEPARTMENT as REQUESTEDDEPARTMENT,
      INCOMINGREQUESTNOTIFICATION.REQUESTDATE as REQUESTDATE,

      REGISTRY.STATUS as STATUS
      from REGISTRY REGISTRY,
      INCOMINGREQUESTNOTIFICATION INCOMINGREQUESTNOTIFICATION
      where REGISTRY.FILENUMBER(+) =INCOMINGREQUESTNOTIFICATION .FILENUMBER
      and INCOMINGREQUESTNOTIFICATION.STATUS ='PENDING'


      which is fine .. what i need is for




      • INCOMINGREQUESTNOTIFICATION.FILENUMBER as FILENUMBER

      • INCOMINGREQUESTNOTIFICATION.REQUESTEDDEPARTMENT as REQUESTEDDEPARTMENT

      • and sysdate


      to be inserted in the outgoing table under the relevant names of course.



      I have a pl/sql



       DECLARE
      L_FILENUMBER WWV_FLOW_GLOBAL.VC_ARR2;
      BEGIN
      L_FILENUMBER := APEX_APPLICATION.G_F01;
      FOR IDX IN 1 .. L_FILENUMBER.COUNT
      LOOP
      IF L_FILENUMBER(IDX) IS NOT NULL THEN
      INSERT INTO OUTGOING
      (FILENUMBER,OUTGOINGDATE,DEPARTMENT)

      VALUES
      ((to_number(APEX_APPLICATION.G_F01(1)))
      ,SYSDATE
      ,to_char(APEX_APPLICATION.G_F02(2)) )

      ;

      END IF;
      END LOOP;
      END;


      which is not working.. However if i leave only filenumber



      DECLARE
      L_FILENUMBER WWV_FLOW_GLOBAL.VC_ARR2;
      BEGIN
      L_FILENUMBER := APEX_APPLICATION.G_F01;
      FOR IDX IN 1 .. L_FILENUMBER.COUNT
      LOOP
      IF L_FILENUMBER(IDX) IS NOT NULL THEN
      INSERT INTO OUTGOING
      (FILENUMBER)

      VALUES
      ((to_number(APEX_APPLICATION.G_F01(1)))

      ;

      END IF;
      END LOOP;
      END;


      its inserting only the file number fine . This is all being done via a submit button.



      NB: i also tried putting outgoing date and department in the declare statement but it still doesnt work



      enter image description here







      oracle oracle11g oracle-apex oracle-apex-5.1






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 at 15:14

























      asked Nov 22 at 15:19









      rawle

      485




      485
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I'd suggest you to learn how to use table aliases. SELECT you wrote is difficult to read due to VERY long table & column names; alias would certainly help.



          As of your question: saying that "it is not working" doesn't help at all. What exactly doesn't work? Is there any error? If so, which one? Did you run the page in debug mode and check what's going on? If not, do that.



          Apart from that, code you wrote doesn't make much sense - you're trying to insert the same values all over again. E.g. shouldn't APEX_APPLICATION.G_F01(1) be APEX_APPLICATION.G_F01(IDX)? Something like this:



          begin
          for idx in 1 .. apex_application.g_f01.count
          loop
          if apex_application.g_f01(idx) is not null then
          insert into outgoing
          (filenumber,
          outgoingdate,
          department
          )
          values
          (apex_application.g_f01(idx),
          sysdate,
          apex_application.g_f02(idx)
          );
          end if;
          end loop;
          end;


          Check (by inspecting the page) whether (tabular form?) items really are those that you've used (G_F01 and G_F02). If not, you'll have to fix that.



          I didn't use any TO_NUMBER nor TO_CHAR functions; I don't know whether your really need them. Even if you don't have them, Oracle will perform implicit datatype conversion when possible, but it'll fail if you try to put e.g. 'abc123' into a NUMBER datatype column. You didn't share that information so - I left those out. Apply them if necessary.






          share|improve this answer





















          • (1) noted on your first point(aliases)... (2) By saying "its not working am not" am getting "no data found" (3)Its a report with a select check box (not a tabular form). am new to oracle only 7 months so am learning as i go along.... i tried your code but am getting no data found
            – rawle
            Nov 23 at 0:13










          • when i remove apex_application.g_f02(idx) i am getting the file number and the sysdate to insert as it should. So am thinking i should have a rowid checkbox which should select the whole row and insert it ... I dont know but if it is so can you show me the correct statement for it
            – rawle
            Nov 23 at 0:27










          • Why do you use a report to insert data? Use interactive grid (or a tabular form I mentioned previously) - they are meant to be used for inserting data. As of NO_DATA_FOUND: it is raised if g_fxx doesn't contain anything. Did you check whether you correctly use g_fxx (by inspecting page elements)?
            – Littlefoot
            Nov 23 at 6:11










          • i edited the above question to include a picture of the page. I change to interactive grid. can you see the issue from this?
            – rawle
            Nov 23 at 15:15










          • Apart from seeing an interactive grid, nope - sorry, I don't see any issue in that.
            – Littlefoot
            Nov 23 at 18:01











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53433986%2fhow-to-use-checkbox-in-a-report-in-oracle-apex-to-insert-values-in-a-table%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          I'd suggest you to learn how to use table aliases. SELECT you wrote is difficult to read due to VERY long table & column names; alias would certainly help.



          As of your question: saying that "it is not working" doesn't help at all. What exactly doesn't work? Is there any error? If so, which one? Did you run the page in debug mode and check what's going on? If not, do that.



          Apart from that, code you wrote doesn't make much sense - you're trying to insert the same values all over again. E.g. shouldn't APEX_APPLICATION.G_F01(1) be APEX_APPLICATION.G_F01(IDX)? Something like this:



          begin
          for idx in 1 .. apex_application.g_f01.count
          loop
          if apex_application.g_f01(idx) is not null then
          insert into outgoing
          (filenumber,
          outgoingdate,
          department
          )
          values
          (apex_application.g_f01(idx),
          sysdate,
          apex_application.g_f02(idx)
          );
          end if;
          end loop;
          end;


          Check (by inspecting the page) whether (tabular form?) items really are those that you've used (G_F01 and G_F02). If not, you'll have to fix that.



          I didn't use any TO_NUMBER nor TO_CHAR functions; I don't know whether your really need them. Even if you don't have them, Oracle will perform implicit datatype conversion when possible, but it'll fail if you try to put e.g. 'abc123' into a NUMBER datatype column. You didn't share that information so - I left those out. Apply them if necessary.






          share|improve this answer





















          • (1) noted on your first point(aliases)... (2) By saying "its not working am not" am getting "no data found" (3)Its a report with a select check box (not a tabular form). am new to oracle only 7 months so am learning as i go along.... i tried your code but am getting no data found
            – rawle
            Nov 23 at 0:13










          • when i remove apex_application.g_f02(idx) i am getting the file number and the sysdate to insert as it should. So am thinking i should have a rowid checkbox which should select the whole row and insert it ... I dont know but if it is so can you show me the correct statement for it
            – rawle
            Nov 23 at 0:27










          • Why do you use a report to insert data? Use interactive grid (or a tabular form I mentioned previously) - they are meant to be used for inserting data. As of NO_DATA_FOUND: it is raised if g_fxx doesn't contain anything. Did you check whether you correctly use g_fxx (by inspecting page elements)?
            – Littlefoot
            Nov 23 at 6:11










          • i edited the above question to include a picture of the page. I change to interactive grid. can you see the issue from this?
            – rawle
            Nov 23 at 15:15










          • Apart from seeing an interactive grid, nope - sorry, I don't see any issue in that.
            – Littlefoot
            Nov 23 at 18:01















          up vote
          0
          down vote













          I'd suggest you to learn how to use table aliases. SELECT you wrote is difficult to read due to VERY long table & column names; alias would certainly help.



          As of your question: saying that "it is not working" doesn't help at all. What exactly doesn't work? Is there any error? If so, which one? Did you run the page in debug mode and check what's going on? If not, do that.



          Apart from that, code you wrote doesn't make much sense - you're trying to insert the same values all over again. E.g. shouldn't APEX_APPLICATION.G_F01(1) be APEX_APPLICATION.G_F01(IDX)? Something like this:



          begin
          for idx in 1 .. apex_application.g_f01.count
          loop
          if apex_application.g_f01(idx) is not null then
          insert into outgoing
          (filenumber,
          outgoingdate,
          department
          )
          values
          (apex_application.g_f01(idx),
          sysdate,
          apex_application.g_f02(idx)
          );
          end if;
          end loop;
          end;


          Check (by inspecting the page) whether (tabular form?) items really are those that you've used (G_F01 and G_F02). If not, you'll have to fix that.



          I didn't use any TO_NUMBER nor TO_CHAR functions; I don't know whether your really need them. Even if you don't have them, Oracle will perform implicit datatype conversion when possible, but it'll fail if you try to put e.g. 'abc123' into a NUMBER datatype column. You didn't share that information so - I left those out. Apply them if necessary.






          share|improve this answer





















          • (1) noted on your first point(aliases)... (2) By saying "its not working am not" am getting "no data found" (3)Its a report with a select check box (not a tabular form). am new to oracle only 7 months so am learning as i go along.... i tried your code but am getting no data found
            – rawle
            Nov 23 at 0:13










          • when i remove apex_application.g_f02(idx) i am getting the file number and the sysdate to insert as it should. So am thinking i should have a rowid checkbox which should select the whole row and insert it ... I dont know but if it is so can you show me the correct statement for it
            – rawle
            Nov 23 at 0:27










          • Why do you use a report to insert data? Use interactive grid (or a tabular form I mentioned previously) - they are meant to be used for inserting data. As of NO_DATA_FOUND: it is raised if g_fxx doesn't contain anything. Did you check whether you correctly use g_fxx (by inspecting page elements)?
            – Littlefoot
            Nov 23 at 6:11










          • i edited the above question to include a picture of the page. I change to interactive grid. can you see the issue from this?
            – rawle
            Nov 23 at 15:15










          • Apart from seeing an interactive grid, nope - sorry, I don't see any issue in that.
            – Littlefoot
            Nov 23 at 18:01













          up vote
          0
          down vote










          up vote
          0
          down vote









          I'd suggest you to learn how to use table aliases. SELECT you wrote is difficult to read due to VERY long table & column names; alias would certainly help.



          As of your question: saying that "it is not working" doesn't help at all. What exactly doesn't work? Is there any error? If so, which one? Did you run the page in debug mode and check what's going on? If not, do that.



          Apart from that, code you wrote doesn't make much sense - you're trying to insert the same values all over again. E.g. shouldn't APEX_APPLICATION.G_F01(1) be APEX_APPLICATION.G_F01(IDX)? Something like this:



          begin
          for idx in 1 .. apex_application.g_f01.count
          loop
          if apex_application.g_f01(idx) is not null then
          insert into outgoing
          (filenumber,
          outgoingdate,
          department
          )
          values
          (apex_application.g_f01(idx),
          sysdate,
          apex_application.g_f02(idx)
          );
          end if;
          end loop;
          end;


          Check (by inspecting the page) whether (tabular form?) items really are those that you've used (G_F01 and G_F02). If not, you'll have to fix that.



          I didn't use any TO_NUMBER nor TO_CHAR functions; I don't know whether your really need them. Even if you don't have them, Oracle will perform implicit datatype conversion when possible, but it'll fail if you try to put e.g. 'abc123' into a NUMBER datatype column. You didn't share that information so - I left those out. Apply them if necessary.






          share|improve this answer












          I'd suggest you to learn how to use table aliases. SELECT you wrote is difficult to read due to VERY long table & column names; alias would certainly help.



          As of your question: saying that "it is not working" doesn't help at all. What exactly doesn't work? Is there any error? If so, which one? Did you run the page in debug mode and check what's going on? If not, do that.



          Apart from that, code you wrote doesn't make much sense - you're trying to insert the same values all over again. E.g. shouldn't APEX_APPLICATION.G_F01(1) be APEX_APPLICATION.G_F01(IDX)? Something like this:



          begin
          for idx in 1 .. apex_application.g_f01.count
          loop
          if apex_application.g_f01(idx) is not null then
          insert into outgoing
          (filenumber,
          outgoingdate,
          department
          )
          values
          (apex_application.g_f01(idx),
          sysdate,
          apex_application.g_f02(idx)
          );
          end if;
          end loop;
          end;


          Check (by inspecting the page) whether (tabular form?) items really are those that you've used (G_F01 and G_F02). If not, you'll have to fix that.



          I didn't use any TO_NUMBER nor TO_CHAR functions; I don't know whether your really need them. Even if you don't have them, Oracle will perform implicit datatype conversion when possible, but it'll fail if you try to put e.g. 'abc123' into a NUMBER datatype column. You didn't share that information so - I left those out. Apply them if necessary.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 22 at 19:48









          Littlefoot

          19.3k71333




          19.3k71333












          • (1) noted on your first point(aliases)... (2) By saying "its not working am not" am getting "no data found" (3)Its a report with a select check box (not a tabular form). am new to oracle only 7 months so am learning as i go along.... i tried your code but am getting no data found
            – rawle
            Nov 23 at 0:13










          • when i remove apex_application.g_f02(idx) i am getting the file number and the sysdate to insert as it should. So am thinking i should have a rowid checkbox which should select the whole row and insert it ... I dont know but if it is so can you show me the correct statement for it
            – rawle
            Nov 23 at 0:27










          • Why do you use a report to insert data? Use interactive grid (or a tabular form I mentioned previously) - they are meant to be used for inserting data. As of NO_DATA_FOUND: it is raised if g_fxx doesn't contain anything. Did you check whether you correctly use g_fxx (by inspecting page elements)?
            – Littlefoot
            Nov 23 at 6:11










          • i edited the above question to include a picture of the page. I change to interactive grid. can you see the issue from this?
            – rawle
            Nov 23 at 15:15










          • Apart from seeing an interactive grid, nope - sorry, I don't see any issue in that.
            – Littlefoot
            Nov 23 at 18:01


















          • (1) noted on your first point(aliases)... (2) By saying "its not working am not" am getting "no data found" (3)Its a report with a select check box (not a tabular form). am new to oracle only 7 months so am learning as i go along.... i tried your code but am getting no data found
            – rawle
            Nov 23 at 0:13










          • when i remove apex_application.g_f02(idx) i am getting the file number and the sysdate to insert as it should. So am thinking i should have a rowid checkbox which should select the whole row and insert it ... I dont know but if it is so can you show me the correct statement for it
            – rawle
            Nov 23 at 0:27










          • Why do you use a report to insert data? Use interactive grid (or a tabular form I mentioned previously) - they are meant to be used for inserting data. As of NO_DATA_FOUND: it is raised if g_fxx doesn't contain anything. Did you check whether you correctly use g_fxx (by inspecting page elements)?
            – Littlefoot
            Nov 23 at 6:11










          • i edited the above question to include a picture of the page. I change to interactive grid. can you see the issue from this?
            – rawle
            Nov 23 at 15:15










          • Apart from seeing an interactive grid, nope - sorry, I don't see any issue in that.
            – Littlefoot
            Nov 23 at 18:01
















          (1) noted on your first point(aliases)... (2) By saying "its not working am not" am getting "no data found" (3)Its a report with a select check box (not a tabular form). am new to oracle only 7 months so am learning as i go along.... i tried your code but am getting no data found
          – rawle
          Nov 23 at 0:13




          (1) noted on your first point(aliases)... (2) By saying "its not working am not" am getting "no data found" (3)Its a report with a select check box (not a tabular form). am new to oracle only 7 months so am learning as i go along.... i tried your code but am getting no data found
          – rawle
          Nov 23 at 0:13












          when i remove apex_application.g_f02(idx) i am getting the file number and the sysdate to insert as it should. So am thinking i should have a rowid checkbox which should select the whole row and insert it ... I dont know but if it is so can you show me the correct statement for it
          – rawle
          Nov 23 at 0:27




          when i remove apex_application.g_f02(idx) i am getting the file number and the sysdate to insert as it should. So am thinking i should have a rowid checkbox which should select the whole row and insert it ... I dont know but if it is so can you show me the correct statement for it
          – rawle
          Nov 23 at 0:27












          Why do you use a report to insert data? Use interactive grid (or a tabular form I mentioned previously) - they are meant to be used for inserting data. As of NO_DATA_FOUND: it is raised if g_fxx doesn't contain anything. Did you check whether you correctly use g_fxx (by inspecting page elements)?
          – Littlefoot
          Nov 23 at 6:11




          Why do you use a report to insert data? Use interactive grid (or a tabular form I mentioned previously) - they are meant to be used for inserting data. As of NO_DATA_FOUND: it is raised if g_fxx doesn't contain anything. Did you check whether you correctly use g_fxx (by inspecting page elements)?
          – Littlefoot
          Nov 23 at 6:11












          i edited the above question to include a picture of the page. I change to interactive grid. can you see the issue from this?
          – rawle
          Nov 23 at 15:15




          i edited the above question to include a picture of the page. I change to interactive grid. can you see the issue from this?
          – rawle
          Nov 23 at 15:15












          Apart from seeing an interactive grid, nope - sorry, I don't see any issue in that.
          – Littlefoot
          Nov 23 at 18:01




          Apart from seeing an interactive grid, nope - sorry, I don't see any issue in that.
          – Littlefoot
          Nov 23 at 18:01


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53433986%2fhow-to-use-checkbox-in-a-report-in-oracle-apex-to-insert-values-in-a-table%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          What visual should I use to simply compare current year value vs last year in Power BI desktop

          How to ignore python UserWarning in pytest?

          Alexandru Averescu