Suppose you have two T-List items in form and you want  to shift element values from one list to another in Oracle Forms, here is the example given below for the same. Create two buttons also between list items as shown in picture in the bottom of th…
Add combo list / drop down list item element at runtime in Oracle forms.SyntaxPROCEDURE ADD_LIST_ELEMENT(list_name VARCHAR2,list_index, NUMBERlist_label VARCHAR2,list_value NUMBER);ExampleDeclare  nElmntCount Number;Begin   -- First count the total l…
The below plsql program unit could be used in a WHEN-NEW-FORM-INSTANCE trigger to initially populate the hierarchical tree with data in Oracle forms.DECLAREhtree ITEM;v_ignore NUMBER;rg_emps RECORDGROUP;BEGIN-- Find the tree itself.htree := Find_Item…
SYSTEM.CURSOR_BLOCK Determining current block in Oracle Forms Using SYSTEM.CURSOR_BLOCK system variable. The value that the SYSTEM.CURSOR_BLOCK system variable represents depends on the current navigation unit:If the current navigation unit is the bl…
Example is given below to Populate a List Item in Oracle Forms using Create_Group_From_Query , Populate_List and Populate_Group command. In this example you can specify the query at run time to populate the list item with that query result.   Followi…
Example is given below to validate a Text Item in Oracle Forms with specific rules condition which can be define at run time with the use of T-List item and When-Validate-Item trigger.   Below is the screen shot of this example form which can be down…
Highlight a Text Item in Oracle Forms With Visual Attribute It is very necessary to highlight the current cursor text item in data entry forms so that a user can easily notice the current item. Steps to highlight current item 1.   Create a visual att…
Set_Item_Property is used to change an object's settings at run time. Note that in some cases you can get but not set certain object properties. The following are Syntax of Set_Item_property command:SET_ITEM_PROPERTY(item_id ITEM,property NUMBER,valu…
Show_Lov Function is used to display list of values (LOV) in Oracle Forms. It returns TRUE if the user selects a value from the list, and FALSE if user not selects the value. Syntax You can pass the LOV ID to Show_Lov function to display the LOV.SHOW…
Write Post-Query trigger for the block you want to fetch the field value for display item.ExampleBegin   Select Ename into :datablock.dspname      from emp      where ecode = :datablock.ecode;   -- Field dspname in datablock will be populated with th…
Check Box Mapping of Other Values specifies how any fetched or assigned value that is not one of the pre-defined "checked" or "unchecked" values should be interpreted. Means suppose you have specified Value When Checked property to 'Y'…
In this Document Purpose Details   Scenario 1: Testing the basic item import with minimum columns populated   Scenario 2: To import items and use item templates   Scenario 3: To import items and material cost associated to it.   Scenario 4: To import…
字典是一种用[键,值]形式存储元素的数据结构.也称作映射,ECMAScript6中,原生用Map实现了字典结构. 下面代码是尝试用JS的Object对象来模拟实现一个字典结构. <script> //set添加 get获取 has是否有 remove删除 values获取所有value size获取长度 clear清除所有 function Dict(){ this.item = {}; } //是否存在元素 Dict.prototype.has = function(key){ return…
1.MVC MVC模式(Model-View-Controller)是软件工程中的一种软件架构模式,把软件系统分为三个基本部分:模型(Model).视图(View)和控制器(Controller). PHP中MVC模式也称Web MVC,从上世纪70年代进化而来.MVC的目的是实现一种动态的程序设计,便于后续对程序的修改和扩展简化,并且使程序某一部分的重复利用成为可能.除此之外,此模式通过对复杂度的简化,使程序结构更加直观.软件系统通过对自身基本部份分离的同时,也赋予了各个基本部分应有的功能.…
/****** Object: UserDefinedFunction [dbo].[GetDirectoryPath] Script Date: 2016-12-16 16:54:05 ******/ SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE FUNCTION [dbo].[GetDirectoryPath] ( @Path NVARCHAR(MAX) ) RETURNS NVARCHAR(MAX) AS BEGIN DECLARE…

