Report with checkbox

Hello
I have a report with the box where I can select a record and then add to the database. I want to known how I will know if the user has clicked on one of the box for a particular process will be executed.
Only if the user choose a record of the report, he can call the process to be called with the click of a button.
How can I do this?

Thank you

Hello

Create a validation page (function returning a Boolean) level and write code similar to the

DECLARE
v_count NUMBER := 0;
BEGIN

FOR i IN 1..APEX_APPLICATION.G_F01.COUNT LOOP
IF APEX_APPLICATION.G_F01(i) IS NOT NULL THEN
v_count := v_count + 1;
END IF;
END LOOP;

IF v_count = 0 THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;

END;

Consider your report query is similar to the following

select apex_item.checkbox(1,"PK_CLMN") Tick, col2, col3 FROM tbl_name

See you soon,.
Hari

Tags: Database

Similar Questions

  • Interactive report with checkbox and editable field

    Hello

    For a project I'm working on, I need to create an interactive report in Apex 3.2 with the ability to select rows and change one of the columns in the report.
    To do this, I started by adding these two fields at the request of my IR selection:

    CB apex_item. CheckBox (1, product_number)

    and

    apex_item. Text (2, QTY_TO_ORDER) QTY_TO_ORDER

    CB is the files checkbox and QTY_TO_ORDER is the editable field.

    It worked like a charm and I had my two fields in the report.
    To process the values, I've added this page process, which currently must store only the "product number" and the "QTY_TO_ORDER" fields in a table.

    BEGIN
    BECAUSE me in 1.APEX_APPLICATION. G_F01. Count LOOP
    insert into mytmptable values (APEX_APPLICATION. G_F01 (i), APEX_APPLICATION. G_F02 (i));
    END LOOP;
    commit;
    end;

    However, this does not work as I want it to work. When I check the boxes of the two rows, it will store two numbers of good product lines, but it will take the field QTY_TO_ORDER two albums from the table, regardless of who those are checked. I was able to solve this problem, by adding a rownum in the query and using the rownum as the value for the checkbox control. Because I still need that the areas of product_number and qty_to order I made them two text fields.

    I changed my page process of:

    BEGIN
    BECAUSE me in 1.APEX_APPLICATION. G_F01. Count LOOP
    insert into mytmptable values (APEX_APPLICATION. G_F02 (APEX_APPLICATION. G_F01 (i)),
    APEX_APPLICATION. G_F03 (APEX_APPLICATION. G_F01 (i)));
    END LOOP;
    commit;
    end;

    This seemed to solve the problem, and I have now received the good values in the table, unless I used in the report to sort... As soon as I've sorted the report in a different way from that of rownum, I had bad values in the table. The reason is of course that my insert simply selects the nth line in the table, and my rownums are not dynamic.

    I found a lot of examples on the internet using "#ROWNUM #" in the selection, which is expected to spawn a rownum in the report. It seems to work in normal report, but in interactive reports, literal values "#ROWNUM #" appears.

    Is it possible to fix this?

    Hello

    Try with 3 fields:

    CB apex_item. CheckBox (1, product_number).
    apex_item. Text (2, QTY_TO_ORDER) QTY_TO_ORDER,.
    prod_no apex_item. Hidden (3, product_number)

    The hidden field should be view as a hidden column.

    Then your process can be:

    BEGIN
    BECAUSE me in 1.APEX_APPLICATION. G_F01. Count LOOP
    J in 1.APEX_APPLICATION. G_F03. Count LOOP
    IF APEX_APPLICATION. G_F01 (i) = APEX_APPLICATION. G_F03 (j)) THEN
    insert into mytmptable values (APEX_APPLICATION. G_F01 (i), APEX_APPLICATION. G_F02 (j));
    "exit";
    END IF;
    END LOOP;
    END LOOP;

  • Detaliate report with checkbox

    So I made a report to a table on a page, but I've selected a few columns 3/7. Now I want using the checkboxes (or radio?) I want to select a specific line and then take me to another page to see the entire report only of this selected line 7/7. Can I do such a thing?

    Hello

    OK - my reports are on two pages - 109 (partial report) and 110 (full report).

    The SQL query for the report on the 109 is:

    SELECT APEX_ITEM.CHECKBOX(1, EMPNO) SHOW_DETAILS,
    EMPNO,
    ENAME,
    JOB
    FROM EMP
    

    The column SHOW_DETAILS creates checkboxes with the EMPNO as their values. Because I use the APEX_ITEM. Function CheckBox() to create these, when the page is submitted, that I then have access to the APEX_APPLICATION. Collection G_F01 (in a manner similar to the use of tabular form). I get values EMPNO selected using a process of PL/SQL on page:

    DECLARE
     vFILTER VARCHAR2(1000);
    BEGIN
     vFILTER := APEX_UTIL.TABLE_TO_STRING(APEX_APPLICATION.G_F01);
     APEX_UTIL.SET_SESSION_STATE('P110_FILTER', vFILTER);
    END;
    

    Just, it converts the collection into a string and defines an item on page 110 for this. This string will be in the format 1:2:3

    There is a button that triggers the process, then a branch on page 110

    On page 110, SQL report is:

    SELECT EMPNO,
    ENAME,
    JOB,
    MGR,
    HIREDATE,
    SAL,
    COMM,
    DEPTNO
    FROM EMP
    WHERE ':' || :P110_FILTER || ':' LIKE '%:' || EMPNO || ':%'
    

    The report area contains also the 'hidden and protected' item called P110_FILTER - it is filled using the process on page 109 and used as a filter on the report on page 110

    There is a back button to return to page 109 - this also clears the cache for the page 110

    Andy

  • More than 1 SQL query with checkbox and error invalid number report

    Hi all

    I have two SQL query reports that each has an apex_item.checkbox and two processes for each report.  A report/process works very well.  It gives me an error of invalid number.

    In addition, another query SQL (editable report) gives me the following error when using the Multi line process, delete.

    ORA-06502: PL/SQL: digital or value error: character number conversion
    error ORA-06502: PL/SQL: digital or value error: character number conversion
    error
    Ok

    When I got a report from SQL query (with box and a process) and the query SQL (editable report) everything worked.  It stopped working when I added another SQL query report (with box and a process).

    A SQL query has the following in my query: apex_item.checkbox(3,email_id,'UNCHECKED') ""

    The other SQL query has the following: apex_item.checkbox(2,b.file_id,'UNCHECKED') ""

    Any help will be greatly appreciated,

    Sylvia

    Hi Reema,

    I've recreated the region and now it works!

    Thank you for this, looking at

    Sylvia

  • Report with check boxes

    Hi all

    I have a report with check boxes the empno they receive in return
    I have
    Select apex_item.checkbox (1, empno) cbox, a.empno, a.ename, a.mgr, a.deptno of the emp has
    in the report...
    I have a dummy hidden (P2_EMPNOS) field that stores from the inside with concatenated comma empno (for which I wrote a page process)
    DECLARE
    vRow directory;
    BEGIN
    : P2_EMPNOS: = NULL;
    : P2_EMPNOS: = apex_application.g_f01 (1);
    BECAUSE me in 2... apex_application.g_f01. COUNTY
    LOOP
    : P2_EMPNUMS: =.
    : P2_EMPNOS
    || ','
    || apex_application.g_f01 (i);
    END LOOP;
    END;

    on my next page, I want the records that I have chosen as this

    Select a.empno, a.ename, a.mgr, a.deptno
    EMP a
    where empno in: P2_EMPNOS
    I have tried (: P2_EMPNOS),': ' P2_EMPNOS
    The problem is if I select a check box, and then on the next page, I get this a record...
    But if I select several, then a bad start... it says "no data found"... but still, the values can be displayed on the next page with commas

    A body can help me in this please.

    Thanks in advance.
    Gora

    Write your SQL as

    Select a.empno, a.ename, a.mgr, a.deptno
    EMP a
    where instr (: p2_empnos, ',' | empno |) ', ') > 0

    CITY

  • How creat a summary report with txt.

    Hi all

    I want to create a summary of the report with .txt, and I disabled the feature of report generation in teststand.

    I created a complex sequence, includes some sub-sequences, example: the UUT is tested on three different temperatures and four different voltages conditon. So I creat three subsequences (different temperatures) there are four steps (different voltages), then mainsequence invoke three subsequences to excute test.

    I only want to get the fail-no summary, include: name of the step-fail, status

    How do I? Thank you very much

    You can use Parameters.Step.Name to get the name of the step failed. You can also use something like Parameters.Step.StepType.Name is 'NI_MultipleNumericLimitTest' to the different types of filter steps.

    To the extent where the string any failure...

    You can check RunState.CallStackDepth to see callers how you deep. Based on this information, you can use RunState.Caller.Caller. (in sequence but of many appellants deep, you are). RunState.Step.Name or. Sequence.Name

    So if the CallStackDepth is 1, you can only use a caller. If it was 2, need to recursively would you use 1 caller and then 2 appellants and so on.

  • Problem when creating a report with a date of schduled

    When I tried to create a report with a schedule (any option except now) I get the error 'Date of the first report occur must be after or equal to the current date", unless I have use a date of 01-10-2012 or later in the first report occurs on the field.  Current date is 2012-08-23.

    Let me know if you can recreate it and if or when there is a fix.

    Hi Tim,.

    We have fixed the problem now. Could you please check that you are able to schedule a report now with start date of today?

    Thank you

    The OnPlus team

  • New reports with the Version 15.1

    With version 15.1, we have several new reports, including status report list grouping all individual status reports into a single report with the colors for the selected values of the keys.  It is an impressive report (as well as other added to 15.1).  Take the time to view the reports again.

    Where does he find one this version 15.1 report? I only find a project status report in global reports-> list of reports and there is no color as your example shows.

  • Simple report with parameter requirement does not

    I have a simple report, select rows from a table when the date is earlier than a date variable. I have a page with a switch of date and a button element. The button links to the report page and assigns to P3_AS_OF_DATE P2_SELECT_DATE. Page 3 includes & P3_AS_OF_DATE. in the title of the region, as an element of display, and in which paragraph of the report. However, when I click on the Run_Report button on page 2, the date selected on page 2 does not appear on page 3. I can't understand what Miss me.

    I've reproduced my code at https://apex.oracle.com/pls/apex/f?p=4550 & ws = Larimer using assistance/Viewer to connect. The application is called report with Date setting.

    Thank you!

    (There is more to the condition that, so obvious alternatives as an interactive report are not a solution).

    mdwyer wrote:

    I have a simple report, select rows from a table when the date is earlier than a date variable. I have a page with a switch of date and a button element. The button links to the report page and assigns to P3_AS_OF_DATE P2_SELECT_DATE. Page 3 includes & P3_AS_OF_DATE. in the title of the region, as an element of display, and in which paragraph of the report. However, when I click on the Run_Report button on page 2, the date selected on page 2 does not appear on page 3. I can't understand what Miss me.

    I've reproduced my code to https://apex.oracle.com/pls/apex/f?p=4550&ws=Larimer with assistance/Viewer to connect. The application is called report with Date setting.

    The button performs a redirect. This means that the page is not filed and the value of P2_SELECT_DATE is therefore not saved in session state. When the form values should be stored in the database or used in the treatment later, you must enter them in session state using a button that submits the page. Next navigation should be performed using a direction rather than a redirect. The example has been changed to make it.

  • I created a form with checkboxes.  A question has two boxes for a 'yes' another being a 'no '.  I just want to be able to select a single box, but currently, I choose both

    I created a form with checkboxes, I have currently two checkboxes in a question that I wish I could only check a box and make it mandatory that should be checked only one box.  Currently, I am able to select the two check boxes.

    Give them the same field name, but export values.

  • XLS-models with BI Publisher using and download the reports with APEX

    Hello

    I already create PDF reports with RTF Templates. In the APEX, I create a button and a process of "Download" to get the PDF-reports the BI Publisher. ". We use version 11.1.7.

    Now I try the same thing with XLS-Templates. I create the XLS model in the editor of BI and where it works very well. Now I need also an APEX-"Download" - Process to download the XLS reports to the client. The method already used doesn't work for RTF models.

    Kind regards

    Mark

    Hello

    I found here, the format has value "excel", not "xls"!

    http://docs.Oracle.com/CD/E28280_01/doc.1111/e26693/ibr_config.htm#WCCAA2062

    Now it works like a charm!

    Kind regards

    Mark

  • Integrate Oracle report with Oracle Application Express [secure]

    Hi Experts,

    I need to call the Oracle of Oracle Application Express report.

    Here is the version of the product

    Report & Oracle FMW 11g R2 (11.1.2) form

    Oracle Application Express 4.2.5.00.08

    Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production

    My question is, how I could integrate Oracle report with Oracle Application Express to secure the vocation of Oracle report.

    Please, help me.

    936969 wrote:

    Please give me a solution which can call Oracle report in secure mode, any user can not run the same copy of report the url. report by those who have access/role in the application to run.

    Take a look, the Operations of Service Web Oracle reports , it can help you.

    http://docs.Oracle.com/CD/E24269_01/doc.11120/e24479/pbr_webservice003.htm#CIABJEAB

    Especially see runJob

    http://docs.Oracle.com/CD/E24269_01/doc.11120/e24479/pbr_webservice003.htm#BABEJCFH

  • Data store report with NFS export pathname specification

    Hi all I created a report with the SCSI LUN ID and NFS export path specification data store.

    But I have no idea of the NFS export the path of a query data store. Can you help me in the following script?

    $report = @)

    $VMHost = get-VMHost-location

    $cluster foreach ($cluster Get-cluster) {}

    (Get-Datastore - VMHost $VMHost | where {$_.}) Type - eq "VMFS"}) | %{

    $info = "" | Select Center data, Cluster, name, capacity, put in service, available, DSType, State, Monday, NFSPath

    $info. Datacenter = $_. Data Center

    $info. Cluster = $cluster. Name

    $info. Name = $_. Name

    $info. Capacity = [math]: Round($_.capacityMB/1024,2)

    $info. Put into service = [math]: Round (($_.)) ExtensionData.Summary.Capacity - $_. ExtensionData.Summary.FreeSpace + $_. ExtensionData.Summary.Uncommitted)/1GB,2)

    $info. Available = [math]: round ($info. Capacity - $info. Put into service, 2)

    $info. DSType = $_. Type

    $info. State = $_. State

    $info. Monday = Get-ScsiLun - Datastore $_

    $info. NFSPath = "n/a".

    $report += $info

    }

    (Get-Datastore - VMHost $VMHost | where {$_.}) Type - eq 'NFS'}) | %{

    $info = "" | Select Center data, Cluster, name, capacity, put in service, available, DSType, State, Monday, NFSPath

    $info. Datacenter = $_. Data Center

    $info. Cluster = $cluster. Name

    $info. Name = $_. Name

    $info. Capacity = [math]: Round($_.capacityMB/1024,2)

    $info. Put into service = [math]: Round (($_.)) ExtensionData.Summary.Capacity - $_. ExtensionData.Summary.FreeSpace + $_. ExtensionData.Summary.Uncommitted)/1GB,2)

    $info. Available = [math]: round ($info. Capacity - $info. Put into service, 2)

    $info. DSType = $_. Type

    $info. State = $_. State

    $info. Monday = "n/a".

    $info. NFSPath = "I don't know".

    $report += $info

    }

    Thank you.

    You can use the attributes RemoteHost and RemotePath of the data store to get the path in any format you want.

    e.g. $info. NFSPath = "$($_.)". RemoteHost) :/ $($_.) RemotePath).

  • How to create the report with check box (Update, Delete) operations

    Hi all

    I want to create report with check boxes.

    I created it based on the user's manual. But do not delete records. Please help me

    Apex. Oracle.com

    workspace: APPSGURU

    RAMBEAU. [email protected]

    P.W:rag$ 123

    Application:36232

    Page: 14

    Thank you and best regards,

    Rambeau

    Raghu,

    Request for check line deleted successfully.

    made some changes in the removal process.

    Leave.

  • Interactive report - with different colors column header

    Hi all

    I use the Application Express 4.0.2.00.07.

    Theme: 2 blue Builder

    I have the zoom before interactive reports in a page, in do I have to display each header of reports with different colors instead of having the same blue color given by theme for all reports.

    Also I need this color change of header for this page only, not for the entire application.

    can someone offer me please how to do this?

    Thank you for your help in advance.

    Kind regards

    Santini.

    Add a static region ID in each region report and include a stylesheet like the following in the HTML Header page:

    
    

    When the report 1, report 2, etc. are the static region ID.

Maybe you are looking for

  • The amount of space used by the content of the trash?

    There is probably a really simple answer to this, but I can't understand it. Is there a way to tell how much space the contents of the trash again? Thank you very much.

  • Plugin Status Check reports Java last x 64 as vulnerable

    Last night, I have updated all the plugins to display the green buttons "up to date" on the Web site to check the Plugin situation. However, this morning, he pointed out that the Java plugin is vulnerable (note: not "stale"). y at - it publicized a n

  • iPad is not connected to the wifi at home

    Hello The iPad is the device at home I have a problem with. And it's the only device that is still home. It loses the connection with the wifii after awhile in the screen lock, and sometimes while using it. I was disconnect and reconnect to wifi to s

  • Csrss.exe pic 100% CPU for Win 2003 Server

    Hello Recently, I've migrated a physical server to virtual (Server 2003 R2 Std). After that, I see high utilization of the processor in the csrss.exe process. I tried to check in via Process Explorer. Csrss.exe displays as much CPU being picked up in

  • unknown users, windows 7 Home premium 64-bit

    When I click on C: and click on users, there are 3 that I don't know the source. It seems that there is a user called updatus for each of my user accounts. Is this normal and how do I know how they got there? Thank you