oracle 10g forms development training manual

Upload: venuoracle9

Post on 28-Feb-2018

231 views

Category:

Documents


1 download

TRANSCRIPT

  • 7/25/2019 Oracle 10g Forms Development Training Manual

    1/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Download Template.fmb& Appstand.fmbinto our local machine from/v02/oracle/apps/apps/apps_st/appl/au/12.0.0/forms/US ($AU_TOP/forms/US)using winSCP tool.

    Check whether form60 path has all the standard Plls& fmbs,if not download All the pllsfrom/v02/oracle/apps/apps/apps_st/appl/au/12.0.0/resource($AU_TOP/resource) location and fmbsfromlocation /v02/oracle/apps/apps/apps_st/appl/au/12.0.0/forms/US ($AU_TOP/forms/US) into local

    machine and set the FORMS_PATH

    Setting Oracle 10g forms FORMS_PATH in REGEDIT(Registry Editor)Start Run REGEDIT HKEY_LOCAL_MACHINE SOFTWARE ORACLE

    KEY_DevSuiteHome1 FORMS_PATH

    Open the TEMPLATE.fmbusing form builder.

    Change the module name to your required form name.

    GoTo FileSaveAs the form as same as the module name (i.e Form name & module name should be thesame).Module Name : XXAA_MASTER_DETAIL_FORMTitle : XXAA Master Details Form

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    2/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Delete the default blocks, windows, canvases (ex: BLOCKNAME).

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    3/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    0

    Create a window and assign window property class to windows.Window Name : XXAA_MASTER_DETAIL_FORM

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    4/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Create a canvas assign the canvas property class to Canvas.

    Assign windows to canvas

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    5/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Assign canvas to window.

    Create the Master and Details tables in apps schema, Create a master table with primary key and detail table wiforeign key

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    6/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    CREATETABLEXXAA_MASTER_TABLE(

    DEPTNO NUMBER(2),DNAME VARCHAR2(14),

    LOC VARCHAR2(13),CONSTRAINTPK_MASTER_DEPTNO PRIMARYKEY(DEPTNO)

    );

    CREATETABLEXXAA_DETAIL_TABLE(

    EMPNO NUMBER(4)NOTNULL,

    ENAME VARCHAR2(10),JOB VARCHAR2(9),

    MGR NUMBER(4),HIREDATE DATE,SAL NUMBER(7,2),

    COMM NUMBER(7,2),

    DEPTNO NUMBER(2),

    CONSTRAINTPK_DETAIL_EMPNO PRIMARYKEY(EMPNO),CONSTRAINTFK_DETAIL_DEPTNO FOREIGNKEY(DEPTNO)REFERENCESXXAA_MASTER_TABLE(DEPTNO)

    );

    Create a data block using wizard based on a required table.(MASTER)

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    7/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Select the master table and move the columns to right side and click on next button

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    8/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Click on Next button

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    9/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Enter the master block name and click on next

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    10/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Create the convas with wizard based on the datamodel by selecting the option

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    11/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    12/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    13/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Select the Convas and move the required fields to right side and click on next

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    14/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Change the fields height and width and click on next

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    15/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Select the form for we can arrange the values based on the requirement.

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    16/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Enter the master block frame if required and click on next

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    17/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Click on finish

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    18/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    19/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Create a data block using wizard based on a required table.(DETAIL)Click on Master block and click on new button

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    20/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    21/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Select Detail table and move the required columns to right side click on next

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    22/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Click on Create Relationship and sect Auto join

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    23/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    24/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Enter the Detail block name

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    25/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Move the required fields to right side and click on next

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    26/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Enter the fields size and prompt.

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    27/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Select the tabular option to show the fields on table type

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    28/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Enter the records to displayed on the forms and select the scroll bar

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    29/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    30/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Assign all text item property class to all items in the data block.

    Modify PRE_FORMtrigger at the form level.

    Ex:- app_window.set_window_position ('WINDOW NAME', 'FIRST_WINDOW');As Ex:- app_window.set_window_position('XXAA_MASTER_DETAIL_FORM','FIRST_WINDOW');

    Modify the app_custom package Body in the program unit.

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    31/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Code : sample

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    32/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    package body app_custom is

    PROCEDUREclose_window (wnd INVARCHAR2)IS

    BEGINIF(wnd ='XXAA_MASTER_DETAIL_FORM')THEN

    app_window.close_first_window;ENDIF;

    END close_window;

    PROCEDUREopen_window (wnd INVARCHAR2)

    IS

    BEGIN

    IF(wnd ='XXAA_MASTER_DETAIL_FORM')THEN

    GO_BLOCK ('XXAA_DETAIL_BLOCK');

    ENDIF;END open_window;

    end app_custom;

    Modify the module level properties .Consol window: give your window name.(XXAA_MASTER_DETAIL_FORM).

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    33/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    First_navigation data block : your block_name(XXAA_MASTER_BLOCK).

    Save and compile the form(.fmb).

    Move the form(XXAA_MASTER_DETAIL_FORM.fmb) to the $AU_ TOP/forms/USusing WINSCP.

    Compile the forms in the $AU_TOP/forms/USby frmcmpcommand using WINSCP.EX:cd $AU_TOP/forms/US

    frmcmp_batch module=XXAA_MASTER_DETAIL_FORM.fmb userid=APPS/APPS

    output_file=$CUSTOM_TOP/forms/US/XXAA_MASTER_DETAIL_FORM.fmx

    cp XXAA_MASTER_DETAIL_FORM.fmb $CUSTOM_TOP/forms/US/XXAA_MASTER_DETAIL_FORM.fmb

    chmod 777 $CUSTOM_TOP/forms/US/XXAA_MASTER_DETAIL_FORM.fmbchmod 777 $CUSTOM_TOP/forms/US/XXAA_MASTER_DETAIL_FORM.fmx

    cd $CUSTOM_TOP/forms/US

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    34/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Now open the apps front-end and open the Forms Form in below Navigation.Nav : Application DeveloperApplicationForm

    Form Name : XXAA_MASTER_DETAIL_FORM

    Application : CUSTOM APPLICATIONUser Form Name : XXAA_MASTER_DETAIL_FORM

    Description : XXAA Master Details Form

    Register the forms to the form function-->Description

    Function : XXAA_MASTER_DETAIL_FORMUser Function Name : XXAA_MASTER_DETAIL_FORM

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    35/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Description : XXAA Master Details Form-->Properties

    Type : Form-->Form

    Form : XXAA_MASTER_DETAIL_FORM

    Nav: Application DeveloperapplicationFunction

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    36/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Query the menu and attach the Form function to the Menu.Nav : Application DeveloperApplicationMenu

    Menu : FND_DEVNAVIGATE4.0User Menu Name : Navigator Menu - Application Developer GUI

    Seq : 119Prompt : XXAA Master Details FormFunction : XXAA_MASTER_DETAIL_FORMDescription : XXAA Master Details Form

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    37/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    This Menu FND_DEVNAVIGATE4.0 (User Menu Name: Navigator Menu - Application Developer GUIis attached to Application Developer Responsibility.

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    38/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl

    Open the form by clicking XXAA Master Details Form

    Query the form.

    mailto:[email protected]://oracleapps88.blogspot.com/https://www.facebook.com/OracleApplications
  • 7/25/2019 Oracle 10g Forms Development Training Manual

    39/39

    Oracle 10g Forms Development Training Manual Ra u Chintha atl