P_session.set_value error

the following code in the before page section of the form
p_session.set_value(p_block_name=>'DEFAULT',
p_attribute_name=>'A_FIELD',
p_value='field value');
does not set the value of the field. What am I doing wrong?

If I'm not mistaken, I think you can only access p_session in the before and after displaying the page, and before and after processing the form. p_session is unavailable in the before displaying the form and after displaying the form areas.

Similar Messages

  • Error when using p_session.set_value

    I have the following pl/sql code in th ebefore displaying form.
    begin
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_DUMMY',
    p_value => 'hi THERE');
    end;
    When I try and run it as a portlet, I get the following error.
    An unexpected error occurred: ORA-01001: invalid cursor (WWV-16016)
    Error displaying form : ORA-01001: invalid cursor (WWV-16408)
    Error running user PL/SQL code: ORA-01001: invalid cursor (WWV-16403)
    ORA-06550: line 2, column 1:
    PLS-00201: identifier 'P_SESSION.SET_VALUE' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored (WWV-11230)
    Failed to parse as PORTAL30_PUBLIC - BEGIN begin
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_DUMMY',
    p_value => 'hi THERE');
    end; END; (WWV-08300)
    I'm logged in as Portal Admin.
    Is there a library I need to install?
    Any help would be appreciated.
    Thanks in advance,
    Larry

    If I'm not mistaken, I think you can only access p_session in the before and after displaying the page, and before and after processing the form. p_session is unavailable in the before displaying the form and after displaying the form areas.

  • Error while saving masterdetail form

    Hello all!
    I am getting the following error while trying to use nextval of a sequence in the ID column in the master detail form.Please help me out.
    Exception from wwv_generate_component.build_procedure (WWV-01821)
    Error creating module: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-16042)
    Error creating module: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-16042)
    Error adding module attributes: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-16043)
    Thanks in advance.

    Hi Madhu
    You can't write the insert for sequence.nextval in default of id field....Please go to insert code and write the following pl/sql code it will work..
    declare
    get_id number;
    begin
    --- get the primary key value from sequence
    select (schema name).(table name).SEQ_ID.NEXTVAL
    into get_id
    from dual;
    --- set the primary key
    p_session.set_value(
    p_block_name => p_block_name,
    p_attribute_name => 'A_ID',
    p_value => get_id,
    p_index => p_instance);
    doInsert;
    end;
    If it doesn't work please post the error code so that i can help you out...
    Vishnu

  • Error handling in Portal standard forms

    I have a customer who needs to validate input on a Form Based on a Table (standard component). They have tried code, as shown below, as a PLSQL handler on a Save button. This example can obviously be solved with JavaScript validation on the client, but they have similar requirements for validation on DB level.
    If procedure call 1) in the if statement is used, nothing happens. If procedure call 2) is used, it is executed in a new page as a standard error Oracle Portal error message.
    declare
    v_sender VARCHAR2(1000);
    v_sender_id NUMBER;
    begin
    v_sender := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_SENDER');
    v_sender_id := p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_SENDER_ID');
    insert into hd (number, text) values (hd_seq.nextval,
    'step 3 v_sender = ' || v_sender ||
    ' v_sender_id = ' || v_sender_id);
    if v_sender_id >= 100 then
    1) Custom error handling, does not display:
    show_error('Error message');
    2) Error handling is displayed, but as a standard error:
    raise_application_error(-20000, 'SenderID must be smaller than 100.');
    else
    doInsert;
    end if;
    end;
    The customer has two questions:
    Why does the custom procedure in 1) "show_error" not execute, and if it does, why does it not display? show_error works and the if statement is entered.
    Is it possible to take control of Portals error handling on standard components (forms etc.), to show custom error messages with the style used on the component/page instead of the standard Error: ORA- ....etc. as Portal displays it?
    Customer needs reply asap. Please reply directly. Any help will be much appreciated!
    Kind regards
    Jakob Lund

    Jacob,
    Try following:
    declare
    v_sender VARCHAR2(1000);
    v_sender_id NUMBER;
    begin
    v_sender := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_SENDER');
    v_sender_id := p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_SENDER_ID');
    insert into hd (number, text) values (hd_seq.nextval,
    'step 3 v_sender = ' || v_sender ||
    ' v_sender_id = ' || v_sender_id);
    if v_sender_id >= 100 then
    p_session.set_value(
    p_block_name => "_block",
    p_attribute_name => '_STATUS',
    p_value => 'Sender ID must be less than 100!');
    -- return to your form with status message set
    -- and all fields filled with recent values
    return;
    end if;
    end;
    -- This point is reached only if validation is OK
    doInsert;
    Regards,
    Henn

  • Session storage errors in master-detail form

    hi,
    as the sequences do not work in master detail forms, i'm using session variables but the form does not compile and gives error.
    following is my code in the SAVE button of the master-detail form -
    declare
    new_prod_id number(10);
    begin
    select BPSIDEV.PRODUCT_ID_SEQ.NEXTVAL
    into new_prod_id
    from dual;
    p_session.set_value
    p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'A_PRODUCT_ID',
    p_value => new_prod_id
    doSave; -- This is generated code
    end;
    the action item values is as foloows -
    Master - INSERT
    Detail - INSERT
    am i missing here something ? or is anything wrong here ?? pls advise ...
    after the above changes the form would not compile at all.
    also how would i populate the the detail records with the foreign key ??
    thanx...
    null

    This problem is fixed in 3.0.8 release of Portal which will be available with the next release of iAS.
    Actuallty the fix is simple look at the generated package of EXAMPLE_MD_FORM from EXAMPLE_APP, onSave event handler looks like this:
    procedure onSave
    p_block_name in varchar2,
    p_object_name in varchar2,
    p_instance in integer,
    p_event_type in varchar2,
    p_user_args in varchar2,
    p_session in out WWV_30898.wwa_api_module_session
    is
    "_master_block" varchar2(30) := 'MASTER_BLOCK';
    Some more code.......
    And then closer to the end in detail processing section there is something like:
    "_d_data_rec".COMM:=p_session.get_value_as_NUMBER(
    p_block_name => "_detail_block",
    p_attribute_name => 'A_COMM',
    p_index => "_cnt"
    "_d_data_rec".DEPTNO:=p_session.get_value_as_NUMBER(
    p_block_name => "_detail_block",
    p_attribute_name => 'A_DEPTNO',
    p_index => "_cnt"
    ===========================================
    You'll need to insert following code, just one if statement, that's it. Please note every time you regenerate the package this code will be lost, so you'll need to add this agains and again. Not a perfect solution, that's why I like JS workaround better.
    ============================================
    if "_d_data_rec".DEPTNO is NULL and "_m_data_rec".DEPTNO is NOT NULL
    then
    "_d_data_rec".DEPTNO := "_m_data_rec".DEPTNO;
    end if;
    ============================================
    ============================================
    if "_detail_action" = 'DELETE' and "_DETAIL_ROWID" is not null then
    DELETE FROM WWV_30898_DEMO.EMP WHERE ROWID = "_DETAIL_ROWID";
    "_detail_deleted" := "_detail_deleted" + 1;
    elsif "_detail_action" = 'UPDATE' then
    UPDATE WWV_30898_DEMO.EMP SET EMPNO="_d_data_rec".EMPNO,ENAME="_d_data_rec".ENAME,JOB="_d_data_rec".JOB,MGR="_d_data_rec".MGR,HIREDATE="_d_data_rec".HIREDATE,SAL="_d_data_rec".SAL,COMM="_d_data_rec".COMM,DEPTNO ="_d_data_rec".DEPTNO WHERE ROWID = "_DETAIL_ROWID" ;
    "_detail_updated" := "_detail_updated" + 1;
    elsif "_detail_action" = 'INSERT' then
    INSERT INTO WWV_30898_DEMO.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) VALUES ("_d_data_rec".EMPNO,"_d_data_rec".ENAME,"_d_data_rec".JOB,"_d_data_rec".MGR,"_d_data_rec".HIREDATE,"_d_data_rec".SAL,"_d_data_rec".COMM,"_d_data_rec".DEPTNO) RETURNING ROWID INTO "_DETAIL_ROWID";
    "_detail_inserted" := "_detail_inserted" + 1;
    end if;
    ............................

  • How to use P_SESSION.GET_VALUE_AS_VARCHAR2 in MDform item default Value

    I have a master detail form based on two tables. In the DETAIL_BLOCK section I have an item named 'APPROVAL_STATUS' based on the column of the same name in the underlying table. I have an unassociated textbox named CURR_APPROVSTAT in the detail form for which I would like to set it's default value to the current value of APPROVAL_STATUS when the master detail form is opened in %3D mode via a hyperlink.
    I have tried using the p_session.get_value_as_varchar2 in the default value field of the CURR_APPROVSTAT item, but it generates errors on run.
    EX:
    Item CURR_APPROVSTAT
    default value field
    p_session.get_value_as_varchar2(
    p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'APPROVAL_STATUS')
    Default Value type:
    Function returns varchar2
    on run, it generates error that p_session must be declared (I get the same error if I use portal.p_session... also).
    default value field
    select p_session.get_value_as_varchar2(p_block_name => 'DETAIL_BLOCK', p_attribute_name => 'APPROVAL_STATUS')from dual
    Default Value type:
    SQL returns varchar2
    on run, it generates and error that a right parenthesis is missing.
    I have also tried using the following in the Additional PL/SQL - before displaying form:
    p_session.set_value
    (p_block_name => 'DETAIL_BLOCK'
    ,p_attribute_name => 'CURR_APPROVSTAT'
    ,p_value => p_session.get_value_as_varchar2(
    p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'APPROVAL_STATUS')
    on run, this generates the error identifier 'P_SESSION.GET_VALUE_AS_VARCHAR2' must be declared
    My questions are:
    1) is it possible to use the p_session.get_value_as_varchar2 in the default value field?
    2) If yes, then what if the proper syntax
    3) If no, can I set this value when the MD form opens from the additional pl/sql triggers, and if so, what is the syntax?
    any assistance you can offer is greatly appreciated.
    Sincerely,
    ARM

    In my detail block I have 10 rows displaying that may or may not have data after querying. To set the default value in the detail block, you have to set the index value of p_session.set_value. Since I don't know how many rows are already populated, I'm setting the default value to all 10 rows. Is there a better approach?
    Here's my code example, which I've placed in the additional PL/SQL section before displaying the form...
    DECLARE
    l_district_id VARCHAR2(7);
    BEGIN
    l_district_id := p_session.get_value_as_varchar2
    (p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'A_DISTRICT_ID');
    FOR i in 1 .. 10 LOOP
    p_session.set_value
    (p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'A_DISTRICT_ID',
    p_value => TO_CHAR(l_district_id), p_index => i);
    END LOOP;
    END;

  • Trying to use set_value in onChange event handler

    Is it acceptable to use p_session.set_value in the onChange event handler?
    I am trying to do a couple of things in this event handler, I am trying to validate a code and if the code is invalid I wish to
    show an alert. If the code is valid I then wish to fill another field with a value from the database. Both fields I am working
    with in the event handler are table columns. I have not been able to track down a specific error message, however, when
    I view source the code for this is blinking. Here is what I am trying, in the onChange event handler.
    declare
    l_acct varchar2(21);
    l_codeid number;
    begin
    l_acct := p_session.get_value
    (p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'A_CONCATENATED_ACCT',
    p_index => 1);
    if l_acct is not null then
    select code_combination_id
    into l_codeid
    from webapp1.an_code_combinations_v
    where concatenated_acct = l_acct;
    if sql%found then
    p_session.set_value
    (p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'A_CODE_COMBINATION_ID',
    p_index => 1,
    p_value => l_codeid);
    else
    --- how can I display an alert?????
    end if;
    end if;
    end;
    Any suggestions on how to show an alert, and how to display values into fields would be very helpful.

    I think you are trying to use PL/SQL in the JAVASCRIPT onChange event handler. What you need to do is use JAVASCRIPT.
    Put the following function on the (... before displaying the page) option on the Additional PL/SQL page.
    Javascript function that loop through all fields on a form.
    Set value Example:
    htp.p('<script language = "JavaScript1.3">
    function setCommValue(form,target,value)
    var itemname;
    for(var i = 0; i < form.length; i++)
    itemname = form.elements.name.split(".");
    if (itemname[2] == target)
    form.elements[i].value = value;
    </script>');
    You can call the above code from a Javascript Event Handler for a Form item. Example: (an item's OnChange Event)
    setCommValue(this.form,'SITE_ID',this.value);
    Good Luck and let us know if you experience in Lessons Learned.
    Thanks,
    Linda Gowen

  • User defined error handling in PLSQL procedure of portal form

    I need some help of building a user defined exception handling in PLSQL.
    I build a portal form based on a PLSQL procedure.
    In this procedure there are several SQL statements with exception handling.
    In case of exception I want to display my on error message and than raise the procedure, so that the user can read the message and than go back to form.
    I try this by calling a raise statement generating some HTML output over htp.p() but than the output look's like
    SQL:
    begin
    "ACHEMA2003"."P_LOGIN" ( P_STAMM_SEQ => 33491, P_ADRESSNR => 2009721, P_PASSWORD => '3333', P_PROJEKT_ID => 'ACHEMA2003', P_MESSENR => '00023', P_SPKZ => 'D');
    end;
    ORA-20000:
    Login ACHEMA 2003
    Ung|ltiges Passwort !!!
    Back to form
    I want to supress the standard Oracle messages.
    Now I read about the packages wwerr_api_error and wwerr_api_error_ui to make this, but it seems to be a little difficult.
    Is there anybody who have a solution for this problem, perhaps some example PLSQL code for this.
    Thanks Erwin.

    Jacob,
    Try following:
    declare
    v_sender VARCHAR2(1000);
    v_sender_id NUMBER;
    begin
    v_sender := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_SENDER');
    v_sender_id := p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_SENDER_ID');
    insert into hd (number, text) values (hd_seq.nextval,
    'step 3 v_sender = ' || v_sender ||
    ' v_sender_id = ' || v_sender_id);
    if v_sender_id >= 100 then
    p_session.set_value(
    p_block_name => "_block",
    p_attribute_name => '_STATUS',
    p_value => 'Sender ID must be less than 100!');
    -- return to your form with status message set
    -- and all fields filled with recent values
    return;
    end if;
    end;
    -- This point is reached only if validation is OK
    doInsert;
    Regards,
    Henn

  • How to set_value for non-table items.

    I have a form, based on scott.emp, with a button and three fields, empno, ename and xxx. The empno and ename fields are based on the scott.emp table, whereas the xxx field is a non-table based field.
    Setting xxx text type to either a text area or text box makes no difference.
    The following code in the buttons PL/SQL Button Event Handler, Custom section results in a (WWV-00000) error.
    begin
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_XXX',
    p_value => 'Hello');
    end;
    However, if I change the p_value to ename, a table based item, the code works as expected.
    I ran across a post that had the following link
    Re: transactions
    Regarding setting values for non-table items. Unfortunately, the post was made prior to the latest discussion forum reorganization, so it's no longer valid.
    I would appreciate any help on the problem.
    Thanks, Larry

    Hi,
    Try using set_value_as_string
    begin
    p_session.set_value_as_string(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_XXX',
    p_value => 'Hello');
    end;
    Thanks,
    Sharmila

  • Trapping exceptions/error messages on form based on procedure

    I am trying to display meaningful error messages when various exceptions arise. I have created a form based on a procedure and the procedure works and returns an exception where I want it.
    I have been trying to use the PL/SQL Button event handler to return an error message to the user, but have not succeeded. I have tried:
    doSubmit;
    exception
    when others then
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => '_STATUS',
    p_value => 'my error message';
    (I have run this code both with a return at the end and not.)
    This runs, but this return a page that says:
    Error: WWV-0000.
    (It does not display 'my error message'.)
    I have also tried, from the Portal FAQs:
    doSubmit;
    exception
    when others then
    wwa_app_module.set_target('myschema.MY_ERRORS.SHOW?p_arg_names=p_errcode&p_arg_values=-1',
    'GO');
    where my_errors is a dynamic page that displays an error message when you pass it a value, in this case, -1.
    I get the following error message from this code:
    PLS-00201: identifier 'WWA_APP_MODULE.SET_TARGET' must be declared
    I did find some discussions on problems with exceptions when you have a form based on a procedure, but these were from 2001. Any help with this or directions to documentation would be greatly appreciated.

    I worked out one answer: the code provided by Oracle for the second example omitted the portal schema qualifier on the wwa_app_module. It should be (for 10g release 2, at least)
    PORTAL.wwa_app_module.set_target('myschema.MY_ERRORS.SHOW?p_arg_names=p_errcode&p_arg_values=-1',
    ^^^^^^^^^^
    'GO');
    This worked, and returned the custom error message.
    I still can't figure out why the p_session.set_value returns an error message that's just WWV-0000, but I would like to. Any help, even just what page in what document to look at would be appreciated.

  • Set_value function

    To whom may concern:
    e.g.
    p_session.set_value(
    p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'A_CHILDNO',
    p_index => 1,
    p_value =>v_child_no);
    Is that possible to include p_index
    within 'p_session.set_value' which
    exist in master-detail form
    Thanks in advance
    null

    Vincent,
    I'm not sure that I understood the question correctly, anyway:
    p_index parameter is always = 1 in 'MASTER_BLOCK'
    p_index parameter runs from 1 to max no. of detail rows in your form for 'DETAIL_BLOCk'
    you cannot address master block using the same p_index in your detail block, since master block has only one row.
    Thanks,
    Dmitry

  • P_session functions

    Where do I find documentation for p_session functions like "set_value", "get_value_as_number", etc.? I would like to change the location for an image dynamically using "p_session.set_value" or something like it.
    Thank You,
    RN

    Hi,
    You can go to this url to session api documentation.
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/PLSQL/DOC/PLDOC_9026/wwa_api_module_session.html
    Thanks,
    Sharmila

  • Inserting on Master Detail form

    Hello,
    I have created two tables. One I'm using as my master form and the other for my detail form.
    Table 1
    CREATE TABLE AGENCY (
    AGY_ID NUMBER (9) NOT NULL,
    AGY VARCHAR2 (1) NOT NULL,
    AGY_DESC VARCHAR2 (10) NOT NULL,
    AGY_DESC_LONG VARCHAR2 (100),
    CONSTRAINT PK_AGENCY
    PRIMARY KEY ( AGY_ID ) )
    There is post insert trigger on AGY_ID using a sequence:
    CREATE OR REPLACE TRIGGER PORTAL30.AGY_ID_PI
    BEFORE INSERT
    ON AGENCY
    FOR EACH ROW
    Begin
    If inserting and ( :new.AGY_ID is null ) Then
    select AGY_ID.nextval into :new.AGY_ID from dual;
    End If;
    End;
    Table 2
    CREATE TABLE OFFICECODE (
    OFF_ID NUMBER (9) NOT NULL,
    OFF_DESC VARCHAR2 (4) NOT NULL,
    AGY_ID NUMBER (9) NOT NULL,
    OFF_DESC_LONG VARCHAR2 (100),
    CONSTRAINT PK_OFFICECODE
    PRIMARY KEY ( OFF_ID ) )
    There is a Foreign Key on OFFICECOD.AGY_ID TO AGENCY.AGY_ID:
    ALTER TABLE OFFICECODE ADD CONSTRAINT OFF_AGY_ID_FK
    FOREIGN KEY (AGY_ID)
    REFERENCES PORTAL30.AGENCY (AGY_ID) ;
    There is post insert trigger on AGY_ID using a sequence:
    CREATE OR REPLACE TRIGGER PORTAL30.OFF_ID_PI
    BEFORE INSERT
    ON OFFICECODE
    FOR EACH ROW
    Begin
    If inserting and ( :new.OFF_ID is null ) Then
    select OFF_ID.nextval into :new.OFF_ID from dual;
    End If;
    End;
    I create a MD form in Portal 3.0.9.8.0 just fine. However I cannot insert the master and the detail at the same time because I get the following error:
    Error: An unexpected error occurred: ORA-01400: cannot insert NULL into ("PORTAL30"."OFFICECODE"."AGY_ID") (WWV-16016)
    If I create the Master record 1st, then add the detail records it works fine. But how do I insert the Master and the detail records at the same time?
    Thanks,
    Martin

    Martin,
    I had the same problem and with the help of some other folks in the forum I came up with this. It goes on the save button, plsql event handler. You'll see the 'doSave' call at the end of the procedure. It checks the value of the Master Action List and if it is 'INSERT' then sequence.nextval will be selected into v_master_id and then inserted into the table. Let me know if you have any questions. It probably needs a little clean up and some functionality for delete but so far I haven't had any problems with it.
    DECLARE
    v_master_id number(10);
    v_masteraction varchar2(10);
    v_detailaction varchar2(10);
    BEGIN
    v_masteraction := p_session.get_value_as_varchar2(p_block_name=> 'MASTER_BLOCK', p_attribute_name=>'_MASTER_ACTION');
    IF (v_masteraction = 'INSERT') THEN
    select rfi_admin.rasset_qc_master_seq.nextval into v_master_id from dual;
    p_session.set_value
    (p_block_name => 'MASTER_BLOCK'
    ,p_attribute_name => 'A_ID'
    ,p_index => 1
    ,p_value => v_master_id
    FOR i in 1..g_max_det_rec LOOP
    p_session.set_value
    (p_block_name => 'DETAIL_BLOCK'
    ,p_attribute_name => 'A_MASTER_ID'
    ,p_index => i
    ,p_value => v_master_id
    END LOOP;
    END IF;
    IF (v_masteraction = 'UPDATE') THEN
    v_master_id := p_session.get_value_as_varchar2(p_block_name=> 'MASTER_BLOCK', p_attribute_name=>'A_ID');
    END IF;
    FOR i in 1..g_max_det_rec LOOP
    v_detailaction := p_session.get_value_as_varchar2(p_block_name=> 'DETAIL_BLOCK', p_attribute_name=>'_DETAIL_ACTION', p_index => i);
    IF (v_detailaction = 'INSERT') THEN
    p_session.set_value(p_block_name=> 'DETAIL_BLOCK', p_attribute_name=> 'A_ASSET_QC_MASTER_ID', p_index => i, p_value=> v_master_id);
    END IF;
    END LOOP;
    doSave;
    END;

  • Exception Handling for a Form Based on a Table

    I created a form based on a table. If a user tries to enter a
    record with key data that matches an existing record, Oracle
    Portal creates a page and displays:
    Error:
    An unexpected error occurred: ORA-00001: unique constraint
    (TIMETRACK.SYS_C007185) violated (WWV-16016)
    How can I capture this exception so that I can display a
    friendlier error message (via a JavaScript alert or other
    means) instead of this page?
    Fran

    James, I tried your suggestion as follows:
    doInsert;--- This is the default handler
    Exception
    when DUP_VAL_ON_INDEX then
    p_session.set_value(
    p_block_name => "_block",
    p_attribute_name => '_STATUS',
    p_value => ' Time has already been entered for this project on
    this date. Click the Back button to return to the MIM Time
    Entry page. ');
    Raise;
    end;
    It did nothing. All I got was the default message.
    I then changed '_STATUS' to 'A_STATUS'. The resulting error
    message was: "Error: (WWV-00000)"
    ON A RELATED NOTE...
    I discovered while testing this form on IE 5 on a Mac, that
    additional error messages are generated. With IE 5 on WindowsNT
    only a message regarding the unique constraint is produced. On
    the Mac there is an additional message "No conversion performed
    for type INTEGER, value is NsNu (WWC-49102)"
    Anyone have any thoughts as to why the output of system
    generated errors should differ between a PC and a Mac?
    Fran

  • Calling a form in Update form

    Hi,
    I'am calling a form from another form but passing one of the parameters to the second form. The second form is only showing the query and reset button, no matter what i do it's not showing the update button. can anyone help me.
    i wrote thIS code in the second form before displaying the form
    p_session.set_value(p_block_name => 'DEFAULT',p_attibute_name => '_FORM_STATE',p_value => 'UPDATE_AND_DELETE');
    but it's giving me an error saying , wrong number of parameters.
    Can anyone help.
    Thanks.

    Hi,
    You should call the form in the query mode. Here is a sample which will call the form for a deptno 10.
    portalschema.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1280222922&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=deptno&p_arg_values=10&p_arg_names=_deptno_cond&p_arg_values=%3D
    The deptnocond is required for the form in query mode. If you want to query for empno and not deptno then it should be empnocond
    Thanks,
    Sharmila

Maybe you are looking for

  • Charging US Macbook in  Europe

    What hardware do I need to charge my MacBook (USA) in the UK and continental Europe?

  • Avoid substitute material.., while creating sales order with BAPI?

    Hi experts. I use BAPI_SALESDOCU_CREATEFROMDATA1 function module to create a sales order. Material A has a substitute material B with substitute reason 0005. So if I use material A when creating sales order with above BAPI function, the order is crea

  • Iphoto update error

    Just went to download and install an iphoto update and got the following error: The Installer could not validate the contents of the 'iPhoto_81' package. Contact the software manufacturer for assistance. Is this something I need to contact Apple on?

  • [SOLVED] wireless network setup

    Hi! I've been trying to setup a wireless connection, unfortunately without success. So.. my wireless card is a Broadcom BCM4301 802.11b, so I followed the wiki http://wiki.archlinux.org/index.php/Wireless_Setup to check for the module and install it

  • PC won't boot, power LED on but, can't power up

    I've tried everything and at this point I think it's my power supply. I came home yesterday and my PC was off (it was on when I left).  I noticed the power LED was on (steady, not blinking) but, none of the switches would work.  I tried unplugging th