Column of buttons in the report as a table radio

Hello world
I have a tabular report. I wanted to have the option button and check box in part of the field. Please take a look at my sample application.

http://Apex.Oracle.com/pls/OTN/

Workspace == > SHYIN
username == > SHY
password == > shy


Application ID: 29879 - TabularForm

On page 2 of the form details, I want to box in the column key contact person and the box in the status column. I would be grateful any suggession. Thank you.

SHY

Hello

OK - now have an eye on your page.

I made a few changes:

1 - update SQL tabular form for:

SELECT
APEX_ITEM.HIDDEN(1, SEQ_ID) || APEX_ITEM.HIDDEN(2, C001) || APEX_ITEM.RADIOGROUP(3, C001, NULL, NULL, 'onclick="javascript:$x(''P2_SELECTED_ID'').value=' || C001 || '"') PRIMARY_CONTACT,
apex_item.text(4,c002) name,
apex_item.text(5,c004) phone,
APEX_ITEM.HIDDEN(6, C006) || apex_item.text(7,c005) STATUS
from apex_collections
where collection_name = 'C_CONTACT_INFO'

So all of the HIDDEN items are concatenated before the displayable items.

2 - update your Update_Collections process to be unconditional. This is necessary because the page can be submitted by one of the following three ways - Save, update, and add a line - and the collection should be updated for all three

3 - P2_SELECTED_ID modified to remove settings from the source

4 created a process page (PL/SQL, On Load - before header):

DECLARE
 vID NUMBER;
BEGIN
 SELECT MIN(ID) INTO vID FROM CONTACTS WHERE PRIMARY_CONTACT = 'Y' AND CUSTOMER_ID = :P2_CUSTOMER_ID;
 IF vID IS NULL THEN
  SELECT MIN(ID) INTO vID FROM CONTACTS WHERE CUSTOMER_ID = :P2_CUSTOMER_ID;
  IF vID IS NOT NULL THEN
   UPDATE CONTACTS SET PRIMARY_CONTACT = 'Y' WHERE ID = vID;
  END IF;
 END IF;
 :P2_SELECTED_ID := vID;
END;

This just ensures that P2_SELECTED_ID has a value where possible - if no contact for the selected customer is marked as main, copy the following code will do. I assumed here that you need of each client to have a first contact - otherwise, you can remove the IF test. I found that it is better to set the value of a page element which is not directly connected to a column of data made using a calculation of page or process.

Page seems to now work as I think that you need - but let me know if not

Andy

Tags: Database

