Forms Personalization:Procedure

I have a requirement to pass value from fields to a procedure and the output of the procedure need to be set as a default field in another form field.
Can anyone provide sample code for passing the form field values and setting the value back in the form field.
Thanks

If I understand correctly what you are trying to do. Try the following.
declare
param_list_id paramlist;
begin
** Call your procedure here, returning values . . .
** I used example parameters of case_id & program_id. These parameters
** must be defined in the called Form in the parameter section. Then reference
** them in the called Form using something similar to
** :block.CASE_ID := :PARAMETER.CASE_ID;
param_list_id := get_parameter_list('param_data');
if not id_null(param_list_id) then
destroy_parameter_list(param_list_id);
end if;
param_list_id := create_parameter_list('param_data');
add_parameter (param_list_id, 'case_id', text_parameter, procedure_value1);
add_parameter (param_list_id, 'program_id', text_parameter, procedure_value2);
call_form('case_detail', NO_HIDE, NO_REPLACE, NO_QUERY_ONLY, param_list_id);
end;

Similar Messages

  • Error when calling procedure from form personalization

    Hi every body
    I want to call a procudre using form personalization . I made the procedure and in form personalization i call it as follow:
    built in type : Execute a Procedure
    Argument :
    ='GAZ_EMP_ASSIGN_UPDATE(' || :ASSGT.ORGANIZATION_ID || ', ' || :ASSGT.ASSIGNMENT_ID || ', ' || FND_PROFILE.VALUE('USER_ID') || ', ' || FND_PROFILE.VALUE('DB_SESSION_ID') ||' )'
    but the following error raised when i click on Apply Now button :
    the string (='GAZ_EMP_ASSIGN_UPDATE(' || :ASSGT.ORGANIZATION_ID || ', ' || :ASSGT.ASSIGNMENT_ID || ', ' || FND_PROFILE.VALUE('USER_ID') || ', ' || FND_PROFILE.VALUE('DB_SESSION_ID') ||' )' )
    couldn't be evaluated because of error ORA-06550 :line 1 , column 43
    PLS-00103:encountered the symbol ")" while expecting one of the folowing (- + ...... etc
    can anyone have a solution to this problem because it made me mad .(urgent)
    Or if anyone have another way to call the procedure ??
    Note that i want to pass db_session_id to the procedure from the application so does anyone have a complian about the way of passing this parameter to the procedure ??

    See http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/forms-personalization-execute-a-procedure-1778674

  • Form Personalization - calling stored procedure attached in the form/library

    Let said we have a form: OEXOEORD.fmb (Sales order form)
    Using Form Builder to open it, we see that it links to other PL/SQl Libraries such as OEXOELIN (file: OEXOELIN.pll)
    and there are many stored procedures in OEXOELIN.
    is that possible that in the form personalization of Sales order form (OEXOEORD.fmb)
    we call a procedure in OEXOELIN library? eg: we call OE_LINE_SHIPPING.packing_insruction procedure in OEXOELIN library?
    i have tried to use the Builtin FORMS_DLL or "Execute a Procedure", but is not working.
    we are using R12.

    the solution we found is:
    1) use form personalization to call custom library
    2) custom library call the form library

  • How To Pass Parameter To a Procedure in Form Personalization

    Hi ,
    I Have to pass some parameters to a procedure which will submit a concurrent request .
    But the parameter should pass through a Form , like lov or some check Boxs.
    when i am doing it through Form Personalization, i am unable to get the value from LOV . (11i)
    BEGIN
    XXCASTLE_CNTL_BRD_PRINT('Manufacturing','Released Allocated Tasks',${item.find_tasks.SUBINVENTORY.value}',fnd_profile.value('MFG_ORGANIZATION_ID'));
    END;
    Please Help.
    Thanks & Regards
    Rishi Gupta
    +91-9738174849

    Hello Rishi,
    The parameters are passed something like below in the forms personalization.
    item.LINE.SHIP_FROM_ORG_ID.value
    SHIP_FROM_ORG_ID being the item name
    LINE is the block name
    For calling the procedure in personalization,
    TYPE = Builtin
    Builtin Type = Execute a Procedure
    Argument = Call your code by including declare, begin etc...

  • How to call a procedure which returns out parameter in form personalization

    Dear All,
    I have one procedure which is having 2 parameter in and one parameter out .
    The question is how to get the parameter out in from personalization in a local or global variable?
    Thanks

    Yes.
    You can use the "forms_ddl" builtin
    See the following examples. Make sure you include the single quotes as well as the = sign in the begining.
    See http://phenix.blog.163.com/blog/static/8397219320096213953151/
    http://oracle.anilpassi.com/forms-personalizations.html
    Sandeep Gandhi

  • Calling Procedure in Form Personalization in R12

    Hi,
    I'm trying to call a procedure in form Personalization (R12).
    Tried below versions but getting error, could you suggest ?
    ='begin
    XXHI_DFF_NULL(''' || $KANBAN_CARDS.KANBAN_CARD_NUMBER || ''' );
    end'
    =========================================================================
    ='declare
    v_field_value VARCHAR2(200) := :KANBAN_CARDS.KANBAN_CARD_NUMBER;
    begin
    XXHI_DFF_NULL(v_field_value);
    end'
    Thanks.

    You are missing the curly braces.
    See http://apps2fusion.com/apps/21-technical/296-stored-procedure-form-personalization for an example.
    Hope this helps,
    Sandeep Gandhi

  • Execute Procedure in Forms Personalization with 4 parameters

    Dear Friends,
    i want to use ( Execute Procedure ) in forms personalization of Absence Form and i want to pass 4 parameters to the procedure (2 date and 2 number datatype)
    but i failed so far in writing this so please help me to write this
    my code look like this :
    =' begin
    XX_HR_CALL_REPORTS('''${ABA.ABSENCE_DAYS.value} ''','''||
    ${ABA.DATE_START.value}||''','''||${ACCRUALS.AFTER_NET_ENTITLEMENT.value}||''','''||
    ${ABA.DATE_END.value}||'''
    end
    Thank & Regards,
    Yas

    No Replies ? Is this an irrelevant question or I posted into wrong forum ??

  • Calling a procedure/function in forms personalization

    Hi,
    Can any one please help me in calling a procedure/function from the forms personalization? The requirement is to create an attachment when ever a new order line is created in R12. So for this, I created a procedure which calls attachment creation API. And in the forms personalization, I am doing the following.
    Trigger Event: WHEN-VALIDATE-RECORD
    Trigger Object: LINE
    Condition: :LINE.INVENTORY_ITEM_ID is not null
    Action Type: Builtin
    Builtin Type: Execute a Procedure
    Argument: =xx_test_attachment_new(:LINE.LINE_ID,20,'OE_ORDER_LINES',1,'test123')
    This procedure works individually if I call it from TOAD.
    Help is really appreciated?
    Thanks,
    Sri.

    A question for the Forms ?
    Nicolas.

  • Assign a value to a global variable - form personalization

    Hi All,
    We have a requirement in which we want to display a message depending upon the out parameter of the procedure in form personalization.
    We are using 'Builtin' with the buitin type 'Execute a Procedure'.
    And the argument passed is :
    *='declare
    l_request_id Number;
    l_out_come VARCHAR2(10);
    begin
    apps.xx_sr_email_pkg1.xx_sr_email_p1
    ('''||${GLOBAL.XX_CUST_ACCOUNT_ID.VALUE}||''',
    '''||${GLOBAL.XX_INCIDENT_ID.VALUE}||''',
    '''||${GLOBAL.XX_EMAIL_TYPE.VALUE}||''',l_request_id);
    :GLOBAL.XX_REQUEST_ID := l_request_id;
    end'*
    But its not assigning the value of l_request_id to the gloabal variable XX_REQUEST_ID.
    Can you please help?
    Thanks

    I don't have a solution but a work around.
    What if you create a function that accepts the same in parameters and returns the message.
    And then you create an action of the type message and in the message you call the function such as
    = select xx_sr_email_pkg1.sr_email_f1 .... from dual
    Sandeep Gandhi

  • Problem in Form personalization of FA module of Quick Additions

    Hi Experts,
    Version : 12.1.1
    I am doing a form personalization in Quick additions of FA module.
    I have registered a concurrent as PL SQL procedure. The procedure updates the asset number as per our requirement once the asset gets added.
    To achieve this I have created a procedure to submit the concurrent request and executed the procedure as follows in form personalization:
    Condition:
    1) Trigger Event=> When Validate record
    2) Trigger Object => Addition Dist
    Actions:
    1) Type => Buitin
    2) Builtin Type => Execute a Procedure
    3)Argument => 'begin proc_name end'
    The problem is concurrent is being executed seven times,
    Please suggest me your valuable solutions as soon as possible.

    Hi,
    In PBO write like this.
    Module SET_NAME_OF_SCREEN_PBO.
    THEN INSIDE THE MODULE WRITE
    Module SET_NAME_OF_SCREEN_PBO OUTPUT.
    DATA PROCESS TYPE STRING.
    IF SY-TCODE EQ 'ZPURCR_22609'.
    PROCESS = 'CREATE'.
    ENDIF.
    IF SY-TCODE EQ 'ZPURCHG_22609'.
    PROCESS = 'CHANGE'.
    ENDIF.
    IF SY-TCODE EQ 'ZPURDIS_22609'.
    PROCESS = 'DISPLAY'.
    ENDIF.
    ENDMODULE.
    Regards
    Sandipan

  • POST COMMIT FORM issue in Oracle Forms Personalization

    Hi All,
    I have following requirement in Oracle Forms Personalization :
    1. User updates a records( from the table xxtable) in the Form
    2. Following this, on saving the record, a stored procedure is called to pick those records which are updated/inserted and display. But its displaying still the old values, since commit has not occured.
    3. I have added new forms personalization using POST-DATABASE-COMMIT and POST-FORM-COMMIT. However, none of this trigger is firing.
    Used POST-UPDATE and POST-INSERT, but this trigger are not fetching the committed data but picking the old value.
    Please let me know, how this requirement can be achieved in Oracle forms personalization?
    Many Thanks in Advance.

    the difference in time is that you doing the following additional tasks in forms that you dont do in sqlplus:
    1. you are retrieving data into the fields of the form.
    2. creating the record.
    which is a network round-trip for each record. AFAIK.
    if its an option for you, I would create a global temporary table and then populate the temporary table with the required data. Then build a base table block based on the global temporary table. This way you can use the forms default functionality and its fast because you dont have to populate all the records on the form before you see the first record!
    :>)

  • Error in Form Personalization....

    I did the following: Action Type : Builtin ,Builtin Type : Execute Procedure, Argument ='declare
    BEGIN
    user_resp_single_signon ;
    END' -- This is running fine.
    When I try to pass parameter as below:
    ='declare
    BEGIN
    user_resp_single_signon_p('Test');
    END'
    I get error :The string '=declare End' could not be evaluated because of error ORA-000923: FROM keyword not found where expected.
    Could you plz let me know what is the issue on this?
    Thanks

    Pl post details of OS and EBS versions.
    Pl see if these MOS Docs can help
    How To Call Code Logic Or Procedure In CUSTOM.PLL Using Form Personalization - Builtin 'Call Custom          (Doc ID 747508.1)
    Not Able to Pass Parameters to a Procedure During form Personalization (Doc ID 308457.1)
    Sample CUSTOM Library Code To Customize Applications          (Doc ID 744065.1)
    HTH
    Srini

  • Query regarding Forms Personalization

    Hi ,
    I have a requirement to execute the following code in a WHEN-NEW-FORM-INSTANCE trigger to update the WHERE clause of the Item Category flexfield in the Purchasing module.
    Normally I would have executed this code from within the trigger. How can I replicate it using Forms Personalization, I mean what type of Action do I need to define which will execute this code directly or indirectly.
    FND_KEY_FLEX.UPDATE_DEFINITION( BLOCK=>'LINES',
    FIELD=>'ITEM_CATEGORY',
    ENABLED=>'N'
    WHERE_CLAUSE=>' ( NVL(DISABLE_DATE, SYSDATE + 1) > SYSDATE AND category_id =
    644)'
    I also tried to create a stored procedure without luck as fnd_key_flex is defined in a library attached to the form, so get error creating the procedure.
    Thank You
    Shankar.

    Hi,
    I guess I will need to achieve this using CUSTOm.pll. But, I have a query !
    The KFF is defined using fnd_key_flex.define(block=>'LINES',
    field=>'ITEM_CATEGORY',
    id=>'CATEGORY_ID',
    code=>'MCAT',
    appl_short_name=>'INV',
    num=> ':po_startup_values.structure_id',
              required => 'Y',
              validate => 'FULL',
    usedbflds=>'Y',
              autopick=> 'Y',
              qbe_in=> 'Y',
    SELECT_COMB_FROM_VIEW=>'MTL_CATEGORIES_VL',
              COLUMN=> 'DESCRIPTION \\\"' || NAME_IN('PARAMETER.DESCRIPTION') || '\\\"(240)',
    WHERE_CLAUSE=>' ( NVL(DISABLE_DATE, SYSDATE + 1) > SYSDATE )',
    WHERE_CLAUSE_MSG=> 'APPL=PO;NAME=PO_RI_INVALID_CATEGORY_ID');
    where it selects from mtl_categories_v.
    Tha Dev Guide mentions that we can update the WHERE_CLAUSE using for eg.
    FND_KEY_FLEX.UPDATE_DEFINITION( BLOCK=>'LINES',
    FIELD=>'ITEM_CATEGORY',
    ENABLED=>'N'
    WHERE_CLAUSE=>' ( NVL(DISABLE_DATE, SYSDATE + 1) > SYSDATE AND
    category_id = 644)'
    But, there is no option to change the source view itself. How do I change that ? I cannot see a parameter SELECT_COMB_FROM_VIEW for the FND_KEY_FLEX.UPDATE_DEFINITION !!
    Can I write the FND_KEY_FLEX.DEFINE again in CUSTOM.pll using my custom view instead ? Will it override the default definition ?
    Any suggestions or alternative ways would be appreciated.
    Thanks
    Shankar
    Edited by: user565538 on Mar 27, 2009 3:46 AM

  • Forms personalization and global variable

    Hi,
    I'm trying to call a procedure in forms personalization and using a defined global variable. The data in the global variable is number. In the procedure, some of the parameter has a number datatype and I'm converting the global variable using to_number eg (to_number(:global.XX_LINE_NUM). This fails with error message ora-01403 no data found. I've tried putting the above into a variable with datatype number in the declare statement, and it errors as well.
    Does anyone knows the syntax to convert the global variable to number datatype in personalization.
    Thanks

    Ask in this forum : OA Framework

  • How to pass the FORM Fields value by Form Personalization

    Hi ALL,
    I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
    can any one suggest what to do???
    i tried with these syntax
    TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
    TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
    Regards
    Ravi

    Hi,
    Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
    Regards,,
    Anil.

Maybe you are looking for

  • Sender File Content Conversion with re-occuring record pairs

    Hi, Our FCC works fine with the following structure: Header1: H1F1, H1F2, H1F3,... (1:1) Header2: H2F1,H2F2,H2F3,..... (1:1) Notes: NF1,NF2,NF3,.............(1:1) Line1:L1F1,L1F2,L1F3,.............(1:N) Line1:L1F1,L1F2,L1F3, Line1:L1F1,L1F2,L1F3, Lin

  • Sync photo albums

    I have spent considerable time organizing photos into albums iPhoto in Mac (Lion).  Yet when I sync my iPad2 to this machine, it receives all the individual photos, but none of the "album" collections.   What am I missing here?

  • From iMovie 6 to iDVD?

    Hello I wondered what the best option would be to save project out of iMovie the drag/drop into iDVD? i was advised by "very helpful" Beverly Maneatis not to choose the share option "iM to iDvd" due to double rendering. So after editing my footage wi

  • What can't I log into iMessage on my ipad2

    I am trying to log into iMessage on my ipad2 and I keep getting a error message that says email cannot be verified because it is already in use? What does these mean?

  • How to recover photos from device that screen doesnt work, and didn't use cloud or a memory card. (chip)

    How to recover photos from device that screen doesnt work, and didn't use cloud or a memory card. (chip)