Add Row in detail table when check box is checked on a master report table

Hi,
How could I detect the click on the check box within a Report and then insert a row in a detail table?
Many thanks for your help
jko

Hi Yogesh,
That is all handled by the cloneRows() function described in that thread.
In that function, we first insert a new row:
var wNew = t.insertRow(ri + 1);ri + 1 = current row + 1 and tells javascript where to add the new row (that is, underneath the current one)
Then, we loop through all of the cells on the current row and copy its cells into the new row:
var c;
var newCell;
var oldCells = w.getElementsByTagName("TD");
for (c = 0; c < oldCells.length; c++)
  newCell = wNew.insertCell(c);
  newCell.className = oldCells[c].className;
  newCell.innerHTML = oldCells[c].innerHTML;
}Next, we search for all INPUT items on the new row and clear the values:
var inputs = wNew.getElementsByTagName("INPUT");
var j;
for (j = 0; j < inputs.length; j++)
  inputs[j].value = "";
}And, finally, we call the updateInputs() function to rename all of the items on the page. Apex expects all items to have unique "f01_nnnn" etc names, adding in a new row upsets this, so we need to reset them:
function pad(n)
var s = '0000' + n;
return s.substr(s.length-4);
function updateFields(f)
  var fields = document.getElementsByName(f);
  var j;
  if (fields.length > 0)
    for (j = 0; j < fields.length; j++)
      fields[j].id = f + "_" + pad(j+1);
function updateInputs()
updateFields("f01");
updateFields("f02");
updateFields("f03");
updateFields("f04");
}without doing that, the data may get lost when the page is re-rendered.
This is all called from a new Derived Column on the report. This column's HTML Expression is:
&lt;a href="#" onclick="javascript:cloneRow(this)"&gt;&lt;img src="#IMAGE_PREFIX#FNDADD11.gif"&gt;&lt;/a&gt;which generates the + symbols which, when clicked, run the cloneRow() function
Andy

