Steps To Develop a Query_Find Form in Oracle Apps
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tV5dkRTQ-ZU_jgS68ABbHk3va-BrsHWohW2m4DDbsWo6ogIylNBAn1YZVJWboxaJvyk1ULsI_uJ2Smt8icRqEBQm0hG3WQD7LCQfjOpaO9BI0SnkH4oYNjAQNU89REi3EbLNtChOxl42E-Qdlbb2eZMtDGaQ=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_udojnEtCiIhg-ji-vMEyeeHlv8kYmMaVlMJebTHKaqOTvoVzdjSB5hQaNMWNbsbw7r2F0CEDDeSaaITKy6kQDpsIToUiHDSNZJNbVh7GwMu0b8_ia9c1MeUa-fMstQi6762YtelEkysJryOcmhctU8xhxL1w=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tj_wi0hT9s59njJhEmnUbPO7k43eUNR08rkgBsZT5W1_rmvN9fb1SPAt5RBeWzqkcGj_X51hoa61gXJUQVBUgsWUt7KkytBn_KSls_qBTnLmYipYt-8v6M_KYyJVIFJeah4c3lps3km7gpWyNjL2vEnFvA4Q=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vqXl50nYOQz1IHl1F-Nz-tchQeTw8zjwbSJZILcRspnIAQT_XTuMAlfOmIch3y3zYIQhr1DUUZsJtXk2UCEql77X9vZ8aZ_6nLMF2NbSlHCGkkric8eyLLpHC2v2n50MY2e8CGHdNTQ8r-FPBUwd6P3m5jzQ=s0-d)
Compile and Close The Window.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tK-MQ5JByn6HmEL6WhfBmHsnn0jbq3sPn89kNpMk9aDcvkX1zhVoAZ1lBjbS5N2qz35uTMIb5i396cTxf9Mx69xAtZgwEmtQZAc4tRIc1TYgZYl0vXUZfjnIkNxWzqYsKPnR5Fq985AFcU281nOGzw8LTRSQ=s0-d)
Compile and Close The Window.
Step 5: Create Canvas(DEPT_CANVAS) apply subclass information as Canvas.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_spMYtm98GXkbRaJXAAVDeTM4j6gm8zhjddKiGM0vtWkfJ_cxZnKd-0N81rXoVkTIMnywG9E9WoUL0BIX1QZnNNPiDMzPOmbrE6ZrGSA174tX4CEC-toVLURaHrVyMgJJoyWNztvPpiaOC4_GLSYQ=s0-d)
Step 6: Now Create Data block(DEPT) with Wizard or Manual ,apply subclass information to the block as BLOCK and also apply subclass information to the items as TEXT_ITEM.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sM8xPQq7WDUNpY251mKa1IQAKn-6eN42QfUL0F3QwgQ5tCgqEIsU6TysPhPZM2_u7rwJQI-wVADUxqHr03pmNPfTEYzGw-M2mkiotdDjR6sUM4z6oRwhoRjxhwxf1sj2DM-ZzZk4N7fD8QKNmdLRsiV36qPw=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_usbsaSYrLAkwLRejadCCdNN-D8uf0Kbuf_R2vfv-f5BKFxP6QvVkWskg6WjH_owtXSU6x0vwyGP4RCPu-xR6rppq8Vnv4wVi1R3X-ioKjiBAQbpD7J9qMzJ_t5QHyi5LCePusZQxFJ6DCVqhanss_09rr3WQ=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sg1epgYpylfqasVmf_fUfbGnJTstFx0lcpHuOMw4lG_VFQKQ5oMTOPAOFrs-89mAJ_DflAJrkPd1Y02ZOuHNYP74YSYFlI7X9kEoMBBYrCfa0mJp5oKsHQIkAY-Prg4RoZ0GTXRQOBxIf3PS0c9dCrvPLX=s0-d)
Step 7:Step 5: Drag QUERY_FIND Object Group from APPSTAND.fmb to Our Form(XXMZ_Query_Find.fmb) Object Group. Here we get window,canvas,datablock will come automatically with the name QUERY_FIND.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vg3rDYDDW32Ej1-n19Xx7BH0JtfiSiIXj9LOtKT43s1a_jcKo-fDmw6w2pu6xrqelpEUfQ8AXjK6dEDbTIEa615PccbY5wrHEu9V41kQhrVsWfyEggfG8hHoAIceWEjILpjuMxl5q7uk2xo5DdQkkklhzTKA=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_ujAD3Q4ESz6AoaNrgugCGu9bjRKRBUnWCuy1T76Tk_IzoYQGKd8h3_khm1Db7Aers70eKQiSsiMxUE7tH6MekwfR7R0f_awkYc4oyWRpfjF9TEHWIS9jReiogg_9lgWS26S-Uth9S-8bIW9KjAqf8kzGJOtA=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_v3a31Zwer9WipUTNStuEqkdx_cxJkUH75hMrCzL4uzwBMCdrYkxdqENrv9n06D6DxegH-pWyv2AQFrthl6__q-as2DVbBuiSunkUucescy6ZnU41l5SrZ3M_K6NPKQBjMtF4raTs9R7pK6MufVx-z8AGXOvb4=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vW5MpixlcXrI6A_by-GyL8okmQ5VzgrIfvAykK7m7XXGxHq0D-v8V81IYYTI5M17VnNZfgANqp09xaPw3Gq3D1REML4-5s-NTioRcj9LaJyhFBZWMePiRhLeMzsE_ddUvIlzqzf0KL1De_immkro0J0UYgz1k=s0-d)
Step 8: Apply subclass information to Window,Canvas as well as Block. And drag these to first position as shown in below.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vRBhsv6JBUZCVDRu1zfJMYjy0w1iexIk7FH9amgiSf-5FxJmGaLp_sSOK67R7mDTNnJd3uSMoR3URTEDf1f3CfA-xhzAsY-oNGbTVIRgiAzV8h73tuY0Zpy-Ikjfc5H-b8qidLcRNemZLeu3LX1ZZL5iXKJA=s0-d)
Step 9: In QUERY_FIND data block we get 3 buttons(Clear,New,Find) with 3 Triggers.
Give Block name as DEPT in WHEN-BUTTON-PRESSED trigger of New and Find Button. Compile and close.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tHwFwpm1llUhjkrvcYtZUOZVPlOAa4txIUhA-8_D6KwBNT46bhPX2vpnOr8UV9nH_1ww8Ho4jNyq7xV6TWe-ZAGyc8KuO8o9wCrHkudcI2j41M2kCzL5MV_n2Qq2M5KLkdINdLvukjzn5gC6kePOu1tsXb8A=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_uUIotCRTliBfKXkWZqQFuBqJjUr_mGAdJoO308oeQI8LpYUqBs2bK8_JqVIe_fZyHZ9januiAnVHZsvS2Io5tsqsOWGKvtDi1GLzrVEogzWbT01w9EYrd_BX3ZL7WQ1qFcHzt2CHVP5kkPOBkESKfQuudS-_k=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vl0XrKUHoFyeSMxtt7-BNqwOlBF2CftFqsbWUXJtk-r3tRznOTd0YgWlZqPbZxTQ0HOp1yt1cN71KyB3Argrn4-pBBFICUxTt1LlxrV6N6J00WCnzvooN9vHVIH38wMIdWdpS2PqewNW_jaQJ7mrtIMm4g40g=s0-d)
Step 10: Next create Control item in the Query_Find Block apply subclass information as TEXT_ITEM and attach that item to the QUERY_FIND canvas.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vRASMKx5cddjSzh-KMrvBNKdEKz81ZwLApKROzGHDzLYxl0yTt4BwL9M5irT-4ru0KrLPKsdo9ShdLFn19SwV_AqhEXijEpiJlLbmgefnxwl7DiK5OZhNWu6mH8sSBqw6upVN0x-gnRZ-vk0X0be0VCrbP_E8=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vKijd6aWvb98MxVY-XWxYFqxsr6IvXCUwnojqRDUGH3wrmyRSg8PYRzG7AgvkKEFPHhwthpmzDhfVYncE8f-H_TNZCBbjoPRSbikxNdXOg1WrI7v7sq6uCiK84h7UZAjutRtxKHSvuk8s8OWl_jQv2_GW0Uw=s0-d)
Step 9:
Next drag the QUERY_FIND trigger from APPSTAND.fmb and Place it in DEPT block level trigger.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sMyqIb_XcodtDGFgvGIW9LR6DaR8EXQpCdiaoT-WauigJCM8RHsxop6kKppAftYLzl3V2KOn25ds_exQbQEStIYINCx0Ce3kZUDHs6xqNLbwLHc8W1Ec4LJKuHYm-iRdUNF1BH1Hzp-uINmgIPD1I0mcWgIg=s0-d)
Syntax: APP_FIND.QUERY_FIND(,
,
);
And write the following code in that trigger:
APP_FIND.QUERY_FIND(‘DEPT_WINDOW’, ‘QUERY_FIND’,'QUERY_FIND’);
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_t-L7as38-UaBnklMHXP2njq9vEhWavg2U7WMptD8ohVfNz3u3U18e3t4kOMw9cmzZbzmqaDuzNwH9WJIBjiR9eRSQPxOJUV0ufoG2rN3z7LY4SLwqd3f4oHbbYqqrwqktvu9a-LHOCIXT2pEO-8JthELwSP6o=s0-d)
Step 10:
Next Create PRE-QUERY trigger in the block level(DEPT)
Syntax: IF :parameter.G_query_find = TRUE THEN
COPY (,);
:parameter.G_query_find := FALSE;
END IF;
Write the following code
IF :parameter.G_query_find = ‘TRUE’ THEN
COPY(:QUERY_FIND.DEPTNO, ‘DEPT.DEPTNO’);
:parameter.G_query_find := ‘FALSE’;
END IF;
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_symfL9Z0Bx0aHv4NeibDdb98VtssPWL79dHi1KLOWuBcA3K5E_UOiZK4UF4iufS6gfSA2RKa0OZ0EMIy0NXx3Nh8T-eBKGe2REV_CAJrycpXeuCcd1SXEdIlhNSaytnUSPsBUwqB-ioC35w3iIOSdL0EWGoQ=s0-d)
Step 11: In the form module(XXMZ_Query_Find) give the first navigation block as QUERY_FIND. In the QUERY_FIND datablock give next navigation block as DEPT.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_uszEJ9A0rwgnPHHdMtRsJJkAfINO61-ELk3xP_MTuFLyasqkHPcb9NC-85T90cAJuajVriSH5ZDgSNLatnoPsmLJ6zXo6sq1tyVHRlBoAe4PBf9zIuOyB5z473AkcI3UJyk-MP9L4W3SUWCmgy8b_GMEz4e80=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_uI4d8BCjd2LA6hOg0kWNA-knb8a_7yXQqB7o5NR8mkfjUrTFf5mB8GjTFOB-T6Rt4M66O7zLYVlL71nEwCHULSbHlUMOaLE0ThiqRlwVica01lX3dZeNfC2Np76B3XeuupDcAJvcXPNjH1GIX5L86A0atdPg=s0-d)
Step 12: Finally Save and move your form from our Local Machine to CUSTOM_TOP using WINSCP tool.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vLuLEr2Ecj5wRSGSYfZStadEvcQNL5U0oW034u1clMsMYzApZFmnnzCIfkkxuF5l8wfdK8dlblIYrhlKoQtZUlatt66biPi7DFOmhzcz0GDDfbEuuq2EE-12cjQ1QKeKQsZttNO5WOULnsm0cOfbR6kqSIczc=s0-d)
Step 13: Compile the Form using f60gen
In the UNIX environment, type the following command:
f60gen XXMZ_QUERY_FIND.fmb apps/apps
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tdFyg9l3m4A7_kv_5NacjHGDVZuPSmnSBqsL9mmv01Tf1iziRUrIQ6jyt4MlcWIE7V8HWiHEjD7yxKgKHDEuEDvEQocaKBDmBTFd4Tr2UzE02QC5PJrcrWdDpGTv6Oz0vETqAU1gVVhxxuG5_jY77hK2tC49g=s0-d)
Now XXMZ_QUERY_FIND.fmx should be generated in the CUSTOM_TOP.
Step 14:
Connect to Oracle Applications. Create a Form
(Navigation:Application Developer->Application-> Form)
Here give Form =>XXMZ_QUERY_FIND(.fmx )
Application => xxmz Custom(Custom TOP Application)
User Form Name=>Give any name
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_uBtD2u5tVnK3UdP5lWAOB3poXkMRFpdwt4RYnmYH8qOkBfDFw_M0ZZNE_JzPLanTruLOyzL9HlDP9-NkOq1nkaTrbPgGi6fjf10fDNzRHnTIXviemQwWo4AJYF6otiV0HgjNH-zhqUowV2gfmrv0OqzeZnRA=s0-d)
Step 15: Create a function (Navigation: Application->function)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_uNii1mN4R_MrHxUgRETm9h7NWyGTYR1zMBtbkEmYQZ1N_eiXLf0s4NB5qMbaV5SPppry4rwFws7shNJL_7okzqkjo64UQHMj0UYGeC007gGBes87lNmJm5ekWvQLyGAFY7e2n01Gj2fTtZedmTNToTuhr9Uw=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_uk484TCLsUUw06fIqHIoVazLCRf72AYZharipGfkuEuAC9eYFk6fVanrdokGxfmAb704SZdjipzn1RGNES3YI2VLZe9Qjvy__A7y2S7dzJ6N-XvgCaBlOjlE6NTrNMFTLgApocz62lwBW9G_uyD9Q2WyEr5_0=s0-d)
Step 16:Attaching Form to the Function shown in below.
Attach that function to the Custom TOP menu
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vHUFbavf9KweJZ08feeva_Sk-8x8va9HktT-z6fCxpqc15FNCw5UAaMnX6PO4FlicNhROrzi8vejZRj0NKD9j0vtA_iJ7Ago38d2MyiPwYOOXbFXYRz0GklFH1iPZvNMJbZpCpnB4Ef2jrCvniorBv_yqn6Ps=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vusK2ZTiFR3TOl8m9BdJFT7-D81Id6Xi0i1TtppPgDo3lq4C4f2enZxD6m7u6sIRm7qR5xyNQNUKaDfneMfiMrBczgcDLDzZ5OASz7Is8yI9ejt6NQdZCTrIYMNXxdFfhYaxBWwjXVqYhH34iZuBjvrRKRvLU=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vngbByuVc8snGM2zBZ4eQwf1UtBlpml9dp1J8h5bEu3d0CtEDKspaFnHf0YuHx-qcJ2calh2iIbpfdObro1Z1tnZOOWjLMH0usp7cJX-7Y5glLtxDBNHYb33_rbcKTN0TJXax8YP0EBJ56qPgZOO9NoMWKdw=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tKsR8JjSn5Sq6rpUE3SfUUzI20-3aKPQILER0ji0alMmHchsXmlB7WAHlXwnc80dboqHOKtV8qYj2vBbW4y_P15zJrldPspT9zN49LoyjAUWHmuyfHalFyW5E_W8rXkEKdDTNEbdHZq3h9xOgxF0XOId_6ow=s0-d)
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tp_FvmglVDLM8gpvS14rkrCiPxOdVDxRVLvzhQ4rDQTqYjwcuI6B51tftph8SqzngTbBGMsnAlAld43Hw_KKiwZwkIMOMTzDuzL-HLNV867j3M50z4SZTPXsokd4S0fs-YUNgmBGFFjSyv6FikoxLeGcINix4=s0-d)
Click on Find Button
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_ue9wkmXF3fCRlwDqBlVZQZktYx5W6v5lEZtAa6g6PB2SD-erCd2VWax6d8vGhi2I-BmhICBexb8RKnELGfBOHgLToujKIjtmlzo17JylEItOvjYFlEBNf3QZZ7Mafo_rbNQLlazl8DfyNjzs-pCPraJmTVzs8=s0-d)
- Step 1:
Open Template.fmb with form builder save it with another
name(XXMZ_Query_Find.fmb) and give the module name as XXMZ_QUERY_FIND.
- Step2 : Delete BLOCKNAME from Window,Canvas and Data Block and delete DETAILBLOCK from Data Block.
- Step 3: Create window(DEPT_WINDOW) apply subclass information as WINDOW and give the title.
- Step 4: Give
this window name in PRE-FORM trigger (Form Level) and give this window
name in in APP_CUSTOM body Program_Unit( in place of window name).
Compile and Close The Window.
Compile and Close The Window.
Step 5: Create Canvas(DEPT_CANVAS) apply subclass information as Canvas.
Step 6: Now Create Data block(DEPT) with Wizard or Manual ,apply subclass information to the block as BLOCK and also apply subclass information to the items as TEXT_ITEM.
Step 7:Step 5: Drag QUERY_FIND Object Group from APPSTAND.fmb to Our Form(XXMZ_Query_Find.fmb) Object Group. Here we get window,canvas,datablock will come automatically with the name QUERY_FIND.
Step 8: Apply subclass information to Window,Canvas as well as Block. And drag these to first position as shown in below.
Step 9: In QUERY_FIND data block we get 3 buttons(Clear,New,Find) with 3 Triggers.
Give Block name as DEPT in WHEN-BUTTON-PRESSED trigger of New and Find Button. Compile and close.
Step 10: Next create Control item in the Query_Find Block apply subclass information as TEXT_ITEM and attach that item to the QUERY_FIND canvas.
Step 9:
Next drag the QUERY_FIND trigger from APPSTAND.fmb and Place it in DEPT block level trigger.
Syntax: APP_FIND.QUERY_FIND(
And write the following code in that trigger:
APP_FIND.QUERY_FIND(‘DEPT_WINDOW’, ‘QUERY_FIND’,'QUERY_FIND’);
Step 10:
Next Create PRE-QUERY trigger in the block level(DEPT)
Syntax: IF :parameter.G_query_find = TRUE THEN
COPY (
:parameter.G_query_find := FALSE;
END IF;
Write the following code
IF :parameter.G_query_find = ‘TRUE’ THEN
COPY(:QUERY_FIND.DEPTNO, ‘DEPT.DEPTNO’);
:parameter.G_query_find := ‘FALSE’;
END IF;
Step 11: In the form module(XXMZ_Query_Find) give the first navigation block as QUERY_FIND. In the QUERY_FIND datablock give next navigation block as DEPT.
Step 12: Finally Save and move your form from our Local Machine to CUSTOM_TOP using WINSCP tool.
Step 13: Compile the Form using f60gen
In the UNIX environment, type the following command:
f60gen XXMZ_QUERY_FIND.fmb apps/apps
Now XXMZ_QUERY_FIND.fmx should be generated in the CUSTOM_TOP.
Step 14:
Connect to Oracle Applications. Create a Form
(Navigation:Application Developer->Application-> Form)
Here give Form =>XXMZ_QUERY_FIND(.fmx )
Application => xxmz Custom(Custom TOP Application)
User Form Name=>Give any name
Step 15: Create a function (Navigation: Application->function)
Step 16:Attaching Form to the Function shown in below.
Attach that function to the Custom TOP menu
Click on Find Button
No comments:
Post a Comment