Using GET_APPLICATION_PROPERTY in Oracle D2k Forms
2016-12-25 22:26
316 查看
Using GET_APPLICATION_PROPERTY in Oracle D2k Forms
Description[/b]Returns information about the current Form Builder application. You must call the built-in once for each
value you want to retrieve.
Usage Notes[/b]
To request a complete login, including an appended connect string, use the Username, Password, and
Connect_String properties. For instance, assume that the user has initiated an Microsoft Windows
Runform session specifying the following connect string:
ifrun60 my_form scott/tiger@corpDB1
Form Builder returns the following string as the result of a call to
GET_APPLICATION_PROPERTY(USERNAME):
scott
Form Builder returns the following string as the result of a call to
GET_APPLICATION_PROPERTY(PASSWORD):
tiger
Form Builder returns the following string as the result of a call to
GET_APPLICATION_PROPERTY(CONNECT_STRING):
corpDB1
GET_APPLICATION_PROPERTY examples[/b]
Example 1[/b]
/*
** Built-in: GET_APPLICATION_PROPERTY
** Example: Determine the name of the timer that just
** expired, and based on the username perform a
** task.
** trigger: When-Timer-Expired
*/
DECLARE
tm_name VARCHAR2(40);
BEGIN
tm_name := Get_Application_Property(TIMER_NAME);
IF tm_name = ’MY_ONCE_EVERY_FIVE_MINUTES_TIMER’ THEN
:control.onscreen_clock := SYSDATE;
ELSIF tm_name = ’MY_ONCE_PER_HOUR_TIMER’ THEN
Go_Block(’connected_users’);
Execute_Query;
END IF;
END;
Example 2[/b]
/*
** Built-in: GET_APPLICATION_PROPERTY
** Example: Capture the username and password of the
** currently logged-on user, for use in calling
** another Tool.
*/
PROCEDURE Get_Connect_Info( the_username IN OUT VARCHAR2,
the_password IN OUT VARCHAR2,
the_connect IN OUT VARCHAR2) IS
BEGIN
the_username := Get_Application_Property(USERNAME);
the_password := Get_Application_Property(PASSWORD);
the_connect := Get_Application_Property(CONNECT_STRING);
END;
Example 3[/b]
Making window0 in center of screen
DECLARE
VWIDTH NUMBER := GET_APPLICATION_PROPERTY(DISPLAY_WIDTH);
VHEIGHT NUMBER := GET_APPLICATION_PROPERTY(DISPLAY_HEIGHT);
wwidth number := get_window_property('window0', width);
wheight number := get_window_property('window0', height);
BEGIN
SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, WINDOW_STATE, MAXIMIZE);
SET_WINDOW_PROPERTY('WINDOW0', x_pos, (vwidth - wwidth) / 2);
SET_WINDOW_PROPERTY('WINDOW0', y_pos, (vheight - wheight-100) / 2 );
end;
相关文章推荐
- Change An Item Property Using Set_Item_Property In Oracle Forms
- [转]Get Started: Debugging Memory Related Issues in .Net Application Using WinDBG and SOS
- Using GET_GROUP_SELECTION For Record Groups in Oracle Forms
- Change Or Set Report Object Property At Run Time In Oracle Forms Using Set_Report_Object_Property Command
- Using Single Alert For Messages And Confirmation Messages In Oracle Forms With Set_Alert_Button_Property
- How to get the password text in a text with password property from another process using C++ - 用C++如何从不同进程获取密码框文本
- Using Theme in an Application--在应用中使用主题(Symbian)
- Using the Web Services and COM+ Event System in the .Net Application.
- Using SOM to get a feature in a file
- Creating custom headers and footers in Application level events using global.asax
- Purging registered application names in the current AutoCAD drawing using .NET
- Using Create directory & UTL_FILE in Oracle
- In Websphere Application Server 6.1 , request.getQueryString() return null.
- prjGetWriteINIFile - How to Read-Write INI file using VB & API - 读取/写入INI文件 - VB6 + API - SourceCode - HackerJLY
- using mysql in java application
- ORACLE中IN和OR谁更高效?【WHICH KEY WORD CAN GET BETTER PERFORMANCE? 】 推荐
- Using Theme in an Application
- Using the Enterprise Library Validation Application Block in ASP.NET - Part II
- Using the Web Service Callbacks in the .NET Application
- Get Sender Email Address from Outlook using CDO in C#