Keep coursor position row number 5 in tabular forms.

Hi all,
I am facing some problem , In tabular forms there are around 10 rows.
I want to keep cursor position in number 5 position. Data moves up and down by pressing up and down key but always cursor remain in 5th position. I think u get my point.
Thanks,
Md.Muniruzzaman Khan
Email : [email protected]

Ok it may not exactly what you want but it's really close.
put on your block a hey-up and key-down trigger with the following code
declare
     counter NUMBER(10);
begin
if :system.cursor_record < 5 then
     go_record(5);
else
     -- suppose you have 10 records displayed you can make it dynamic by retrieving the block's displayed record and round(num/2)
     -- instead of the fixed 5
     SCROLL_DOWN;
     counter := :system.cursor_record;
     go_record(counter+5);
end if;
end;
hope you can do something with this

Similar Messages

  • Add row in manually created tabular form

    Hi,
    I have created a manual tabular form in one of my pages, as I need 2 tabular forms.
    In my manual tabular form i have used collection, so while adding a row into it, the whole page get submitted.
    Do some have any idea how to add a row without refreshing the page, also kindly let me know all the steps for it, as I am new to Apex.
    Thanks,
    Rupak

    Hi Kiran,
    My code for tabular form is as below:
    SELECT apex_item.checkbox (40,
    seq_id,
    'onclick="highlight_row(this,' || seq_id || ')"',
    NULL,
    'f40_' || LPAD (seq_id, 4, '0')
    ) DELETE_CHECKBOX,
    APEX_ITEM.hidden (41, seq_id)
    ||
    APEX_ITEM.TEXTAREA (42,
    c001,
    5,
    80,
    'f42_' || LPAD (seq_id, 4, '0'),
    NULL) Major_Risks_Issues,
    APEX_ITEM.TEXTAREA (43,
    c002,
    5,
    80,
    'f43_' || LPAD (seq_id, 4, '0'),
    NULL) Mitigation_Plan_Action,
    APEX_ITEM.SELECT_LIST (44,
    c003,
    'Open;Open,Closed;Closed',
    'f44_' || LPAD (seq_id, 4, '0'),
    NULL) Status,
    APEX_ITEM.hidden (45,
    c004,
    'f45_' || LPAD (seq_id, 4, '0'),
    NULL) RISK_ID
    FROM apex_collections
    WHERE collection_name = 'COLLECTION_GT'
    UNION ALL
    SELECT apex_item.checkbox (40,
    NULL,
    'onclick="highlight_row(this,' || TO_NUMBER (9900 + LEVEL) || ')"',
    NULL,
    'f40_' || LPAD (9900 + LEVEL, 4, '0')
    ) DELETE_CHECKBOX,
    APEX_ITEM.hidden (41, NULL)
    ||
    APEX_ITEM.TEXTAREA (42,
    NULL,
    5,
    80,
    'f42_' || LPAD (9900 + LEVEL, 4, '0'),
    NULL) Major_Risks_Issues,
    APEX_ITEM.TEXTAREA (43,
    NULL,
    5,
    80,
    'f43_' || LPAD (9900 + LEVEL, 4, '0'),
    NULL) Mitigation_Plan_Action,
    APEX_ITEM.SELECT_LIST (44,
    NULL,
    'Open;Open,Closed;Closed',
    'f44_' || LPAD (9900 + LEVEL, 4, '0'),
    NULL) Status,
    APEX_ITEM.hidden (45,
    NULL,
    'f45_' ||LPAD (9900 + LEVEL, 4, '0'),
    NULL) RISK_ID
    FROM DUAL
    WHERE upper(:request) = 'ADD'
    CONNECT BY LEVEL = 1
    My Code for adding a row is as below:
    DECLARE
    vupdatecount NUMBER := 0;
    vinsertcount NUMBER := 0;
    BEGIN
    FOR ii IN 1 .. apex_application.g_f41.COUNT -- SEQ_ID
    LOOP
    -- if it's an existing record
    IF apex_application.g_f41(ii) IS NOT NULL -- contains SEQ_ID
    THEN
    apex_collection.update_member (p_collection_name => 'COLLECTION_GT',
    p_seq => apex_application.g_f41
    (ii),
    p_c001 => apex_application.g_f42
    (ii),
    p_c002 => apex_application.g_f43
    (ii),
    p_c003 => apex_application.g_f44
    (ii),
    p_c004 => apex_application.g_f45
    (ii)
    vupdatecount := vupdatecount + 1;
    ELSE
    apex_collection.add_member (p_collection_name => 'COLLECTION_GT',
    p_c001 => apex_application.g_f42
    (ii),
    p_c002 => apex_application.g_f43
    (ii),
    p_c003 => apex_application.g_f44
    (ii),
    p_c004 => apex_application.g_f45
    (ii)
    vinsertcount := vinsertcount + 1;
    END IF;
    END LOOP;
    END;
    Kindly look into this and let me know if any thing is wrong here.
    Regards
    Rupak

  • How to identify rows to update on tabular form?

    Application Express 3.2.1.00.10
    Hello!
    I have a tabular form in my application that I created through the wizard. The form is based on a table with a primary key and a trigger to populate the next key upon insert, so as a result going through the wizard was not a problem. It created page processes for ApplyMRU, ApplyMRD, AddRows, etc. I'm curious how APEX knows which row is updated without the user having to select the checkbox and clicking Submit. It seems the checkbox is only for cases where the user wants to delete a record.
    I want to be able to replicate this in another tabular form page which I am manually creating, although it will be based on a view without a PK (which I had to "fake" by concatenating unique identifying columns). In this form page, when I make attempt to make an update to a record, nothing happens in the database, unless I actually check a checkbox and click on Submit. How do I get around having the user to click off records to update? I want the form to just accept changes, and "know" which records to update in the table, similar to how APEX does it out of the box.
    Any ideas? Thanks!

    Denes,
    I tried as you have suggested, but for some reason, it doesn't seem that any action is taking place. Either the column arrays are empty or apex_application.g_f01(i) does not have a value. I've verified that none of the records in the database have changed. Any ideas?
    The Process Success Message is set to:
    Changes successful. &P7_REC_UPDATE_COUNT. records updated.  &P7_REC_INSERT_COUNT. records inserted. ... and it shows Changes successful. 0 records updated. 0 records inserted.
    This is the Page Process executed on submit of the "Submit" button:
    DECLARE
      v_return  NUMBER;
      v_msgcode NUMBER;
      v_message VARCHAR2(250);
      v_row     BINARY_INTEGER;
      v_insert_cnt INTEGER := 0;
      v_update_cnt INTEGER := 0;
    BEGIN
       FOR i IN 1..apex_application.g_f01.COUNT  LOOP
          IF  apex_application.g_f10(i) IS NOT NULL             -- CHECKSUM FIELD
             AND wwv_flow_item.md5 (apex_application.g_f01(i),   -- PK_COLUMNS
                                    apex_application.g_f05(i),   -- org_code
                                    apex_application.g_f07(i),   -- access_flag
                                    apex_application.g_f08(i),   -- external_flag
                                    apex_application.g_f09(i)   -- confid_ind
                                   ) != apex_application.g_f10(i)
          THEN
          ROLLBACK;
          RAISE_APPLICATION_ERROR(-20001,'Current version of data in database has changed '||
                                   'since user initiated update process.');                      
          RETURN;
        END IF;
      END LOOP;
      FOR i IN 1..apex_application.g_f01.COUNT LOOP
       IF apex_application.g_f01(i) IS NOT NULL THEN
         -- update existing record if PK value exists
         USER_SEC_UPDATE (I_ACTION        => 'U',
                          I_WK            => apex_application.g_f02(i),
                          I_USER_ID       => apex_application.g_f03(i),
                          I_ORG_CODE      => apex_application.g_f05(i),
                          I_ACCESS_FLAG   => apex_application.g_f07(i),
                          I_EXTERNAL_FLAG => apex_application.g_f08(i),
                          I_RPT_LEVEL     => NULL,
                          I_CONFID_IND    => apex_application.g_f09(i),
                          O_RETURN        => v_return,
                          O_MSGCODE       => v_msgcode,
                          O_MESSAGE       => v_message);   
         v_update_cnt := v_update_cnt + 1;
       ELSE
         -- insert new record if PK value doesn't exist
         USER_SEC_UPDATE (I_ACTION        => 'I',
                          I_WK            => NULL,
                          I_USER_ID       => apex_application.g_f03(i),
                          I_ORG_CODE      => apex_application.g_f05(i),
                          I_ACCESS_FLAG   => apex_application.g_f07(i),
                          I_EXTERNAL_FLAG => apex_application.g_f08(i),
                          I_RPT_LEVEL     => NULL,
                          I_CONFID_IND    => apex_application.g_f09(i),
                          O_RETURN        => v_return,
                          O_MSGCODE       => v_msgcode,
                          O_MESSAGE       => v_message);   
         v_insert_cnt := v_insert_cnt + 1;              
       END IF;
      END LOOP;
      :P7_REC_UPDATE_COUNT :=  v_update_cnt;
      :P7_REC_INSERT_COUNT :=  v_insert_cnt;
    END;

  • How to hide and show button based on if row is selected in tabular form

    Hi,
    Im pretty new to apex. I am using version 4.1. I have a tabular form and what i want to do is only have the delete button show if i select a row from the [row selector] column. Can this be done using a dynamic action? I have tried it that way unsuccessfully. Please help or let me know if you need any more information.
    Thanks

    Do you mean if the check box is selected in the row?
    Assign a static ID to the delete button, e.g. MY_DEL_BTN. Look for "Static ID" under the Attributes section of the button.
    If so, make an advanced Dynamic Action based on Click and a jQuery selector. Usually, this element is name "f01" but, you need to make sure. Assuming it is "f01" then your jquery selector would be:
    input[name="f01"]set the event scope to live.
    Your dynamic action will fire JavaScript. (BE SURE TO UNSELECT FIRE ON PAGE LOAD). To make sure you have the right jQuery selector, at first just put a pop up message in the JavaScript.
    alert('You Clicked the Row Selector!');Run the page. Click the row selector. If you get the pop up you have specified the jQuery selector correctly. Yay!
    Then, assuming the above is correct. You can now determine if any have been selected.
    Now, set it back to SELECT TO FIRE ON PAGE LOAD (You want the delete to be hidden when you first open the page).
    Change your JavaScript to this:
    var checkedCnt = $("input:checked").length;
    if( checkedCnt > 0 )
       $('#MY_DEL_BTN').show();
    else
       $('#MY_DEL_BTN').hide();
    };-Joe

  • Adding new row at top of tabular form In APEX 4.0

    I havea tabular form and when addrow() it is adding at bottom of the existing rows. Is there a way I can add new row at the top of the rows?
    Thanks.
    Edited by: Badari on Oct 19, 2011 12:07 PM

    Hi Raj,
    I'm trying to implement your solution to add the empty row of a tabular report to the top of the page but I can't get it to work. I've identified two errors in your code, namely
    1) semi-colon after mytable.moveRow(mytable.rows.length-2,1) is missing
    2) You say to use "ABC_REPORT" as the region id but you use "report_ABC_REPORT" in the code.
    I've fixed these but still I cannot get it to work.
    Could you check the code again and see if there are any other errors that we may have missed.
    thanks in advance
    PaulP
    <script language="JavaScript" type="text/javascript">
    function addTop()
      addRow();
      var mytable=document.getElementById("report_ABC_REPORT");
      mytable.moveRow(mytable.rows.length-2,1) // depending on the report template selected use either length-2 or length-1
    </script>

  • Adding a dummy row in the tabular form

    Hi
    'm an ApEX newbie.
    I'm in need to add a dummy row in between a tabular form to make it more appealing at the user end.
    A representation of my Tabular Form having 3 columns (i.e Sr No & Skill is of display only format and Remarks column is of text area) is depicted below:      
    Sr No Skill Remarks
    1     Java Language     
    2     Oracle Database     
    3     Oracle DBA     
    4     Oracle Pl Sql     
    5     Communication     
    6     Analytical Thinking
    7     Logical Thinking
    8     Attitude     Remarks
    9     Leadership Qualities     
    10     Business Understanding
    i need to add a dummy row (which will act as display only) between Sr No 5 & Sr No 6 as "General Evaluation". As shown below...
    Sr No Skill Remarks
    1     Java Language     
    2     Oracle Database     
    3     Oracle DBA     
    4     Oracle Pl Sql     
    5     Communication     
    "General Evaluation"
    6     Analytical Thinking
    7     Logical Thinking
    8     Attitude     Remarks
    9     Leadership Qualities     
    10     Business Understanding
    It would be of great help if any of you could help me out with this (with an detailed answer)
    Thanks in advance :)
    'm using ApEX 4.1

    901720 wrote:
    Hi
    'm an ApEX newbie.Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you have updated with your profile with a real handle instead of "901720".
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    (In particular it is essential to make it clear whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form) and if so, whether the tabular form is declarative&mdash;using only report attributes and a wizard generated MRU process&mdash;or manual&mdash;using <tt>apex_item</tt> calls in the query and custom processing&mdash;or some hybrid approach.)
    I'm in need to add a dummy row in between a tabular form to make it more appealing at the user end.
    A representation of my Tabular Form having 3 columns (i.e Sr No & Skill is of display only format and Remarks column is of text area) is depicted below:      
    Sr No Skill Remarks
    1     Java Language     
    2     Oracle Database     
    3     Oracle DBA     
    4     Oracle Pl Sql     
    5     Communication     
    6     Analytical Thinking
    7     Logical Thinking
    8     Attitude     Remarks
    9     Leadership Qualities     
    10     Business Understanding
    i need to add a dummy row (which will act as display only) between Sr No 5 & Sr No 6 as "General Evaluation". As shown below...
    Sr No Skill Remarks
    1     Java Language     
    2     Oracle Database     
    3     Oracle DBA     
    4     Oracle Pl Sql     
    5     Communication     
    "General Evaluation"
    6     Analytical Thinking
    7     Logical Thinking
    8     Attitude     Remarks
    9     Leadership Qualities     
    10     Business UnderstandingIt's not clear from the above what the required layout is: please see the information in the FAQ about posting code/formatted output.
    It would be of great help if any of you could help me out with this (with an detailed answer)With APEX we're fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues. We can then see exactly what you're really talking about.

  • Multi Row Update for Tabular Form

    1) I'm trying to understand how the built-in MRU works for tabular forms: While running through every row, does it check for changes before issuing an UPDATE or does it blindly UPDATE every row in the current pagination range?
    2) If I need to write my own Multi Row Update process for tabular forms, could someone give me some tips on how to do that?
    Thanks,
    Pavel

    1) It stored a checksum for each row that it renders. It calculates the checksum again before processing the rows. The UPDATE statement it issues has a predicate like where old_checksum!=new_checksumSo, it only updates the rows that have at least 1 column value that is different (causing the row checksum to be different)
    2) See the howto at http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html

  • Tabular form in oracle APEX

    Hi
    i have to create a tabular form by using table.i want a tabular form with 5 rows initially.if i click add button it should add 5 more rows to the existing tabular form.again 5 more rows when i click next time. after that the add button should disappear.can i get solution soon so that it will help for my project as i new to the APEX.
    THANKS IN ADVANCE

    Hello,
    With a process type of 'Add Rows to Tabular Form' there is a setting for 'Number of Rows' where you can specify how many rows you want to add at a time.
    As for hiding the button, you could approach this a couple of ways -
    1) Keep track using a page process of how many times the Add Row button has been pressed and then conditionally hide the Add Rows button when you hit your threshhold.
    2) Use Javascript to count how many items are on the page and then hide the button when you hit your threshhold.
    Hope this helps,
    John.
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

  • Dynamic Form in Tabular Form i.e SET VALUE

    Hi,
    I have an tabular form ,
    In which two column are there i.e username and department
    Just I wnt to know can dynamic action i.e SET VALUE CAN BE USED IN TABULAR FORM.
    AS I CHANGE THE USERNAME THERE PERSPECTIVE DEPARTMENT SHOULD CHANGE.
    can anyone help.

    Hello Trent,
    I too, am attempting to set the value of an item when another item is changed.
    I need to capture the APP_USER changing the row for each row changed in the tabular form when submitted.
    My table is in a remote database that is not allowed to have APEX loaded directly in the instance (or db link TO the APEX instance).
    Can’t get the APP_USER making the change at this level, as the APEX code is not there.
    The instance that hosts the APEX installation accesses the table via a view through a db link.
    Can’t use a trigger on the view to set the APP_USER using APEX functionality.
    Not desirable to re-invent the IUD wheel using instead-of triggers.
    The example you posted on http://apex.oracle.com/pls/apex/f?p=45448:11 is exactly what I need (even though your example sets the value on Lose Focus and I Set value on Change).
    I am attempting to implement the dynamic action for the item using your javascript, and am almost there....but not quite. The dynamic action is updating the target item in ALL the rows in the tabular form, not just the one that is being changed.
    This, I am sure, is due to my inexperience with Dynamic Actions, jquery syntax, and the javascript API’s for APEX. I believe I know what the issue IS, I’m just not sure how to work around it.
    Please note: I attempted to download your example at the above website (turning off popup blockers), but had no success (I got the thank-you for downloading message, but have no clue what was downloaded to where). I was hoping to compare your form Dynamic action with mine to see where I went wrong.
    If you could please, review the following and:
    1)     let me know what might be different from your working example?
    2)     provide info on how to get your working form downloaded (such a tease to have the download link there and not get it to work ;0} ) , please?
    The following shows the html from view source for a row in my tabular form. This will help you get an idea of the items. The actual number of rows in the form is about 50.
    <table cellpadding="0" border="0" cellspacing="0" summary="" class="report-standard">
    <tr class="highlight-row">
    <td headers="CHECK$01" class="data">
    <label for="f01_0002" class="hideMe508">CHECK$01</label>
    <input type="checkbox" name="f01" value="2" class="row-selector" id="f01_0002" />
    </td>
    <td headers="JOBNO_DISPLAY" class="data">X111Y2222</td>
    <td align="center" headers="DEPR" class="data">
    <label for="f03_0002" class="hideMe508">DEPR</label>
    <input type="checkbox" name="f03_NOSUBMIT" value="1" id="f03_0002_01"
    onClick="if (this.checked) {apex.jQuery('#f03_0002').val('1');}
    else {apex.jQuery('#f03_0002').val('');}" />
    <input type="hidden" name="f03" value="" id="f03_0002" /></span>
    </td>
    <td headers="UPDUSER" class="data">
    <label for="f04_0002" class="hideMe508">UPDUSER</label>
    <input type="text" name="f04" size="16" maxlength="2000"
    value="MOMSDAT" id="f04_0002" />
    </td>
    <td headers="DERIVED$01" class="data">MOMSDAT</td>
    <td headers="UPDDATE" class="data">13-DEC-11
    <label for="f02_0002" class="hideMe508">JOBNO</label>
    <input type="hidden" name="f02" value="X111Y2222" id="f02_0002" />
    <input type="hidden" id="fcs_0002" name="fcs"
    value="DB31F7B9ED99E6A2F7295F6B7D236409">
    <input type="hidden" id="frowid_0002" name="frowid"
    value="AAATI3AAGAAAAIXAAo" />
    <input type="hidden" id="fcud_0002" name="fcud" value="U" />
    </td>
    </tr>.....
    <tr>.....</tr>
    </table>
    To help explain:
    I have a checkbox associated with array name f03_NOSUBMIT,
    This checkbox OnClick updates a hidden item associated with array name f03. The hidden item is linked to the depr column of my view/table (this functionality is straight from Oracle’s tabular checkbox wizard – works great, no problems).
    When the check box is changed, I need to capture the APP_USER value in the UPDUSER field associated with the f04 array (nice that the array names matched up with your example :0} )
    To do so, I created a dynamic action:
    Name: Set_Upduser
    Sequence: 10 (it’s the only DA)
    Event: Change
    Select Type: jQuery Selector
    jQuery Selector: input[name=”f03_NOSUBMIT”]
    --note: the event does not fire if I use f03
    --since that value is not actually
    --changed until submit with this
    --method.
    Condition: - No condition –
    True Actions:
    Sequence: 10
    Action: Set Value
    Fire When Event Result is: True
    Fire On page Load: Unchecked
    Stop Execution On Error: Checked
    Set Type: JavaScript Expression
    JavaScript Expression:
    var row = $x_UpTill(this.triggeringElement, 'TR');
    var otherElement = $('input[name="f04"]',row)[0];
    otherElement.value = '&APP_USER.';
    Selection type: jQuery Selector
    jQuery Selector: input[name="f04"]
    This ALMOST works...
    When I run the page and click on just one check box, the UPDUSER fields are updated with the APP_USER for ALL the records, not just the row for the checkbox I clicked. And, if I submit the changes, ALL the records in the table now have the APP_USER in the UPDUSER column. Not just the column where the check box was changed (Which would be expected since all the values are changed in the form – hey, the submit part works :0} ).
    Your example at http://apex.oracle.com/pls/apex/f?p=45448:11 works, setting the value for the target field only for that row. If I can get mine to work the same way, I will be good to go (as in hog-heaven, doing the Snoopy Supper-Time dance).
    I am thinking my issue is with the row identification in the
    --- var otherElement = $('input[name="f04"]',row)[0];
    I seem to not be picking up the row value in the row var.
    Am I reading line correctly where 'input[name="f04"]' is pNd, and row is pValue? Read the description of the $x_UpTill API, not sure how this is working to identify pValue (Row?).
    Additionally, I am not sure what the [0] is for at the end of the otherElement var definition. I don’t see that listed with the $ JavaScript API parameters (Google wasn't much help there either).
    OR, am I missing something else?
    Once again, if you could:
    1) let me know what might be different from your working example? (What does yours have that mine doesn’t)
    2) Provide any info on how to get your working form downloaded at http://apex.oracle.com/pls/apex/f?p=45448:11. Please, please?
    As always, your assistance is greatly appreciated!
    Edited by: amckinne on Dec 27, 2011 5:29 PM
    Edited by: amckinne on Dec 27, 2011 5:33 PM

  • Not null and enable or disable  column in tabular form

    Hi,
    Using apex version 4.1 and working on tabular form.
    ACT_COA_SEGMENT_MAS is Master table
    and
    ACT_SEGMENT_VALUES_MAS is detail table
    I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i specified PARENT_SEGMENT_ID with value in master table then in detail table there is column PARENT_ID that should not be null and enable.
    How i can enable or disable column when in master table PARENT_SEGMENT_ID column is null then in detail table PARENT_ID column should disable and vice versa.
    I have created tabular form on Detail table. before insert into the tabular form Check in master table in first entry if PARENT_SEGMENT_ID is not null in first row of master table then in tabular form PARENT_ID should enable and not null able in corresponding to this first row id's lines in tabular form.
    Same should check for second row in master table if PARENT_SEGMENT_ID is not null then entered rows with PARENT_ID into tabular form corresponding to 2nd id in master table should not nullable and column should enable in tabular form.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 9, 2013 9:12 PM

    Vedant,
    You need to create you own manual tabular form and not use the wizard.
    Using APEX_ITEM api you should be build you own form and you will be able to control how you wan to display the rows. (See Link [Apex Item Help|http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CACEEEJE] )
    select case when PRIMARY_TABLE_COLUMN is null then APEX_ITEM.DISPLAY_AND_SAVE(3 , DETAIL_COLUMN ) else APEX_ITEM.TEXT(2,detail_column) end "ALIAS" from detail table
    Hope that help.
    Vivek

  • How do I Create a Tabular Form for an Intersection Table

    Situation
    There are three tables involved (PROJECT, STAFF, TASK)
    PROJECT(PROJECT_ID, PROJECT_NAME)
    STAFF(STAFF_ID, STAFF_NAME)
    TASK(PROJECT_ID, STAFF_ID, HOURS)
    There is a many to many relationship between PROJECT and STAFF. The intersection table is TASK.
    Issue
    I would like to create a tabular form for the TASK table. I would like to be able to click on a button (Add Row) to add a row to the existing tabular form. The row will have a LOV for the PROJECT_ID (showing PROJECT_NAME) and one for the STAFF_ID (showing STAFF_NAME) and a free form text field for the hours.
    I've tried a bunch of different ways but am unable to acheive this functionality. I must be doing something wrong. This sort of thing is trivial.
    Any guidance/suggestions are greatly appreciated.
    Thanks

    Adding a new surrogate key column to an existing table is not that big a deal.
    alter table t add (pk int primary key);
    create a before-insert row-level trigger to populate the key;Other than that, you are out of luck w.r.t the wizards. Yes, you can define a 2nd PK column in the wizard, but then the 2 PK columns becomes read-only (but you want to update them).
    You can write your own tabular form using htmldb_item APIs and your own after submit processes to process the updates. See the manual Tabular Form Howto in the documentation.
    Thanks

  • Custom Tabular Form addRow function

    Hi All
    There appears to be a lot of people discussing this on the forum, but so far, I haven't been able to find a solution.
    I have a custom tabular form and I need to add and Add Row button to create multiple blank rows without submitting the page. I have previously used a solution devised by Duncs many moons ago, that basically clones a row.
    http://djmein.blogspot.co.uk/2007/12/add-delete-row-from-sql-based-tabular.html
    Unfortunately, this basic method doesnt work for popup_lov apex items, nor will it increment ID numbers.
    Ideally I would like to be able to use the addRow function that is used for a Tabular Form built using the Wizards; however, that function uses a ghost row as described in this forum thread:
    "Ghost row" in 4.0 Tabular forms has id pattern f0x_0000
    If it were possible to replicate that ghost row in a custom tabular form, then I guess that it would be possible to use the apex addRow function out of the box!?
    Before I start re-inventing the wheel, has anone aready done this, or can you point me in the right direction please.
    I hope that makes sense :)
    Shunt
    I'm using Apex 4.02 11g and will be upgrading to 4.2 in the near future; woohoo.

    Thanks Daniel for your reply.
    Actually its an interface with a custom tabular form on page 1 with apex collections and rich text editor on page 2. Since it is not possible to have the rich text editor, I need to have it in another page (I could have it the same page, that is the way I am trying now) however I open the next page as a modal window.
    I have a link on the tabular form, so that the clob content is opened in the rich text editor on the next page. After the edit, I update it to the same collection and go back to the tabular form page and refreshes the report. It works fine, but causes trouble to the data entered on the other columns in the custom tabular form.
    I have now deviated to another work and put this on a hold. If my explanation is still not clear, I will create the same page in apex.com to simulate the error.
    Thanks again.
    Natarajan
    Edited by: Nattu on Mar 14, 2012 11:35 PM

  • APEX - tabular form update

    Hey guys,
    as per client's request, we need to insert rows into db from tabular form even there is no change on the new row. db table is configured to have nullable fields.
    Currently, it won't allow me to do so. Is there any way to force the insert/update without checking if the information on the row is updated?
    Thanks a lot

    You can do it, using manular tabular form.
    When you use automated Tabular Forms, it checks inbuilt global variables, to see row is updated or any new row is created and all necessary fields are keyed in.
    If you don't update an existing row, that row will not be updated..
    If you create/add new empty row and don't key in values, that row will not be inserted as there is no data..
    If you want to do in that manner, make your MRU process on the page to never and write your own manual MRU

  • How to change Number of Rows in a Tabular Form report page?

    Hi
    I am working with a tabular form to create an attendance sheet for a school using Oracle Application Express 3.0.1.00.12. Whenever I change the Number of Rows value from 10 to 1000 in the Layout and Pagination section of the report page, the SUBMIT button is not working and it is unable to process at that stage. How can I change the valu so that I can see all the rows in a single page, make changes to all rows and submit the page rightaway. Please help me.
    Thanks,
    Chak
    Edited by: user520137 on Jan 12, 2010 12:04 PM

    Hi
    I am working with a tabular form to create an attendance sheet for a school using Oracle Application Express 3.0.1.00.12. Whenever I change the Number of Rows value from 10 to 1000 in the Layout and Pagination section of the report page, the SUBMIT button is not working and it is unable to process at that stage. How can I change the valu so that I can see all the rows in a single page, make changes to all rows and submit the page rightaway. Please help me.
    Thanks,
    Chak
    Edited by: user520137 on Jan 12, 2010 12:04 PM

  • How to capture number of tabular form rows in javascript

    Greetings All -
    I have a tabular form that I created manually.
    I am looking for a way in javascript to capture the number of rows that are displayed on the page.
    Is this possible?
    Regards,
    Mark

    Bill -
    Thank you for the reply.
    I had thought of your suggestion but I was unsure where I could execute the apex_application.g_fxx.count command without submitting the page.
    I cannot do this on a submit, because I need to now the number of rows displayed in order to do a calculation while entering a row on a manually created tabular form
    Suggestions appreciated
    Regards,
    Mark

