Using GET_APPLICATION_PROPERTY in Oracle D2k Forms

Using GET_APPLICATION_PROPERTY in Oracle D2k Forms

Description
Returns information about the current Form Builder application. You must call the built-in once for each
value you want to retrieve.
Usage Notes
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/[email protected]
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
Example 1
/*
** 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
/*
** 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
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;

时间: 2024-10-10 08:32:36

Using GET_APPLICATION_PROPERTY in Oracle D2k Forms的相关文章

DISPLAY_ITEM built-in in Oracle D2k Forms

DISPLAY_ITEM built-in in Oracle D2k Forms DescriptionMaintained for backward compatibility only. For new applications, you should use theSET_ITEM_INSTANCE_PROPERTY built-in. DISPLAY_ITEM modifies an item's appearance byassigning a specified display a

Reading Csv Files with Text_io in Oracle D2k Forms

Below is the example to read and import comma delimited csv file in oracle forms with D2k_Delimited_String package. This package is available in D2kdlstr.pll library. To download D2kdlstr.Pll Click Here Create the following procedure in program unit

Pre-Query trigger in Oracle D2k / Oracle Forms

Pre-Query trigger in Oracle D2k / Oracle Forms DescriptionFires during Execute Query or Count Query processing, just before Form Builder constructs and issuesthe SELECT statement to identify rows that match the query criteria.Definition Level form or

Obtaining Query Count Without executing a Query in Oracle D2k

Obtaining Query Count Without executing a Query in Oracle D2k Obtaining a count of records that will be retrieved by EXECUTE_QUERY before actually performing it in a database block is especially useful when the requirement is to prevent navigation to

Using Call_Form in Oracle D2k

Using Call_Form in Oracle D2k CALL_FORM examples/* Example 1:** Call a form in query-only mode.*/BEGINCALL_FORM('empbrowser', no_hide, no_replace, query_only);END;/* Example 2:** Call a form, pass a parameter list (if it exists)*/DECLAREpl_id PARAMLI

Using Text_IO To Read Files in Oracle D2k

Suppose you want to read a file from D2k client and want to store its content in Oracle database. But if you will insert row by row from client to server it will take more time and increase lot of network traffic / round trips. The solution of this p

Find Current Job Openings For Oracle Forms & Reports

Oracle Form & Reports developer jobs are always in demand, candidates who have Oracle D2k, Oracle Forms & Reports, PLSQL set of skills can find the job through the following links: http://jobsearch.naukri.com/oracle-forms-and-reports-jobs http://j

oracle EBS上传和下载文件(转)

最近一直在做一个工作流的项目,最终用户要求在发送消息的时候可以附带附件,这个又是给我的一个难题.在网上查了一下ORACLE上传资料,找到了黄建华前辈写的<Oracle EBS Forms开发指南(中级)>的资料有关于附件开发的内容,真的是不得不佩服黄建华前辈的厉害啊. 言归正传,按照<Oracle EBS Forms开发指南(中级)>中的介绍就可以轻松的实现客户化FORM添加附件的功能,好现在把上传的功能实现了,要如何实现已上传的文件在最终用户想查看该附件的时候现在下来呢?这个又是

adpatch options=hotpatch

--no need to shutdown application and no need to enable maintenance mode find . -name FAS420.rdf -bash-3.2$ strings -a ./fa/12.0.0/reports/US/FAS420.rdf|grep '$Header' SQL> select bug_id,application_short_name from ad_bugs where bug_number='9287896';