zoukankan      html  css  js  c++  java
  • 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;
  • 相关阅读:
    Spark Interaction(特征交互-笛卡尔转换)
    Spark DCT 离散余弦变换
    Spark polynomialExpansion 多项式扩展
    Spark PCA
    Spark n-gram模型
    Spark OneHotEncoder
    Spark 逻辑回归LogisticRegression
    查看macOS下正在使用的zsh
    Neovim中NERDTree等多处cursorline不高亮
    让pip使用python3而不是python2
  • 原文地址:https://www.cnblogs.com/quanweiru/p/6219479.html
Copyright © 2011-2022 走看看