Вы находитесь на странице: 1из 22

How do you trap default forms processing ( DML) Override on- triggers on insert /ondelete / on update

What is the command to interact with the Operating... HOST command works fine with Oracle Developer 6i. Since Oracle Developer 9i and 10g are Web-enabled this became obsolete. In replacement of this, you need to install a utility called "Oracle WebUtil". For more Information, please go through the following link oracle.com/technology/products/forms/htdocs/webutil/webutil . htm the replacement for HOST command is CLIENT_HOST command. What is purpose and order of firing the following ... 1)On select fires first. On select fFires when Forms Developer would normally execute the open cursor, parse, and execute phases of a query, to identify 2)On fetch fires next When a query is first opened, on-fetch fires immediately after the On-Select trigger fires, when the first records are fetched into the block. While the query remains open, fires again each time a set of rows must be fetched into the block.

How to see the select statement when we issue execute_query Using :system.last_query Using Get_Block_Property('Block Name',LAST_QUERY); Built-in function we can see the query which is executed last in the form module.

How to use single data block to query multiple tables You can do using CLUSTER CONCEPT. Or, By creating a View based on the tables and create the Block based on that view. Or, FROM Clause query

Or, dear friend I am try.But so success .so please help me. run form .window title display but no date display.

How are text files read and written in forms ? UTL_FILE is for backend procedures and this writes and reads from DB server , while TEXT_IO package is used in forms to read and write from Client machine Or the CLIENT_IO is just a replacement for TEXT_IO since the client-server mechanism is becoming obselete Or, the CLIENT_IO is just a replacement for TEXT_IO since the client-server mechanism is becoming obselete

What is the process to call a report from a form of current record of the form whth out parameter form? USING RUN_PRODUCT WE CALL THE REPORT. Or, to call a report from a form by using current record without parameter in reposrt we use run_procedure. what will be the contents of procedure. Or, by using run_product we can call report from a form

How can we open *.ppt and *.doc files through forms? by using OLE control u can open *ppt and *doc files Or, FILENAME := GET_FILE_NAME(File_Filter=> 'PDF Files (*.PDF)|*.PDF|'); SHOW_FILE:= '"'||FILENAME||'"'; HOST(SHOW_FILE); FILENAME := GET_FILE_NAME(File_Filter=> 'PDF Files (*.PDF)|*.PDF|'); SHOW_FILE:= '"'||FILENAME||'"'; HOST(SHOW_FILE);

What is the correct sequence of firing triggers in Forms Pre-form

When-New-Form Pre-Block When-Validate-Item Post-Block OR, 1) Pre-logon 2) On Logon 3) Post logon 4) Pre-form 5)When-new-form 6) pre-block 7)when-new-block-instance 8)when-new-item-instance 9)Post-block 10)post-form Or, Pre-logon On Logon Post logon Pre-form When-new-form-instance pre-block when-new-block-instance when-new-item-instance Pre-text-Item (first item in the block) key-next-item when-validate-item post-change Post-text-Item Pre-text-Item (2nd item in the block) .. .. Post-block post-form Or,

Suppose we open a form then the following triggers are executed:PRE-LOGON ON-LOGON POST-LOGON PRE-FORM PRE-BLOCK WHEN-NEW-FORM-INSTANCE WHEN-NEW-BLOCK-INSTANCE WHEN-NEW-ITEM-INSTANCE Now the cursor is placed on the first item of the Block. Suppose if we type some data and press the Tab key then the following sequence of triggers fires:KEY-NEXT-ITEM (This trigger is present on the item level). POST-CHANGE (This trigger is present on the item level). WHEN-VALIDATE-ITEM (This trigger is present on the item level). POST-TEXT-ITEM (This trigger is present on the item level). WHEN-NEW-ITEM-INSTANCE (Block Level Trigger). The cursor goes to the next item present on the screen. If suppose there are no further items present on the screen them if we enter data and press tab key then only KEY-NEXT-ITEM is fired. Now suppose we close the form then the item level triggers (explained above) are fired. POST-BLOCK POST-FORM Now the form gets closed. Or, Pre-logon On Logon Post logon Pre-form

