Dependent Parameters in Oracle Applications

Requirement:

Say there is a concurrent program that lets you retrieve employee details based on employee name or employee number.

The concurrent program has 3 parameters:

1.Search Criteria is a value set containing “Employee Name” and “Employee Number” as values

2.Employee Name

3.Employee Number

When the user wants to search employee based on Employee number, he selects Employee Number in the parameter “Search Criteria”.

Automatically Employee name parameter should be disabled so that user can enter only number in the parameter Employee number to search that employee.

Similarly if the users wants to to search employee based on Employee name, Employee number parameter should be disabled thus preventing the users to search based on Employee number.

As seen in the above screenshot, say there is a Concurrent program which has 3 parameters defined:

1. Select Parameter to Disable

2. Parameter – 1

3. Parameter – 2

And Parameter “Select Parameter to Disable” is a value set that has values –

PARAM-1, PARAM-2

The requirement here is if the user selects PARAM-1 as the value for the parameter “Select Parameter to Disable”, then the Parameter “Parameter – 1” should be disabled meaning the user should not be able to enter any information for that parameter.

If user selects PARAM-2 as the value for the parameter “Select Parameter to Disable”, then the Parameter “Parameter – 2” should be disabled.

Steps to implement the above requirement:

1. Create the below Value Sets:

I. Value Set “ERPS_SP_VS_PARA_DEMO”:

· Navigation: System Administrator responsibility>Application>Validation>Set

· Enter the details as shown in screenshot below and save your work.

· Navigation: System Administrator responsibility>Application>Validation>Values

· Give the name as “ERPS_SP_VS_PARA_DEMO” and click on Find.

· Enter Values as PARAM-1 and PARAM-2 as shown bin the below screenshot and save your work.

II. Value Set “ERPS_SP_VS_PAR1_DUMMY”:

· Navigation: System Administrator responsibility>Application>Validation>Set

· Enter the details as shown in screenshot below and save your work.

III. Value Set ERPS_SP_VS_PAR2_DUMMY

· Navigation: System Administrator responsibility>Application>Validation>Set

· Enter the details as shown in screenshot below

IV. Create Value Set ERPS_SP_VS_PAR1

· Navigation: System Administrator responsibility>Application>Validation>Set

· Enter the details as shown in screenshot below.

· Click “Edit Information” button.

· Select Event as Validate and add the below code in the Function textbox

FND PLSQL”BEGIN

IF :$FLEX$.ERPS_SP_VS_PAR1_DUMMY <> 1 THEN

NULL;

END IF;

END;

· Save your work

V. Create Value Set ERPS_SP_VS_PAR2

· Navigation: System Administrator responsibility>Application>Validation>Set

· Enter the details as shown in screenshot below.

· Click “Edit Information” button.

· Select Event as Validate and add the below code in the Function textbox

FND PLSQL”BEGIN

IF :$FLEX$.ERPS_SP_VS_PAR2_DUMMY <> 1 THEN

NULL;

END;

· Save your work

2. Define Executable for the concurrent program

· Navigation: System Administrator responsibility>Concurrent>Program>Executable

· Enter the details as shown in screenshot below.

· Save your work

3. Define the concurrent program:

· Navigation: System Administrator responsibility>Concurrent>Program>Define

· Enter the details as shown in screenshot below.

· Save your work

4. Define Parameters for the concurrent program:

· Click on “Parameters” button and enter the below details

A. Seq: 10

B. Parameter: Enter Parameter Num to Disable

C. Value Set: ERPS_SP_VS_PARA_DEMO

D. Prompt: Select Parameter to Disable

A. Seq:15

B. Parameter: Parameter – 1 Dummy

C. Value Set: ERPS_SP_VS_PAR1_DUMMY

D. Default Type: SQL Statement

E. Default Value: select 1 from Dual where :$FLEX$.ERPS_SP_VS_PARA_DEMO != ‘PARAM-1’

F. Uncheck the Display Checkbox

A. Seq:20

B. Parameter: Parameter – 1

C. Value Set: ERPS_SP_VS_PAR1

A. Seq:25

B. Parameter: Parameter – 2 Dummy

C. Value Set: ERPS_SP_VS_PAR2_DUMMY

D. Default Type: SQL Statement