Similar Questions

  • The limit to the number of columns to display in the report. Help!

    Hi all

    Maybe this is a stupid question. But why get this error with a report of the IR? and what is the solution for this. Please help me with this.

    Error

    The limit to the number of columns to display in the report. Please, click on select columns under Actions menu to minimize the list of columns in report view.

    Oh... And I also have a blob column... If the format is not given, the table is very good... but happen to get this error only when the BLOB download format is given.

    Thanks and greetings
    John

    Published by: JB on March 30, 2012 11:08

    Hello

    I implemented a small suitcase of test on apex.oracle.com and I get the error even if I use the download format.

    I have a table
    test_blob (identification number, name varchar2 (10), blobcont blob)

    If I create IR as

      select
        id,
        name,
        blobcont
      from test_blob
    

    and then I set the download format I got the error.

    If you want this to work you need to change your query to

      select
        id,
        name,
        dbms_lob.getlength(blobcont) blobcont
      from test_blob
    

    And there still define download for blob on column blobcont format.

    Kind regards
    Aljaz

  • How to use an option button in the report of the IR to redirect itself to view another report

    IHH team, I have a requirement where I have an IR report option button. By clicking this radio button, another report appears under the main report with few other details of the selected item. The idea was to have a zoom of report as seen in the Group of MS Excel.  However, I am stuck because I don't want the user to press the "submit" button each time after selection of a radio button. I want the result to Report2 to change on the selection radio button in report 1.

    Please notify.

    Kind regards

    Samar

    for example

    Report1 details

    RB col_id text1 text2 Text3

    1 . abc erd 45

    2 ghj dfgrt 67

    Suppose the user selects the first option button, the page displays another report with details below the main report

    Report1 details

    col1_id text1 text2 Text3

    RB1 1 abc erd 45

    2 RB2 ghj dfgrt 67

    Report2 details

    col1_id col2_id text1 text2 Text3

    1 11 ihj pkpk 78

    1 23 ljl kpk 45

    user6255521 wrote:

    Please update your forum profile with a real handle instead of 'user6255521': Video tutorial how to change username available

    When asking a question, always include the information referred to in these guidelines: How to get the answers from the forum

    I was able to achieve using the linl. I created a link on the col_id and it redirected to itself after you set the value of col2_id. I also changed the style of the button link and so col1_id looks like a button.

    However, I was interested to know if we can achieve this with a radio button and use the update form the Report2.

    You mean like this? It is very simple to implement using dynamic measurements.

    1. Add a column of radio group to the main report:

    select
        apex_item.radiogroup(1, d.department_id) rbg
      , d.*
    from
        oehr_departments d
    

    APEX 5.0, apply a static ID "rbg" to the column of radio group.

    2. create a hidden page unprotected element to maintain the value of the selected radio button to use as a filter in the detailed report. In the example, it is P31_DEPARTMENT_ID.

    3 refer to the element of filter in the WHERE clause of the report detail:

    select
        *
    from
        oehr_employees
    where
        department_id = :p31_department_id
    

    Set the Items property of the Page to send in the definition of report P31_DEPARTMENT_IDretail area.

    4. create a dynamic action of change on the Group of radio buttons:

    Event: Change

    Selection type: jQuery Selector

    jQuery Selector:td[headers="rbg"] input[type="radio"]

    Real Actions

    Seq: 10

    Action: Set value

    Type of value: Expression of JavaScript

    JavaScript expression:$(this.triggeringElement).val()

    Selection type: Article (s)

    Point: P31_DEPARTMENT_ID

    Seq: 20

    Action: Discount

    Selection type: Region

    Region:

    The best way to get help with something like that is for you to reproduce the problem with an example on apex.oracle.com. Set up as much as you can before posting here and when you post the question, share identification information of developer comments for the workspace so that we can see the example and work the solution directly.

  • Delete 'button' on the report how to proceed?

    Hello
    I have a requirement to implement a button 'delete' on a report, but may not know how to do it. I found the following site that does exactly what I want, but cannot get the code to see how the author did it can a reference help please?

    http://Apex.Oracle.com/pls/OTN/f?p=40323:32:689305137368050

    Thank you inadvance.

    Hello:

    Assume that your report query is something similar to
    Select empno, ename from EMP

    You perform the following steps
    In the report column attributes, set the column for the column 'empno' link redirect to a URL
    Set the URL to be
    JavaScript:doDelete(#empno#);
    Create a button named 'DELETE '. Set the button submit page and the branch to the same page. Set the State of the button to 'never '.
    Create a page named "P1_EMPNO" of hidden type element
    Create a pl/sql 'submit' page process that is conditional on the "DELETE" button with the following code

      delete from emp where empno=:p1_empno;
    

    Add the following in the header HTML javascript code

    
    

    CITY

  • Generate the report using two tables

    Hello
    I have two tables: -.

    1 THE NAME OF THE TABLE:-EMP_LEAVE
    EMP_ID NUMBER;
    DATE DATE;
    LEAVE_TYPE VARCHAR2 (15)


    2 TABLE NAME:-EMP_ATT
    EMP_ID NUMBER;
    DATE OF ATT_DATE;
    ATT_STATUS VARCHAR2 (10);

    HERE'S
    Type of leave are SL, PL, CL
    ATT_STATUS contains only (P)

    ATT_STATUS column contains the value as this student (p) only and LEAVE_TYPE column contains the value as sickleave (SL), medicalleave (ML), Paidleave (PL).

    I see the value in the report as given form below the monthly or weekly or annual basis

    EmpID P SL ML PL
    1 24 1 2 3

    I try to create it but not give the accurate result.


    Thank you
    Nisha

    Hello

    You must use something like;

    WHERE SESION = :P168_SESSION AND TRIM(TO_CHAR(ATT_DATE,'MON'))=:P168_MONTH
    

    Note that fact P168 refers to the elements on my page - if you use another page, make sure that you change: P168_SESSION and: P168_MONTH for names that you use.

    I just updated my test page to add to the filter of the month: [http://apex.oracle.com/pls/otn/f?p=267:168]

    The SQL is now:

    select EMP_ID "Employee ID",
    SUM(DECODE(LEAVE_TYPE,'AL',1,0))"Annual Leave",
    SUM(DECODE(LEAVE_TYPE,'CL',1,0))"casual Leave ",
    SUM(DECODE(LEAVE_TYPE,'PL',1,0))"Paid Leave",
    SUM(DECODE(LEAVE_TYPE,'ML',1,0))"Medical Leave",
    SUM(DECODE(LEAVE_TYPE,'SL',1,0))"Sick Leave ",
    SUM(DECODE(LEAVE_TYPE,'MTL',1,0))"Maternity Leave",
    SUM(DECODE(LEAVE_TYPE,'WL',1,0))"Wedding Leave",
    SUM(DECODE(ATT_STATUS,'P',1,0))" Present",
    SUM(CASE WHEN ATT_STATUS in ('P') then 1 else 0 end) "TotalP",
    SUM(CASE WHEN LEAVE_TYPE in ('AL','CL','PL','ML','SL','MTL','WL') then 1 else 0 end) "Total"
    from (SELECT EMP_ID,
    ATT_DATE,
    ATT_STATUS,
    NULL LEAVE_TYPE,
    NULL LEAVE_CATEGORY,
    WORK_DURATION,
    LEAVE_SESSION,
    IN_TIME,
    OUT_TIME,
    SESION
    FROM EMPLOYEE_ATTENDANCE
    UNION ALL
    SELECT EMP_ID,
    DTE ATT_DATE,
    NULL ATT_STATUS,
    LEAVE_TYPE,
    LEAVE_CATEGORY,
    NULL WORK_DURATION,
    NULL LEAVE_SESSION,
    NULL IN_TIME,
    NULL OUT_TIME,
    SESION
    FROM EMPLOYEE_LEAVE)
    WHERE SESION = :P168_SESSION
    AND TO_CHAR(ATT_DATE,'MON') = :P168_MONTH
    GROUP BY EMP_ID
    ORDER BY EMP_ID
    

    Andy

  • The number of characters in the CLOB column is supported by the report of the APEX

    Hello

    Actually, I have a report of the Apex based on CLOB column, which includes data whose length exceeds 10,000 characters.

    up to 10,000 characters, it works fine, but once it get records with characters more than 10 + lift

    ORA-06502: PL/SQL: digital or value error: character string buffer too small

    Thank you and best regards,

    Ashish

    2902196 wrote:

    Please update your forum profile with a recognizable username instead of "2902196": Video tutorial how to change username available

    Always include the information referred to in these guidelines when you post a question: How to get the answers from the forum

    Actually, I have a report of the Apex based on CLOB column, which includes data whose length exceeds 10,000 characters.

    up to 10,000 characters, it works fine, but once it get records with characters more than 10 + lift

    ORA-06502: PL/SQL: digital or value error: character string buffer too small

    The maximum size of a column report CLOB value is 32 KB. However, the maximum size for the content of the line of the full report is also 32 KB (including the HTML markup), so you can be hitting this limit because of the size of your 10 K CLOB data + the rest of the line.

    According to the database character set and the characters which that contains data, the character encoding may use more than one byte to represent a character.

  • Group of radio buttons in the report updated

    Apex 3.2

    I have a collection

    Start


    IF apex_collection.collection_exists ('SMI_UPDATE_COL') = TRUE THEN

    apex_collection.delete_collection (p_collection_name = > 'SMI_UPDATE_COL');
    END IF;

    APEX_COLLECTION. () CREATE_COLLECTION_FROM_QUERY_B
    p_collection_name = > 'SMI_UPDATE_COL ',.
    p_query = > ' Select rules.source_siid, to_char (rules.validfrom, ' dd.mm.yyyy "), to_char (rules.validto, ' dd.mm.yyyy"), rules.conv, null, null,
    (case when rules.source_siid = recipe.siid)
    and sysdate between rules.validfrom and nvl (rules.validto, to_date ("31.12.2999","DD.)) MM YYYY "))
    then "Y" other "N" end) is_recipe
    of mag_pmix_ruledet rules, mag_pmix_rule header, smi udm_si, BMI udm_si udm_si recipe
    where header.ruleid = rules.ruleid
    and header.target_siid = "' | : P19_SIID | '''
    and rules.source_siid = smi.siid
    and header.target_siid = bmi.siid
    and "I" | substr (bmi.cfmreferencerecipe, 3) = recipe.extkey
    order of smi.apskey, rules.validfrom');
    end;

    And an updated report

    Select

    APEX_ITEM. MD5_CHECKSUM (c001 c002 c003, c004, c005, c006, c007) |

    apex_item. Hidden (13, seq_id) |

    apex_item. Hidden (1, c001) |

    apex_item.display_and_save (2, c002) start_date,

    apex_item.display_and_save (3, c003) end_date.

    apex_item.display_and_save (4, c004) conversion_factor,.

    apex_item. RadioGroup(7,seq_id,C008) ssi,

    seq_id EDIT,

    apex_item.display_and_save (5, si.apskey) SMI.

    apex_item.display_and_save (si.longdescr, 6) Description,.

    C007 aa,

    C001

    to apex_collections, if udm_si

    where si.siid = c001

    and collection_name = "SMI_UPDATE_COL."

    order by desc c007

    I also have a procedure of update, update the column of radio group

    Begin

    BECAUSE me IN 1.apex_application.g_f01.count
    LOOP

    () apex_collection.update_member
    p_collection_name = > 'SMI_INSERT_COL '.
    , p_seq = > apex_application.g_f13 (i)
    , p_c001 = > apex_application.g_f01 (i)
    , p_c002 = > apex_application.g_f02 (i)
    , p_c003 = > apex_application.g_f03 (i)
    , p_c004 = > apex_application.g_f04 (i)
    p_c007 = > ' n ");"

    END LOOP;


    BECAUSE me IN 1.apex_application.g_f07.count
    LOOP

    () apex_collection.update_member_attribute
    p_collection_name = > 'SMI_INSERT_COL '.
    , p_seq = > apex_application.g_f07 (i)
    , p_attr_number = > '7'
    , p_attr_value = > 'Y '.
    );

    () apex_collection.update_member_attribute
    p_collection_name = > 'SMI_UPDATE_COL '.
    , p_seq = > apex_application.g_f07 (i)
    , p_attr_number = > '8'
    , p_attr_value = > apex_application.g_f07 (i)
    );
    END LOOP;


    END;

    Once the user updates the collection of the radio group column is updated and displayed correctly

    My problem is how to view the radio group as checked on the initial page display, before the updates

    cases where rules.source_siid = recipe.siid

    and sysdate between rules.validfrom and nvl (rules.validto, to_date ("31.12.2999","DD.)) MM YYYY "))

    then "Y" other "N" end) is_recipe

    If the code returns Y then the radio must be verified

    Thank you

    Gus

    Hello

    To treat the where you create collection add

    FOR c1 IN (
      SELECT seq_id
      FROM apex_collections
      WHERE collection_name = 'SMI_INSERT_COL'
      AND c007 = 'Y'
    ) LOOP
      apex_collection.update_member_attribute(
        p_collection_name => 'SMI_UPDATE_COL'
        , p_seq => c1.seq_id
        , p_attr_number => '8'
        , p_attr_value => c1.seq_id
      );
    END LOOP;
    

    Check the names of collections.

    I did this also in your example.

    Kind regards
    Jari

  • A column is indicated on the report, but is absent from the exported CSV file

    I'm on 4.0.2 Apex

    I have a simple report posted on the page that calls a DB query:
    Select *.
    of qryname

    I have CSV export enabled in report attributes > > report export
    I include it in the export set to Yes on fields all you want in this report
    The fields you want that I export are set at the show

    A field is never displayed on the CSV export.
    I have no variables to link to this page
    I tried this field the value 10 width (width in all fields was empty by default)

    Nothing helps and the field will not export little matter what I do.
    VARCHAR2 and can have up to 2000 characters in it.
    Type box is the SQL query
    Region has no template applied.
    No idea why the field does not export to CSV?

    What type of field is it?

    is this domain have any condition on that?

    Can you reproduce this on apex.oracle.com?

  • Restrict the update of the data in the report as a table...

    Hello
    I have a tabular report in Oracle APEX 4.0 based on a db table in which some columns (Textarea element and text element) after inserted must be restricted (view only). Could someone help me how this can be achieved. While trying to create a tabular report if I give as view only; the user is unable to grasp the data itself. All entries will be very appreciated.


    Thank you
    Ahmed

    I suggest that you do with APEX_ITEMS: http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_item.htm

    You will have to work with collections to pull this off. Load all your data into a collection of apex: http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm

    Now, you can create a simple select statement

    select decode(c001, null, apex_item.text(1, c002), c002)
    from apex_collections
    where collection_name = your_collection;
    

    C001 corresponding to the primary key that is inside your table and c002 the value you want to insert.

    You must update c001 with the primary key from the moment that the row will be exist. Then just decode function will display it so it is no longer editable.

    Add lines to the collection will add new lines to your tabular form. Clear lines of the collection deletes the lines in the tabular presentation.

    If you are a beginner with this I suggest that you submit to the page whenever you click an insert/update/delete button.

    Concerning

    Nico

  • Click on a button to fill out the form on the same page of the report

    Hello

    I have a report that contains a name I want to move to a field in a form on a different region on the same page.
    My button on the report was her own column called ADD_LINK. This is the button. "< id button ="apexir_btn_ADD"class =" button apexir "type ="button"value ="Add"onclick =" "> < span > </span > Add < / button >.

    Once you click on this button, I have the form region fade. The region is called add the tag to the employee, which has P4_ROWID, P4_EMPLOYEE_ID and P4_TAG_ID.
    Once the area is displayed, I want #NAME # to show in the P4_EMPLOYEE_ID.

    I copy this form in another page, where I had it before. It made more sense to move it to this page for purposes of interface, then perhaps this tidbit will help as well.

    If someone has an answer to it, great. I'm new so thanks for the help.

    Thank you.
    Jeremy

    Its market not now and I did in the region never delete because you use the same area for the two remove hide/show the corresponding keys.

  • adding table to the report: different column width

    Hello

    Is there a way to set different column width when the table is added to the report VI? As I understand it, the width is distributed in evently for the Table to add to the report VI.

    I have a table with 5 colunms and to set the width of each column differently for printing of the report.

    Thanks for your help

    H. Pham

    Dig into the Table to add to the report VI as a result of the entry of the column width, you will find the Table add to the report > add text table of report VI > tables.vi > Set Table column width VI. You will find a node invoke named SetColumnWidth. Simply enter the column number and the respective width for each column.

  • Keep the Rollover buttons at the top of the Table column

    I'm working on a new Web site. I have rollover navigation buttons in the left of a table column. When the text of the right-hand column extends the buttons move downwards. I'm sure there's a way to keep them at the top of the column, but I can't understand it.

    I have temporarily pages on the server from another site that I do.

    www.watermillmuseum.org/index2.html

    Hope to learn how to fix this problem.

    TIA... Betty

    Betty, trying to add to your CSS:

    TD {vertical-align: top}

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB

  • Report of rupture of the column - text centered in the cell

    Hello
    I'm looking for more help to achieve the following:

    I have a report that has jumps of column on the first three columns. Currently, when the report is displayed, the first column value is displayed in the row of the top with white lines and so on for columns 2 and 3. Then the data for the other columns are displayed as usual.
    I want to do is have the column values that are used in the break spanning the rows, they break more so that the text centered (vertically)

    Download
    ________________________________________________
    Col1     Col2     Col3           Col4     Col5
    ________________________________________________
                                    dat1     dat2
                                    dat2     dat3
    val1     val2     val3          dat4     dat5
                                    dat6     dat7
                                    dat8     dat9
    ________________________________________________
    val2    xx        xxx         xx        xx
    ________________________________________________
    (Hope this works in ascii!) -Col1, 2, 3, etc. are the columns - ignore the vals and DAT files - they are just placeholders for data.



    Any help is appreciated! :)

    Hello

    Something like: http://htmldb.oracle.com/pls/otn/f?p=33642:112?

    If so, see: Re: how to make pre-trial Page/form /?

    Andy

  • Hiding the data in the column on the report, but allowing the export of these data in the column

    I have a classic report I want to hide columns on the screen when the user runs the report. However, when they choose export data, I would like to include these columns in the exported file. In terms of attributes, the deselection of the Show checkbox removes this column of list on the report. However, she removes it also to export. Going into the print attributes tab and checking included in export and check the width of column > 0 does not solve this problem.

    Is it possible to hide the columns in the report area, but retain the column data for the export file?

    Thank you
    Joshua

    Published by: joshua.d on November 5, 2008 13:44

    Joshua:

    I was able to use the OTN of Denes Kubicek http://htmldb.oracle.com/pls/otn/f?p=31517:108:5784337801775286:RP site code:
    to enable an on-screen report columns that must appear in the export. (The export is carried out in a XLS file. The Dene code can be easily modified to write CSV instead).

    Please follow the link above and get the necessary pkg pl/sql and instructions. Follow the "How To" or Readme doc and configure your application to the Apex and the report as a result page.

    Go to the section "Attributes of column" for each column in your report and explicitly don't set the field 'Inlcude in export' to 'Yes' or «»

    I hope it works for you.

    CITY

  • How to add the link back to the report?

    Hello
    I use to GO the URL to open a new report-B, when the user clicks on the column of the report-A value in the main dashboard.
    B report opens in the same page as the dashboard, but there is no button below the report back. I need to click on the back button of the browser to return to the dashboard.

    Is there a method to add link back to the report-B.
    Please advice.

    Thank you

    An example of using target = _blank:

    ''|| Table_name. Column_name | » (/a)'

    Replace (/ has) with the correct href ending tag

    In your case, put target = _blank before the column on which you have a hyperlink on (Ontime of storage Total)

    On adding the key, try adding a "Static text" object or narrative in report B and make sure you check "contains the HTML markup.

    I hope this helps!

Maybe you are looking for