pre-block Pre-text-Item (1st item in the block) When-new-form-instance when-new-block-instance when-new-item-instance after this what is written on when-validate-item item if succeed key-next-item post-change Post-text-Item Pre-text-Item (2nd item in the block) when-validate-item if not succeed key-next-item post-change when-validate-item Post-text-Item Pre-text-Item (2nd item in the block) .. .. Post-block post-form

How to convert a report into excel sheet? In After Report Trigger, you can create a file in excel format using Text.IO and pressing TAB for column breakup Or, after running the report click on print and then check the print to file option. after saving the file can be opened by pressing shift button and right clicking on the file and choosing open with and then excel

What is the difference between REF Cursor & Normal Cursor? Ref Cursor: ref cursor is a data structure which points to an object which in turn points to the memory

location. ex: create or replace procedure test() as begin type ref_cursor is ref cursor; open ref_cursor as select * from table_name; end; There are 2 types in this. 1.strong ref cursor: This has a return type defined. 2. weak ref cursor. this doesnt have a return type normal cursor: Nothing but the named memory location. it has 2 types 1. explicit cursor Need to be defined whenever required. 2.Implicit cursor need not defined and used by oracle implicitly in DML operation. How add the values at run time to the report parameter ? dname: ename : Suppose i select dname(sales), who belongs to that dname those employee name add to the ename
By using add_parameter builtin you can add values to the report parameter at runtime.

Which property is used to define the relative position of one field with another?
I suppose it is distance between records. Or, Anchor.

what r the different types of queries that can be created in the reports?
3 types of queries. ref cursor query, online query, execute query.

how to populate detail block only on navigation to that block?


U have to set the following property in detail block's relation object Deferred=Yes, Automatic Query=Yes When a coordination-causing event occurs, Form Builder defers fetching the associated detail records until the operator navigates to the detail block.

Or, Do not establish the Master-Detail relationship in the data block wizard. Then, populate

the detail block in the Query only mode or you can also write the navigational trigger: WhenNew-Block-Instance.

which component of application server hosts the s/w oracle 10g & 9i ? 1. what r the virtual paths for icon configuration file path defined in a 9i and 10g appln server ? 2. what r the diff types of component in 9i and 10g appln server ? 3. which property is used to load the appln in forms configuration ? 4. what is lock option in reports 9i 5. Howmany composite pk or unique keys are passible for single table in oracle 10g ? 6. howmany columns are passible in single table oracle 10g 7.which index is best suitable for low coordinality columns. 8. Explain the b-tree index with neat and complete example. 9.what r the different types of queries that can be created in the reports ? 10. give me some url which is having complete details about forms9i and reports9i ?

What is the difference between Summary column and Placeholder column in reports ?
SUmmary Column is where we can have the sum of particular column eg: sum of total salary place holder column: is the one where you can substitute the code written at runtime to a field which is empty at the design time.

Pl give me solution for BarCode Printing in D2k send me Example ?


Example of barcode printing : D11 L H19 3a42090002040116ppdgk020bannv E Or, First Install Barcode Reader. In which have these files included as follows. File Name Size Folder ---------------------------------------------------Frmpdf.exe 79 KB Barcode Folder Bclw.dll 85 KB Barcode Folder Vfp16.dll 5 KB Barcode Folder Form.txt variable Intelpdf Folder Barpdf.bmp variable Intelpdf Folder (Will be created by itself) Frmpdf.ini 1 KB Windows Folder [Barpdf Parameters] BarWidth=2 BarHeight=6 Security Level=6 ======================================= PROCEDURE barcode IS in_file TEXT_IO.FILE_TYPE; linebuf VARCHAR2(80); t varchar2(6); cnt number(2); CURSOR INV_PRIN_CUR IS select b.cust_name, b.add1,b.add2,b.add3,b.cst_number, b.cst_date, b.lst_number ,b.lst_date,b.ecc_no, B.VEND_code,a.po_no,a.remark, a.po_date,a.challan_no,

