Extra buttons on each row of a report?

Hi,
I would like to add multiple buttons in front of each row in a report.
When a button is pressed a Pl/SQL statement should run with access to the PK ID of that row.
Also, it is important that I can add other buttons as well (edit, delete etc)
What I want to accomplish, for example:
I want to have an ‘add event’ button on each line of a ‘scheduled production run’, this should then branch to a new page on which first a hidden item (set to pk id) and visible item (pk info) is set to those of the row on which the button was pressed.
I hope that makes sense.
Please let me know how I can to do this,
Thank you so much for any help!!!

open the page, click the RPT link to the report column attributes of that region. choose the field you wish to alter (click the edit icon) then change under the "column link" section to an href. I have used a call to a javascript function in the URL box e.g. "javascript:show_the_page(#ADD#);" and included a javascript function within my app to handle this (read in PK and open a page in a new window with the PK as a variable)

Similar Messages

  • Apex 4.0 how to add a button to each row of a report

    Hi Everyone
    I have to a requirement where i need to add a button or link to each row of report dynamically and when a user clicks on it region has to display a region below.
    For example displaying report in region 1 and when a user clicks the link or button the region 2 has to appear based on the condition.
    Report display details of employee , employeename, emp no, manager, depto, sal,feedback and if the feedback is filled then the link should not appear and if feedback is not filled and the link or button should appear beside that row and allow the user to click and when it is clicked it has to show region 2 .
    I am new to Apex, please help me out how to do this.
    Thanks in advance
    Regards
    Sandeep

    Step 1:
    Add a new item to set ID principal in report 2. ex. "P2000_ID" (maybe hidden item)
    Step 2:
    in report 1 section "report Attributes" section "Link Column"
    -> Link Column = Link to Custom Target
    -> Link Icon: Select some Icon link.
    -> Target: Page in this Application
    -> Page: same page ex. 2000.
    -> Item 1: "Name" = select Item created (step 1) "P200_ID" "Value" = #NAME_OF_ID_COLUMN_IN_REPORT_1#
    -> Apply Changes
    Step 3:
    Create query to report 2
    Ex.
    select *
    from
    TABLE2
    where
    ID=:P2000_ID
    -> In Report2 condition
    * Condition Type = Value of item in Expression 1 Is NOT NULL
    * Expression1 = P2000_ID

  • 3 radio buttons is needed on each row of a report

    Hi,
    I need 3 radio buttons on each row of a report. Out of these three , one can be selcted per row. And in each column I can select more then one radio button.
    Please provide a way to do the same.
    Thanks

    open the page, click the RPT link to the report column attributes of that region. choose the field you wish to alter (click the edit icon) then change under the "column link" section to an href. I have used a call to a javascript function in the URL box e.g. "javascript:show_the_page(#ADD#);" and included a javascript function within my app to handle this (read in PK and open a page in a new window with the PK as a variable)

  • Adding radio button to each row of an interactive report: possible or not?

    First of all let me explain what the point of this application is.
    I'm making an application that allows a user to select something out of a drop-down select list. This list is a list of categories for food. Let's say the user selects "Fruit".
    Then the page refreshes and shows an interactive report with a list of food that belongs to the category of fruit.
    Here's where I want to change things:
    I want the user to see the interactive report, but in this interactive report I want to add a radio button for each row.
    Then, when a certain type of food is selected (let's say "Strawberry") via the radio button, a text field should appear underneath the interactive report. In this textfield, the user can then add the weight of the food item, and then it will calculate how many carbs there are in the strawberry.
    All I really want to know is:*
    How do I add a radio button to each row of the interactive report, and how do I link this radio button to the value of that particular row?*
    Additional information:
    The item "P17_FOOD_CATEGORY" contains the following LOV:
    select FOODCATEGORYNAME as display_value, FOODCATEGORYID as return_value
    from FOODCATEGORY
    order by 1
    The "Food" region contains the following source:
    select a.FOODID, a.NAME, b.FOODCATEGORYNAME, c.STANDARDAMOUNT, c.NAME Unit
    from FOOD a inner join FOODCATEGORY b
    on a.FOODCATEGORYID = b.FOODCATEGORYID join FOODUNIT c
    on a.FOODID = c.FOODID
    where a.FOODCATEGORYID = :P17_SET_CATEGORY
    EDIT:
    PLEASE! Even if you don't know a good answer or if you are unsure about your answer, do post! Even suggestions would be welcome! I really need all the help I could get, even if it's not much.
    Edited by: 917169 on Feb 29, 2012 12:25 AM

    Hi there!
    I tried to change my code to your version, but then I get an error message:
    Error Unable to change Interactive Report query.
    ORA-12899: value too large for column "APEX_040100"."WWV_FLOW_WORKSHEET_COLUMNS"."DB_COLUMN_NAME" (actual: 32, maximum: 30)
    I don't quite know what this means. After doing a quick search on the internet, I know that this message should mean that the length of the value for the columns named "APEX_040100", "WWV_FLOW_WORKSHEET_COLUMNS" and "DB_COLUMN_NAME" is too long. But, I don't have these columns. I searched for them in my object browser, and they can't be found in any table related to my application.
    I'm sure your answer is the solution, but do you perhaps have an idea on how to solve this error? I checked the allowed maximum length for any column value that is related to my application, but they all have "50" set as the maximum value...
    Thank you for your reply. ;)

  • Add a button(not a link) in each row of a report

    hi,
    i need to add a button(not a link) in each row of a report. On clicking this button , the value in a specified column in database should change from yes to no.
    How can i achieve this funcationality. I am using apex 4.2.
    Please help!

    I used the images in the report region query,
    select
    EMPNO,
    ENAME,
    JOB,
    MGR,
    HIREDATE,
    SAL,
    COMM,     
    DEPTNO,     
    decode(IS_COMM,'Y','<a href="#" onClick= javascript:pdelete('||a.EMPNO||');><img src="#WORKSPACE_IMAGES#remove.gif" alt=""></a>','N','<a href="#" onClick= javascript:padd('||a.EMPNO||');><img src="#WORKSPACE_IMAGES#value_ok.png" alt=""></a>','<a href="#" onClick= javascript:padd('||a.EMPNO||');><img src="#WORKSPACE_IMAGES#value_ok.png" alt=""></a>') check_comm
    from
    test_emp aChanged the check_comm -> Display Text As as Standard Report Column. Created two items to save the value of 'EMPNO'. Javascript code in the page header as below,
    function padd(pSub)
         $s('P8_ADD',pSub);
        doSubmit('ADD');
    function pdelete(pSub)
         $s('P8_DELETE',pSub);
           doSubmit('DELETE');
    }Created the processes with condition like Request=Expression1 based on the REQUEST returned by javascript function.
    Thanks
    Lakshmi

  • Putting buttons at the end of each row of a report

    Hi
    Was wondering if anyone new of a way to put buttons on the end of each row of a report. Basically i want a button and a LOV box next to the end of each row so that the user could set the value of the LOV box click the button and that would update just that row. Obviously i want to give them the option of batch processing it as well but for now i just want them to be able to update one row at a time.
    This does not nessacary need to be with a LOV box it could also work with radio buttons to specifiy the value to update.
    If anyone knows a way of doing this or any information where i can read about it then please let me know as i would be very interested.
    Or can you make report fields eidtable so that i can just run a massage update on the using all the values in the report?
    Thank you for your time
    Daniel Stead
    Message was edited by:
    Dan Stead

    No such luck a tabluar updat form shows all the rows for that table. I only want the user to be able to update their rows in the table.
    This is bascally what i want to do.
    I have two reports that only show records that are realted to the current user that is logged in.
    The first report shows all records in the table for the current user where the supervisor (the current user) type is set to confirmed.
    The second reprot shows all the records in the table for the current user where the supervisor (the current user) type is set to requested.
    That is what i have acheived so far.
    I want to be able to make the superviosr type in the second report editable with a list of values requested, rejected and confirmed. The user can then select what he would like the type to be for the specific record in the report and then press a button that updates all the reocrds (or a button at the end of each row that updates each row). If the row is confirmed it moves to the first report, if it is still requested it stays in the second report and if it is set to rejected then it will be in neither report.
    Therefore my question is if i make the supervisor type eidtable how can i link it to the id of that row so that it updates it?
    If this is not clear please state to me which part i have not made clear.
    Thank you for your help.
    Daniel Stead

  • Add Button to each row

    Hi all,
    Sorry about my english!!!
    My problem is that i'm trying to add a column to my report (tabular).
    That column has a button for each row and when this button is pressed is called a new page with the details of the record for that line.
    example:
    ID NAME BUTTON
    1 qwerty ver
    2 ASDFG ver
    "ver" is the button.
    Problem: how do i build a report with that button and after that how do i call in the pl/sql of the button the detail page?
    Thanks everyone.
    Using Release 2 9ias

    mail me i will send u demo file
    [email protected]

  • Add a radio button to each row on output (not selection-screen)

    its a normal interacitve report...
    we need to add a radio button to each row on output (not selection-screen) and when user selects the radio button of a particular row and clicks on the user defined menu 'Execute' the report has to fetch the records from a table corresponding to the selected row on the second list.
    all this has to be done in normal interactive list.
    please let me know your suggetions as soon as possible.
    thanks,
    usha.

    Hi ,  try this
    TABLES: spfli.
    TYPE-POOLS:slis.
    PARAMETERS: p_col TYPE i ,
                p_row TYPE i,
                p_color(4) TYPE c .
    DATA: t_fieldcat TYPE slis_t_fieldcat_alv,
          fs_fieldcat LIKE LINE OF t_fieldcat,
          fs_layout TYPE slis_layout_alv ,
          w_color(4) ,
          w_row TYPE i,
          w_fieldname(20),
          w_prog TYPE sy-repid.
    TYPES : BEGIN OF ty_spfli ,
              color(4),
              checkbox ,
              cell TYPE slis_t_specialcol_alv,
              carrid TYPE spfli-carrid,
              connid TYPE spfli-connid,
              cityfrom TYPE spfli-cityfrom,
              cityto TYPE spfli-cityto,
              distance TYPE spfli-distance,
           END OF ty_spfli.
    DATA : wa_spfli TYPE ty_spfli ,
           t_spfli TYPE TABLE OF ty_spfli.
    DATA: fs_cell LIKE LINE OF wa_spfli-cell.
    SELECT carrid connid cityfrom cityto distance
      FROM spfli
      INTO CORRESPONDING FIELDS OF TABLE t_spfli.
    w_color = p_color.
    fs_fieldcat-fieldname = 'CARRID'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 1.
    fs_fieldcat-key = 'X'.
    APPEND fs_fieldcat TO t_fieldcat.
    CLEAR fs_fieldcat .
    fs_fieldcat-fieldname = 'CONNID'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 2.
    fs_fieldcat-key = 'X'.
    APPEND fs_fieldcat TO t_fieldcat.
    CLEAR fs_fieldcat .
    fs_fieldcat-fieldname = 'DISTANCE'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 3.
    fs_fieldcat-key = ' '.
    fs_fieldcat-edit = 'X'.
    APPEND fs_fieldcat TO t_fieldcat.
    CLEAR fs_fieldcat.
    fs_fieldcat-fieldname = 'CITYFROM'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 4.
    fs_fieldcat-key = ' '.
    APPEND fs_fieldcat TO t_fieldcat.
    LOOP AT t_fieldcat INTO fs_fieldcat.
      IF fs_fieldcat-col_pos EQ p_col.
        fs_fieldcat-emphasize = p_color.
        w_fieldname = fs_fieldcat-fieldname.
        IF p_row IS INITIAL AND p_col GT 0.
          MODIFY t_fieldcat FROM fs_fieldcat TRANSPORTING emphasize.
        ENDIF.
      ENDIF.
    ENDLOOP.
    fs_layout-info_fieldname = 'COLOR'.
    fs_layout-box_fieldname = 'CHECKBOX'.
    fs_layout-coltab_fieldname = 'CELL'.
    fs_layout-f2code = '&ETA'.
    w_prog = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        i_callback_program = w_prog
        is_layout          = fs_layout
        it_fieldcat        = t_fieldcat
      TABLES
        t_outtab           = t_spfli
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Aby

  • Prompting user for input for each row in the report

    Is it possible to have a user entered field for each row in a report ?
    ie. have a report with empolyee number, employee name, title, salary, and comment. Select of of these columns from the SQL query except for the comment, and then when the report is generated have the user be prompted for what the want the comment to be for every employee in the report?

    That is, have the user generating the report enter in a different comment for EACH employee. (ie Joe Smith's comment is "good worker and John Smith's comment is "come to work late on Tuesdays and Thursdays", Sally Jones' comment is "Expert in C++" etc.) as the reports is being built for each row returned from the query.

  • Adding a button in each row of table view

    Hi.
    In my application i have to add a button in each row of table view. i have done this by using UICatalog example. now problem is how I can handle the click events of these buttons.
    suppose i have 5 buttons in 5 rows ... now one of them is clicked(suppose button in 3rd row). how would i know that button in 3rd row is clicked.
    Muhammad Usman Aleem

    - (UITableViewCell)tableView:(UITableView)tableView
    cellForRowAtIndexPath:(NSIndexPath*)indexPath {
    static NSString *CellTableIdentifier = @"CellTableIdentifier ";
    static NSUInteger nTag = 100;
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:
    CellTableIdentifier];
    if (cell == nil) {
    CGRect cellFrame = CGRectMake(0, 0, 300, 65);
    cell = [[[UITableViewCell alloc] initWithFrame:cellFrame
    reuseIdentifier:CellTableIdentifier] autorelease];
    CGRect labelRect = CGRectMake(10, 26, 190, 15);
    UILabel *label = [[UILabel alloc] initWithFrame:labelRect];
    label.textAlignment = UITextAlignmentLeft;
    label.font = [UIFont boldSystemFontOfSize:12];
    // set all label tags to 10 so the label can be found in the subviews
    label.tag = 10;
    [cell.contentView addSubview:label];
    [label release];
    CGRect buttonRect = CGRectMake(210, 25, 65, 25);
    UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    button.frame = buttonRect;
    // set the button title here if it will always be the same
    [button setTitle:@"Action" forState:UIControlStateNormal];
    button.tag = nTag++;
    [button addTarget:self action:@selector(myAction:) forControlEvents:UIControlEventTouchUpInside];
    // make sure the button is the lowest subview so it's easy to find
    [cell.contentView insertSubview:button atIndex:0];
    // button will be autoreleased so don't release it here
    // the label text and button title come from an array of NSDictionary in this example
    NSUInteger row = [indexPath row];
    NSDictionary *rowData = [self.data objectAtIndex:row];
    UILabel *thisLabel = (UILabel*)[cell.contentView viewWithTag:10];
    thisLabel.text = [rowData objectForKey:@"Text"];
    // set the button title here if it depends on the row
    UIButton *thisButton = [[cell.contentView subviews] objectAtIndex:0];
    [thisButton setTitle:[rowData objectForKey:@"Button"] forState:UIControlStateNormal];
    return cell;
    - (IBAction)myAction:(id)sender {
    UIButton *theSender = sender;
    UITableViewCell *cell;
    NSUInteger row = 0;
    for (cell in [theTableView visibleCells]) {
    UIButton *thisButton = [[cell.contentView subviews] objectAtIndex:0];
    if (thisButton.tag == theSender.tag) {
    row = [[theTableView indexPathForCell:cell] row];
    break;
    NSLog(@"myAction: row=%d", row);

  • Adding the Checkbox for each row in classic report

    Hello,
    I have created classic report with checkboxes in each row and added the On-Submit process, BUTTON CONDITIONAL, to determine the behavior of the checkboxes. The PL/SQL process is suppose to delete the selected row from database.
    I am getting the Success message, but When I check the database, the row still persist in the database.
    PLSQL CODE:
    FOR i IN 1..apex_application.g_f01.count LOOP
    DELETE 
    FROM
      registry 
    WHERE
      reg_id = apex_application.g_f01(i);END LOOP;
    ORACLE APEX: 4.2
    Thank you

    Hi ApexNewLearner,
    Try this
    DECLARE
    j number;
    BEGIN
    FOR i IN 1..apex_application.g_f01.count LOOP
      j := apex_application.g_f01(i);
      DELETE FROM  registry
      WHERE  reg_id = apex_application.g_f01(j);
    END LOOP;
    END;
    or better try to replicate your issue on apex.oracle.com , that is easy for users to investigate the issue and give you appropriate solution.
    Hope this helps you,
    Regards,
    Jitendra

  • Using a LoV in each row of a report (SELECT)

    Hi everyone,
    I have a report of a table in APEX and I'd like to show a column with a Select list that I have saved (LoV). I mean, for each row of the table it must appear this dinamic select list. In addition, I want a button next to every Select list, every row.
    I know how to show a static select list using HTML in my SELECT query. I do something like:
    SELECT atribute1, atribute2, .... , '<html> select code </html>' as "list"
    FROM table1
    But I need to use an existing LoV. And then, if the user change one value of one select list, and presses the button in the same row, this value should be processed and do an UPDATE of this row in the DataBase.
    I suppose it is possible to do this in APEX, but I still didn't fins the way to do this.
    Can you help me, please? If my english is too bad, I can try to explain it better.

    It's not necessary any answer.
    I was wrong about inserting LoVs with HTML. It is not that hard, it's more simple and I know how to do this now.

  • How to show an image on each row of the report?

    I have created a report in apex. i want to display image on each row in a column of the report.
    How can i do this?

    See About BLOB Support in Forms and Reports in the documentation.
    There's an OBE tutorial that followed the introduction of declarative BLOB support in 3.1 as well.
    In future please
    <li>Search the forum before posting a new question. Most questions (including this one) have been asked and answered before.
    <li>Include as much relevant information with your question as possible, starting with:
    - APEX version
    - DB version and edition
    - Web server architecture (EPG, OHS or APEX listener)
    - Browser(s)/version(s) used
    - Theme
    - Templates
    - Region type(s)
    <li>Change your forum handle to something better than "845927".

  • Help: Link buttons to each row in JTable

    Here is the story: a JTable contains many entries/rows. I want to have a small "edit" button next to each row, once user click the "edit" button, another GUI will be loaded, and the new GUI is filled with the row of data where that clicked button is corresponding to.
    Question:
    1.How to link a button to a specific row in the JTable?
    2.Can I put the buttons inside the JTable? How?(eg. button at the end of each row).
    3.If it's not possible to put the button inside the JTable, then I want to make 5 buttons next to the JTable area(only 5 rows are visible in JTable at any given time). Now, assume we have 20 rows, 1-5 are visible, if I scroll down to 10-15, what can I do to make that once user click the top button of the five, row 10 is loaded with the GUI?
    plz help, thx.

    Ok, what i want to do is:
    user search the database, I display the search result on to the screen(use JTable).
    The search result will contain many rows of data, I want to allow user to choose a row, and edit that row with an editor. The editor is another GUI, that GUI will first be filled with data from the row that user chose, then user can edit those data with that editor.
    So my problem is: I dont know how to make the program know which row user chose from the JTable before it load the editor.

  • Adding a button to each row of a tabular form

    Hi,
    I'm new to APEX. I've searched the forums high and low for a couple days, but no go on a solution to my problem. Perhaps I'm not phrasing my search right.
    I have a tabular form. The columns in each row save to a table called STORE. At the end of each row, I'd like to have a button/hyperlink that takes you to another page wherein, for that store, you can check/uncheck the items they carry. So, here's the main tabular form:
    The Hardware Shop -- Col1 Col2 Col3 Col4 Col5 Link
    Bob's Nuts and Bolts -- Col1 Col2 Col3 Col4 Col5 Link
    Suppose you click on the link for The HW Shop. Now you're in a screen where you have a list of 20 items (coming from another table). From that list, you can check/uncheck the items carried by that store, save changes, and return to the tabular form. Checking/unchecking would insert/delete records from a junction table (using a trigger I guess).
    Back in the tabular form, you should still be able to save data at that level (i.e. the col1, col2, etc., above). I have this latter part working, and I know how to write triggers, it's just the button link concept that I can't understand.
    I'd be much obliged if somebody could point me to some sort of reference/example.
    Thanks,
    Max

    Hi again,
    I'd like to add some functionality to this, and would appreciate any input. I can't post this app for security reasons, and it would require a lot of reworking to 'genericize' it, so I'll just devote that same energy to being as detailed as possible in my explanation of the issue.
    Part of my app has 2 pages that interact with each other. Page 1 is a tabular form, and at the end of each row there is a link column, which I created with Arie's help. This link opens up page 2, which is also a tabular form.
    Clicking 'Save' in page 2 should launch a javascript function to do some calculation, and then this calculation should be sent back to page 1, and stored in a text field located on the same row as the link column that was clicked in page 1.
    There's a lot of different ideas floating in the forums regarding javascript calls via buttons, and I'm currently researching that. More important to me is understanding what row number was clicked on page 1 (i.e. f01, f02, etc.).
    I think this posting is similar to what I'm trying to do: Re: Trying to attach onclick event to a pagination link But, the replies went a bit over my head. I managed to create a row selector, which added a checkbox column to my form. But the downside to that is I don't want to force the user to click a checkbox to activate a row, and then do the additional step of clicking the link column.
    Thanks,
    max

Maybe you are looking for

  • G41M-P28 video problem

    Hi! My video driver keep restarting in games. First I had an Ati Radeon HD 5450 512MB but read that G41 boards don't really compatible with Ati cards higher than 5xxx so switched back to my Radeon X1600 256MB but the restarting still don't stop. It i

  • Cant find albums in source pane

    I thought I remembered that in the past when I created an album in iPhoto I could then find that album in the source pane. when I want to find a specific photo to upload (or attach or whatever) I need to find it by going through 2007 then the roll th

  • BPELEngineBean.syncCreateAndInvoke throws Exception occurred during commit

    We have a SOA Suite 11g composite deployed on a cluster with 4 managed server. Version of SOA suite is 11.1.1.1.0 This composite gets called only once a day. Following errror is thrown by the composite only sometimes ###<Apr 12, 2010 8:03:51 AM EDT>

  • How to write multiline String in a JLabel

    How can i write a string that is shown in many lines in a JLabel. Or is there any orher way to write them? Also, similarly how to write tooltip text that spans across many lines. Not just one line

  • Alternative FM instead of 'HR_TIME_RESULTS_IN_INTERVAL'

    Hi, Can anybody suggest me any alternative FM instead of 'HR_TIME_RESULTS_IN_INTERVAL', this standard FM is throwing DUmp. Regards Rohini.