es6

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>lcr</title> 1:引入的改变: script标签的type属性的值是module(或者traceur),而不是text/javascript <script type="module"> < /script&g…
前言:学习C#编程应该有几个月了,作为一个菜鸟,没有资格来评论什么.只有对自己所学进行一个总结,可能有不严谨的地方,万望谅解.          一·深入.NET框架 .NET框架(.NET Framework),他是开发.NET应用程序的核心基础. .NET框架的体系结构 支持C#.VB..NET.c++.等语言的开发,也就是我们所说的跨语言开发. .NET框架具有两个主要组件:CLR和FCL.(CLR是Common Language Runtime即公共语言进行时;FCL是Framework…
利用SQl对数据库实行数据拆分与组合实现提供以下几种方案: 方法一: WITH CTE AS (SELECT A.Id,A.[Uid],UserName FROM (SELECT A.[id], REPLACE(Split.a.value('.', 'NVARCHAR(max)'),'''','') AS [Uid]FROM (SELECT [id], CAST ('<M>' + REPLACE(Uid, ',', '</M><M>') + '</M>' A…
sendEmail是一个轻量级,命令行的SMTP邮件客户端.如果你需要使用命令行发送邮件,那么sendEmail是非常完美的选择:使用简单并且功能强大.这个被设计用在php.bash perl和web站点使用. 1.下载软件 wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz 2.创建目录 mkdir /usr/local/bin 3.解压软件 tar zxf sendEmail-v1.56…
where in 的参数化查询实现 首先说一下我们常用的办法,直接拼SQL实现,一般情况下都能满足需要 string userIds = "1,2,3,4"; using (SqlConnection conn = new SqlConnection(connectionString)) { conn.Open(); SqlCommand comm = new SqlCommand(); comm.Connection = conn; comm.CommandText = string…
一.今日内容 一.Django ORM连表操作 Q,F 二.Form表单验证 面向对象 正则 三.Session框架 面向对象 cookie toanado扩展 二.Django ORM一对多数据创建和查找 1.数据创建 对于不是外键关联的表,可以直接创建 对于通过外键关联的表,可以通过两种方式创建数据: 方式a:通过id添加数据 def user_info(request): dic = {,} #通过id添加数据 models.UserInfo.objects.create(**dic) r…
HashMap的遍历有两种常用的方法,那就是使用keyset及entryset来进行遍历,但两者的遍历速度是有差别的 java Map 遍历速度最优解 第一种: Map map = new HashMap(); Iterator iter = map.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); Object key = entry.getKey(); Obje…
利用ViewHolder优化自定义Adapter的典型写法 最近写Adapter写得多了,慢慢就熟悉了. 用ViewHolder,主要是进行一些性能优化,减少一些不必要的重复操作.(WXD同学教我的.) 具体不分析了,直接上一份代码吧: public class MarkerItemAdapter extends BaseAdapter { private Context mContext = null; private List<MarkerItem> mMarkerData = null;…
Trigger 不是数据库中的触发器,不过功能类似,都是当某个事件发生的时候会触发. Trigger中可以编写代码,当对应事件发生的时候就会执行该Trigger中的代码. Oracle Form中的Trigger有三个层级:Form level.Data Block level.Item level. 三个层级的影响范围是依次递减的,三个层级可能存在相同名字的Trigger,如果下层Trigger的没有定义就会使用上层的Trigger.Trigger有个继承的property可以设置,可以设置是…
转载至:http://www.cnblogs.com/lzrabbit/archive/2012/04/22/2465313.html 文章导读 拼SQL实现where in查询 使用CHARINDEX或like实现where in 参数化 使用exec动态执行SQl实现where in 参数化 为每一个参数生成一个参数实现where in 参数化 使用临时表实现where in 参数化 like参数化查询 xml和DataTable传参  身为一名小小的程序猿,在日常开发中不可以避免的要和wh…
先上图 再上代码: import ttk from Tkinter import * root = Tk() tree = ttk.Treeview(root, columns=('col1','col2','col3')) tree.column('col1', width=100, anchor='center') tree.column('col2', width=100, anchor='center') tree.column('col3', width=100, anchor='ce…
1. { 换行:   Opening Brace Can't Be Placed on a Separate Line 2. 定义未使用的变量:  Unused Variables 2. import 但未使用: Unused Imports 3. a := 123 简短变量定义方式只能在函数内部使用: Short Variable Declarations Can Be Used Only Inside Functions 4. 重复定义 简短变量: Redeclaring Variables…
一.数据库语言部分1. SQL语言:关系数据库的标准语言2. PL/SQL:过程化语言Procedural Language3. SQL*Plus:简单的报表,操作系统接口 4. Oracle 8.01后出现:(1) 数据分区技术:只适用8.01后的版本,数据分散存放,不要放在一个硬盘上,I/O性能好,安全性能好.(2) 对象技术:存储过程.函数.包.数据库触发器.动态SQL编程(3) 数据库权限管理(4) 数据完整性约束(Data Integrity Constraints) 二.Oracle…
概念: 在了解了这篇文章之后,可以进行该篇文章的说明和测试.MongoDB 副本集(Replica Set)是有自动故障恢复功能的主从集群,有一个Primary节点和一个或多个Secondary节点组成.类似于MySQL的MMM架构.更多关于副本集的介绍请见官网.也可以在google.baidu上查阅. 副本集中数据同步过程:Primary节点写入数据,Secondary通过读取Primary的oplog得到复制信息,开始复制数据并且将复制信息写入到自己的oplog.如果某个操作失败,则备份节点…
方案1 为where in的每一个参数生成一个参数,写法上比较麻烦些,传输的参数个数有限制,最多2100个,可以根据需要使用此方案 using (SqlConnection conn = new SqlConnection(connectionString)) { conn.Open(); SqlCommand comm = new SqlCommand(); comm.Connection = conn; //为每一条数据添加一个参数 comm.CommandText = "select *…