a.challan_dt,(a.exc_amt+A.CESS_ED) EXC_AMT,e.cust_part_no,c.product_name, a.desp_qty,a.rework,c.uom,a.cases,a.vehicle_no, a.srv_rate,a.sale_amt,a.free_supp_rate,a.bas_exc_rate, (a.exc_amt/a.desp_qty),a.s_tax_rate,(a.s_tax_amt/a.desp_qty), a.s_tax_amt,a.st_surcharge,(a.surcharge_amt/a.desp_qty), a.surcharge_amt,a.net_amt,a.pla_rg_sed,a.duty_ent_no, a.rec_type,a.main_acc_code,a.srv_no,a.product_code,a.s_tax_ind, a.st_code,a.recd_qty,a.party_code,a.pla_rg_bed,a.time,d.uom_desc,a.di_no,kanban_no from srv a ,cust_master b,product_master c,unit_master d, sale_po_master e where a.party_code = b.cust_code and a.product_code = c.product_code and c.uom = d.uom and LTRIM(RTRIM(a.po_no))=LTRIM(RTRIM(e.po_number)) and a.product_code = e.product_code and a.party_code = e.CUST_code and srv_no between :START_SRV and :END_SRV AND a.challan_Dt >= (select financial_year from install_param) ORDER BY SRV_NO; BEGIN select count(*) into cnt from srv a ,cust_master b,product_master c,unit_master d, sale_po_master e where a.party_code = b.cust_code and a.product_code = c.product_code and c.uom = d.uom and LTRIM(RTRIM(a.po_no))=LTRIM(RTRIM(e.po_number)) and a.product_code = e.product_code and a.party_code = e.CUST_code and srv_no between :START_SRV and :END_SRV AND a.challan_Dt >= (select financial_year from install_param); if nvl(cnt,0)=0 then message(' No Invoice Exists for Given range of Invoice Numbers '); raise form_trigger_failure; else forms_ddl('delete from srv_bar'); host(' del c:\intelpdf\form*.txt '); host(' del c:\intelpdf\bar*.bmp '); FOR INV_CUR IN INV_PRIN_CUR LOOP ---message('value of srv_no is '||to_char(inv_cur.srv_no)); in_file := TEXT_IO.FOPEN('c:\INTELPDF\form.txt','w'); TEXT_IO.PUT(in_file,'K199'); TEXT_IO.PUT(in_file,rpad(inv_cur.srv_no,7)); TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'dd')); TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'mm')); --TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'yyyy')); TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'yy')); TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.PUT(in_file,inv_cur.cust_part_no); TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.PUT(in_file,substr(inv_cur.po_no,5,27)); TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.PUT(in_file,to_char(inv_cur.desp_qty));

