BTN use on Oracle forms
BTN Select Use on Oracle Forms
BTN Use In Oracle
Form:-
FND_MESSAGE.SET_NAME('XXCOM','XXCOM_TEST_M1');
BTN_SELECT:=FND_MESSAGE.QUESTION('YES','NO','CANCEL','',3,'CAUTION');
IF BTN_SELECT = 1
THEN
Condition;
ELSIF BTN_SELECT = 2
THEN
Condition;
ELSE
Condition;
END IF;
Example:-
------------------------------------------------------------------------
DECLARE
V_TOKEN_VALUE
VARCHAR2(1000);
BTN_SELECT
NUMBER;
V_FORM
VARCHAR2(100);
SELECT_OPTION
NUMBER;
V_PARAMETER_1
VARCHAR2(100);
BEGIN
V_PARAMETER_1:=
:XXCOM_RCPT_ENTRY_TL.PROJECT_ID ||'#1#'
|| :XXCOM_RCPT_ENTRY_TL.RECEIPT_DATE ||'#2#'
|| :XXCOM_RCPT_ENTRY_TL.CUSTOMER_NUMBER;
/*
FND_MESSAGE.SET_STRING('1:-'||V_PARAMETER_1);
FND_MESSAGE.SHOW();
*/
FND_MESSAGE.SET_NAME('XXCOM','Enter New Entry Or
Not');
BTN_SELECT:=FND_MESSAGE.QUESTION('YES','NO','CANCEL','',3,'CAUTION');
IF BTN_SELECT = 1
THEN
SELECT
FUNCTION_NAME
INTO V_FORM
FROM
FND_FORM_FUNCTIONS_VL
WHERE
FUNCTION_name='OMX_CUST_PROJ_SUM';
FND_FUNCTION.EXECUTE(
FUNCTION_NAME=>V_FORM,
OPEN_FLAG=>'N',--OPEN FLAG --
SESSION_FLAG =>'N',--SESSION FLAG --
OTHER_PARAMS=> 'PARA_M1 = ' || V_PARAMETER_1
);
ELSE
--FND_MESSAGE.SET_STRING('MANOJ KUMAR IT');
--FND_MESSAGE.SHOW();
:PARAMETER.PARA_M1:=
NULL;
exit_form();
END IF;
END;
How We define Message
in Oracle:-
FND_MESSAGE.SET_NAME('XXCOM','XXCOM_RECEIPT_DUPLICATE');
FND_MESSAGE.SET_TOKEN('',V_TOKEN_VALUE);
BTN_SELECT:=FND_MESSAGE.QUESTION('YES','NO','CANCEL','',3,'CAUTION');
Go to Application Developer Responsibility
and select Message Menu:-
Comments
Post a Comment