E. Default Value: select 1 from Dual where :$FLEX$.ERPS_SP_VS_PARA_DEMO != ‘PARAM-2’

F. Uncheck the Display Checkbox

A. Seq:30

B. Parameter: Parameter – 2

C. Value Set: ERPS_SP_VS_PAR2

D. Save the work.

Assign this concurrent program to the desired responsibility and check the result.

For detailed explanation on how to define a concurrent program, please refer to the below article:

http://erpschools.com/articles/concurrent-program-registration-and-add-it-to-request-group

Dependent Parameters in Concurrent Program using Special Value Set的更多相关文章

  1. How to Create a Java Concurrent Program

    In this Document   Goal   Solution   Overview   Steps in writing Java Concurrent Program   Template ...

  2. Email the output of a concurrent program as Attachment

    This article illustrates the steps to be followed to Email a concurrent program's output. Write a pr ...

  3. IGS_学习笔记05_IREP开发Concurrent Program为客户化集合接口(案例)

    20150819 Created By BaoXinjian

  4. R12: Improving Performance of General Ledger and Journal Import (Doc ID 858725.1 )

    In this Document   Purpose   Scope   Details   A) Database Init.ora Parameters   B) Concurrent Progr ...

  5. Credit Summaries & Importing External Credit Exposure

    In this Document   Goal   Solution APPLIES TO: Oracle Order Management - Version 11.5.10.2 to 12.1.3 ...

  6. Concurrent.Thread.js

    (function(){ if ( !this.Data || (typeof this.Data != 'object' && typeof this.Data != 'functi ...

  7. How To Get Log, Trace Files In OA Framework Pages And Concurrent Request Programs

    Goal   Solution   References APPLIES TO: Oracle Supplier Lifecycle Management - Version 12.1.2 and l ...

  8. Form_通过Trace分析Concurrent和Form性能和异常详解(案例)

    2014-06-21 Created By BaoXinjian

  9. Spring Named Parameters examples in SimpleJdbcTemplate

    In JdbcTemplate, SQL parameters are represented by a special placeholder "?" symbol and bi ...

随机推荐

  1. Visual Studio 附加到进程调试

    Visual Studio 果然是强大的,今天第一次使用附加到进程调试的功能!但是,在使用的时候发现进不了断点... 解决方案: 1.发布的时候选择Debug,而不是Release: 2.右键项目-& ...

  2. C# 数组 随机 排序

    ]; ; i < ; i++) { arrInt[i] = i; } arrInt = arrInt.OrderBy(c => Guid.NewGuid()).ToArray<int ...

  3. http状态码+http请求方式

    一.http状态码 2开头 (请求成功)表示成功处理了请求的状态代码. 200   (成功)  服务器已成功处理了请求. 通常,这表示服务器提供了请求的网页. 201   (已创建)  请求成功并且服 ...

  4. [How to] 使用Xib来创建view

    1.简介 代码库 正如之前博客介绍的,xib可定义页面的某个部分,特别当此部分区域的view集中并且还有一些相互关联性(如隐藏等)是i特别适合使用xib来进行封装. 本文为[How to]使用自定义c ...

  5. sharding-JDBC 实现读写分离

    需求 一主两从,做读写分离. 多个从库之间实现负载均衡. 可手动强制部分读请求到主库上.(因为主从同步有延迟,对实时性要求高的系统,可以将部分读请求也走主库) 本次不讨论 MySQL如何配置主从同步相 ...

  6. hdu 1114(完全背包)

    Piggy-Bank Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total ...

  7. 魔法上网之Ubuntu部署“酸酸”

    “酸酸”,即s*h*a*d*o*w*s*o*c*k*s,用于魔法上网,用python写成. 在ubuntu环境下,用pip包管理工具可以非常方便地安装“酸酸”服务:ssserver. 先安装pip(假 ...

  8. div随意拖动,基于jquery。

    $("#box").mousedown(function (e) { //e鼠标事件 var offset = $(this).position();//DIV在页面的位置 使用p ...

  9. 禁止网页右键和复制,ctrl+a都不行。取消页面默认事件【全】。

    document.oncontextmenu=new Function("event.returnValue=false");document.onselectstart=new ...

  10. POJ 1258 + POJ 1287 【最小生成树裸题/矩阵建图】

    Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet c ...