Custom Popup on a Tabular Form for Multi Row Operation

I am trying to implement a custom popup on a tabular form that I can pass a value typed in to a text item like “Name” to the popup so it can filter a list of names on what was already typed in.
Once a selection is made I need to have the selected name passed back to the text item.
This is easily done when not using a Tabular Form. Any ideas would be great?

Can someone please help me with this?
I've read the Thread:
"Custom Popup on a Tabular Form for Multi Row Operation",
and have tried following the instructions provided by Willi Firulais.
I've also tried to integrate the instructions provided by RWeide in response within the same Thread.
I cannot get the passBack function to Pass the value to the Calling Page.
(I've tried to organize the pertinent information as it pertains to my application,
and have included it here below:)
A. Calling Page (Page# 141)
1. HTML Header: (Page# 141)
<script> function callMyPopup(item) { var url;
url = 'f?p=&APP_ID.:143:&APP_SESSION.::::P143_ITEM:'+ item;
w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
if (w.opener == null) w.opener = self; w.focus(); }
</script>
2. Region Definition: (Orders) - SQL Query (Updateable Report)
a. Query:
select
'f01_'||to_char(rownum ,'FM0999') ITEM,
"ID",
"ID" ID_DISPLAY,
"ID_PROJECT",
"ID_SUPPLIER",
"DESCRIPTION",
"JOB_NO",
"QUANTITY",
"UNIT_PRICE",
"EXTENDED_PRICE",
"MANUFACTURER",
"SUPPLIER",
"PART_NO",
"GROUP_LIST",
"BILLED_PRICE",
"DATE_NEEDED",
"DATE_DELIVERED",
"SUPPLIER_TYPE",
rownum
from "#OWNER#"."OAX_MAT_ORDER_ITEMS07"
where job_no = :P141_JOB_NO
3. Report Attributes: (ITEM) - URL
javascript:callMyPopup('#ITEM#');
B. PopUp Page (Page# 143)
1. HTML Header: (Page# 143)
<script language="JavaScript"> function passBack(passItem1, passVal1)
{ opener.document.forms["wwv_flow"].SUPPLIER[&P143_ITEM.].value = passVal1;
close(); }
</script>
2. ITEMS:
P143_ITEM
3. Region Definition: (Suppliers) - SQL Query(Structured Query)
OAX_SUPPLIERS.ID
OAX_SUPPLIERS.NAME
4. Report Attributes: (NAME) - URL
javascript:passBack('&P143_ITEM.','#NAME#');
Thank you in advance for you help!

Similar Messages

  • Custom tabular form for multi-row not saving data

    Ok, before anyone asks, yes, I did read the how-to:-)
    I have a custom tabular form, which I did cause I need to use popups and the popups that you can use in the wizard tabular form does not display the text but rather the value underneath it.
    It returns data rather nicely and when I go and update values I can tell it is changing the fields underneath. I put a process in that will display the values in text fields on the form (for one row only) and I see them changing from what is already there and with the proper values.
    However, when I do that the data that is displayed then gets reverted back to what it was previous to the update but reports that the process was successful.
    I have also tried to insert but that is basically doing the same thing. Can anyone guide me.
    SQL to generate the tablular form...
    SELECT x.sak_release_db
    , x.sak_object
    , x.sak_release
    , x.sak_participant
    , x.sak_csr
    FROM
    (SELECT htmldb_item.hidden(1,sak_release_db) sak_release_db
    , htmldb_item.popupkey_from_query(2, sak_object,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,sak_release) sak_release
    , htmldb_item.popupkey_from_query(5, sak_participant,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, sak_csr,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM release_db_xref
    UNION ALL
    SELECT htmldb_item.hidden(1,NULL) sak_release_db
    , htmldb_item.popupkey_from_query(2, NULL,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,NULL) sak_release
    , htmldb_item.popupkey_from_query(5, NULL,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, NULL,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM dual) x
    Process to verify that I have the correct global fields: (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations)
    begin
    :P3_2 := replace(htmldb_application.g_f02(1),'%'||'null%',NULL);
    :P3_5 := replace(htmldb_application.g_f05(1),'%'||'null%',NULL);
    :P3_7 := replace(htmldb_application.g_f07(1),'%'||'null%',NULL);
    end;
    Process to do the insert/update. Note, I hardcoded the value in the where clause but I was originally using the global value for g_f01 (i also tried putting a commit in there for fun) (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations):
    -- Update the RELEASE_DB_XREF table
    FOR i IN 1..htmldb_application.g_f01.count
    LOOP
    IF htmldb_application.g_f01(i) IS NOT NULL THEN
    UPDATE release_db_xref
    SET sak_object = replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    , sak_participant = replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    , sak_csr = replace(htmldb_application.g_f07(i),'%'||'null%',NULL)
    WHERE sak_release_db = 22;
    ELSE
    IF htmldb_application.g_f02(i) IS NOT NULL THEN
    INSERT INTO release_db_xref
    (sak_object
    ,sak_release
    ,sak_participant
    ,sak_csr)
    VALUES
    (replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    ,htmldb_application.g_f04(i)
    ,replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    ,replace(htmldb_application.g_f07(i),'%'||'null%',NULL));
    END IF;
    END IF;
    END LOOP;

    Florian,
    Checkboxes are different from other HTML form items. When you have a text box for example, there's always a value send to the server when submitting. Even if that value is NULL. When you have a checkbox however, you only get the value if the checkbox is checked. It's not posted to the server when it is not checked. That's the general behavior of HTML forms and not specific to Oracle HTML DB.
    When working with tabular forms in HTML DB, you can access your form values using the htmldb_application.g_f0x arrays. Now if you have for example 10 rows in your form, then you'll get ten elements in your array for text boxes, select lists, etc. For checkboxes however you'll only get as many elements as you have rows checked. If I read your update and insert code correctly, you're trying to use the checkbox arrays the same way you use the arrays based on other item types. My recommendation would be to use Yes/No select lists instead of checkboxes or at least use select lists initially to get it working and then work on properly processing the checkboxes.
    Some general information about working with checkboxes in tabuar forms can be found here:
    http://www.oracle.com/technology/products/database/htmldb/howtos/checkbox.html#CHECKBOX_IN_REPORT
    Hope this helps,
    Marc

  • PopUp LOVs in tabular forms

    Hi,
    I've discovered a problem using Popup LOVs in tabular forms, whereby on selecting a value from the LOV the key value is displayed on the form instead of the display value.
    Having searched this forum it would appear I'm not the only one who has encountered this problem, but I've had no luck in finding an explanation for this behaviour or a solution / workaround.
    Can anyone help?
    Thanks
    Andrew.

    A Popup LOV is just a normal Input field with the option to popup another window, select a value and return that value to the field. On the popup window, the "display" value is shown to the user to make it easier to select the right value, but the "return" value is returned to the field as this is the value that needs to be stored on the database.
    As a normal input field, it can only hold and, therefore, display one value.
    Select Lists, on the other hand, store the "return" value but show the "display" value because that is how Select Lists are designed to operate.
    You can show the "display" value in a second field for data that is already on the database by using the "Display as Text (based on LOV, does not save state)", based on the same database column as for the Popup LOV field and using the same LOV table.
    However, the only way to get a "display" value for a new/edited record would be to either submit the page or design your own popup which can pass values back into two fields. Either way, you need two fields.
    Unless someone else has found a way around this?????
    Regards
    Andy

  • 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

  • Theme 23 does not display popup LOV in tabular form

    I created new application using new Theme 23. In tabular form the popup LOV button does not show. While using this theme the column LOV button is soooooo small it is not visible. If I move the cursor on the side of the field eventually I cursor handle will change and I can click and popup LOV will show. When I switch to an older theme (e.g. 21) the LOV button shows just fine.
    Does anyone can offer a solution? Can I expect more this type of problems in the new theme 23?

    I examined exported application file. Indeed the problem is p_column_id parameter. It should be decimal number for translated application. Characters %2C in p_column_id value stands for comma. It should be dot instead. Parameter value should be p_column_id=30289208519476123679.915121.

  • Tabular form for text item -save changes not working

    Hello,
    I have created a tabular form in which I have made one of the columns say deptno as an Text item using APEX_TEXT.ITEM package.
    In my tabular form by default I have created it with all the buttons like with ADD ROW,CANCEL,SUBMIT(SAVE).
    My problem is that whenever I make any changes to the text item for deptno column, and then try to save the changes by clicking SUBMIT - the changes are not taking place to the deptno text item column.
    Can anyone help me out with this.
    thanks.

    hi Denes Kubicek.
    the thing is that i have made it as text item because I have concatenated it with an popup image when clicked on it opens up an new popup window
    which is a report containing dept table details. So if need to make a change to the deptno text item column in the parent window for a particular record
    then i do through the popup window (like by selecting the deptno from the popup window - so that this value is returned to my parent window deptno text item column)
    for this reason i have made the column deptno as an text item.
    can you help me out with this issue.
    thanks.

  • Tooltip popup on a tabular form to display data

    on a tabular form I have a comments field that can become much larger than the size of the filed on the screen and the user doesn't want to scroll..
    I want to do a javascript onHover to display the full amount of data in a popup tooltip bubble.. similar to some of these:
    http://speckyboy.com/2009/09/16/25-useful-jquery-tooltip-plugins-and-tutorials/
    but all of these examples are displaying the information from the TITLE of the field..
    how to I display the data based on the field being hovered over on the tabular form..
    Thanks

    Hi,
    if your apex version is >4.0 then you have a plug inn to cater your needs,
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/tooltip62.html_
    or
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/hoover-plug-in26.html_
    Regards,
    Little Foot

  • How to make the Tabular Form for Inserting records only?

    Hello Experts
    I need to create a Tabular form page to use it to insert records only. I do not want to update or delete records. I want the user to fill some fields and then validate it and submit. Also, I need to add a field that shows the sum of a specific field of the added records.
    Thanks a lot for all your help.

    UPDATE_LTD
    For Maintain subset of data (Update selected data)
    SHOW_LTD
    Display subset (Display Selected Data)
    TVIMV-VARIANT
    Variant name. Use variant (only with UPDATE_LTD, SHOW_LTD and TRANSP_LTD)
    For more information refer the below link
    [Maintain parameter transaction code|http://help.sap.com/saphelp_webas630/helpdata/en/a7/5134f9407a11d1893b0000e8323c4f/content.htm]
    Hope this helps.
    Thanks.,
    Balaji

  • "1) it takes TOOOOOO LONG for multi-row tabs to close when i click "close all/other tabs" and 2) it takes TOO long for Firefox to appear after i click the icon on the desktop"

    1) When many tabs are opened in multiple rows (say 50 or 100) it may take an enternity for them to close after I click the appropriate command
    2)MOre often than not, it takes the browser too long to appear (open) after I initiat it by clicking the desktop or start menu icon.
    NB: My first question is PRIMARY (critcally important) and second is additional (would very much like to receive an answer but it's not critical).
    Thanks a lot in advance!
    Best regards, Dmitry.

    Sorry about the bookmarks misread, I installed a Multi-Row Tab style, not for me but it in use deleted 126 of 130 tabs in about 3 seconds and then the last 4, no idea why that happens with the with the multi-row style.
    Did those 100 pages have web forms in them that you filled in an Firefox may be saving data along with the session.
    Here is a test page that you can quickly load up to 120 tabs at a time with an extension such as "Linky". See it if it takes an eternity to close them with the Multi Row tabs extension you are using, then try the same with the extension disabled. Works fast for me all tabs are on one row.
    * 001 '''Tab Capacity Test'''<br>http://dmcritchie.mvps.org/firefox/tab_capacity/001_with_underscore.htm
    Two Extensions to Help -- you may already have one or both
    * '''Stylish-Custom''' :: Add-ons for Firefox<br>https://addons.mozilla.org/en-US/firefox/addon/stylish-custom/
    * '''Linky''' :: Add-ons for Firefox<br>https://addons.mozilla.org/en-US/firefox/addon/linky/
    Style that can be installed after installing "Stylish" extension, style will show two rows of tabs you have to scroll up/down. '''This style does not recognize app-tabs formatting, new in Firefox 4.'''
    * '''App: Multi-Row Tab Bar''' - Themes and Skins for Browser <br>http://userstyles.org/styles/10930
    I put all my tabs on one row you probably would not like it, but you might like the one with the tab borders, which almost works again using multi-row tabs:
    * Tabs Bar Minimal Size - Themes and Skins for Browser <br>http://userstyles.org/styles/9043
    * '''Tab Color Underscoring active/read/unread''' - Themes and Skins for Browser<br>http://userstyles.org/styles/9023

  • Dynamically Changing Labels for Multi Row Block Buttons

    Forms [32 Bit] Version 9.0.4.1.0 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    On my local: Windows 7 OS
    I am having a difficult time in doing the following in forms, and not sure if it can be done?
    I have a multi row block,based on DB table, which displays filename and another column from the table.
    It also has a push button on each row, which opens and displays the physical file from its source, when clicked. The filename thus can have 3 diff statuses depending on its sources and accordingly corresponding button should display appropriate label:
    a) View Image (its is in content server and successfully imaged. In this case I display the file in the browser, from the content server, when the button is clicked)
    b) View File (Display the file from file system)
    c) View Error (Display imaging error message from the table, as file failed to make it to the imaging server)
    I have this logic currently coded in the post query trigger, at the block level, and tried using set_item_property(button_id, label, <button_lable>), where I programmatically set the button lable, based on the file status (imaged, not imaged or has error) in that row. This wroks well, only if all the files in the multi row block have the same status. If each of them have diff statuses, then only last processed files's status gets reflected into the button label. For eg: The file in the first row of the block is imaged, and one in the second row has an imaging error. The button label for the first row should say 'View Image' and button for the second row should say 'View Error'. But now buttons for both the rows display 'View Error', as thats what got processed last!
    I __can not use set_item_instance property for 'label'__ (which lets us dynamically change the label on the push buttons).
    Is there any way to do this for ORacle forms? I am now playing with having 3 diff button items in that block, laying them on top of each other and showing only those that are appropriate and hiding the others... But I am not sure it is going to give me what I need? I think I am going to end up facing the same issues as in above case!!
    Any expert advice is highly appreciated.
    Thanks in advance for your time:
    Libran_Girl
    Edited by: libran on Aug 30, 2011 8:04 AM
    Edited by: libran on Aug 30, 2011 8:05 AM

    <p>I have just updated this existing PJC, that was originally constructed to handle Text Fields. You can, now, also handle buttons with it.
    Set the Button's Implementation Class property to : oracle.forms.fd.MultiButton.
    </p>
    This is the code you have to put one triggers of your based block:
    When-New-Record-Instance trigger: (based on the EMP table)
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;When-Create-Record trigger:
    declare
         LN$N    pls_integer ;
         LN$Rec  pls_integer := :system.cursor_record ;
         LC$C    Varchar2(15) ;
    Begin     
         if get_block_property('EMP',TOP_RECORD) > 1 Then
              LN$n := :system.cursor_record - get_block_property('EMP',TOP_RECORD) + 1 ;
         else
              LN$N := :system.cursor_record ;
         end if;
         If LN$N > 0 Then
              Set_Custom_Property('EMP.BT', LN$n, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$n, 'SET_NEW_REC', to_char(LN$Rec) );
         End if ;
    end;Post-Query trigger:
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;Don't forget to copy the multirecord.jar file in your /forms/java folder, then add it to the archive and archive_jini tags of your /forms/server/formsweb.cfg file.
    Enjoy it,
    Francois

  • How to make a Tabular Form display NO rows until queried

    I have a Tabular Form designed to displays rows according to user selections made in Page Items.
    The Page for this Tabular Form is accessible from 2 origins.
    1. Passes values into the Page Items. (I want all rows to display according to the values passed in)
    2. A tab (Not the Standard Tab Set which allows selection of a values to pass to the page)
    I can accomplish number (1) above,
    But
    Number (2) is the problem.
    In the case of number (2) I don't want any rows displayed until the user selects the "Search" button.
    Can someone help?

    Hi,
    You can make the report region conditional.
    Display the region when
    1) Seach box is not empty
    or
    2) Request = XYZ
    when uses passes the value to page item , make sure it also passes REQUEST as XYZ..
    Regards,
    Shijesh

  • Tabular form - adding new row

    Hi,
    I have a very simple table (5 rows, 1 of which is the primary key), and want to update the table using a tabular form. On initial display, the primary key column is protected (cannot be changed) which is ok for DELETE and UPDATE options, but when I come to ADD A NEW ROW, the new row has NULL defaulted as the primary key value, and will not let me update it !!
    Does anyone know how I can leave the primary key column protected when UPDATING or DELETING, but allow a value to be entered when ADDING A NEW ROW ?
    thanks
    Tim

    Andy,
    Just made the following changes (to remove NARR1_CODE_DISPLAY and show and edit NARR1_CODE):
    select
    "NARR1_CODE",
    --"NARR1_CODE" NARR1_CODE_DISPLAY,
    "NARR1_LOWER_LIMIT",
    "NARR1_UPPER_LIMIT",
    "NARR1_RMP_MIDPOINT_1",
    "NARR1_RMP_MIDPOINT_2"
    from "#OWNER#"."DQ_PD_TRANS_DIST_BAND_NARR1"
    where the column NARR1_CODE is my primary id, and in the report attributes, NARR1_CODE is now editable and shown as a "text field" . NARR1_CODE_DISPLAY has been removed.
    However, when I go into my form screen, although the NARR1_CODE field is now editable, when I click ADD NEW ROW, enter the details for a new row, check the box alongside the new row and click SUBMIT, I get the following error message :
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "A884FA378C851786DDFE3A33709CB23C", item checksum = "F6395FDACE39D98E784F85C19D960620"., update "GRD_DD10_OWNER"."DQ_PD_TRANS_DIST_BAND_NARR1" set "NARR1_CODE" = :b1, "NARR1_LOWER_LIMIT" = :b2, "NARR1_UPPER_LIMIT" = :b3, "NARR1_RMP_MIDPOINT_1" = :b4, "NARR1_RMP_MIDPOINT_2" = :b5
    sorry about this !
    thanks

  • Tabular form calculated summary row

    Hopefully this may be a quick question with either a yes or a no
    I have a tabular form with columns
    Project Name , Wk1 , Wk2 , Wk3 etc ,
    basically so PM's can track the hours against a project
    I have used the sum checkboxes to create a summary row
    but they also want a row that calculates how many hours remaining for each week under the week no cols , obviously subtracted ffrom the hours budget for each week assigned to the project and person
    I've done the summary and calculation in a view but this isn't acceptable as a UNION query in a tabular form
    I've also tried another region under the Tabular form but as the project name is a variable length its not easy keeping the Wk cols aligned
    thanks in advance
    Chris

    Hi Gus/Paul,
    I had the same requirements as you, resulting from the fact that newly added rows may not be visible to the user until he/she has scrolled down sufficiently, but, by lowering my standards (something I excel at :D ), I was able to find an acceptable compromise.
    As you probably noticed yourselves, when you "edit" the ADD button, you can see that a call is made to the addRow() javascript function. I therefore took a look at the javascript code - foolish really as I am an oracle DBA from the Jurassic period. Needless to say it scared the pants off me... So, fuelled by cowardice, I snatched at an inferior-but-dead-easy-to-implement alternative solution whereby the page is automatically "scrolled" to the bottom of the form when the "ADD" button is clicked.
    Should this "cop out" work for you, you can implement it in the following way:
    1. Create a new HTML region immediately after the tabular form, containing the following source: <font color="blue">&lt;a name="bottom_of_page"&gt;&lt;/a&gt;</font>
    2. Amend the action when the "ADD" button is clicked to scroll down to the new region by doing the following:
    - edit "ADD" button
    - Go to "Action when button Clicked" section
    - Amend "URL Target" from
    <font color="blue">Javascript:addRow();</font>
    <br>to
    <font color="blue">Javascript:addRow();window.location='#bottom_of_page'</font>
    <br>
    <br>Regards,
    Amr.

  • Not a tabular form, but getting row version identifier error.

    APEX 4.1.0, Oracle 10g
    Error is: Current version of data in database has changed since user initiated update process. current row version identifier = "47FAF7A2C1A5E49E0CF90D1320CCFC50" application row version identifier = "0"
    I've seen this error in the forums for tabular forms, but my form is just a normal apex page with a standard fetch and a standard insert/update/delete process. It isn't a tabular form or a master/detail, just a simple form. There is not another person using the data. This happens on an update or delete and on several different pages for several different tables!
    I've tried using debug, and from debug, I see that the error comes right after this:
    ...Execute Statement: begin begin select "NARR_ID","TEXT","PRJ_PROJ_ID","NARR_TYPE_PROJ"
    into wwv_flow.g_column_values(1),wwv_flow.g_column_values(2),wwv_flow.g_column_values(3),wwv_flow.g_column_values(4)
    from "BASIS"."NARRATIVES" where "NARR_ID" = :p_rowid for update ; end; end;
    I more or less understand what the error is intended for. APEX produces a checksum of the table row values at some earlier point (maybe at the fetch?) and then produces another checksum of the table row values just before the update or delete. APEX then compares the two checksums.
    Based on the error message, one of the checksums is "0". I'm not sure if the "application row version identifier" is the first checksum or the second checksum, but either way it shouldn't be zero. Right? So, why would this checksum be zero?
    Edited by: JackieW on Apr 29, 2013 8:42 AM

    I upgraded to JDev 3.2 and rewrote my code to extend the new
    version of EditCurrentRecord. Now when I deploy to 9ias I get a new error:
    Error Message: java.lang.NullPointerException: I'm following the online help
    to deploy but I must be missing something cause it works in JDev. Any
    suggestions?

  • Tabular forms, referencing current row and using checkboxes

    I've searched through the whole forum and read over 50 threads on referencing other columns in a tabular form only to find this impossible. Many of these threads were outdated so I would like to ask it again.
    Can I use references between columns of tabular forms? So that value of one column equals the other's. (select a, b from c where d=othercolumn)
    How can I get a workaround for lack of checkboxes in dynamically created tabular forms? (Standard tabular forms come with checkboxes for deleting multiple rows, can they be used in the same way but without writing manual reports?)
    Please do not send me to
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:17962256093711784584::::P54_ID:1282
    I am looking for strictly dynamic, apex-like solution. Thanks in advance.

    That supposed to be a query for LOV, should have mentioned that probably. By dynamically created tabular form I mean the wizard-created form which transforms query results into a form on the fly. I consider the HTMLDB_ITEM-style the manual way. After all, I'll probably stick to the manual method because I am creating this form on a view with INSTEAD OF triggers so the processing still needs to be done separately.
    The question I asked referred to the internals of tabular forms' processing, behind the screen wizards there has to be some loop based on the query, I just wanted to reference other columns on the current iteration. (wwv.g_f01(0) ?...)

