Unable to pass a parameter to a field in a tabular form.

I created a tabular form with 2.0 using the wizard. I’m having issues though with 2 of my columns.
The two columns are last_edit_user and last_edit_date. As you can tell I’m trying to pass the system date and :app_user to these two fields.
I read this thread Default Value in Tabular Form and decided to create a simple function on the database that returns the system date. Then under report attributes I went to the last_edit_date column. In “Tabular Form Element” I changed it to “Display as Text (saves state)” made the default type a PL/SQL expression or function then put the function name in the ‘default’ text field.
When I try to update a field I then get:
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01407: cannot update
I have also tried creating a computation and passing the date to a hidden item then use default type item and list the hidden item in the default text box. I get the same error.
Considering how often these fields or similar would come up in a tabular form I can’t help but think there must be an easy way of passing parameters to fields in a tabular form without making them editable.
Message was edited by:
[email protected]

This keeps coming up often and I find that the easiest way to handle this is in a row-level trigger on the underlying table
create or replace trigger t
before insert or update on mytable
for each row
begin
:new.last_update_date := sysdate;
:new.last_update_user := nvl(v('APP_USER'),user);
end;
/

Similar Messages

  • Help- I have added a field in my tabular form and now i get an error in mul

    Help- I have added a field in my tabular form and now i get an error in muli update form; Here is the error, how do I go in to change the process, adding the extra field??
    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 = "F10F6D7EC4CF938382C6DC2EE22800F6", item checksum = "90E47F32E95B71B7A9D47A1311063445"., update "CAPRS"."CONTRACT_ERRORS" set "ID" = :b1, "CONTR_NUM" = :b2, "REPT_MONTH_CD" = :b3, "REPT_FISCAL_YEAR" = :b4, "REPORT_FAC_CAGE_CD" = :b5, "END_ITEM_NUM" = :b6, "END_ITEM_DESC" = :b7, "WSSC" = :b8, "WBS_CD" = :b9, "WPC_CD" = :b10, "CONTR_CLIN" = :b11, "CO
         Error      Unable to process update.

    Hi,
    I believe the error is due to the checksum process which doesn't have that additinoal field's information. You can try creating the form again with the additional field, or if needed you can go with the Manual tabular form.
    Thanks,
    Manish

  • Calculated non-base table field in a tabular form

    I am struggling with creating a non-base table calculated field in a tabular form in ApEx 3.1
    Can you point me in the right direction
    I thought this would be fairly easy to do, but I cant work out how to do it
    Requirements
    1) Tabular Form based on a table with QTY and PRICE columns
    2) TOTAL is a non-base table field, based on QTY * PRICE
    3) If the Qty or Price changes, the TOTAL should be re-calculated
    Example
    QTY   PRICE  TOTAL
    ===    =====  =====
    3       5          15
    10      50         500
    20      3           60
    Environment
    ApEx 3.1, Oracle 10 and Oracle 11 databases
    I recommended to upgrade to a newer version of ApEx but the request was rejected so Im stuck with 3.1

    Thanks, but its not the solution that I am after
    I am looking for a solution that will ...
           1) not require the calculated value TOTAL to be stored in the table
    and 2) re-calculate the TOTAL when I modify the dependent values (QTY and PRICE) before I save the changes to the database
    I am still looking for a solution if anyone can help

  • Setting values for non-displayed fields on a Tabular Form

    I'm having a problem setting non-displayed fields on the same table as displayed fields like last_update_date, last_updated_by, id's and other fields when creating new records or updating existing records in a Tabular form.
    What is the best and easiest way to set these values without using database triggers?

    Hi Jes,
    I'm a little reluctant to use database triggers as I used this product a couple of years ago and I'm fairly sure I handled this problem in HTML DB without the use of triggers. I am therefore I'm getting a touch frustrated that I can't remember how to do it now !!
    Do you know of any way of setting values for non-displayed fields on a Tabular Form without using database triggers?
    Also, you seem to be suggesting that database triggers is the best way to do this?
    Thanks

  • A sticky problem updating fields on a tabular form

    I have an application where I'm trying to match skillset supply to skillset demand. We have resources and we have work for resources to do. Resources possess a set of skills. Work requires a set of skills. Skillsets are described by three fields: Domain, Target, Skill. So, we are able to capture the supply of skills in a table:
    RSRC_ID (FK to Resource table)
    DOMAIN
    TARGET
    SKILL
    PROFICIENCY  (this is the skill level 1 to 5)The relationship of resources to skill supply is 1 to many. Conversely, work demands skills, and so we capture skill demand in a table:
    WORK_ID (FK to Work table)
    DOMAIN
    TARGET
    SKILLThe relationship of work to skill demand is 1 to many also.
    Users assign skills to resources using a master-detail form. It works fine
    Users assign skills needed to work also using a master-detail form, and it works fine as well
    A view then joins the skillset supply to skillset demand so that assignments can be made only where supply and demand match. This view is used in the LOV below.
    The problem I have is that I am using a mapping table to capture assignments of work to resources or resources to work. It is a many to many mapping of work and resources with matching skillsets, and it looks like this:
    RSRC_ID  
    WORK_ID
    DOMAIN   (
    TARGET   ( These are the skillsets where demand equals supply and are derived from the view and presented in the LOV )
    SKILL      (I've created master-detail forms for the two types of assignments. An LOV in the detail form will present qualified resources or eligible work and then return the appropriate RSRC_ID or WORK_ID, but I must also populate the other three fields (DOMAIN, TARGET and SKILL) before I can insert or update the record. Here's the LOV from the form where resources are assigned to work:
    SELECT sed.domain||'.'||
           sed.target||'.'||
           sed.skill||'/'||
           sed.skill_prof||'  '||
           r.first_name||' '||
           r.last_name "d",
           r.rsrc_id "r"
    FROM   ri_resource r, ri_skill_supply_eq_demand sed
    WHERE  r.rsrc_id = sed.rsrc_id
    AND    sed.work_id = :P18_WORK_ID
    order by 1It is not enough to just match the work to the resource, we must record for what skillset they are matched. I can't seem to see an easy way to populate the three other fields in the tabular form using data that I can retrieve with the LOV.
    I am using APEX 4.1. Any help is appreciated.

    Hi Dan,
    Please could you replicate your problem on apex.oracle.com and share some developer credentials with us? It will be easier to demonstrate how this would be achievable.
    For this specific problem, you will need to re-create all your relevant DB objects and populate them with some sample data.
    Kind Regards, Pete

  • Unable to pass the parameter to other portlet

    Hi,
    I am trying to pass the parameter from one portlet to other portlet using the convention below...
    Example say you have two reports on a page dept and employee. You want to refresh employee report by clicking on
    the dept in the department report in the same page.
    (1) Create the first report based on the query
    SELECT htf.anchor('http://domain/servlet/page?&_pageid=97&_dad=portal_dad&_schema=portal_schema&_mode=3&dept_code='||DEPTNO,DEPTNO) Department,
    dname FROM scott.dept;
    (2) Create a 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) In the the additional pl/sql code section before display page on the 2nd report do this
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    In point (4) I am not getting the value of selected deptno in 'dept_code'. It is always taking the default value as '10'...
    I like to have the quick solution for this so that I can show the demo to my client...
    Thanks in Advance
    Sudheer

    Hi Ali,
    We can add parameterized queries to any TableAdapter (and controls to accept parameter values and execute the query) using the
    Search Criteria Builder Dialog Box. 
    For detail information, please refer to the following article to create a Windows Form to Search Data:
    http://technet.microsoft.com/en-us/library/hbsty6z7.aspx
    In addition, this issue is more related to Windows Form. I would suggest open a new thread in Windows Form forum if you have any more qestions:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms
    Regards, 
    Elvis Long
    TechNet Community Support

  • Pass a parameter from a report to a customization form of another report

    Hello,
    I want to pass a parameter value from a report to the customization form of another report and display it in the text field in the customization form as a default value. I have 2 variables in the customization form and in one of them, I would like to display the default value from a previous report.
    Thank you
    Jayasree

    1. go to the manage component screen of the report
    2. open the package body (pl/sql source)
    3. search for 'procedure show_parms'
    4. scroll down till you find
    -- call to parameter form rendering engine
    5. copy the procedure call below it
    a) you will have to pass <PORTAL_SCHEMA>.wwv_utlglobl.RUN_AS_NORMAL to p_mode
    b) remove the parameters p_reference_path, p_redirect_url, p_exec_mode, p_page_url ( or you can pass null to them)
    c) 'p_parm_names' will contain your 2 parameters
    d) you can pass values to 'p_parm_values' which you want to be displayed in the parameter forms.
    6. you can call this procedure from a dynamic page and link the dynamic page to your first report

  • Sum the values of a text field in a tabular form using JavaScript

    Hi Folks.
    OK, I put my hands up. I don't know Java script but I'm picking up the basics and I WANT to learn.
    Here's my situation.
    I have a tabular form which has lots of Standard Report Columns and ONE text field.
    I want to sum the values entered in the text field, real time, using Java Script without the need to have a round trip to the database.
    I'm guessing this will involve some kind of loop. Once I have that SUM figure I will store it in a hidden item and it will be used for validation when the user submits the form.
    If anyone can give me a simple Java Script to do this, or point me in the direction of one, I'd be very grateful.
    Many thanks.
    Dogfighter.

    Hi Arie.
    Thanks for the link.
    That's a great start,
    What I've got working so far is the following...
    <script type="text/javascript">
    function f_calculate_delta(p_this,p_rownum)
    var amt = $x(p_this).value;
    alert (amt);
    var display_item_to_set = 'f08_'+ p_rownum
    $x(display_item_to_set).innerHTML = amt
    </script>
    This is working fine.
    Where I'm stuck at the moment is how I can 'get' the value of another cell in the same row. They have all been set up using the APEX_ITEM API with their own unique IDs.
    I will continue looking but if you could give me a steer, that would be great.
    Many thanks
    Simon
    PS. APEX 3.1
    PPS. Trying to get the value of another row using...
    var display_item_to_get = 'f04_'+ p_rownum
    var expected_amt = $x(display_item_to_get).value
    PPPS. Also tried...
    var display_item_to_get = 'f04_'+ p_rownum
    var expected_amt = $v(display_item_to_get)
    and
    var display_item_to_get = 'f04_'+ p_rownum
    var expected_amt = $v(display_item_to_get).value
    None of which are working at the moment.
    Message was edited by:
    Dogfighter

  • How to change postion of the field in a tabular form

    Hello Gurus,
    My Table is like .Please ignore dots they have been placed just for better readability
    Year.....product....w1_dt..........w1_qty....w2_dt..........w2_qty.....w3_dt...........w3_qty......w4_dt...........w4_qty
    2010....1.............4-jan-2010....1............11-jan-2010....2.............18-jan-2010.....3.............25-jan-2010....4
    2010....2.............4-jan-2010....4............11-jan-2010....5.............18-jan-2010.....7.............25-jan-2010....8
    I have to make a tabular form for updation only, the tabular form should look like this
    year......product......w1.................w2.................w3..................w4
    2010.....1..............4-jan-2010.......11-jan-2010.....18-jan-2010.....25-jan-2010........-----dates can't be eddited
    ............................1....................2....................3...................4.......................-----this is qty column user will update this qty column
    2010.....1..............4-jan-2010.......11-jan-2010.....18-jan-2010.....25-jan-2010........
    ............................4....................5....................7...................8......................
    Please tell how could I make date field to come over qty field
    Regards
    Shashi
    Edited by: user4285062 on Jul 22, 2010 1:03 AM
    Edited by: user4285062 on Jul 22, 2010 1:10 AM
    Edited by: user4285062 on Jul 22, 2010 1:12 AM

    Hi,
    For your scenario, you need to have two cellVariant as TableStandardCell (say successTSC & failTSC). Add tableCellEditors to these 2 TableStandardCell as you like. Mark there variantKey property as var1 & var2 respectively.
    Do change the cellDesign as you like the color for the TableStandardCell.
    Bind an attribute selectedVariant to your column selectedCellVariant property.
    Now in wdDoModify you can write:
    for(int i=0;i<wdContext.nodeCountries().size();i++){
    if(wdContext.nodeCountries().getCountriesElementAt(i).getStatus().equals("SUCC")){
    // Here node countries is the datasource of your table.
    wdContext.nodeCountries().getCountriesElementAt(i).setVariantKey("var1");
    } else if(wdContext.nodeCountries().getCountriesElementAt(i).getStatus().equals("FAIL")){
    wdContext.nodeCountries().getCountriesElementAt(i).setVariantKey("var2");
    The article below will definetly help you in your requirement.
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0310fd2-f40d-2a10-b288-bcbe0810a961]
    Hope this will surely solve your problem.
    thanks & regards,
    Manoj

  • HOW TO PASS A PARAMETER TO UIX PAGE FROM APPS' FUNCTIONS FORM?

    Hello,
    We created a form function (in Sys Admin resp) for a UIX page. The Type field
    is 'SSWA plsql function that opens a new window (Kiosk Mode)'. The HTML Call
    field is 'POBarCode.uix'.
    We have to pass the username (who logs in) to the UIX page. If we pass it
    literaly, (e.g. POBarCode.uix?MyParam1=BBASTIN), it works. We tried following
    two options to pass it as a variable in HTML Call field:
    POBarCode.uix?MyParam1=fnd_profile.value('USER_ID')
    POBarCode.uix?MyParam1=$PROFILE$.USERNAME
    Both variable show up as is in the UIX page. How can we pass the username as a
    variable on tHe HTML Call?
    Thanks, Ali.

    Hi guojun yu,
    As per my understanding, you use parameters related to country and office UI langs as search condition in the report, you want to provide part of countries/office UI langs values as values of parameter, then all records will be displayed in the report.
    In Reporting Services, parameters are used to filter data, after we selected values of parameter and preview the report, only data meets search condition will be displayed in the report. To display all records in the report, we need to use all values of
    countries/office UI langs as values of parameter. For detail information, please refer to the following steps:
      1. Create separate dataset for each parameter with the query like below:
    Select distinct CountryRegion from TableName
      2. In design mode, right-click Parameters and click Add Parameter.
      3. In Parameter Properties dialog box, in name and prompt text box, type CountryRegion. Select Allow multiple values.
      4. Click Available Values in left pane, select Get values from a query, select dataset from drop down list, select CountryRegion from Value field and Label field drop down list.
      5. Create parameter @OfficeUiLang, @OsLocale, @IsMobile like step1 to 4 above.
      6. Modify the stored procedure used to retrieve data for the report like below:
    SELECT *
    FROM AggregateDataByDate AllSessions
    WHERE UserID != 'NULL'
    AND CountryRegion in @CountryRegion
    AND OfficeUiLang in @OfficeUiLang
    AND OsLocale in @OsLocale
    AND IsMobile in @IsMobile
    AND [UsageDate] >= @DataCutOffDate
    For detail information about Adding a multi-value parameter to a Report, please refer to the following document:
    https://msdn.microsoft.com/en-us/library/dn385719%28v=sql.110%29.aspx?f=255&MSPPError=-2147217396
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Unable to pass parameters from APEX to Oracle EBusiness suite R12 forms

    Hi
    We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
    We are trying to pass parameters via this URL
    http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
    The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
    if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
         IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
              FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG(' ');
              --FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
              lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
              IF lC_incident_number IS NOT NULL THEN
                   copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
              END IF;     
              FND_MESSAGE.DEBUG(' ');
         END IF;
    END IF;
    Is this the right way of passing the parameters?
    all technical inputs are welcome.
    Regards
    Sam

    Hi
    We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
    We are trying to pass parameters via this URL
    http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
    The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
    if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
         IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
              FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG(' ');
              --FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
              lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
              IF lC_incident_number IS NOT NULL THEN
                   copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
              END IF;     
              FND_MESSAGE.DEBUG(' ');
         END IF;
    END IF;
    Is this the right way of passing the parameters?
    all technical inputs are welcome.
    Regards
    Sam

  • Passing a parameter to a view from an Oracle Form ?

    Hello,
    Can I create a view on the database which takes a in a parameter from an Oracle form.
    If yes then what is the syntx , please let me know.
    Thanks
    IQ

    There are ways to simulate a 'parameterized view'.
    Create your view and have it reference some value in an application context (look up in the manuals "application context feature").
    Then from your Form, just prior to selecting from the view, make sure you set the value in your sessions' application context.

  • (Cont)Passing dynamic parameter with the URL while submitting the form

    Hi all,
    My question is based on this link --> http://forums.adobe.com/message/4942572#4942572
    May you kindly refer to the link above for reference.
    My question is suppose the client side have a html page with a url, when the user click on the link, how the adobe livecycle directly receive the link that clicked from the user? is it possible to do that? Please advise.
    Thanks a lot.

    please help....

  • Coloring  a popup field in a tabular form

    Hello all,
    i have searched for this subject many times, find a lot of answers to coloring at all, but none of them works for me.
    I have a tabular form,in the sql query i create a column COLOR (case clause) and try to color the back-/foreground of the column (Popup LOV:named LOV) and use this in 'tabular form element->element attributes':
    style="background-color:#COLOR#"
    or
    class="lov" style="background-color:#COLOR#"
    but it does not work.
    How could this be achieved ?
    Wolfgang

    Hi Wolfgang,
    You may have to use the HTMLDB_ITEM.TEXT functionality to do that.
    For example:
    HTMLDB_ITEM.TEXT(11, MGR, 10, 10, 'STYLE="COLOR:RED; BACKGROUND-COLOR:YELLOW"') "Manager"
    will create a column on the form with all items in red text on a yellow background. Your CASE statement would then need to determine the entire entry:
    CASE WHEN X = 1 THEN
    HTMLDB_ITEM.TEXT(11, MGR, 10, 10, 'STYLE="COLOR:RED; BACKGROUND-COLOR:YELLOW"')
    ELSE
    HTMLDB_ITEM.TEXT(11, MGR, 10, 10, 'STYLE="COLOR:BLUE; BACKGROUND-COLOR:WHITE"')
    END "Manager"
    Have a look at the following for details about using HTMLDB_ITEM functions:
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#BGBHDGAI
    Andy

  • As in phrase WHERE to address to field of the tabular form?

    I have generated the master tabular form.
    What realize in her set hung list box?
    When add in request design:
    WHERE SYSTEM_ID = :S_DEMSYSTEM_ID
    exhibit works untrue
    Also incomprehensibly, what do renovation hung by flap of the form
    In usual form such works beautifully.

    What to you it is not clear?
    In the tabulared form I should choose only from the contextual list of values

Maybe you are looking for

  • How can I add a Progress bar to show the "render to JPG" progress?

    Hi everyone, I have a button which renders my component to JPG. How can I attach a progress bar to show the progress of the rendering? <mx:Button label="render" click="renderasJPEG ()"/> public function renderasJPEG( ):void convertToImage( component0

  • PO creation by using BAPI_PO_CREATE1

    Hi gurus' I have to create open po by using bapi BAPI_PO_CREATE1. Po created properly as per our  inputs but in created po created date has take current date.Why is not taken input created date. can any one suggest me. why is happend and how to corre

  • CLIENT_SEND_FAILED error code: 500, error text: Internal Server Error

    Hi, Developed Proxy <-->PI<-->JDBC SELECT scenario and getting the following error. - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">   <SAP:Category>XIServer</SAP

  • How to make screenshot/jpg/pdf of ENTIRE long Safari window (not just visible part)?

    I want to get a "screenshot" (i.e. an image in any format -- PNG, JPG, PDF, whatever) of a looooooooong Safari window diplaying a Web page that entends far below the bottom of the visible screen area and has to be scrolled down to see all of it. I kn

  • Adding Packing Charges , Transportation Charges in Item Cost

    Hello Experts,                                  We are using Moving Average Valuation Method, i just wanted to ask how  to add packing charges , Transportation Charges, Freight charges on Item Cost while posting transaction. Regards Manish