Working With Push Buttons In Oracle Forms

发布时间:2017-5-29 4:51:46 编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了"Working With Push Buttons In Oracle Forms ",主要涉及到Working With Push Buttons In Oracle Forms 方面的内容,对于Working With Push Buttons In Oracle Forms 感兴趣的同学可以参考一下。

Working With Push Buttons In Oracle Forms

Managing push buttons at run time in Oracle Forms is very simple and in this tutorial you will learn to enable or disable the buttons, making visible and invisible buttons and will learn to change the label text of a button.
 
In the below mentioned examples I am using toggle functionality for buttons, means if the button is enabled or visible then it will be disable or invisible by using Get_Item_Property and Set_Item_Property commands.
 
Below is the screen shot of the form and you can download the form from the following link:
Push Buttons example for Oracle Forms
 
To perform this functionality I used buttons and written the When-Button-Pressed trigger to make the changes in other button's functionality.

The following is the code:

Making Button Toggle Enable / Disable

Begin
If Get_Item_Property('control.pb_endb', enabled) = 'FALSE' Then
 Set_Item_Property('control.pb_endb', enabled, Property_True);
Else
 Set_Item_Property('control.pb_endb', enabled, Property_False);
End if;
End;

Making Button Toggle Visible / Invisible

Begin
If Get_Item_Property('control.pbvs', Visible) = 'FALSE' Then
 Set_Item_Property('control.pbvs', Visible, Property_True);
 -- Make enable also
 Set_Item_Property('control.pbvs', Enabled, Property_True);
Else
 Set_Item_Property('control.pbvs', Visible, Property_False);
End if;
End;

Changing Label Text

Begin
If :control.txtbuttonlbl Is Not Null Then
 Set_Item_Property('control.pblbl', Label, :control.txtbuttonlbl);
End if;
End;

上一篇:【转】Oracle索引HINT的使用
下一篇:it市场 - 阳光

相关文章

关键词: Working With Push Buttons In Oracle Forms

相关评论

本站评论功能暂时取消,后续此功能例行通知。

一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播不法有害信息!

二、互相尊重,对自己的言论和行为负责。

最近更新