MULTI ITEM ENTRY AT A TIME IN TABULAR FORM SUBMIT ONE TIME

MULTI ITEM ENTRY AT A TIME IN TABULAR FORM SUBMIT ONE TIME

No, it wasn't addressed to you but rather the OP - sorry for the confusion.
I try where possible to point out that without asking a sensible and clear question, posters are unlikely to get sensible and clear answers. A lot of time is wasted on this forum trying to get people to ask questions properly.
Cheers
Ben

Similar Messages

  • Enable/Disable item Based Value from Select in Tabular Form

    Hi Guys
    I want to Disable text field in Tabular form, Based on the Select List Item Value.
    Let's Say
    I'm having one select lista and text box in each record in tabular form.
    Select List having 2 items ... Add Text(return value 1) and No Text(return value 2)
    if value =1 then i want to enable text box , so user can enter value.
    if value=2 then text box won't allow to add text or will become disalbe.
    Please Help
    Thanks

    Hi,
    You can do this by using a small java script
    <script language="JavaScript" type="text/javascript">
    <!--
    function FldEnableDisable(pThis)
    if (pThis == 50)
      $x('P2_TEXT').disabled=true;}
    else
    { $x('P2_TEXT').disabled=false; }
    //-->
    </script>Here P2_Text is the text box whose value I am enabling or disabling based on the selected value from a List box. On The list box I have onChange="javascript:FldEnableDisable(this.value)" ( You can specify this under HTML Form Element Attributes)
    Thanks,
    Manish Jha

  • How to find the ID of the text item of the column in an tabular form

    Hello,
    I have created a tabular form report on emp table and made ONE OF THE COLUMN department_id as an text item using APEX_ITEM.TEXT APIs.
    My select query is
    select
    "EMPLOYEE_ID",
    "EMPLOYEE_ID" EMPLOYEE_ID_DISPLAY,
    "FIRST_NAME",
    "LAST_NAME",
    "HIRE_DATE",
    "JOB_ID",
    "SALARY",
    "MANAGER_ID",
    APEX_ITEM.TEXT(3,department_id,20,50,'readonly=true') department_id
    from "#OWNER#"."OEHR_EMPLOYEES"
    now how can i find the item ID?
    one more thing is that how would i reference this item in an javascript function.
    anyone plz help me out with this.
    thanks.

    Hi,
    Firstly, your link must include "this" to ensure that any javascript knows which link has been clicked. So, change:
    onclick="javascript:report();"to
    onclick="javascript:report(this);"Next, your javascript code must take this value and find the related DEPTNO item on the same row. The URL must pass to the popup page the name of the ID that needs to be updated - this is held in the f10 variable in the following script. This means that you popup page must be able to receive this value so that it can use it to update the DEPTNO item when a value is selected. Your popup page seems to be page number 4, so I will assume that you have a P4_ITEM_ID hidden item on that page for this purpose. So, the javascript on the main page would be something like:
    function report(x)
    var f10;
    var p = x.parentNode;
    while (p.tagName != "TR")
      p = p.parentNode;
    var inputs = p.getElementsByTagName("INPUT");
    var zz;
    for (zz = 0; zz < inputs.length; zz++)
      if (inputs[zz].name = 'f10')
       f01 = inputs[zz].id;
    var url;
    url = 'f?p=&APP_ID.:4:&APP_SESSION.::::P4_ITEM_ID:' + f10;
    var w = open(url,"winLov","Scrollbars=1,resizable=1,width=450,height=600");
    if (w.opener == null)
       w.opener = self;
    w.focus();
    }So, when the user clicks a link, the report() function is called and the object clicked is passed as a parameter. The script then starts from this object and goes up to the TR tag that the link is on. From here, it finds all INPUT items and then looks at those to find one that has a name attribute of "f10". When it finds it, it stores the ID of that in the "f10" variable. It then constructs a URL using this variable which is set into the P4_ITEM_ID hidden item on the popup page.
    I don't know what your javascript is on the popup, but it would need to get the value out of P4_ITEM_ID to see which main page item needs updating. This could be something like:
    function passBack(val)
      var id = $v('P4_ITEM_ID');
      opener.document.getElementById(id).value = val;
      window.close();
    }This script looks in the P4_ITEM_ID hidden item and gets its value - this will be the ID of the item to update on the main page. It then does the update and closes the popup.
    Andy

  • How to generate specific # of items in tabular form from one item

    Looking to display or render additional elements to a tabular form based on the number entered in a quantity field. ie. if someone orders 10 items, I would like to have 10 tabular items display on blur, so the operator can enter the data in those fields for the 10 items. Then of course I need all items processed on submit.
    Is there a way to do this so the # of line items are rendered after a quantity has been entered to match or is this something that would have to be done with display values and a set number of items already on the page?
    Thanks

    Hi Naresh,
    You need to use Billing Plans for Service Contracts Scenario to create BRI items.
    In the Billing Plan - you can assign whether it is a Periodic Billing or Milestone Billing. Then you need to assign this billing plan to item categories. So based on the period (monthly,quarterly,yearly) - the BRI items will be generated.
    So Please try using Billing Plans for your scenario. As you mentioned earlier, you are using ECC for all Billing purposes. So the system will create one Debit Memo Request document per Contract and it will each line item for each of the BRI's in Service Contract. System will not generate one DMR per BRI item.
    You can check the BRI items generated at the item level --> Billing Plan Tab page (Assignment Block in Web UI).
    Hope this helps.
    Regards,
    Siraj

  • Add row button on tabular form works from time to time

    Hi!
    we have two environments (dev & prod) with 10gR2 and APEX 3.2.1.00.12 (installed from one and only setup file)
    we have developed application on dev and moved it to prod,
    and on prod it was discovered that - from time to time (not always) -
    when you press 'add row' button on tabular form,
    tabular form does not display new record on the page,
    if number of records exceeds number of records allowed to show
    (i.e. with 10 records maximum it works fine when you add records from 1 to 10 and can't add record 11)
    but - interestingly - increases number of rows in pagination by 1
    (e.g. "rows 10-20 of 35" changes to "rows 10-20 of 36").
    on dev this tabular form works correctly.
    what is it and how to heal it?..
    I recall I had same issue in prior releases (3.0 - 3.1), is it known issue?

    It seems to be true:
    - if there is ascending order on columns which fields are null in new line (have no default value), new row is visible in current "pagination" page
    - but if there is DEScending order OR ANY sort order is set on columns which fields are NOT null in new line (have default value), new row is NOT visible in current "pagination" page
    thank you!

  • Supplier form Personalization - One Time Flag

    form personalization on supplier window
    Forms Personalization to check one time flag
    I have performed below steps to default the one time flag on supplier window for a custom reponsibility
    1.Open the Suppliers and the Forms Personalization windows.
    2. Seq=1, Description: Activate One_Time flag
    3.Level = Function
    Condition:
    Trigger Event = WHEN-NEW-RECORD-INSTANCE
    Trigger Object = VNDR
    Condition = :SYSTEM.RECORD_STATUS = 'NEW'
    Actions
    Seq=1, Type = Property
    Description = One Time
    Object Type = Item
    Target Object = VNDR.ONE_TIME_FLAG_MIR
    Property Name = VALUE
    Value= Y
    4.In the Context area entered the custom responsibility to be affected by this personalization.
    5.Save your work and close all windows. Using the responsibility on 4, open the suppliers window again, go to the Classification tab and see if it is checked.
    Issue is
    when i open the supplier form it shows One Time Flag as checked
    and I entered the supplier details and save the record .
    from Find Supplier window when I query that particular supplier it shows One Time Flag as unchecked i.e ('N')
    can you help me reg this issue ?

    You can do one personalization at the form level without any scope
    And then in the condition clause you can say
    fnd_global.resp_id in (select responsibility_id from fnd_responsibilty_tl where RESPONSIBILITY_NAME in ('PAYABLE MANAGER','Payables', etc....))
    This will make the personalization kick in only for the responsibilities you enter in the where clause above.
    Hope this answers your question
    Sandeep Gandhi
    Independent Consultant
    513-325-9026

  • Tabular Form - submit custom data and insert/update records

    I have a tabular form with 2 columns representing table data and 5 more custom columns.
    Task ID
    Task Name
    10/7/2013 to 10/13/2013
    10/14/2013 to 10/20/2013
    10/21/2013 to 10/27/2013
    10/28/2013 to 11/3/2013
    11/4/2013 to 11/10/2013
    1
    TASK1
    2
    TASK2
    3
    TASK3
    I use an sql which returns null values for columns 3 to 7. Then I use the html formatting option of apex and jquery to add change the headers to weeks and add checkboxes.
    My sql: select task_id, task_name, null week1, null week2, null week3, null week4, null week5 from <table name>
    My table has the columns task id, task name , start_date and end_date.
    When the user clicks the submit button, i need to send the checkbox data to my stored procedure and insert records into the corresponding table. I am unable to find out how to send a mapping of the task_id, date headers in each column and the checkbox data to apex back end and process them. For example, if the first check box in first row is checked, i should insert a row with values "1, TASK1, 10/7/2013, 10/13/2013". I also have to read the data from the table and display it in the same format. Please let me know how to accomplish this in apex.

    instead of using null, you can use apex_item api to create check boxes
    read http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CHDDCHAF
    you can set the value of check boxes using apex_item api and then the value can be captured in your process
    check this: Martin Giffy D'Souza on Oracle APEX: APEX Report with checkboxes (advanced).
    let me know if this answers your query in the current thread
    Regards,
    Vishal
    Oracle APEX 4.2 Reporting | Packt Publishing
    Vishal's blog

  • How to save more than 2 records at a time in tabular form?

    I have a table name SAMPLE_TABLE, which has SNO,NAME items and one sequence name is SEQ_SAMPLE.
    i have one form based on SAMPLE_TABLE. my form is in tabular format, which has 5 records.
    in the layout wizard only NAME is displayed. SNO doesnot displayed.
    in the layout wizard, there is one push button named as SAVE.
    the code of SAVE button(When_Button_Pressed) is
    insert into sample_table values(seq_sample.nextval,:sample_table.name);
    clear_record;
    commit;
    my problem is :
    when ever i want to save one record at a time there is no problem.
    if i want to save more than 2 records at a time then sequence number is alloted for last record. other records have no sequence numbers.
    for example i want to insert 2 names as XYZ,PQR then
    the table look like this:
    sno name
    1 PQR
    XYZ
    if SNO is primary key then it doesnot work because of null value.
    can any one solve my problem?
    Thanks
    Meegada

    Is the block a database block or a control block,
    1. if database block, assign the primary key on a
    trigger like new record instance for each record
    enteredour's is a control block, ididnt get your point clearly
    could you make it clear how to assign a primary key on a trigger
    our criteria is we are having two block as lov_values and lov_name
    lov_values:
    lov_values_id (sequence generated)
    lov_id will be same for the all the values for a particular lov_name
    lov_values will be which we enter in the form which will be the only visuble colums on the form
    lov_name block:
    lov_name
    lov_id(sequence generated)
    could you help me with the code
    thanks
    prasad

  • Multiple records displayed on form at one time- 2 lines for each record

    Hello,
    I have a canvas in which I want to display 8 records at at time, so in the data block I specified 8 as the "number of records displayed" value.
    However, the record has too many fields to display on 1 vertical line, so I want to split the fields into two separate lines, so there will still be 8 records but each in two lines.
    How do I do that?
    I'm using Forms 10g. The block is a database block using FROM CLAUSE QUERY , and the canvas is stacked.
    Thanks

    Sandy,
    You will need to set the "Distance Between Records" property for each item in the Multi-Record Block. This will increase the space between rows so you can stack them into two rows. Unfortunately, you can't set this property at the block - so you have to set it for each displayed item.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How do I import multiple responses from outside Forms Central into a form at one time?

    I created a survey in Word, used Adobe to make into a fillable pdf, emailed it to the prospective respondents, and I have received many emailed responses.  I have uploaded my original form to Adobe Forms and now I would like to upload those responses into Forms Central to make use of its reporting capabilities.  How can I import all of my repsonses into Forms Central?  

    Hi,
    I don't mean to hijack this thread, but Randy had mentioned a bug in Chrome regarding copy/paste. I've been searching for hours for a solution, but nothing on Google Chrome and c/p for the fillable area of a pdf document. Google forums have not yielded anything about fillable forms, so I'm hoping an Adobe forum would be more knowledgable.
    I have a fillable form online where the fillable area cannot be pasted into or copied out of while using Google Chrome. Note that the text already on the document can be c/p'ed. You can see it here: http://www.centralcallegal.org/eictaxcampaign/Coverform.pdf   This is a form for our self-help computer kiosks which use Google Chrome. The form is designed so users can copy and paste their own info into the cover sheet so there won't be any typos.
    Without looking at alternative methods of using the form (i.e. saved on desktop), is there a way to fix this copy/paste issue? It is definitely a Google Chrome issue, as c/p works fine in IE and Mozilla. Thank you.

  • Validating Tabular Form Column Against Value From Another Table

    Hi,
    I am brand new to this forum, so please bear with me a little!  I only have a small amount of experience writing PL/SQL, and I've never written Javascript or JQuery before.  I am an Oracle DBA, and I have coding experience in C and PERL, so I do have a solid technical background.  But, I need some advice on the best way to approach a problem.
    I have a database application in Oracle Apex (version 4.2) with a tabular form against a table: let's say Table #1 with cols 1A, 1B, and1C.  I need to ensure that the value entered into col B isn't greater than the value of a column in another table (let's say Table #2 col 2A).  Conceptually, the amount of money available is in Table #2, and the rows of my tabular form are an act of spending money (like orders or invoices), so I need to make sure we don't spend more than we have.  Does that make sense?
    Does anyone have any advice for the best way to do this?  I'm figuring the biggest issue here might be that we have to account for people entering mutliple rows in the tabular form at one time, right?  So, if a person entered 3 orders/invoices, I need a total to make sure they didn't spend more than we have in Table #2.
    I greatly appreciate your help! 
    Best Regards,
    Laurie Baublitz

    Hi!
    You need one process of type ajax callbacks like:
    DECLARE
       l_limit nubmer;
       l_number1 number := apex_application.g_x02;
       l_returnValue VARCHAR2(200);
    BEGIN
       select A2 into l_limit from table2;
       if l_number1 > l_limit then
          l_returnValue := 'LIMIT IS NOT SO BIG';
          if l_returnValue is not null then
             --this will write l_returnValue to the buffer, and the ajax callback will receive this
            htp.p(l_returnValue);
          end if;
      end if;
    END;
    Then you need one javascript on page, code is something like:
    $('input[name=your column in tabular which is change]').live('change', function(){
       //if value of changed field differs from an empty string
       if($(this).val()!=''){
          //put target element in a var to reference it in the ajax success callback
          var num  = $('input[name=your column in tabular with value]');
          $.post('wwv_flow.show',
                 {"p_request"      : "APPLICATION_PROCESS=your ajax callback function",
                  "p_flow_id"      : $v('pFlowId'),
                  "p_flow_step_id" : $v('pFlowStepId'),
                  "p_instance"     : $v('pInstance'),
                  "x01"            : $(this).val(),
                  "x02"            : $(num).val()
                  function(data){
                     if(data !=''){
                     alert(data);
    I can not guarante that code is 100% working, if not you need to do some changes or make an example on apex.oracle.com and provide credentials here.
    Regards,
    drama9346

  • Conditionally disable items in tabular form

    I built a tabular form . One of the column has dropdown called 'Type'. If users select type 'R' i want to disable 2 fields(text3 and text4) and in type is 'P' i want to disable other 2 fields(text5 and text6).
    I started off by including the foll. in the HTML header for page
    <script language="JavaScript1.1" type="text/javascript">
    function disableItem(pThis) {
    //alert(html_SelectValue(pThis));
    var l_soft = (html_SelectValue(pThis)== 'R');
    html_disableItems(l_soft,'TEXT3','TEXT4');
    </script>
    In the Column Definition of LOV, I added the onchange="javascript:disableItem(this);" for Element Attributes.
    The problem is, this code is disabling column header for TEXT3 and TEXT4 rather than disabling the fileds. Can someone help me to make this work.
    Thanks in advance.

    I'm using a similar thing in my app and it works fine. I have the disableFields() function in HTML header. Then in footer, I have something like:
    <script language = "javascript">
    if($x('type').value=="P" || $x('type').value=="R")
    {disableFields();}
    </script>
    Make sure the item named "type" is a select list with submit, and there is a page branch going to the same page. Also, in javascript, everything is case sensitive...make sure ur item names are in the proper case.

  • Select item on a Tabular form with a different dynamic LOV on each row

    I would like to use a tabular form where one of the columns is a dynamic LOV based Select, and where that dynamic LOV refers to one of the column values on each row.
    So if the tabular form represented a list of teams and the LOV-based Select column was the current team leader, I would want that select list to be populated only with the members of that team (different for each row). Since the list of team members is in some other table (all_players or something) I would want to populate the LOV with a query with a where clause that selected only those players records with a team-membership equal to the current tabular form's team id. So, on each row that select list's contents would be different.
    -- Justin

    I'm beating a dead horse here but I did get something to work with "less" code. My current needs do not require me to cascade drop downs, I only want 1. You can use the query like the in the first reply (but I don't have a table with joins) I created a simple two column table dept_emp with 4 records 10,null 20,null .... I want to fill the nulls with an employee but ONLY an employee that matches the dept. (Same concept of team leader and members).
    Here's the query:
    select apex_item.display_and_save(1,dept) dept,
    apex_item.select_list_from_query(2, name, 'select ename from emp where deptno='||dept) name
    from dept_emp
    I removed the code that was there already (ApplyMRU) and just put in this code:
    BEGIN
    FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
    UPDATE dept_emp
    SET
    name=HTMLDB_APPLICATION.G_F02(i)
    WHERE dept=to_number(HTMLDB_APPLICATION.G_F01(i));
    END LOOP;
    END;
    The G_F01 matches the column 1 and so forth. There's more documentation but little explanation at:
    http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/api.htm#sthref2171
    The thing I could not get to work was a dynamic message
    #MRU_COUNT# row(s) updated, #MRI_COUNT# row(s) inserted.
    Not sure when the MRU_COUNT gets populated (probably in the routine I removed ;))
    You're probably way past me by now but I like to have as little code as possible when it comes to maintaining an app. That's why I liked oracle forms so much. This kind of stuff was pretty easy to do.
    Thanks again everybody!

  • Failed validation highlights entire column in tabular form

    Hi,
    I have a tabular form where one of the field is a date field. I need to ensure that that the date selected or entered falls in the correct range of another page item P6_WEEK_ENDING. Here is my code.
    DECLARE
         last_week_fri      DATE;
         this_week_fri     DATE;
         in_range NUMBER:=1;
         ret_bool BOOLEAN := TRUE;
    BEGIN
         -- Get current end of week ID
         this_week_fri:= CONVERTDATE2(:P6_WEEK_ENDING);
         SELECT CONVERTDATE2(this_week_fri-7) INTO last_week_fri FROM DUAL;
         FOR i in 1..apex_application.g_f03.count LOOP
              IF apex_application.g_f03(i) IS NOT NULL THEN
                   CASE
                        WHEN CONVERTDATE2(apex_application.g_f03(i)) >= CONVERTDATE2(last_week_fri) AND CONVERTDATE2(apex_application.g_f03(i)) <= CONVERTDATE2(this_week_fri) THEN
                             null;
                        ELSE
                             in_range:=0;                    
                   END CASE;
              END IF;
              if in_range != 1 THEN
                   ret_bool:= FALSE;
                   EXIT;
              END IF;          
         END LOOP;
         return ret_bool;
    END;Where
    convertdate2 takes date format and outputs date in dd-mm-yyyy format.
    apex_application.g_f03(i) is the date field.
    Now it all works well except when my validation fails, it highlights the entire column instead of highlighting the only the bad entries.
    I have my execution scope as : Created and Modified Rows, tried changing it with no luck.
    Many thank.
    Environment: APEX.4.1.1 using Sand theme

    Taepodong ,
    I assume this is a validation. When you first created the validation, you either selected a page item or tabular form. If you selected the latter, you then selected the tabular form to which the validation would apply. On the next screen, you were asked to "Identify the validation level:" I am guessing that, at that point, you selected "Tabular Form Row" rather than "Column" The former will highlight the entire row, while the latter will only highlight the column which was specified.
    -Joe

  • Tabular Form Values

    Hi everyone,
    I currently developed a tabular form to track time against activities. For each week my hours are submitted into the database. I currently have a multi row update that inserts my hours into the designated table. I would like to know how to keep my hours in the database but at the same time set my values on the screen to '0.0' when I re-click into my week. Can anyone help me with this issue?\
    Thanks
    Ryan

    Hello Tealord,
    >> I'm using Application Express 3.2.0.00.27. Due to existing applications the business will not upgrade at this time to 4.
    The behavior you describe, and the problems that go with it, is the standard behavior of pre-V4.0 versions. It was very neatly resolved in APEX 4.0 but according to your post, you can’t upgrade, although the reason is not clear to me.
    This is not a simple problem to solve. In my book, in the chapter dedicated to Tabular Forms, there is a description of a possible solution, and the demo application that accompanies the book includes a demo page of the solution. Unfortunately, this is not a simple (or short) solution so I can’t display it in the forum. If it’s important, you should gain access to the book.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

Maybe you are looking for

  • Server crashes when someone logs in.

    I have a Windows 2008 R2 server, and every time someone logs in via Remote Desktop, or on the console, it crashes.  The only way to get it back is to power it off, and back on. It will continue to ping, but, file sharing, and all network services (it

  • Regarding excel download from ALV report tree

    Hi Experts, I have a ALV report tree program. In that i need the functionality to download report output in excel file. Can any body suggest how can i achieve download to excel functionality in it. Any useful suggestion will be appreciated. Thanks in

  • How to get Actual Price in Purchase Order

    Hello experts, Could you suggest me what FM (or table) can be used to get value for Actual Price in Purchase Order (tcode ME23N) on tab Conditions? I not found it in KONV table because this record does not has Condition Type. Thanks in advance.

  • XI Tuning Perameter

    Hi, Any one could you explaine me more about XI Tuning Perameter EO_INBOUND_PARALLEL EO_INBOUND_PARALLEL_SENDER EO_OUTBOUND_PARALLEL EO_INBOUND_TO_OUTBOUND Regards, Jayson

  • HT201071 A6000 RAW support OS 10.9 and Aperture

    Bought the sony A6000 but the ARW ( Raw format ) is not recognized by iphoto, Aperture.... My NEX5N , no problem at all, any update ?