Datastores structure in oracle forms?
Good Morning to all,
I would like to ask if there is any structure in oracle forms, in order to implement datastores which exost in powerbuilder. I hava the following code in powerbuilder :
integer v
if index < 1 or index > 4 then return -1
if isnull( dw[index] ) then
dw[index] = create datastore
dw[index].dataobject = dws[index]
dw[index].settransobject(sqlca)
end if
if dw[index].Retrieve( erg, todate ) <> 1 then
v = -1
else
yy = dw[index].GetItemNumber(1,1)
mm = dw[index].GetItemNumber(1,2)
dd = dw[index].GetItemNumber(1,3)
v = 1
end if
return v
which is a function that calculates a variable v, and uses an object (dw) which is a datastore.
Is there in Oracle forms any structire similar to datastore and if there, how can i implement it?
thanx a lot!
So, you can define tables of records.
Declare
-- Block record --
TYPE TYP_BLK is record
blk_name Varchar2(30), -- block name
blk_idx Pls_integer, -- ID of block in collection
blk_ScrBarPos Varchar2(1) DEFAULT 'R', -- Scroll Bar position
blk_def_order Varchar2(128) -- initial ORDER BY clause
-- Table of blocks records --
TYPE TYP_TAB_BLK is table of TYP_BLK index by BINARY_INTEGER ;
TB_Blocks TYP_TAB_BLK ;
Begin
TB_Blocks(1).blk_name := '...' ;
TB_Blocks(2).blk_name := '...' ;
End ;Search for a PL/SQL tutorial.
Francois
Similar Messages
-
Call a web services from oracle forms 10
I have to call a web services from oracle forms.
The version of the database is oracle 11gr2. the version of the forms is 10.1.2.0.2.
I allready did the proxy creation and the import class within forms.
I have 2 questions:
1.
I created the following procedure:
PROCEDURE call_WS IS
vobject1 ORA_JAVA.JOBJECT;
vobject2 ORA_JAVA.JOBJECT;
BEGIN
vobject1 := WSEvaluarReglaCondicionComerci.new();
vobject2 := WSEvaluarReglaCondicionComerci.listarValoresAtributoEvento(vobject1, 702, 2217, null, null, null);
END;
the function I calling:
FUNCTION listarValoresAtributoEvento(
obj ORA_JAVA.JOBJECT,
a0 ORA_JAVA.JOBJECT,
a1 ORA_JAVA.JOBJECT,
a2 ORA_JAVA.JOBJECT,
a3 VARCHAR2,
a4 ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT;
Note that the parameters is ORA_JAVA_JOBJECT and I need to send numbers. I understand that when I import the classes, because in the WS those parameters are defined as BigDecimal, Forms understand them as java object but when I compile it reports the error: "numero o tipo de argumento erroneo al llamar..." type error.
So the question is, how Cast the numbers to Java Object to send them.
I have read in a web page that one option is to change in the web service the type of the parameters but that is not an option.
2.
The WS returns a super big XML as answer, so how I can parse the result into an Object type?...
The object structure is:
TYPE opciones_obj AS OBJECT
(strindice VARCHAR2 (4000),
nombrecompleto VARCHAR2 (4000),
nombre VARCHAR2 (4000),
strtipodato VARCHAR2 (4000),
codigoopcion NUMBER,
floatval FLOAT,
strtipo VARCHAR2 (4000),
strval VARCHAR2 (4000));
and the tags to extract is:
COLUMNS strindice VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="strIndice"]/ns2:value',
nombrecompleto VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="nombreCompleto"]/ns2:value',
nombre VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="nombre"]/ns2:value',
strtipodato VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="strTipoDato"]/ns2:value',
codigoopcion NUMBER
PATH 'ns2:mapEntry[ns2:key="codigoOpcion"]/ns2:value',
floatval FLOAT
PATH 'ns2:mapEntry[ns2:key="floatVal"]/ns2:value',
strtipo VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="strTipo"]/ns2:value',
strval VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="strVal"]/ns2:value') x;
xquery / xmltype aparently is not an option because the xml is too big.
I will appreciate your answers.
Thanks.
Edited by: user13058213 on 26-ene-2012 16:02i created jar file to call it from forms
Could you be a little bit less vague about what you exactly did?
Anyway; see here http://bit.ly/10VVoMR
cheers -
Hi all,
We are having database server - oracle 10g enterprise edition R2,
forms - Oracle forms 10G -Version 10.1.2.0.2 on windows 2000 professional.
We have created a table which has a column of type "timestamp",the following is the structure.
CREATE TABLE "STOCK_AREA_MASTER"
( "STOCK_AREA_CODE" NCHAR(5) NOT NULL ENABLE,
"STOCK_AREA_DESC" NVARCHAR2(40) NOT NULL ENABLE,
"RECORD_STATUS" CHAR(1) DEFAULT 'A',
"USER_ID" NVARCHAR2(20) DEFAULT USER,
"TIMESTAMP" TIMESTAMP (6) DEFAULT CURRENT_TIMESTAMP)
[\code]
We tried to invoke this table(stock_area_master) using database block wizard in forms 10g,we were expecting to see the columns in this table,but we got the following error
FRM -10095 - Assertion failed
on seeing the forms help for the error FRM-10095,We are getting the following message
FRM-10095: Assertion failed in %s, at %s:%d. Cause: An internal inconsistency was detected. Action: Contact an Oracle support representative, and proceed with caution
We have the following concerns.
1.) is it possible to have datatype "timestamp" in forms 10g,our researches show that we can manipulate using datatime datatype in forms,our requirement is have to precision of 6 digits(millisecond - format - dd/mm/rr hh24:mi:ss:ssss),we are able query and view precision to the tune dd/mm/rr hh24:mi:ss:ssss,but we are unable to insert/update to this precision.
We would appreciate if some one could throw some light on the above.
Thanks in advance
Regards
MohanHi Mohan,
Hm. Strange.
I have reproduced the problem in my environment.
I have also found, that building the block manually, seems to work, as long as you define the item with datatype Char in Form Builder. Inserts and updates using a value like "22-AUG-06 11:10:11,647354 AM" worked fine for the timestamp item.
You may want to enforce some dateformat. I don't know whether that will work.
Good Luck!
Remco -
View pdf file stored in oracle database through oracle forms
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
I have created external directory and am able to load pdf files in oracle database table called test_blob.
CREATE TABLE test_blob (
id NUMBER(15)
, file_name VARCHAR2(1000)
, image BLOB
, timestamp DATE
I have 2 pdf files in the table. I want to view this pdf from forms when the user clicks on the button. On when-button-pressed trigger I want to show pdf on the screen. Any help is appreciated. Not on the designer. I want to run form application.
SELECT id, file_name,
DBMS_LOB.GETLENGTH(image) Length,
timestamp
FROM test_blob
ID|FILE_NAME|LENGTH|TIMESTAMP
1001|2011 HeartlandEmployeeReferralCard.pdf|353718|1/28/2013 11:44:41 AM
1002|2011 HeartlandEmployeeReferralCard.pdf|353718|1/28/2013 11:51:07 AM
Edited by: user_anumoses on Jan 28, 2013 11:45 AMWe were able to do the same thing with Oracle Application Server and Oracle WebLogic Server. I cannot remember how different the processes were, but it seems like they were very similar. I am going to give you the instructions on how we implemented a "Read PDF" procedure on the WebLogic Server. If you are still on the Application Server you may have to do some Google searches, but it all boils down to the mod_plsql DAD Configuration file.
Our PDF was located in a table with the following structure:
CASE_DOCUMENTS
(id_document NUMBER NOT NULL,
doc_blob BLOB,
note VARCHAR2(240),
created_by VARCHAR2(20) NOT NULL,
created_dt DATE NOT NULL,
case_id NUMBER NOT NULL,
filename VARCHAR2(100) NOT NULL)Based on that table structure we created a procedure named READ_PDF which you will reference below in the dads.conf file below:
CREATE or REPLACE procedure read_pdf (p_id_document IN number)
is
view_file blob;
BEGIN
select doc_blob
into view_file
from case_documents
where id_document = p_id_document;
OWA_UTIL.MIME_HEADER ('APPLICATION/PDF', FALSE);
HTP.P ('CONTENT-LENGTH: ' || DBMS_LOB.GETLENGTH (view_file));
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (view_file);
END;
GRANT EXECUTE ON read_pdf TO financial_user_role -- Name of role to execute
/Basically, you are passing in one parameter and that is the primary key for your table. You are selecting the pdf stored in a BLOB for that primary key. The commands below that allow the pdf to open up so you can view it – we got this off some search we did a few years ago.
Now, you need to add logic to your Oracle Form that will call the procedure above, but the URL is based on the dads.conf file that we will set up below… Anyway, we created a button on the form module with a label of "View". In the WHEN-BUTTON-PRESSED trigger the logic looks like this:
-- The View logic uses the DAD (Database Access Descriptors) method to view a .pdf file from the form.
-- The DAD was created on WebLogic Server with the name findadgen. This allows an http request be made
-- to the database.
declare
v_file varchar2(400);
v_success boolean;
ret_val number;
v_http_link varchar2(400);
begin
-- The format of the link is as follows: hostname:port/pls/DAD_name/procedure_name
v_http_link := 'http://finas03:8888/pls/findadgen/read_pdf?p_id_document=' || :case_documents.id_document;
web.show_document(v_http_link, '_BLANK');
end;The name of our WebLogic Server is "finas03" so that is what is listed in the URL. The "findadgen" is the name of the <Location> in the dads.conf file below, the "read_pdf" is the name of the procedure we created above, the "p_id_document=" is the IN parameter listed in the READ_PDF procedure created above, and the ":case_documents.id_document" is the reference to the primary key in our Oracle Form.
For WebLogic, you can either go through Enterprise Manager (directions below) or update the dads.conf file on the filesystem directly (if you update the dads.conf file directly then skip to step 4 and ignore step 5):
1. Enterprise Manager -> Web Tier -> ohs1
2. Oracle HTTP Server (pull-down) – Administration – Advance Configuration
3. Select File – dads.conf
4. Add something similar:
# ============================================================================
# mod_plsql DAD Configuration File
# ============================================================================
# 1. Please refer to dads.README for a description of this file
# ============================================================================
# Note: This file should typically be included in your plsql.conf file with
# the "include" directive.
# Hint: You can look at some sample DADs in the dads.README file
# ============================================================================
<Location /pls/findadgen>
SetHandler pls_handler
Order allow,deny
Allow from All
AllowOverride None
PlsqlDatabaseUsername financial
PlsqlDatabasePassword sdo_3#d1
PlsqlDatabaseConnectString ffindbTNSFormat
PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
PlsqlAuthenticationMode Basic
PlsqlDefaultPage read_pdf
</Location>You are adding the <Location> section to your dads.conf file. The "finddadgen" is the name that you will reference in a change you fill make to your Oracle Form. The "financial" is the Schema, the "sdo_3#d1" is the password for that Schema, the "ffindb" is the database that the stored procedure is located on, and the "read_pdf" is a stored procedure you will have to create in order to read the pdf.
5. Press the "Apply" Button
6. Obfuscate the DAD password by running the dadTool.pl script located in $ORACLE_HOME/bin (This was done on Unix on our server with the following commands):
$> LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH
$> cd $ORACLE_HOME/bin
$> perl dadTool.pl -f /u01/app/oracle/middleware/asinst_1/config/OHS/ohs1/mod_plsql/dads.conf
7. Restart the Oracle HTTP Server using Fusion Middleware Control:
Enterprise Manager -> Web Tier -> ohs1
Oracle HTTP Server – Control – Shutdown
Oracle HTTP Server – Control – Start Up
If you followed the instructions above, you should have created a stored procedure, added logic to your Oracle form to reference that stored procedure, and created an entry in the dads.conf file. Once you move the form onto the server and you restart the HTTP Service, you should be able to view a pdf that is stored in a table directly from your Oracle Form. -
Question on Dynamic Query Data Source and Form Folders in Oracle Forms 6i
Hi there -
I have one interesting requirement in Oracle Forms.
This is what I wanted to do.
1. Have a LOV and Go button on Form.
2. From LOV, I will select a pre-defined custom table and click Go.
3. Based on the selected custom table, I have to populate the Block (Tabular Format).
4. User should be able to do update, delete, insert on this block.
5. User should be able to use the Oracle Form folders functionality (select only necessary column and save views etc. Std folder functionality).
6. If user selects a different custom table name in the LOV on top, I need to refresh the data from the block based on this new table. Remaining functionality should be as it is (steps 3 to 5).
You can see here, I am going to have dynamic query data source (Table Name as well as column mapping) on the block. I do not know before hand how many columns the user selected table has!
This is what I have planned for this so far but I have some major questions before I can move on with this design:
1. I am going to create a table structure with fixed number of column in form (40 cols assuming that the custom table will not have more that 40 cols). (Kind of limitation but it's okay as of now).
2. Dynamically populate the block based on the table name selected by the user from LOV. Dynamically change the table column names based on the table selected etc.
3. Perform insert, update, delete using PL/SQL package.
So far it looks okay.
Now my real question is,
Can user still be able to user "Folders" functionality here? I have never done this kind of development before and I doubt the dynamic column naming, dynamic column data source will really work for "folders"!
Also, I am not really sure whether user will be able to save these "folder" queries?
Okay so form experts, can you ppl suggest me if this is really going to work? Are there any better ways to do this?
Initially I tried to do this in OA Framework but I got stuck at because as per OAF developer guide "I cannot user OAF personalization for dynamic items, regions etc".
For more info on that thread see this link...
Re: setUserCustomizable issue!
Thanks in advance for the help.Any suggestion anyone?
-
How to view field name for a field in Oracle form?
I was told you can do this but I forgot how.
If you want to build a report, but don't know what the field name is in Oracle, you can open up the Oracle form and find the screen with that field name and do a trick that tells you the Oracle field name. Any help?Try this....
REPORT ZZDYNAMIC_FIELD.
DATA: BEGIN OF it1 OCCURS 0,
printer(10) TYPE c,
paper1(20) TYPE c,
paper2(20) TYPE c,
paper3(20) TYPE c,
END OF it1.
DATA: descr_ref TYPE REF TO cl_abap_tabledescr,
i TYPE i.
FIELD-SYMBOLS:
<key_comp_wa> TYPE abap_keydescr,
<field> TYPE ANY.
it1-printer = 'MUC123'.
it1-paper1 = 'KBLOGO'.
it1-paper2 = 'BLANK'.
it1-paper3 = 'DINA5'.
APPEND it1.
it1-printer = 'MUC123'.
it1-paper3 = 'KBLOGO'.
it1-paper2 = 'BLANK'.
it1-paper1 = 'DINA5'.
APPEND it1.
TRY.
descr_ref ?= cl_abap_typedescr=>describe_by_data( it1[] ).
CATCH cx_root.
ENDTRY.
LOOP AT it1.
i = 0.
WHILE 1 = 1.
i = i + 1.
ASSIGN COMPONENT i OF STRUCTURE it1 TO <field>.
if <field> is not assigned.
EXIT.
endif..
IF <field> IS ASSIGNED AND <field> EQ 'KBLOGO'.
READ TABLE descr_ref->key INDEX i ASSIGNING <key_comp_wa>.
WRITE <key_comp_wa>-name.
exit.
ENDIF.
ENDWHILE. -
Oracle forms standard/default menu - Record Delete option
Hi ,
Oracle forms provides a standard menu with the below options.
Action , Query , Block , Record , Help etc.
Under each of these Menu options there are sub options.
Eg: Under Record we have Previous , Next , Insert , Delete etc.
Can someone please tell me how to control this menu item options for different forms.
Eg: for 1 form i want to allow the Record - Delete option but for another form i dont want to give this option.
How to do this ??
Please help....
I tried to search for the solution but couldnt get the right answer. Hope someone will help me out here.
Regards,
SRTHello,
The Oracle Forms documentation states:
The Default menu is built-in to every form, and is not a separate menu module.
You cannot change the structure of the Default menu or edit the menu items it
displays.
If your application requires
unique menu functions, you must create a custom menu module and attach it to
your form.
If the internal default menu almost meets your needs, you can attach the
"menudef.mmb" approximation of the default menu to the form. You can then
rename and edit this menu.
You can download the demo version for 10g R2 and menudefs_10g.mmb is included with the demos.
http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip
You will get menudef_10g.mmb and menudefs_10g.mmb.
If needed check metalink note:
Differences between menudef.mmb and menudefs.mmb menu files. [ID 1081136.1]
Kind regards,
Alex
If someone's answer is helpful or correct please mark it accordingly. -
Oracle Form will not load in browser
Setup;
Oracle 9.0.1.4.0 Database
Oracle 9.0.4.0.19 Forms
OS XP SP2
This is for testing so this is all local, no application server in use
I have setup a very simple form using only one canvas with two fields.
Login to Forms Dev->Start OC4J->Connect to DB->Compile->Run Form
When opening in;
Explorer 7 -
"Do you want to open or save file" therefore I adjusted the security settings, it will automatically open the file but it will only display the Oracle Forms header in the page, this is all. If I open the file in notepad I see the form I have run being called but it will not display
Foxfire 2.0.0.6 -
A webpage will open, then see the Forms Builder splash page, the webpage will then load for 10 seconds then disappear, never displaying the form.
I have reinstalled the application and looked at the known issues for Forms Developer, did see one about the spaces between the names in the directory structure, I have changed that and that did rid of some errors, but the about is currently where I am at.
I have installed many DB's and created forms on that info, I do not see what I am missing.
Anyone have an idea
Thanksthank you for the reply,
the form will not even load, to be more clear (sorry) I will speak of Internet Explorer since other threads in this forum state issues w/ Firefox and Java
Run the Form->'Oracle Forms.' will display in the browser (not the actual form though)-> you hear the sound indicating something has been blocked->allow-> Error - Internet Explorere has encountered a problem and needs to close.
When selecting more
Error signature
AppName: iexplore.exe
AppVer: 7.0.6000.16473
ModName: jvm.dll
ModVer: 0.0.0.0
Offset 0004ed44
This is the HTML that is in the file being loaded;
<html> <head> ORACLE FORMS.</head>
<body onload="document.pform.submit();" >
<form name="pform" action="http://MIS87129:8889/forms90/f90servlet" method="POST">
<input type="hidden" name="form" value="C:\oracle\Forms_FMB\BLOB_TEST.fmx">
<input type="hidden" name="userid" value="SYSTEM/SYSTEM@test1">
<input type="hidden" name="obr" value="yes">
<input type="hidden" name="array" value="YES">
</form> </body></html>
There is a further detailed report attached to that but the size of it is much like a trace file in Oracle DB =), I don't know if you can assist with the info provided.
Message was edited by:
dnunknown -
Make an hierarchical Tree in oracle Forms 6i
Hi everybody,
I want to make an hierarchical tree. I work in Forms 6i
I create one non database block e.g. 'Bloc2' then
add hierarchical control item in that. e.g 'Menu'.
I create a record group named 'RG_DATA_TEST'
Before I use a table in this record_group.
I want a tree as this :
- Menu1
Menu1 option1
Menu1 option2
- Menu1 option3
Menu option3 Sub opt 3
+ Menu2
the table 'Menu_tree' is described' :
CREATE TABLE MENU_tree
ID NUMBER(5),
LABEL VARCHAR2(128 BYTE),
ICON VARCHAR2(40 BYTE),
MASTER NUMBER(5),
STATUS NUMBER(1) DEFAULT 1,
VALUE VARCHAR2(128 BYTE)
Here the data in the table :
INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES (1, 'Menu1', 'mainmenu', NULL, 1, NULL);
INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES (
2, 'Menu1 Option 1', 'optionmenu', 1, 1, 'Dialog11');
INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES ( 3, 'Menu1 Option 2', 'optionmenu', 1, 1, dialog12');
INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES (4, 'Menu1 Option 3', 'optionmenu', 1, 1, NULL);
INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES ( 5, 'Menu1 Opt 3 Sub Opt 3', 'suboptionmenu', 4, 1, 'Dialog131');
INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES ( 6, 'Menu2', 'mainmenu', NULL, -1, NULL);
INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES ( 7, 'Menu2 Option1', 'optionmenu', 6, 1,'Dialog21');
The record_group use this instruction SELECT :
SELECT STATUS, LEVEL, LABEL, ICON, VALUE
FROM MENU_tree
CONNECT BY PRIOR ID = MASTER
START WITH MASTER IS NULL
And At the trigger When_new_form_instance , i do this code :
DECLARE
htree ITEM;
V_IGNORE number;
BEGIN
HTREE := FIND_ITEM('BLOC2.MENU');
V_IGNORE := POPULATE_GROUP('RG_DATA_TEST');
FTREE.POPULATE_TREE(htree);
END;
When i run the forms, It don't give me a structure of node.
It give me only a icon with two arrows.
Where is the problem ?
Must I add code somewhere ?
Help me for your ideas.
Regards.
Edited by: 794982 on 17 sept. 2010 04:55
Edited by: 794982 on 17 sept. 2010 05:01
Edited by: 794982 on 17 sept. 2010 05:04
Edited by: 794982 on 17 sept. 2010 05:06
Edited by: 794982 on 17 sept. 2010 05:13
Edited by: 794982 on 17 sept. 2010 05:19
Edited by: 794982 on 17 sept. 2010 05:23Ok Francois Thanks for your response.
Just I pricise i work with oracle forms version 9.0.4.0.19 .
But I am putting this code in trigger When_New_form_Instance but it didn't work.
When I execute it just shows a line with two arrows but not a real tree.
Then I do a block-non based and a elemnt with type hierarticall tree and a canevas.
and i create a record_group. and in a palette property of the element i precise the canevas and the record_group
I don't khnow where is the problem ?
Any other suggestion ? please
Regards. -
Hi
I'm using Oracle forms 10g, against Oracle database 11g
I have a BLOB filed that have a pdf file, how I can view this file in Oracle forms ; ts its not showing
Thanks
Sami MikhailPlease read the article (or any other one about wpg_docload). It gives a lot of information.
so web.show_document will...not do any of the mentioned things. This just opens a browser window for the URL you specified. Your procedure does the rest:
Show me any file type pdf image doc ?Yes, depending on your mime type and support by the browser for this type.
It will open from the database not thefile structure ?Yes.
How do I know the <the url to get your file out of the database> ?As an example from the article:
http://<server-name>:<port>/pls/<DAD>/document_api.download?file=<file name>
Here is a very long discussion about the same subject:
Viewing a PDF from the database
(but there are many more in this forum)
Edited by: InoL on Dec 7, 2011 11:53 AM -
Hierarchy tree in oracle forms problem
Hello Experts,
I am new in oracle forms.I am using oracle forms 11g with weblogic server 10.3.5 at windows 7.I have two table as tbl_country and tbl_state.I have to make a hierarchy tree in oracle forms.My table structure as:
tbl_country
CREATE TABLE "SCOTT"."TBL_COUNTRY"
( "CNTRY_CODE" NUMBER NOT NULL ENABLE,
"NAME" VARCHAR2(80 BYTE),
CONSTRAINT "TBL_COUNTRY_PK" PRIMARY KEY ("CNTRY_CODE")
tbl_state:
CREATE TABLE "SCOTT"."TBL_STATE"
( "SATE_CODE" NUMBER NOT NULL ENABLE,
"COUNTRY_CODE" NUMBER NOT NULL ENABLE,
"STATE_NM" VARCHAR2(80 BYTE),
CONSTRAINT "TBL_STATE_PK" PRIMARY KEY ("SATE_CODE")
CONSTRAINT "FK_CNTRY_STATE" FOREIGN KEY ("COUNTRY_CODE")
Table Date as:
insert into tbl_COUNTRY values(0,'country ');
insert into tbl_COUNTRY values(91,'HHH');
insert into tbl_COUNTRY values(72,'III');
insert into tbl_COUNTRY values(83,'JJJ');
insert into tbl_state values(1,'state',0);
insert into tbl_state values(2,'BH',91);
insert into tbl_state values(3,'CI',72);
insert into tbl_state values(4,'DI',72);
insert into tbl_state values(5,'EH',91);
insert into tbl_state values(6,'FI',72);
insert into tbl_state values(7,'GJ',83);
insert into tbl_state values(8,'HJ',83);
insert into tbl_state values(9,'IH',91);
Desired Output in oracle forms tree:
|__Country
|____HHH
|____BH
|____EH
|____IH
|____III
|__CI
|__DI
|__FI
|____JJJ
|__GJ
|__HJ
I Have tried but got no output
select
1 ,level, esm.name,NULL,to_char(esm.CNTRY_CODE)
from (SELECT c.name,c.cntry_code from TBL_COUNTRY c union all select s.STATE_NM,s.COUNTRY_CODE from tbl_state s) esm
connect by prior esm.CNTRY_CODE = esm.CNTRY_CODE
start with esm.code=0
what is going wrong here.
thank you
regards
aadityaIf you have never worked with a Forms Tree control, I recommend you look at this tutorial: How To Create a Hierachical Tree form.
Craig... -
Oracle Forms Look and Feel project for Forms 6i
Hello everybody,
Recently I find a web site that introduce Oracle Forms Look and Feel project,
Oracle Forms Look and Feel project
http://sheikyerbouti.developpez.com/forms-pjc-bean/LAF/doc/Oracle_Forms_Look_and_Feel_project.htm
Can I use the PL/SQL library (laf.pll) , Java Beans and PJCs grouped in a jar file (laf.jar) for Oracle Forms 6i?
thxHi Francois,
I find one website mention the following,
"PL/SQL tables reside in the private PL/SQL area of the Oracle Server database instance; they are not available as client-side structures at this time. As a result, you cannot declare and manipulate PL/SQL tables in your Oracle Developer/2000 environment."
from http://www.unix.org.ua/orelly/oracle/prog2/ch10_01.htm#SQL2-CH-10-SECT-1
Cheers,
Gary -
Is there any impact analysis tool for Oracle Forms and Reports
Hi All
We are curretly looking at tools available to do impact analysis in Oracle Forms and Reports. This is for the maintainance of a large Oracle application developed using forms and reports 10g. We use Oracle Designer but only to maintain the db structure and not for forms and reports generation. Our intension is to find out the impact of db model changes, stored procedure changes in Oracle Forms and Reports. Please suggest any tools that are currently used for this purpose.
I remember manually maintaining the CRUD matrix for Oracle Forms and Reports for maintainance purpose. CRUD matrix will have the list of all the tables which are affected by the module. But this is a manual activity and hence the responsibility is with the dev team to keep the document updated. Please suggest if there is any alternative to this way which can be more effecient and less error prone...
I also wonder how these are done in Oracle ERP? how the apps team in oracle is maintaining the forms and reports?
Thnaks in Advance
Mahesh MathewQuest (the makers of TOAD) have a tool called SQL Impact which gathers data from forms, reports, triggers, packages etc.
FormsMate is a simple, cheap alternative for comparing or searching in forms.
http://www.jockvale.ca/products.html
Alternatively, you can export forms to xml (with iff2xml90.bat) and reports to jsp (with rwconverter) and simply grep those and your sql scripts. There are grep tools for windows if you need. -
Attachment function using oracle form?
Hi guys,
I am developing a logistic system using oracle forms, how can I attach a document to the shipment function?
Anyone has experience on attaching a document on oracle form? Any table structure required?
FANuser623471 wrote:
Hi guys,
I am developing a logistic system using oracle forms, how can I attach a document to the shipment function?
Anyone has experience on attaching a document on oracle form? Any table structure required?
FANHow would you like your document to be attached??? What is the nature of your Document??
If it's the records of another form like an invoice already typed in in your application, you can simply add a field that holds the ID/Number/Reference of your document, and have a button that drills down the data for you.
If it's a scanned document you can use an image item, and display the document in an that item in your forms.
Tony
Alternative for images you can use BLOBs and other types of systemfiles
Edited by: Tony Garabedian on Sep 2, 2008 10:19 AM -
SSO to Oracle Forms 6.0 and Oracle Reports 6.0
Hi,
Could somebody please explain how I should implement the SSO so that I can log on a forms application?
Should I use external partner app. ??
How can I parse the right parameters to the forms server ??
thanks,
JeromeHi,
Oracle Forms 6i does not support Advances Security for SQL*Net if this is what your question is. ASO is supported with Forms 9i and above
Frank
Maybe you are looking for
-
APEX 4.2.3 Bug: Cascading Style Sheets cannot edit from list view
APEX Builder page 4000:37 List view shows name, notes and download columns. The name column should link through to CSS Edit page (39), but instead downloads the file. Workaround: Switch to the icon view, and click on the icon which takes you to the C
-
Wiered table showing up - how to drop it
I saw a Wiered table showing up in my database. This schema is solley controled by me and I do not know how this table with t strange name show up in my schema. Table name is showing as = 'BIN$II+78l2ZRj+uQlVax+tHPQ==$0' When I try to Drop the table,
-
HT4906 Updated to Mountain Lion but cant photo stream from iphone 5
Hi, can anyone help. I have updated MacBook today to Mountain Lion - I was expecting to be able to steam my iphone 5 photos to laptop. Do I have to purchase anything else to be able to do this? Thanks
-
My iPad mini keeps turning itself off and then the apple logo keeps flashing constantly, i have charged it fully and restored it many times. what can i do?
-
What happens after Trial?
Once a trial period expires, what functionality remains? Does the product launch at all, does it work but not allow documents to be saved? Thank you.