Maybe you are looking for

  • Error occured in the phase MOVE NAMETABS while updating patch.

    Hi Gurus When i implementing a SP15 to SP16 in a queue, i got the Dump. Please help me in this issue. The import was stopped, since an error occurred during the phase    IMPORT_PROPER, which the Support Package Manager is unable to resolve    without

  • FTP Adapter on OSB - how to specify logical directory path

    I am using the ftp adapter on osb 11g (Oracle Service Bus Version: [Oracle Service Bus Server Side Dependencies 11.1 Thu Aug 19 02:10:08 PDT 2010 ] Oracle Weblogic Server Version: [WebLogic Server 10.3.4.0 Fri Dec 17 20:47:33 PST 2010 1384255 ]) I de

  • How do I handle large resultsets in CRXI without a performance issue?

    Hello - Problem Definition I have a performance problem displaying large/huge resultset of data on a crystal report.  The report takes about 4 minutes or more depending on the resultset size. How do you handle large resultsets in Crystal Reports with

  • Generation Partner Profiles from ALE Distribution Model

    Hi ABAP/EDI experts, I am a trainee. I am getting training from Pvt consultancy. I am working on SAP Demo systems. I am trying t generate an IDoc using ALE method. IN SALE window, I created two logical systems,ZVK_SS_800 and ZVK_SS_820. I assigned th

  • 'Syntax error in template RSTMPL9C, Row 80'

    Hi, i am uploading hierarchy from a flat file! i got the error : 'Syntax error in template RSTMPL9C, Row 80' while scheduling thye info package! i tried with just one row to upload, since it was saying problem in 80 th row, but i am experiencing the