To create a new block, pull down the Tools menu ->select the Data Block wizard menu item Or select Block-> + -> check display this page next time ->next
click on table or view /store procedure ->next
Select table or view by browsing and select assential column ->next
Select table or view by browsing and select assential column ->next
Enter the block name ->next
select the create data Block and call the layout wizard / just create data block ->finish
select column name ->finish
select form/tabular ->next
select frame title + Record Displayed+ distance between record + display scrollable ->finish
To view the actual form and its blocks and fields, pull down the Tools menu and select the Layout Editor menu item.
In the Layout Editor, fields and labels can be moved around by clicking and dragging. Other text, lines and boxes, etc. can be added using the tool palette on the left side of the window.
Some common operations on the Layout Editor on the left include:
While in the Layout Editor, double clicking on an object will bring up that object’s properties. Optionally, clicking on an object with the right mouse button will bring up a small menu which has the Properties menu item on it. The following figure shows the properties for the FNAME item.
Some common elements of Properties
Note: each block has its own properties
Follow the link Block and Item
Follow the link Master detail
Follow the link Form builder using text item
Follow the link Radio group and change radio
Follow the link Form builder using list item
Follow the link Form builder using checkbox
Follow the link Push button and trigger
Read_image_file('url','image-type','image_item');
Follow the link Control block and Image
formula: can use addition,subtractiob,multiplition,division summary: can use any one of min.max,count,avg of an item
Follow the link Display Item
is used for validating date,mobile, phone number,....
Follow the link Format Mask
is used for validating date,mobile, phone number,....
code...
Follow the link Email id validation
Manage Tab and it's page
Follow the link Tab Canvas
Follow the link Menu and popup menu
Follow the link menu tutorial
Follow the link tree menu tutorial VVI
DECLARE -- tree menu
htree ITEM;
v_ignore NUMBER;
rg_emps recordgroup;
BEGIN
htree := find_item('tree_block_name.item_name');
rg_emps :=CREATE_GROUP_FROM_QUERY('rg_emps','select 1,lavel,last_name,null,to_char(employee_id)'
||'from_employees'
||'connect by prior employee_id=manager_id'
||'start width job_id =''ADD_PRESS'''
);
v_ignore :=Populate_Group(rg_emps);
Ftree.Set_Tree_property(htree,Ftree.RECORD_GROUP,rg_emps);
END;
DECLARE a NUMBER; BEGIN SELECT MAX(ID) INTO a FROM TABLE; :block_one.primary_id := a+1; END;
Follow the link Auto primary key
Follow the link Visual Attribute
DECLARE p_value NUMBER; BEGIN p_value := 120; SET_ALERT_BUTTON_PROPERTY (‘alert_name’, alert_button1, label, ‘Yes’); SET_ALERT_BUTTON_PROPERTY (‘alert_name’, alert_button2, label, ‘No’); SET_ALERT_PROPERTY (‘alert_name’,alert_message_text,‘Do you want continue value Exceeds’ || p_value || '?'); n := SHOW_ALERT (‘alert_name’); IF n = alert_button1 THEN :sel_button := ‘You choose Yes to Continue’; ELSE :sel_button := ‘You choose NO to Stop’; END IF; END;
Follow the link Alert
Follow the link set_item_property
Follow the link login validation 1
Follow the link change password
Follow the link Post Query
create a procedure on program unit as dynamic_list_item and call on when-new-form_instance trigger
PROCEDURE dynamic_list_item IS
rg_name1 VARCHAR2(20) :='PRONAM'; -- field name corrending to progid
rg_id1 recordgroup;
n1 NUMBER;
BEGIN
rg_id1 := find_group(rg_name1);
IF ID_NULL(rg_id1) THEN
rg_id1 := CREATE_GROUP_FROM_QUERY('rg_name1','SELECT PRONAME,TO_CHAR(PROGID) FROM PROGRAM');
END IF;
n1 := Populate_group(rg_id1);
populate_list('PROGID',rg_id1); -- show list on progid field
END;
Follow the link Login validation 2
user when use control block
Follow the link Standared Commit
we can add item on the list table on the instance
add_list_element();
Follow the link Add Listitem Runtime
Follow the link Editor
list of record on a separate window show
Follow the link LOV
Follow the link Date
Follow the link Search
Follow the link Search 2
Follow the link Image Upload
Follow the link How to Run oracle form in Mozilla or Any browser
Follow the link Where clause
DECLARE report_server VARCHAR2(50); format VARCHAR2(50); login_user VARCHAR2(50); report_path VARCHAR2(50); BEGIN report_server :='http://SDI-Uzzal:8889/reports/rwservlet?'; format :='&desformat=pdf&destype=cache'; login_user :='&userid=dalerp/dalfactoryerp@ukapextest'; report_path :='&report=D:\hrmdemo\shift.rdf'; web.show_document(report_server||login_user||format||report_path,'_blank'); END;
go to /devsuit/reports/conf/rwservlet.properties and replace the following
#RELOAD_KEYMAP=NO as RELOAD_KEYMAP=YES
go to /devsuit/reports/conf/cgicmd.dat and replace the following
ukrpt:[space here]userid=dalerp/dalfactoryerp@ukapextest[space here]%*
DECLARE report_server VARCHAR2(50); format VARCHAR2(50); login_user VARCHAR2(50); report_path VARCHAR2(50); BEGIN report_server :='http://SDI-Uzzal:8889/reports/rwservlet?ukrpt'; format :='&desformat=pdf&destype=cache'; report_path :='&report=D:\hrmdemo\shift.rdf'; web.show_document(report_server||format||report_path,'_blank'); END;
DECLARE
application ole2.obj_type;
workbooks ole2.obj_type;
workbook ole2.obj_type;
worksheets ole2.obj_type;
worksheet ole2.obj_type;
cell ole2.obj_type;
arglist ole2.list_type;
row_num NUMBER;
col_num NUMBER;
fontObj ole2.obj_type;
CURSOR rec is SELECT shift_id,shift_name FROM HRM_SHIFT;
PROCEDURE set_cell_value(rowid NUMBER,colid NUMBER,cellvalue VARCHAR2) is
BEGIN
arglist := ole2.create_arglist;
ole2.add_arg(arglist,rowid);
ole2.add_arg(arglist,colid);
cell := ole2.get_obj_property(worksheet,'Cells',arglist);
fontObj := ole2.get_obj_property(cell,'Font');
ole2.destroy_arg_list(arglist);
ole2.set_property(cell,'value',cellvalue);
ole2.set_property(fontObj,'Size',16);
ole2.set_property(fontObj,'Bold',1);
ole2.set_property(fontObj,'ColorIndex',7);
ole2.release_obj(cell);
END;
end set_cell_value;
PROCEDURE app_init is
BEGIN
application := ole2.create_obj('Excel.Application');
ole2.set_property(application,'Visible',true);
workbooks := ole2.get_obj_property(application,'workbooks');
workbook := ole2.invoke_obj(workbooks,'add');
worksheets := ole2.get_obj_property(application,'worksheets');
worksheet := ole2.invoke_obj(worksheets,'add');
ole2.set_property(worksheet,'Name',' Shift Information');
END;
end app_init;
PROCEDURE save_excel(path VARCHAR2,filename VARCHAR2) is
BEGIN
OLE2.Release_Obj(worksheet);
OLE2.Release_Obj(worksheets);
IF path IS NOT NULL THEN
Arglist := OLE2.Create_Arglist;
OLE2.Add_Arg(Arglist,path||'\'||filename.'.xls');
OLE2.Invoke(workbook,'SaveAs',Arglist);
OLE2.Destroy_Arglist(Arglist);
END IF;
END;
end app_init;
BEGIN
app_init;
row_num :=1;
col_num :=1;
SetCellValue(row_num,col_num,'shift_id');
col_num := col_num+1;
SetCellValue(row_num,col_num,'shift_name');
for i IN rec LOOP
row_num := row_num+1;
col_num :=1;
SetCellValue(row_num,col_num,i.shift_id);
col_num :=2;
SetCellValue(row_num,col_num,i.shift_name);
END LOOP;
save_excel('d:\excel_report','shift_info');
OLE2.Release_Obj(workbook);
OLE2.Release_Obj(workbooks);
OLE2.Release_Obj(application);
END;
Total : 34402
Today :26
Today Visit Country :