Similar Messages

  • How to validate that only one check box is checked in detail block

    Hi All,
    I am using oracle Forms 10G on windows.
    I need help on how to validate that only one check box is checked in detail block. I have multiple records in the detail block and I have check boxes for each record in the detail block.
    I have a button to select the values from the detail records where the check box is checked. But I want to make sure that only one record is check not more than one.
    How do I validate this on a push button trigger?
    Thanks

    When I've done this kind of thing, I create a Form level variable of TYPE number and then add or subtract to this variable as I check and uncheck the checkboxes. If the value of the variable is 1, then you know that only one checkbox is selected. If the value is greater than 1, then you know the user has selected more than one check box. You could also add code to your When-Checkbox-Changed trigger to test the variable and instruct the user to un-check selected record before selecing a new record.
    With respect to the Form level variable, you can use a GLOBAL, PARAMETER or Program Unit package specification. I prefer to use the PU Package Spec as this method has a smaller memory footprint. For example, in the Program Unit node of the object navigator create the following;
    /* Form variables package spec */
    PACKAGE Form_Vars IS
      CheckBox_Cnt     NUMBER := 0;
    END;Now in your When-Checkbox-Changed trigger...
    BEGIN
       IF ( Form_Vars.CheckBox_Cnt = 0 ) THEN
          Form_Vars.CheckBox_Cnt  := Form_Vars.CheckBox_Cnt  + 1;
       ELSE
          /* it's assumed the value is greater than 0 */
          Message('Please uncheck selec ted record before choosing a new record.');
          RAISE Form_Trigger_Failure;
       END IF;
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Feb 3, 2011 10:15 AM

  • Very slight blue cast on epson r1900 when match print color check box is checked

    Ok, so this problem has been bugging me for some time now and I know other people have it too, because I can see it some of the screen shots. 
    I am running CS3 and and epson r1900.  Using the latest drivers, and latest ICM epson paper profiles downloaded again just yesterday.  So what happen is when I go to print a photo, whenever I check the match print color box, the proof instantly assume a very light blue cast which prints on the paper as well.
    Let me tell you what I know it is not.
    1.  It is not double color management- ICM is disabled on the epson print manager side
    2.  It is not a badly calibrate monitor, My spyder 2 is working just fine.
    I am wondering if its some type of gamut compression inherint the the ICC profile, but if that were the case, if I converted my photo into the icc's color space, it just take on the blue cast, but it does not it.  The blue cast appears only after the match printer colors check box is checked.  Even if I add additional whitespace to the picture, that what space, which when you think about it, should just be paper white, get printed again with the light blue cast.  In checking and unchecking that above mentioned box, I can see that other features within the photo are being affected or shifted as well.  If I use a different icc profile, say, the Kodak Professional Paper profile or a red river paper profile, there is no Blue Cast period when the box is check or unchecked, so it seems to be something related to epson profiles, and Photoshop.
    I have removed the printer and reinstalled with all the latested drivers available at epson website, as well as removed all my old epson paper iCC profiles and reinstalled them from that latest available from epson as well.
    I can see on some epson printing tutorials avaiable on the web, this blue cast in the screen shots.  Like here- http://www.gballard.net/psd/printing_epson_photoshop_cs3.html
    compare the the preview print area , the the white in the in input box for print size and you can see there is a cast.
    So is this normal?
    thanks
    Patrick

    Patrick,
    ICC profiles include white point information.  When you check  the match print color box, Photoshop trys to show a quick soft proof of your image there in the print dialog.  The blue cast is Photoshop trying to simulate the white point in the profile - which happens to be the shade of the paper.  Some papers have more of a pronounced blue or yellow shade, and this shows up in the soft proof.
    In reality you will not see nearly the level of shift on a print as you do in the Photoshop print dialog.  That soft proof is not really super accurate.
    To summarize it is indeed the paper ICC profile that is causing the effect.  Different profiles will all show slightly different variations in the white point under these circumstances.
    Drew Hendrix
    Red River Paper
    www.redriverpaper.com

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • Check boxes not checked when value passed through a request

    I've a URL which sets default-check box values -
    f?p=121:41:&SESSION.::YES::P41_OWNER,P41_AI_TYPE:&BUGDB_USER.,\5,6,7\
    where "\5,6,7\" is the value of check-boxes.
    On Page 41, I compute P41_AI_TYPE as follows (as a Process - On Load Before Regions) -
    begin
    if (:P41_AI_TYPE = '5,6,7') then
    *:P41_AI_TYPE := '6:7:5';*
    end if;
    end;
    There are 3 conditional reports that are generated on the page 41 based on these values. i.e. 5,6,7. All the three reports are displayed indicating that the reports do indeed see the P41_AI_TYPE variable.
    The "Debug" shows
    0.03: ...Session State: Saved Item "P41_AI_TYPE" New Value="6:7:5"
    prior to displaying the checkbox
    The "Session" also shows -
    121     41     P41_AI_TYPE     Checkbox     6:7:5     U
    However none of the check-boxes are checked.
    What could be the issue ?
    Edited by: ygore on Aug 26, 2009 10:41 AM

    0.01:
    0.02: S H O W: application="121" page="41" workspace="" request="" session="692841112185158"
    0.02: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    0.02: alter session set nls_language="AMERICAN"
    0.02: alter session set nls_territory="AMERICA"
    0.02: NLS: CSV charset=WE8MSWIN1252
    0.02: ...NLS: Set Decimal separator="."
    0.02: ...NLS: Set NLS Group separator=","
    0.02: ...NLS: Set date format="DD-MON-RR"
    0.02: ...Setting session time_zone to dbtimezone
    0.02: NLS: Language=en-us
    0.02: Application 121, Authentication: CUSTOM2, Page Template: 5653628457062181
    0.02: ...Session ID 692841112185158 can be used
    0.02: ...Application session: 692841112185158, [email protected]
    0.03: ...Determine if user "YPGORE" workspace "943324391470666" can develop application "121" in workspace "943324391470666"
    0.03: Session: Fetch session header information
    0.03: Saving g_arg_names=P41_OWNER and g_arg_values=YGORE
    0.03: ...Session State: Saved Item "P41_OWNER" New Value="YGORE"
    0.03: Saving g_arg_names=P41_AI_TYPE and g_arg_values=5,6,7
    0.03: ...Session State: Saved Item "P41_AI_TYPE" New Value="5,6,7"
    0.03: ...Metadata: Fetch page attributes for application 121, page 41
    0.03: Fetch session state from database
    0.03: Branch point: BEFORE_HEADER
    0.03: Fetch application meta data
    0.04: Computation point: BEFORE_HEADER
    0.04: Processing point: BEFORE_HEADER
    0.04: Show page template header
    0.04: Computation point: AFTER_HEADER
    0.04: Processing point: AFTER_HEADER
    Root Cause Analysis
    ([email protected]) | Logout
         Reports      
    Edit
         Classify      
    Edit
         Administration      
    Edit
    EditEditEdit
    Summary Report     Area Report     Custom Reports     
    0.05: Region: Action Items Report
    Action Items Report
    0.05: Computation point: BEFORE_BOX_BODY
    0.05: ...Evaluate condition "NEVER" for computation of item: P41_AI_TYPE
    0.05: Processing point: BEFORE_BOX_BODY
    0.05: ...Process "Compute AI Type": PLSQL (BEFORE_BOX_BODY) begin if (:P41_AI_TYPE = '5,6,7') then :P41_AI_TYPE := '6:7:5'; :P41_AI_TYPE_COMMA := '5,6,7'; end if; end;
    *0.05: ...Session State: Saved Item "P41_AI_TYPE" New Value="6:7:5"*
    0.05: ...Session State: Saved Item "P41_AI_TYPE_COMMA" New Value="5,6,7"
    0.05: Region: Enter Bug User Id
    0.06: Item: P41_AREA TEXT
    Area :      Edit
    0.06: Item: P41_OWNER TEXT
         AI Owner :      Edit
    0.06: Item: P41_AI_PERCENT_LOW_MARK TEXT
         AI %age comp. range      Edit
    0.06: Item: P41_AI_PERCENT_HI_MARK TEXT
         And      Edit
    0.06: Item: P41_AI_TYPE CHECKBOX
         AI Type :      
    Test-Generic     TestCase     Development
    Edit
    0.06: Item: P41_AI_ID TEXT_WITH_ENTER_SUBMIT
         AI Id :      Edit
    0.06: Item: P41_GO BUTTON
         Go      
    Edit
    0.06: Item: P41_AI_TYPE_COMMA HIDDEN
              Edit
    0.06: Region: Test-Generic Action Items Report
         Test-Generic Action Items ReportEdit      
    0.06: show report
    0.07: determine column headings
    0.07: activate sort
    0.07: parse query as: RMTOOLS_QAINIT
    0.07: binding: ":P41_AREA"="P41_AREA" value="%"
    0.07: binding: ":P41_OWNER"="P41_OWNER" value="YGORE"
    0.07: binding: ":P41_AI_PERCENT_LOW_MARK"="P41_AI_PERCENT_LOW_MARK" value="0"
    0.07: binding: ":P41_AI_PERCENT_HI_MARK"="P41_AI_PERCENT_HI_MARK" value="100"
    0.07: binding: ":P41_AI_ID"="P41_AI_ID" value="%"
    0.08: print column headings
    0.08: rows loop: 15 row(s)
    No action items in this category.      
    0.08: Region: TestCase Action Items Report
         TestCase Action Items ReportEdit      
    0.08: show report
    0.08: determine column headings
    0.08: activate sort
    0.09: parse query as: RMTOOLS_QAINIT
    0.09: binding: ":P41_AREA"="P41_AREA" value="%"
    0.09: binding: ":P41_OWNER"="P41_OWNER" value="YGORE"
    0.09: binding: ":P41_AI_PERCENT_LOW_MARK"="P41_AI_PERCENT_LOW_MARK" value="0"
    0.09: binding: ":P41_AI_PERCENT_HI_MARK"="P41_AI_PERCENT_HI_MARK" value="100"
    0.09: binding: ":P41_AI_ID"="P41_AI_ID" value="%"
    0.09: print column headings
    0.09: rows loop: 15 row(s)
    No action items in this category.      
    0.09: Region: Development Action Items Report
         Development Action Items ReportEdit      
    0.10: show report
    0.10: determine column headings
    0.10: activate sort
    0.10: parse query as: RMTOOLS_QAINIT
    0.10: binding: ":P41_AREA"="P41_AREA" value="%"
    0.10: binding: ":P41_OWNER"="P41_OWNER" value="YGORE"
    0.10: binding: ":P41_AI_PERCENT_LOW_MARK"="P41_AI_PERCENT_LOW_MARK" value="0"
    0.10: binding: ":P41_AI_PERCENT_HI_MARK"="P41_AI_PERCENT_HI_MARK" value="100"
    0.10: binding: ":P41_AI_ID"="P41_AI_ID" value="%"
    0.11: print column headings
    0.11: rows loop: 15 row(s)
    No action items in this category.      
    0.11: Region: Print Region
         Print Report      
    Edit
    0.11: Computation point: AFTER_BOX_BODY
    0.11: Processing point: AFTER_BOX_BODY
    0.11: Computation point: BEFORE_FOOTER
    0.11: Processing point: BEFORE_FOOTER
    0.11: Show page tempate footer
    Home     Application 121     Edit Page 41     Create     Session     Activity     No Debug     Hide Edit Links     Show Edit Links
    0.11: Computation point: AFTER_FOOTER
    0.11: Processing point: AFTER_FOOTER
    0.11: Log Activity:
    0.11: End Show:

  • How do you send an email to a specific person based on if a particular check box is checked?

    How do you send an email to a specific person based on if a particular check box is checked?

    Try the LiveCycle Designer forum.

  • How to change the check box with the push button in itrator table rows

    Hi all,
    I want to change the check box of the itrator table rows with push button/ some thing better as to give
    the table view more good look and user friendly.
    Does any one has tried any other option in table view in place of check box
    Thanks
    Bhagat

    There are various objects which you can create via iterators. Please see the application SBSPEXT_TABLE for more details.
    DATA: lo_text      TYPE REF TO cl_htmlb_textview,
            lo_ddlb      TYPE REF TO cl_htmlb_dropdownlistbox,
            lo_input     TYPE REF TO cl_htmlb_inputfield,
            lo_button    TYPE REF TO cl_htmlb_button,
            lo_chk_bx    TYPE REF TO cl_htmlb_checkbox.
      row_ref = p_row_data_ref.
      CASE p_column_key.
        WHEN 'EFF_DATE'. " Input field
          CREATE OBJECT lo_input.
          lo_input->id       = p_cell_id.
          lo_input->type     = 'DATE'.
          lo_input->showhelp = 'TRUE'.
          lo_input->width    = '60'.
          lo_input->invalid  = 'true'.
          p_class            = `ao`.
          lo_input->value     = get_column_value( p_column_key ).
          p_replacement_bee = lo_input.
        WHEN   'NEW_LOC'. " Drop down list box
          CREATE OBJECT lo_ddlb.
          GET REFERENCE OF gt_persa INTO lo_ddlb->table.
          lo_ddlb->id                =  p_cell_id.
          lo_ddlb->nameofkeycolumn   = 'NAME'.
          lo_ddlb->nameofvaluecolumn = 'VALUE'.
          lo_ddlb->selection         = get_column_value( p_column_key ).
          lo_ddlb->selection  = 'DUMMY'.
          p_replacement_bee          = lo_ddlb.
        WHEN 'MON' . " Check box
          CREATE OBJECT lo_chk_bx.
          lo_chk_bx->id = p_cell_id.
          lo_chk_bx->checked =  get_column_value( p_column_key ).
          p_replacement_bee  = lo_chk_bx.
        WHEN 'NEW_MGR_SRCH'. " Button
          CREATE OBJECT lo_button.
          lo_button->id            = p_cell_id.
          lo_button->text          = 'Search Mgr'.
          lo_button->onclientclick = 'script'.
          p_replacement_bee = lo_button.
        WHEN OTHERS. " Text
          CREATE OBJECT lo_text.
          lo_text->id       = p_cell_id.
          lo_text->wrapping = 'FALSE'.
          lo_text->text     = get_column_value( p_column_key ).
          lo_text->design   =  'STANDARD'.
          lo_text->textcolor = 'POSITIVE'.
          p_replacement_bee = lo_text.
      ENDCASE.
    Thanks
    A

  • "Add Row" in Details.  Displayed "Rows" disapear.

    I've created an application using the Master Detail form.
    I would like to "add" new rows, by inserting a new blank row in my Master Form. Currently it goes to the second page and gives me an input form. I'd like to add the new record directly to the Master Report. Can this be done (since the report is "tecnically" not a form?
    Also, when adding a "Row" to my "Details" form, I get a new "blank" row, but the rest of the tabular form, that was displayed before hitting the "Add Row" button.
    Any ideas?
    Thanks,
    leonhardtk.

    Hi,
    your question is not clear and thus hard to answer.
    I have 'Create form' with Application table from a VO. initially Createform should display the template of VO in Application table to insert new rows only.
    What does the sentence above mean? You create an ADF form from a View Object (this I understand). But what do you mean by +"template of VO in Application table"+ ?
    but when I click on 'Add Row' in Application table..the new entry is not coming
    Thought you were using an ADF form? (see how confusing your question is ?)
    Maybe this helps anyway: If you create new rows in a table, you don't use the Create but CreateInsert operation
    Frank

  • Need help in LiveCycle Forms - Highlighting required fields when the check box is checked / Un-highlighting the fields if I un-check the check box...

    Hello All!
    I am relatively new to creating forms within LiveCycle but I have learned quickly so bare with me on my question.
    I have figured out how to highlight a field when a check box is clicked on, however, I cannot get it to remove the highlight when the check box is unchecked?
    This is what I used for the highlight:
    Subform1.fieldname.fillColor="255,255,0"
    Can anyone provide any insight or suggestions on how I might fix this script issue?
    Thanks in advance!
    -Lisa

    Hi,
    Script migth be something like this. Put it on Change event of the check box
    if (this.rawValue == 1) { Subform1.fieldname.fillColor="255,255,0"
    xfa.layout.relayout();
    else 
    { Subform1.fieldname.fillColor="255,0,0"
    xfa.layout.relayout();
    BR,
    Paul Butenko

  • Set the value of items when check box is checked

    Hi,
    My requirement is when we click a check box it should set the value of an item as 111111 and clear the values of two items in an apex page.
    I used java script onClick event to set those items using document.getElementByID('Item_Name')='';
    One of the item which needs to be cleared is a conditonal type.
    When the condional item present, java script works fine. But if it is not present,
    code works but it shows "error on page" for few seconds.
    Is it possible to clear the item, only when the item is present in the page.
    Thanks,
    Ravi

    Hi,
    Yes e.g. like
    if($x("ITEM_NAME")){
    $s("ITEM_NAME", "");
    }Regards,
    Jari

  • How do I duplicate the entry to a set of fields when a box is checked?

    I already know how to duplicate specific fields. I don't want the field duplicated if a certain box is unchecked (this would apply for a set of seven different boxes, that when the check box is selected, all seven fields would copy their respective matching fields).
    Example:
    Billed Address    vs.   Service Address
    Sometimes these are the same and sometimes they aren't. I need the option to copy the billed info to the service address if it is the same so I don't have to type in duplicate information.
    Thanks!

    Create 2 text fields and a check box.
    Use this as the mouse up script for the check box:
    if (event.target.value!="Off") {           //If checkbox is ticked
    this.getField("Textbox2").value = this.getField("Textbox1").value;         //Make the contents of the two text fields the same. Replace with the names of your fields.
    else this.getField("Textbox2").value = "";          //Clear Textbox2 if checkbox is not ticked

  • How can I get a check box automatically checked when other check boxes are checked?

    A little tongue twister there, but the attached image should clarify.
    I'm trying to create a form to measure achievements. When all achievements are met/checked I want the green check box with a star to auto-check.
    If not all achievements are checked, I want the orange check box to auto check...
    Can I get this working by using export values?
    Thanks!

    I would use a custom JavaScript to count the number of check boxes whose value is not "Off" and set the final box on the result of the count.

  • Report on Employees whose trips assigned check box not checked

    Hi SAP Guru's,
    We have a requirement wherein we have to generate a report having list of those employee's whose trip assigned check box is not checked in infotype 0017 (Travel Privileges) at the same time who are having trips created in their name. If you have any idea please share it with me.
    Thanks,
    Sudhakar.
    Edited by: sudhakar k on Feb 7, 2011 8:09 PM

    Hi Raynard,
    I did not give this table PA0017 as this table did not have the value trip assigned (field TRVFL).
    Hi Sudhakar,
    Get a list of pernr for whom field TRVFL is blank from that table. Then for the derived pernr check in table PTRV_PERIO or PTRV_HEAD whether any trips are assigned.
    You will get the desired result. You either create a customised report or pick the values from the table in the backend.
    Trust this helps.
    BR,
    Raj

  • Send email only first time check box is checked?

    I am trying to set up an article insert form with a checkbox for requesting a photographer. I have it set up to send a photographer request email when the form is submitted and the checkbox is checked. The only problem is that on the update transactions it detects the checkbox checked and sends the email AGAIN. I can't delete the trigger from the update form since it may be checked for the first time there. What I am really looking for is a way to only send the email only the FIRST time a box is checked. Is there a way I might be able to get this to work? Or an easy workaround? Hopefully I am explaining this well. Any help or ideas would be appreciated. Thanks,
    -Dan

    Hi Dan,
    well, the only workaround I can think of would be adding this checkbox
    (assumingly submitting a Y/N value) to the insert/update transaction, means, to save the checkbox value in an extra (char 1) field named e.g. "email_sent" -- on your update page you can retrieve the current field value from the query and use this "status" as "condition" for sending an email, means, if the field´s value currently equals N, the email will be sent, otherwise not.
    would that make sense ?
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • IF CHECK BOX IS CHECKED

    I have a check box and need the next field (the date) to be
    filled out if the check box is filled out.
    i have four pages, a search page, a results page, a details
    (update) page and a update validation page. just not sure where or
    what to put in to make it go. stolen bike information is entered on
    the details (update) page.
    so now where and how do i make the stolen date required if
    the check box is selected?....lol. also if the box after that can
    be required if the first two are...lol
    As of right now they are updating the information if filled
    out but if i select the check box it does it without me filling out
    the date or report number.
    thanks in advance for any help you can give me...

    If you're going to make a field be required based on a client
    side event (checking a check box), then you have to use javascript.
    Since the stolen date field may be omitted if the checkbox is
    left empty, you wont want the date field to be required.
    Once the user attempts to submit the form, you will need a
    function to run to validate if the date field has been entered
    corresponding to the field with the checkbox. If the date field has
    not been filled out, then dont submit the form and throw an alert..
    If a value exists for the date field while the checkbox is checked,
    then submit the form.
    If you're unfamiliar with js, then you will have to run all
    of your validation on the server side, and notify the user of the
    errors after they have submitted the form.

Maybe you are looking for