Hidden Methods to Query Oracle Apps Forms -- Very Useful

本文介绍了如何使用Oracle Apps Forms进行条件查询,包括显示特定列为空、非空、大于或小于指定值、数值范围内的记录等操作。通过F11功能键进入查询模式,并使用Ctrl+F11运行查询。
Here I discuss how can we query a form by giving certain query condition like
- Display only records where a particular column is null
- Display only records where column is greater than or less than a certain value
- Display only records where data is in certain range of value etc etc....

Press Function Key F11 to enter into query mode and Ctrl+F11 to run the query. Hash( # ) is the magic key here

Below are few examples with screenshots. As an example I have taken the FND_MESSAGE form which is available in the Application Developer responsibility. Navigation Application Developer-->Application-->Message


Condition1: Display all records where Number is NULL
Query

Result


Condition2: Display all records where Number is not null
Query

Result
Condition3: Display all records where Number is greater than 1905
Query
Result
Condition4: Display all records where Number is between 1905 and 1911
Query
Result
Condition5: Display all records where Number in 1905,1911
Query
Result


source:http://sureshvaishya.blogspot.jp/2008/02/tips-to-query-oracle-apps-forms.html


以下是一些可以尝试解决使用 `pyinstaller` 打包程序包太大问题的方法: ### 1. 排除不必要的模块 检查代码中是否引入了一些不必要的模块,在打包时通过 `--exclude-module` 参数排除这些模块。例如,如果代码中没有使用 `tkinter` 模块,可以在打包命令中添加 `--exclude-module tkinter`: ```bash pyinstaller -F --hidden-import=oracledb --hidden-import numpy --hidden-import psutil --hidden-import pywinauto --hidden-import pyautogui --hidden-import matplotlib --hidden-import pyperclip --hidden-import pyplot --hidden-import=cryptography.hazmat.primitives.kdf.pbkdf2 --exclude-module tkinter E:\workSpace\pythonProgram\autoSendMessage.py ``` ### 2. 虚拟环境 确保在一个干净的虚拟环境中进行打包,避免将一些不必要的全局安装的包打包进去。可以使用 `venv` 或 `conda` 创建虚拟环境,安装项目所需的最小依赖,然后在该虚拟环境中进行打包。 使用 `venv` 创建虚拟环境示例: ```bash python -m venv myenv source myenv/bin/activate # 在 Windows 上使用 myenv\Scripts\activate pip install oracledb numpy psutil pywinauto pyautogui matplotlib pyperclip cryptography pyinstaller -F --hidden-import=oracledb --hidden-import numpy --hidden-import psutil --hidden-import pywinauto --hidden-import pyautogui --hidden-import matplotlib --hidden-import pyperclip --hidden-import pyplot --hidden-import=cryptography.hazmat.primitives.kdf.pbkdf2 E:\workSpace\pythonProgram\autoSendMessage.py ``` ### 3. 优化依赖 检查项目依赖的版本,有些库的新版本可能会引入更多的依赖或更大的体积,可以尝试使用较旧但稳定的版本。同时,确保只安装了项目真正需要的依赖,避免安装一些开发依赖或测试依赖。 ### 4. 使用 `collect_submodules` 和 `collect_data_files` 对于一些复杂的库,可以使用 `PyInstaller` 提供的钩子函数来精确控制要打包的子模块和数据文件。例如,对于某些库可以使用 `collect_submodules` 只打包需要的子模块,使用 `collect_data_files` 只打包必要的数据文件,如引用[2]所示: ```python from PyInstaller.utils.hooks import collect_submodules, collect_data_files # 示例,根据实际情况修改 datas = collect_data_files('oracledb') hiddenimports = collect_submodules('oracledb') ``` 然后在 `.spec` 文件中使用这些变量,在生成 `.spec` 文件后(`pyinstaller --name=autoSendMessage --hidden-import=oracledb --hidden-import numpy --hidden-import psutil --hidden-import pywinauto --hidden-import pyautogui --hidden-import matplotlib --hidden-import pyperclip --hidden-import pyplot --hidden-import=cryptography.hazmat.primitives.kdf.pbkdf2 --specpath=. E:\workSpace\pythonProgram\autoSendMessage.py`),编辑 `.spec` 文件: ```python # 在 .spec 文件中添加以下内容 from PyInstaller.utils.hooks import collect_submodules, collect_data_files datas = collect_data_files('oracledb') hiddenimports = collect_submodules('oracledb') a = Analysis(['E:\\workSpace\\pythonProgram\\autoSendMessage.py'], pathex=[], binaries=[], datas=datas, # 使用收集的数据文件 hiddenimports=hiddenimports, # 使用收集的子模块 hookspath=[], runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher, noarchive=False) ``` 最后使用修改后的 `.spec` 文件进行打包: ```bash pyinstaller autoSendMessage.spec ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值