TEXT_IO.NEW_LINE(in_file,1); if inv_cur.rec_type = 'SP' then TEXT_IO.PUT(in_file,'S'); else TEXT_IO.PUT(in_file,'1'); end if; TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.PUT(in_file,rpad(inv_cur.srv_no,7)); TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'dd')); TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'mm')); --TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'yyyy')); TEXT_IO.PUT(in_file,to_char(inv_cur.challan_dt,'yy')); TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.PUT(in_file,to_char(inv_cur.sale_amt)); TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.PUT(in_file,to_char(inv_cur.exc_amt)); TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.PUT(in_file,to_char(inv_cur.s_tax_amt)); TEXT_IO.NEW_LINE(in_file,1); if inv_cur.di_no is not null then TEXT_IO.PUT(in_file,inv_cur.di_no); elsif inv_cur.kanban_no is not null then TEXT_IO.PUT(in_file,inv_cur.kanban_no); end if; TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.NEW_LINE(in_file,1); TEXT_IO.FCLOSE(in_file); ---message('before PDF RUN'); HOST('C:\barcode\FRMPDF'); ---message('AFTER PDF RUN'); ---message('before copy'); HOST('copy'||' c:\INTELPDF\BARPDF.BMP'||' c:\INTELPDF\'|| to_char(inv_cur.srv_no)||'.BMP'); ---message('after copy'); READ_IMAGE_FILE('c:\INTELPDF\'||to_char(inv_cur.srv_no)||'.BMP', 'BMP', 'BARFILE'); :SRV_NO:=INV_CUR.SRV_NO; NEXT_RECORD; END LOOP; COMMIT; end if; EXCEPTION WHEN no_data_found THEN TEXT_IO.PUT_LINE('Closing the file...'); TEXT_IO.FCLOSE(in_file); END; Any information about barcode programe please call me 9868329643,rajatbisht@yahoo.com BREIF INTRODUCTION ABOUT D2K D2K ARE sql forms and sql reports.nothing but front end access to desing the forms with the help of built ins.WHEN U OPEN A FORM IT CONTAINS AN OBJECT NAVIGATOR SHOWING ALL

THE INTRINSIC SUPPORTERS OF THE FORM BUILDER.THE MAIN PARTS ARE CANVAS --CONTAINS ALL THE ITEMS , AND VISIBLE TO USERBLOCK --TO STORE DATABASE ITEMS , AND USER DEFINED ITEMS ITEMS -TEXT FIELDS , CHECK BOXES ETC.,AND U NEED TO WRITE THE SIMPLE SQL QUERIES TO RETREIVE THE DATA

what is key.next.item trigger?


it means , when the cursor cross the particular field, at the moment this trigger will raised. Or, the purpose of the key next item is..after validating a particular field (suppose tex field) (means enter some data into that field next what process should happen is written in that trigger.. for the code written in key next item trigger is like this go_item("blockname.textfeildname"); then cursor will goes to next feild named mentioned in the above syntax;

Or,
Key-Next-item trigger will fire whenver the user try to move the control(i.e., cursor) from one item to another item in the form by pressing return key or tab key.

If there are 1 to 10 records, how many times between pages trigger will fire? If there are 1 to 2 records? and how many times it will fire from 10th to 1st record?
only once. Or, Between pages trigger fires only when u navigate from one page of report to another page first time. No matters how many records u have. It depends on the no of pages u have in the reports and ur first time navigation between them. Or, Also between pages will fire only for the first time when you navigate to the pages. When you navigate to the pages 2nd time it will not fire.

What is Confine mode, and Flex Mode?


Confine Mode: ON: Child objects cannot be moved outside their enclosing parent object. OFF:Child objects can be moved outside their enclosing parent object. Flex Mode: ON:Parent borders "stretch" when child objects are moved against them. OFF:Parent borders remain fixed when child objects are moved against them.

Or, Also By default Confine Mode - On Flex Mode Off

how we will find duplicate record in detail block when we leave the field ?
We can find duplicate record by using 'POST' builin in when_new item instance trigger at item level in detail block. POST; Writes data in the form to the database, but does not perform a database commit. It's temporary commit thats useful for duplicate validation.

How can i open Windows Common Dialog Boxes(OPen,Save,Print) throgh a Button Push from Form?
first we go menu modulecreate open ,save, newthen in open we have called a form like (call_form("c:\my document\man.fmx")then in save- we have go to trigger and write trigger save _form;then in new- we have write the code new_form;after this proceesing the windows common dilogboxes are open Or, Using the Win_Api_Dialog package in D2kUtil library you can avail all the functions (open,save) u need. For sample code you may refer to the Form Builder Help.
Or, U can use the builting GET_FILE_NAME . Here are the parameters if u want u can pass these parameters. FUNCTION GET_FILE_NAME (directory_name VARCHAR2, file_name VARCHAR2, file_filter VARCHAR2, message VARCHAR2, dialog_type NUMBER, select_file BOOLEAN);

how can i open Window's common dialog Boxes using forms?


We can open Window's common dialog boxes by following: First attach the library called d2kutil.pll. After attaching that library u will get the Win_Api_Common_Dialog Package...there wil get the functions to open the common dialog bolxes like open, save etc.Partha Sarathi Paul. We can open Window's common dialog boxes by following: First attach the library called d2kutil.pll. After attaching that library u will get the Win_Api_Common_Dialog Package...there wil get the functions to open the common dialog bolxes like open, save etc.Partha Sarathi Paul.

How will u find the duplicate record in the detail block when we leave the text box ?

In the key next item trigger write the plsql code select enum,rowid into :ENUM,:ROWID from EMPLOYEE where rowid<(Select min(rowid) from employee where rowid<e.rowid).

what is the main difference between bind parameter and lexical parameter where are they used can anyone please illustrate with example?
Bind Parameters are denoted by (:) Used to get the value from the User. Lexcial Parmeters are denoted by (&) Used to get the Clause from the User. Forms, Pl/Sql and SQL - we can use both. Reports - we can use Bind Paramters.

difference between flex,lexical and bind variable ?


The Major Diffrence between Lexical and Bind varible is If you want to give a run-time condition in a query of the forms,we have to use Lexical varibale..A Bind varible is a varible which is declare with the predefine statement VARIABLE and it has to represented with symbol (:) in the programming body.

How will you pass whole query from Form builder to Report?
u can use get_block_property('blk_name', last_query) it will return the query executed last in varchar use instr function to get query from 'where' clause to lexical parameter to report u can use lexical parameter to listen the where clause from report

what is use of object libraries?


1) To create ,store,and maintain and distrubate standard and reusable objects. 2)Rapidly create application by dragging and droping predefined objects on to form.

Or,
In addition to that this can be used as an object for the layout and screen designs of total application. Any future modification will be implemented without recompiling

your forms code.

how do you run ms_batch file in forms? what could be the value :system.mode?
host('c:myFile.bat');

I want to exchange the content of a text_box to another text box,then the value should get exchanged with the mouse event trigger,how is it possible?
you can do this using the copy value property. you can give the item from which the value need to be copied.

Is it possible to call a report from another report using report builder?


call_report.

Or,

Is it possible to call a report from another report by using... SRW.Run_Report

Could you plz explain different types of queries created in reports? What are features of 4.5,6i,9i difference kindly list them?

what are use of DDE package in D2K?


DDE : Dynamic Data Exchange this package is used for transfer/ receive data from/to excel/winword application you can get all examples in D2K/ Forms Help tab.

How to use winhelp utility of windows in D2K form ?

How to store the form data in Excel sheet in form 6i?


yes by using "Text_io" package for example: declare x text_io.file_type; begin x:=Text_IO.Fopen('c:bonus.csv', 'w'); for rec in(select * from emp) loop Text_io.put_line(x,rec.period_name||','||rec.col1||','||rec.col2||','||rec.col3); end loop; Text_IO.Fclose(x); end; Or, by using "TEXT_IO" package for example: decalre Or, Using Text_IO package the form data will store in Excel sheet.

I need to sort the report based on more than one feild , i worked on LOV but u can sort data based on only one feild. Please help how can i achieve this ?
First We need to make all the colums break order to none in report data model then specify more then one field at query level Ex:- select * from emp order by deptno,sal

How can I acces a field of a existing excel file i.e. cell a1,c8 by using ole and how we use OLE ?
check the following procedure

PACKAGE RPT2XLS IS -- Font style constants BOLD constant binary_integer := 1; ITALIC constant binary_integer := 2; UNDERLINE constant binary_integer := 4;

-- Horizontal alignment constants SUBTYPE xlHAlign IS binary_integer; CENTER CONSTANT xlHAlign := -4108; CENTERACROSSSELECTION CONSTANT xlHAlign := 7; DISTRIBUTED CONSTANT xlHAlign := -4117; FILL CONSTANT xlHAlign := 5; GENERAL CONSTANT xlHAlign := 1; JUSTIFY CONSTANT xlHAlign := -4130; LEFT CONSTANT xlHAlign := -4131; RIGHT CONSTANT xlHAlign := -4152; PROCEDURE put_cell(ColNo binary_integer, CellValue in varchar2, FontName in varchar2 DEFAULT null, FontSize in binary_integer DEFAULT null, FontStyle in binary_integer DEFAULT null, FontColor in binary_integer DEFAULT null, BgrColor in binary_integer DEFAULT null, Format in varchar2 DEFAULT null, Align in xlHAlign DEFAULT null ); PROCEDURE new_line; PROCEDURE run; PROCEDURE release_memory; END; PACKAGE BODY RPT2XLS IS TYPE ExcelCell IS RECORD(RowNo binary_integer, ColNo binary_integer, Val varchar2(2000), FontName varchar2(20), FontSize binary_integer, FontStyle binary_integer, FontColor binary_integer, BgrColor binary_integer, Format varchar2(60), Align xlHAlign ); TYPE ExcelCells IS TABLE OF ExcelCell; Cell ExcelCells := ExcelCells(); CurrentRow binary_integer := 1; PROCEDURE new_line IS BEGIN CurrentRow := CurrentRow + 1; END; PROCEDURE put_cell(ColNo binary_integer, CellValue in varchar2, FontName in varchar2 DEFAULT null, FontSize in binary_integer DEFAULT null, FontStyle in binary_integer DEFAULT null,

BEGIN Cell.Extend; Cell(Cell.Last).RowNo := CurrentRow; Cell(Cell.Last).ColNo := ColNo; Cell(Cell.Last).Val := CellValue; Cell(Cell.Last).FontName := FontName; Cell(Cell.Last).FontSize := FontSize; Cell(Cell.Last).FontStyle := FontStyle; Cell(Cell.Last).FontColor := FontColor; Cell(Cell.Last).BgrColor := BgrColor; Cell(Cell.Last).Format := Format; Cell(Cell.Last).Align := Align; END; PROCEDURE run IS Application OLE2.OBJ_TYPE; Workbooks OLE2.OBJ_TYPE; Workbook OLE2.OBJ_TYPE; Worksheets OLE2.OBJ_TYPE; Worksheet OLE2.OBJ_TYPE; WorkCell OLE2.OBJ_TYPE; WorkColumn OLE2.OBJ_TYPE; WorkFont OLE2.OBJ_TYPE; WorkInterior OLE2.OBJ_TYPE; ArgList OLE2.LIST_TYPE; BEGIN

FontColor in binary_integer DEFAULT null, BgrColor in binary_integer DEFAULT null, Format in varchar2 DEFAULT null, Align in xlHAlign DEFAULT null ) IS

Application := OLE2.create_obj('Excel.Application'); OLE2.set_property(Application, 'Visible', 1); Workbooks := OLE2.get_obj_property(Application, 'Workbooks'); Workbook := OLE2.invoke_obj(WorkBooks, 'Add'); Worksheets := OLE2.get_obj_property(Workbook, 'Worksheets'); Worksheet := OLE2.get_obj_property(Application, 'ActiveSheet'); for i in Cell.First .. Cell.Last loop if Cell(i).Val is not null then ArgList := OLE2.create_arglist; OLE2.add_arg(ArgList, Cell(i).RowNo); ole2.add_arg(ArgList, Cell(i).ColNo); WorkCell := OLE2.get_obj_property(Worksheet, 'Cells', ArgList); ole2.destroy_arglist(ArgList); ole2.set_property(WorkCell, 'Value', Cell(i).Val); ole2.set_property(WorkCell, 'NumberFormat', Cell(i).Format); if Cell(i).Align is not null then ole2.set_property(WorkCell, 'HorizontalAlignment', Cell(i).Align); end if;

WorkFont := OLE2.get_obj_property(WorkCell, 'Font'); WorkInterior := ole2.Get_Obj_Property(WorkCell, 'Interior'); if Cell(i).FontName is not null then OLE2.set_property(WorkFont, 'Name', Cell(i).FontName); end if; if Cell(i).FontSize is not null then OLE2.set_property(WorkFont, 'Size', Cell(i).FontSize); end if; if mod(Cell(i).FontStyle, 2) = 1 then OLE2.set_property(WorkFont, 'Bold', 1); end if; if mod(Cell(i).FontStyle, 4) > 2 then OLE2.set_property(WorkFont, 'Italic', 1); end if; if mod(Cell(i).FontStyle, 8) > 4 then OLE2.set_property(WorkFont, 'Underline', 2); end if; if Cell(i).FontColor is not null then OLE2.set_property(WorkFont, 'ColorIndex', Cell(i).FontColor); end if; if Cell(i).BgrColor is not null then OLE2.set_property(WorkInterior, 'ColorIndex', Cell(i).BgrColor); end if; OLE2.release_obj(WorkInterior); OLE2.release_obj(WorkFont); OLE2.release_obj(WorkCell); end if; end loop; ArgList := ole2.create_arglist; ole2.add_arg(ArgList, 'A:Z'); WorkColumn := ole2.Get_Obj_Property(WorkSheet, 'Columns', ArgList); ole2.destroy_arglist(ArgList); ole2.invoke(WorkColumn, 'AutoFit'); OLE2.release_obj(WorkColumn); OLE2.release_obj(Worksheet); OLE2.release_obj(Worksheets); OLE2.release_obj(Workbook); OLE2.release_obj(Workbooks); OLE2.release_obj(Application); END; PROCEDURE release_memory IS BEGIN Cell := ExcelCells(); SYS.DBMS_SESSION.free_unused_user_memory; END; END;

How to use C/C++ codes or programs i.e native source codes in D2K?
We can make our functions and procedures in C/C++ , then we can call them to forms by program units in the "Object Navigator " of a particular module.

what is the global temporary variable?


Global Temporary tables are Session based tables. Or, global temporary is session based and transaction based table for that table some restriction also there as a like we can not use referential integrity(foreign key) on that table.

What are the triggers that fires at form level, block level and item level at the time of query execution and What is the heirerchy ?
Some of the triggers are: FORM LEVEL: Pre-form When-New-Form-Instance Post-form

BLOCK LEVEL: Pre-block When-New-Block-Instance When-Create-Block When-Button-Pressed When-Checkbox-Changed When-Image-Pressed Key - (All) When-Radio-Changed When-Window-Activated / Closed

When-Mouse-Click/Double Click/Down When-Clear-Block Post-block

ITEM LEVEL: Pre-Text-Item Pre-Record Pre-Query When-New-Item-Instance Post-Query Post-Record Post-Text-item

The order in which the triggers fire are governed by whether they are Form level/Block level or Item level. Please refer to Forms Developer >> Help Menu for more details on each of these triggers.

when execute query fire for a detail block and how many times pre query fire and how many times post query fire for a detail block?
1 time pre query and no of row times post query

What are the different objects in oracle ?


The different objects in oracle is

Or,

Tables Views

Tables,Procedures,Functions,Packages,Materialized Views are some of the object in database.Note:- Views are not database object rather Materialized views are database objects

Or,
Different oracle Objects: Table View Synonym

Index Sequences Triggers Role Type

What component make up the interface to oracle form designer?


Design Editor

what is best and fast way to get report data on openend/new excel sheet?
by using delimiter.

what triggers are activated when master detailed relation ship established ?
The triggers created when u establish a relation between two blocks r on-clear-details(form level) on-populate-details(master block level) on-check-delete-master(master block level) on-clear-details will be fired whenever u r clearing the master records. on-populate-details will fire when ever ur executing the query for the master records. on-check-delete-master fires whenever u r deleting the master records

What is the business reason for using triggers and what sequence they get fired when control transfer from one text item to next text item ? How to print logo on the report by changing the Mode to Bitmap ?

what is lexical parameter in report? Explain benefits and usage of lexical parameter?
Lexical parameters r used to provide the sql clauses at runtime . these r used for adhoc queries if u r not known the condition at runtime at that time

we can use lexical parameters. generally these r useful in datawarehousing applications. these can be used in all clauses of select stmts.

Вам также может понравиться