Maybe you are looking for

  • Regarding Agent Rule GRAC_REQ_MITIG_MONITOR_AGENT

    Can anyone help me in determining if i can make use of agent rule GRAC_REQ_MITIG_MONITOR_AGENT to look for the approver at mitigation monitor stage under process ID SAP_GRAC_ACCESS_REQUEST_HR ?? SAP has suggested that this agent rule is only specific

  • Using Places in Aperture 3.01

    I do not have a GPS enabled camera but would like to add places data to my photos. When I click the Places icon it takes me to a world map that says "Places is Currently Disabled. To re-enable open the Advanced panel in Preferences and set Look Up Pl

  • Lightroom Photoshop Elements problem.

    After selecting a photo in Lightroom to be edited in PSE, PSE is opened but the PSD file is not created and not loaded into PSE.  How can I fix that?  It used to work but I had to reload Lightroom and PSE as my machine had to be refreshed and the cap

  • Syncing problems from my 80MB Ipod to my library

    I am new to Ipods so I am hoping this is an easy question. When I plug my Ipod into the computer, click on the Music tab for my Ipod and then click on the Sync music box I get a warning message that says: "Are you sure you want to sync music? All exi

  • Lost my Epson printer utility

    After installing the Snow Leopard upgrade, I lost my Epson printer utility and can't seem to get another one to install. I've lost the ability to check my ink cartridge levels. Snow Leopard just won't allow me to install another one. Ideas? Thanks.