FILL ONE  TABULAR FORM COLUMN FROM A FIELD IN ANOTHER REGION.

Hi,
I'm, using Oracle APEX 4.2. In one of my pages i have two regions. One of them has a text field and a button, and the another region with a tabular form.
http://apex.oracle.com/pls/apex/f?p=41771:2:14057730603424:::::
I want to enter some data into the text field and when I press the Button named Estado, just the rows checked change the value of the column Estado.
PLEASE HELP!
Thanks.
Eve

Dear Eve,
I have made a PL/SQL process called updatePAGObyEstado executed when the button pressed, with the following code
BEGIN
   for i in 1..apex_application.g_f01.count loop
     update PAGO
     set PAGO_ESTADO = :P2_VALOR
     where PAGO_ID = apex_application.g_f01(i);
   end loop;
   COMMIT;
END;Please, if this solves your problem, mark it as Correct.
Best Regards
Mahmoud

Similar Messages

  • Add Row on Tabular Form - column from read only to update/insert allowed

    APEX 4.2.2
    Newbie in the APEX forums, go easy please.
    I'm building a rather simple tabular form based on a table with a primary key (emp_number). Sounds like an Oracle tutorial but trust me, it's a real table. This table has, for this example's sake the following attributes:
    Table Name: EMP_EXCEPTIONS
    EMP_NUMBER      NUMBER (PK)
    UPDATE_EXEMPT VARCHAR2(1)
    I've used the Tabular Form wizard to create a nice looking tabular form page, all good and works as intended. Of course the primary key value is non update able by the wizard and that's by design - I've no need to update any primary keys. When I click the add rows button however, I'd like to be able to include the emp_number field as a input able field. At the moment, when I click the add rows button it inherits the property of the emp_number as read only. The user entering the new row would know the employee number and whether they were update_exempt or not. So rewinding my head in Oracle Forms, this would have been done by setting the row attribute as update allowed when the button is clicked. Is there such simple functionality in APEX and if so can you point me in the right direction?

    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!

  • More than one tabular form in a page

    Hi ,
    Is it possible to have more than one tabular form on a single page ?
    Just wondering since the no of updtable column is 50 ,
    will having 2 different tabular forms each with about 30 columns will cause an issue ?
    Thanks,
    Deepa

    Hi Dippy,
    Ok, yes, it seems you need then not to use tabular form because of that limitation.
    Btw, if you need to create so many Apex items, you may be can utilize wwv_flow_api.create_page_item
    if you dig out how to use it exactly, at least I always look inside Apex application export files.
    But I would reconsider the initial design. Place as many tabular forms on as many pages as you need, and create some kind of wizard.
    So, you fill in in the first page tabular form, then press Next, and so on. You may use collections for this.
    I think from user point of view it will be the same, and GUI will look much nicer.
    regards,
    Oleg
    Edited by: oleg.lihvoinen on Feb 19, 2010 11:44 AM

  • Changing tabular form column to checkbox

    I have a tabular form in 3.2. There is a column that is a text field, but really should be a checkbox. I have tried changing the region source to something like, select a, b, APEX_ITEM.CHECKBOX(3, PRIMARY FLAG) "PRIMARY_FLAG", d
    from my_table
    WHERE a = :P52_XPROD, but the column still shows up as a text field, displaying a value like "<input type="checkbox" name="...etc.
    Is it possible to change a tabular form column to a checkbox in 3.2?

    edit your report attributes, then edit your column and change "display as" to "standard report column"
    Thanks
    Tauceef

  • More then one tabular form

    Hi everybody,
    is there any way to put more than one tabular form into the same page ?
    When i am trying to do this, below error occures at the "*Page and Region Attributes*" step ...
    *1 error has occurred*
    Updatable SQL Query already exists on page 5. You can only add one updatable SQL query per page. Select a different page.
    thanks..

    Hello,
    What is your name?
    If you want to have more than one tabular form on a page, you'll need to process at least one of them manually. See Denes Kubicek's example here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:163
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Possible for more than one tabular form?

    According to everything I have seen in the forum, in the past there has been no way to have multiple tabular forms on a page, even in different regions.
    Can anyone tell me if this has changed for ApEx 3.0?
    How can I create a page with multiple tabular forms or reports? If it is possible, please tell me what is the method to accomplish this.
    Thanks,
    Maggie

    Thanks Leo,
    I will try.
    I have a (master or parent) table, FEATURES. A FEATURE may be found at one or more LAT_LONG_LOCATIONS (detail or child table). A FEATURE may also be found located in one or more STATES (detail or child table).
    I was actually trying to use the Master-Detail Wizard. But, I needed more than one Detail on the Master. Was looking for a Master-Detail-Detail. So after using the Master-Detail Wizard, I created another region and put another tabular report in it. Got my Master-Detail-Detail form. But both tabular form reports would not work.

  • Use value from tabular form column in the LOV where clause of another column

    Hi
    Using APEX 4.2 on 11g
    In a tabular form I want to filter the values in a Popup Key LOV based on the value of another column (same row).
    i.e. I want to get the value of one column and use it in the where clause for the Popup LOV on the same row.
    e.g. where COL 2 is a popup LOV
    COL 1
    COL 2
    1
    LOV SQL: SELECT a FROM b WHERE c = <value from COL 1>
    2
    LOV SQL: SELECT a FROM b WHERE c = <value from COL 1>
    3
    LOV SQL: SELECT a FROM b WHERE c = <value from COL 1>
    The value in COL 1 does not change once the row is created. It is a hidden ID field.
    Is this possible?
    Nick

    Anyone have any ideas?
    I thought getting the value from one column and using it in another column would be commonly used functionality... I just can't seem to work it out.

  • 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

  • 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!

  • Validation in Tabular form column

    Dear All,
    i am using tabular form (Apex 4.1) to create new project users.
    i want to apply validation on column of tabular form.
    i have multiple entry in tabular form .i want to iterate throuh all records to check validation but my code is not iterating in to all record of columns.
    where i doing wrong.
    my code is
    DECLARE
    D DATE;
    BEGIN
    SELECT START_DATE INTO D FROM PA_PROJECTS_ALL WHERE PROJECT_ID=:F104_RESOURCE;
    FOR i IN 1 .. apex_application.g_f09.COUNT
    LOOP
    IF apex_application.g_f09(i) >=D THEN
    RETURN TRUE;
    END IF;
    RETURN FALSE;
    END LOOP;
    END;How can i iterate my loop if 2 and 3 row record not satisfying this condition
    apex_application.g_f09(i) >=D .How can i do this.
    Thanks

    DECLARE
    D DATE;
    B  BOOLEAN := FALSE; -- Added
    BEGIN
    SELECT START_DATE INTO D FROM PA_PROJECTS_ALL WHERE PROJECT_ID=:F104_RESOURCE;
    FOR i IN 1 .. apex_application.g_f09.COUNT
    LOOP
    --IF TO_DATE(apex_application.g_f09(i)),'DD-MON'YYYY' >=TO_DATE(D,'DD-MON-YYYY') THEN
    IF TO_DATE(apex_application.g_f09(i)),'DD-MON-YYYY' >=TO_DATE(D,'DD-MON-YYYY') THEN -- removed syntax error in this line
      --RETURN TRUE;
       B := TRUE;
    END IF;
    --RETURN FALSE; --commented
    END LOOP;
    RETURN B;
    END;This will iterate through the entire array, and if even one time it runs B:= TRUE it will return TRUE.
    Now all this assuming that the above code is a Condition on the Validation. If it is the Validation itself then TRUE Means Passed and False means failed. Check whether that is what you want.
    Regards,
    h5. Contrariwise, if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic. --Lewis Carroll                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to fetch the tabular form column value into page items

    Hi,
    I have created tabular form. I have set LOV for one column. Here my requirement is when i select the value from lov then it will fetch that value into page item.
    can any help?
    I am using apex 4.1
    Thanks
    vijay

    It's not so easy to make a dynamic action on a tabular form.
    The best thing you can do is to use the javascript API from APEX: http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm
    So if you have a tabular form then open your item and make it a column link.
    In the link location select URL.
    Your URL would be something like this
    javascript:$s('P1_PAGE_ITEM', #COLUMN_ID#);doSubmit('COLUMN_ID');The doSubmit is not required but if you don't submit your page then the server would never know about your page item.
    Off course it is possible to submit at a later point. For example you can just use the $s to set the value off an item and afterwards create a button that would submit your page.
    Be aware that if you just set the value off your page item and just link to an other page without submitting or without branching that other page would never know about your page item.
    If you want the server to know the value off a page item you need to submit it's value to the server. The easiest way is just to do the doSubmit() call after you have set your value.
    Hope this helps,
    Regards
    Nico

  • Tabular Form Populate from a query of other tables

    I am sure this can be done but we are especially new to Master-Detail relationships in Apex and to Tabular Forms (updateable reports).
    We are trying to populate a tabular form (updateable report) with values from a query. The user is simply going to click yes/no per row and then we need to insert those rows into a table..
    I tried following the logic of creating a Master-Detail relationship, and noticed the AddRow Button and the process to add rows to the Tabular Form. I also noticed several MRUUpdate processes that fire to update existing rows.. I am assuming that I need to first add the number of rows that the query which populates the tabular form pulls in and then update the rows after that. I tiried doing a count and storing the value in a Page Text Field/Hidden Field and then in the AddRows to the MRU I put the field name with & and . around it. That did not work (it could not add rows and came up with an ora-6502 error) , I then tried to put a : in front of it and that failed too.
    Any suggestions on how to proceed.
    Thank you in Advance,
    - Brian

    Here is the issue quickly... I am trying to create a Master/Detail Screen. The master record always inserts, the details are populated from a query into a tabular form/updateable report and always inserts. The user will check certain details and the checked details will be marked as Y, unchecked marked as N and saved to the detail table. And tried to do some research into the issue..
    Possible Solutions I found where: 1) http://htmldb.oracle.com/pls/otn/f?p=31517:170:2680852007789839::NO:::&success_msg=0%20Row(s)%20Updated%2C%202%20Row(s)%20Inserted.%2F838A7BC908323107AD95920713AFD5FD%2F and 2) http://www.inside-oracle-apex.com/checkboxes-in-tabular-forms-the-easy-way/
    I went with 1).. but modified the code and simplified it since I always know that I should be inserting..
    I am trying to insert into a table called bd45vbjbsel
    CDSELECTED VARCHAR2(1)
    CDBILL VARCHAR2(20)
    NUXRBILL NUMBER
    NATITLE VARCHAR2(500)
    CDMEMBER VARCHAR2(20)
    DECRITERIA VARCHAR2(500)
    NUCRITERIA NUMBER
    NUXRBSELECT NOT NULL NUMBER
    NUXRBSEL NOT NULL NUMBER
    NATXNORGUSER NOT NULL VARCHAR2(20)
    DTTXNORIGIN NOT NULL TIMESTAMP(6)
    NATXNUPDUSER NOT NULL VARCHAR2(20)
    DTTXNUPDATE NOT NULL TIMESTAMP(6)
    CDSTATUS NOT NULL VARCHAR2(1)
    My Tabular Form Select is:
    select apex_item.checkbox (1,
    '#ROWNUM#',
    'onclick="highlight_row(this,' || ROWNUM || ')"',
    NULL,
    'f01_' || LPAD (ROWNUM, 4, '0')
    ) cdselected,
    cdbill, nuxrbill, natitle, cdmember, decriteria, nucriteria , 0 NUXRBSELECT, 0 NUXRBSEL, USER NATXNORGUSER, systimestamp DTTXNORIGIN, USER NATXNUPDUSER, systimestamp DTTXNUPDATE, 'A' CDSTATUS from
    (select nuxrbill, nubill, cdbill, natitle, cdmember, nurevision, MAX(NUREVISION) OVER (PARTITION BY NUBILL) nurevisionmax,
    CASE
    WHEN INSTR(':'||:P200_NUXRBILL||':',':'||NUXRBILL||':') > 0 THEN 'BILL# MATCH'
    WHEN INSTR(':'||:P200_NUXRBILLCAL||':',':'||NUXRBILL||':') > 0 THEN 'CALENDAR# MATCH'
    WHEN INSTR(':'||:P200_CDCOMMITTEE||':',':'||CDCOMMITTEE||':') > 0 THEN 'COMMITTEE: '||CDCOMMITTEE
    WHEN INSTR(':'||:P200_CDMEMBER||':',':'||CDMEMBER||':') > 0 THEN 'MEMBER: '||CDMEMBER
    WHEN INSTR(':'||:P200_DESUBJECT||':',':'||DESUBJECT||':') > 0 THEN 'SUBJECT MATCH'
    WHEN INSTR(':'||:P200_DTCOMAGNDA||':',':'||DTCOMAGNDA||':') > 0 THEN 'COMMITTEE AGENDA: '||DTCOMAGNDA
    WHEN INSTR(':'||:P200_CDPRIORITY||':',':'||CDPRIORITY||':') > 0 THEN 'PRIORITY: '||CDPRIORITY
    ELSE NULL
    END DECRITERIA,
    CASE
    WHEN INSTR(':'||:P200_NUXRBILL||':',':'||NUXRBILL||':') > 0 THEN 1
    WHEN INSTR(':'||:P200_NUXRBILLCAL||':',':'||NUXRBILL||':') > 0 THEN 2
    ELSE 3
    END NUCRITERIA
    from BM46BILL
    where cdstatus = 'A'
    AND ( INSTR(':'||:P200_NUXRBILL||':',':'||NUXRBILL||':') > 0
    OR INSTR(':'||:P200_NUXRBILLCAL||':',':'||NUXRBILL||':') > 0
    OR INSTR(':'||:P200_CDCOMMITTEE||':',':'||CDCOMMITTEE||':') > 0
    OR INSTR(':'||:P200_CDMEMBER||':',':'||CDMEMBER||':') > 0
    OR INSTR(':'||:P200_DTCOMAGNDA||':',':'||DTCOMAGNDA||':') > 0
    --OR (:P200_CDACTIVE = 'Y' AND
    OR INSTR(':'||:P200_DESUBJECT||':',':'||DESUBJECT||':') > 0
    OR INSTR(':'||:P200_CDPRIORITY||':',':'||CDPRIORITY||':') > 0
    ) a
    where a.nurevision = a.nurevisionmax
    I created an Anonymous PL/SQL Block Process called InsertMRU which fires right when a SUBMIT button is pressed after the Master information is inserted, the code for it is...
    DECLARE
    v_insertcount NUMBER := 0;
    v_updatecount NUMBER := 0;
    BEGIN
    :p200_detail_update := apex_application.g_f02.COUNT;
    FOR i IN 1 .. :P200_NUCOUNT -- Number of records pulled in from query.
    LOOP
    INSERT INTO bd45vbjbsel
    (cdselected,
    cdbill,
    nuxrbill,
    natitle,
    cdmember,
    decriteria
    VALUES (apex_application.g_f01 (i) -- cdselected
    apex_application.g_f02 (i) -- cdbill
    apex_application.g_f03 (i) -- nuxrbill
    apex_application.g_f04 (i) -- natitle
    apex_application.g_f05 (i) -- cdmember
    apex_application.g_f05 (i) -- decriteria
    commit;
    v_insertcount := v_insertcount + 1;
    END LOOP;
    :p200_detail_insert := v_insertcount;
    END;
    I am getting an ORA-01403 No Data Found error when submitting..
    Even though I am manually inserting the records do I still need to store the MD5checksum?
    Could there be another reason why I am getting a no data found on submit?
    Thank you again in advance...
    -Brian

  • Tabular Form Columns

    Hi,
    It is posible to have a column in a tabular form defined as display only , but when the 'add row' button is pressed the new row to have that field coresponding to diplay only column , updatable.

    You can try and make that column on all rows except the new row ready-only, through javascript.

  • BOXI3.0: Formula for subtract/deduct one day or more from date field

    Greetings. Its Alias.
    I have one question. Actually I already post this question but at designer forum.
    I am using SQL.
    Example I have Order Date field and from this field I want to subtract the date by minus one day or two days or three days, etc.
    I got the solution for designer (example):
    DATEADD (dd , -3, EPJ_IPMS.dbo.DO_DATA.DO_DATE_D)
    But at webi level it does not work.
    I also do not understand why at designer and webi level may have different SQL select statement.
    Can someone help me please.
    Best regards,
    Alias

    Hi there Prashant.
    In my case here is I am using Microsoft SQL Server Enterprise Manager and the data is save inside it.
    The Designer and Webi are using same SQL database.
    I also created an Object at Designer and the result is good.
    But say if I don't want to create the object at Designer and let user create their own variables at webi.
    Meaning to educate user to put the variable and formula themselves.
    This is where the SQL statement a I mentioned earlier cannot be used at webi.
    Best Regards,
    Alias

  • Problem filling out a form exported from pdf to docx.

    I "successfully" exported a pdf form to word docx.  The form looks exactly like the original.  However, when I attempt to fill in the blanks (which are large)  the text gets dropped in vertically e.g.  first name la
                                                    st name (on a lower line).  I have no idea what I'm doing wrong.  Filling out this form is urgent, and the only reason I purchased this program.  Any advice will be appreciated.

    Hi Catherine,
    I'd like to assist!
    The file may have converted as an image, possibly due to poor quality.
    Are you able to bring the words together by utilizing your 'back' key?
    Let me know how it goes if you try converting it again.
    Kind regards, Stacy

Maybe you are looking for

  • Smartforms emailed as PDF but can't be opened

    Hello all, Several of our SAP users will do a 'Print Preview' of a document to their screen. We are using Smartforms for this. Then they will click on the 'Send e-mail' button and send the document to their email address. It comes to their email as a

  • Control panel added to start page

    On Windows 8.1 and Server 2012R2 I can add a link to the control panel and the command prompt to the start page. couldn't see that I was able to do that in Windows 10 tech preview

  • Finding out the sales tax type using the Fun. Module-ME_PO_PRICE_SIMULATION

    HI,    I have used the function module ME_PO_PRICE_SIMULATION to give the pricing details in one report.  In the same function module it is also giving the tax applicable for the vendor-material-site combination. ie., tax code and the tax. procedure.

  • Aperture crashes with "own" book-formats

    hi there i'm trying to set up a new book-format in aperture 3.6 / yosemite 10.10 somehow, aperture crashes every time i activate the new format... any help on this? it worked fine for years now - but updating to yosemite seems to have ruined this fea

  • How to  write  internal table data vertically . Records vertically.

    Hi pals,       How to write internal table records vertically . suppose the records are a1 a2 a3 b1 b2 b3 we need to display a1  b1 a2  b2 a3  b3 Thanks in advance. balaji.T