call from through menu with parameter [message #441858] |
Wed, 03 February 2010 07:57 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
allianz2010
Messages: 101 Registered: October 2009 Location: Pakistan
|
Senior Member |
![allianz2010%40yahoo.com](/forum/theme/orafaq/images/yahoo.png)
|
|
any body tell me that how can i call form through menu bar with parameter...
i made a log-in form in which i take user name and i send it to called form in and which forms is called there i create a parameter of that name which i called log-in form...
but when now i reached it on second form there is i use menu.. than how can i send this user name to other forms which i called through menu bar....
I Use this code for calling form through log-in form...
but what can i do for call form with parameter through menu..
DECLARE
ALRT NUMBER;
T_REC NUMBER;
UNAME VARCHAR2(50);
UPWD VARCHAR2(50);
pl_id PARAMLIST;
PNAME VARCHAR2(100);
BEGIN
SELECT USER_NAME, USER_PASSWORD, PERSON_NAME
INTO UNAME, UPWD, PNAME
FROM ORGANIZATION.USER_ACCOUNT
WHERE USER_NAME = :LOGIN_BLOCK.USER_NAME
AND USER_PASSWORD = :LOGIN_BLOCK.USER_PASSWORD;
IF UNAME IS NOT NULL AND UPWD IS NOT NULL THEN
PL_ID := GET_PARAMETER_LIST('PLIST');
IF NOT ID_NULL(PL_ID) THEN
DESTROY_PARAMETER_LIST('PLIST');
END IF;
PL_ID := CREATE_PARAMETER_LIST('PLIST');
IF NOT ID_NULL(PL_ID) THEN
ADD_PARAMETER(PL_ID,'USER_NAMES',TEXT_PARAMETER,PNAME);
END IF;
CALL_FORM('.\FORMS\FRM_MAIN_MENU.fmx',HIDE,DO_REPLACE,NO_QUERY_ONLY,PL_ID );
EXIT_FORM(NO_VALIDATE);
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
SET_ALERT_PROPERTY('COMMON_ALRT', ALERT_MESSAGE_TEXT, 'User Name or Password not Correct...!');
ALRT := SHOW_ALERT('COMMON_ALRT');
IF ALRT = ALERT_BUTTON1 THEN
:USER_NAME := NULL;
:USER_PASSWORD := NULL;
GO_ITEM('USER_NAME');
END IF;
END;
[Updated on: Wed, 03 February 2010 08:02] Report message to a moderator
|
|
|
|
|
|
|
|