Tree view in Oracle forms
Hello experts,
I am new in oracle forms and i am using oracle forms 11g with weblogic server 10.3.5 at windows7.I have a problem to make a tree item in oracle forms based on two tables.
I have 2 tables as:
TBL_ARTICAL_MSTR
ARTICLE_ID
ATRTICLE_TYPE
1
MAN
2
Women
TBL_ARTICLE_DTL
ARTICLE_NO
NAME
ARTICLE_ID
1
Jeans
1
2
Skirts
2
3
T-Shirt
1
Now I want a tree view as:
|
|___MAN
| |______JEANS
| |______T-Shirt
|
|___WOMEN
|______Skirts
For this I have made a Record group with a sql query as:
SELECT 1 , level , TBL_ARTICAL_MSTR.ATRTICLE_TYPE,TBL_ARTICLE_DTL.NAME , NULL , to_char( TBL_ARTICLE_DTL.ARTICLE_NO)
FROM TBL_ARTICAL_MSTR LEFT JOIN TBL_ARTICLE_DTL ON TBL_ARTICAL_MSTR.ARTICLE_ID=TBL_ARTICLE_DTL.ARTICLE_ID
CONNECT BY prior TBL_ARTICLE_DTL.ARTICLE_NO = TBL_ARTICAL_MSTR.ARTICLE_ID
START WITH TBL_ARTICAL_MSTR.ARTICLE_ID=1
But There is no any output,Please help me to know that how can i solve it.
Thank You
regards
aaditya.
how to create hierarchical tree form
https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-how-to-create-a-hierachical-tree-form
Similar Messages
-
Updating record in a data block based on view in oracle forms
hi all ,
We have two data blocks in our custom oracle form.The first data block is for search criteria provided with buttons 'GO' and 'ADD ROW' and the second data block is based on a view that fetches record when user clicks on GO based on the the criteria specified in the above block. The Below block contains one SAVE button too.
We have a requirement when GO button is pressed and corresponding records are shown in the below block, user should be able to edit the record. Want to know how to make it editable?
Help appreciated....!!!Your view is based on how many tables and does it include all NOT NULL fields from all tables?
-
Hell ow my dear Fiends
I am the beginner in oracle forms
I want to create a tree node below
For example
Purchase order
Forms
POM1010
Reports
Pom2010
Queries
POM3010
Human Resource Management
Forms
POM1010
Reports
Pom2010
Queries
POM3010Hi,
You can see
https://forums.oracle.com/thread/512425
or
https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-how-to-create-a-hierachical-tree-form -
The requirement to view online Oracle Form?
Hello there,
I am trying to view an online Oracle Form from an Oracle Form Server. As I know that, IE browsers with JVM support should be able to open the form and view it. But I am not so sure which version of the IE browser is able to do that. What I know is, with IE version 5 and above, it is able to do so. But how about IE 4 with JVM support? Is it able to do so?
Best Regards,
Candycheck out the client platform support paper on http://otn.oracle.com/products/forms
-
Hi.
I have a block based on a view ( this view is based on two tables). How do I update the base tables when the record based on this view is updated in the form?
Thanksone way is to control the transaction by using database trigger " instead of "
on the view.
If a view is inherently updatable and has INSTEAD OF triggers, the triggers take preference. In other words, Oracle fires the triggers instead of performing DML on the view.
second way is to execute a DML from the forms manually by intersepting the default functionality of on-insert, on-update trigger and so on..... to perform transaction on the table.
But i'll recommend using the INSTEAD of triggers, see documentation for more help and examples. -
In the explorer.swf tree demo the link from the tree items on
the left side fo the hdividebox goes to a text label on the right
side of the hdividebox. If you want to display a form instead of
the text label of the tree item, what changes will need to be
made?You'll need to reference the correct controls by id. Just try
it. Post if you have a specific question.
Tracy -
Add checkbox on the nodes of Hierarchical tree in oracle forms 9i
Hi,
I am working on oracle forms 9i.I have to add checkbox at the place of node(+/-) in Hierarchical tree so,
that user can select or deselect the Tree.That can do in oracle forms but how i don't know.
can anybody help me.....
Regards,
HemantYou can't change this aspect of the Tree Control in Oracle Forms using built-in functionality. You might be able to extend the Tree Control using Java, but you have to do this yourself. : (
Craig... -
Oracle forms and reports with object views in oracle 9i
Can We use oracle 9i Object Views in oracle forms and reports. If yes, then which version?
MichaelFerrante,Thank you for your help.
I have already used the HS services to connecto to external databases from our main Oracle database, and the solution works fine.
But unfortunally for this particular client he cannont have installed a Oracle database due to internal policies restrictions.
I can not migrate the full application to another technology like ADF in less than 6 or 8 months.
Do you thifnk that there is any other solution?
Mensagem editada por: user10660669 -
Tooltip not visible on hierarchical tree in Oracle Forms 11g
*Hi.. i have tried to set the "TOOLTIP" option for an hierarchical item during design time(property palatte) and also at run time( set_item_property).
But still its not working!!!
However it works for Oracle 10g forms.
Is this some kind of restriction only in Oracle 11g forms for the hierarchical items? Please help!You can't change this aspect of the Tree Control in Oracle Forms using built-in functionality. You might be able to extend the Tree Control using Java, but you have to do this yourself. : (
Craig... -
Insert multiple record Oracle forms 6i/9i/10g
Hi,
how can i insert multiple record using a tabular view in oracle form,
do i have to use for loop?
can someone help me? i've kindda stuck in this problem..
scenario:
i have 5 display of last_name text_item and i put 4 names on it..
if i use insert into, it only get the 4th name i putted..
question:
how can i put them all together?Hi Vansul,
for example, let us use the field name last_name on the employees table
and we have text_item named text_last_name that has been displayed 4 times.
and i will put 4 names on it.
last name
brown
marco
lester
king
when i click the submit button, it will only get the last_name king.
now the question is how can i insert them all in my table?
my PL/SQL in my submit button is
begin
insert into employees
+(last_name)+
values(:blk_emp.text_last_name);
standard.commit;
end;
any help? I really need to solve this one.
Edited by: Nelzki on Jan 26, 2012 1:59 AM -
How to add Icon in Tree View in Forms 6.0 (URGENT..!)
Hello All,
I want to add icons in tree view (hierarchical tree) by using
forms 6.0.
So pls. help me to find out the solution for the same.
thanks
Pradeep
nullPradeep (guest) wrote:
: Hello All,
: I want to add icons in tree view (hierarchical tree) by using
: forms 6.0.
: So pls. help me to find out the solution for the same.
: thanks
: Pradeep
hello pradeep,
for adding icons in the tree, u willhave to look closely to the
data format for the tree.in the data format used for populating
the tree we are supplying 5 fields. the state of the tree node
(expanded or collapsed), the depth of the node w.r.t the parent
node, the node value, the node label(what we see on the tree)
and the node icon which we want to use. for the node icon we
have to provide the entire path of the icon file. that's it.
hope this will solve the problem
null -
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. -
Problem using views containing xpath expressions with Oracle Forms
Mark,
Nice to see you back on the forum answering questions.
This example is based on the standard purchaseorder schema.
i registered the schema, created a relational table and then created
a view using xpath.everything works well and i am able to select the data
using sql*plus. Now this views is like any other view, when i describe the
view, i can see the all the data types are valid for the columns and also the lengths.
Now when i try to base a data block in oracle forms using this view, i get error
"ORA-24324 - service handle not initialized."
Whereas if i create another view on top of the first view and then base the data block on this view, it works for me. i described the second view from sql*plus and everything seems to be same for me.
this is the same behaviour from database 9i r2 and it exists in 10g r1 also.
Any hints as what might be the problem or you would like me to file a tar for this.
create or replace view purchaseorder_header_xml
as
select id
,extractvalue(xml_data, '/PurchaseOrder/Reference') reference
,extractvalue(xml_data, '/PurchaseOrder/Requestor') requestor
,extractvalue(xml_data, '/PurchaseOrder/User') po_user
,extractvalue(xml_data, '/PurchaseOrder/CostCenter') costcenter
,extractvalue(xml_data, '/PurchaseOrder/SpecialInstructions') spl_instructions
from tab_xmldata
create or replace view purchaseorder_header
as select * from purchaseorder_header_xml
/RaghuNot used Forms for years. However I suspect that Forms is trying to poke around behind the view and not understanding what it sees. I expect you'll need to open a Forms Tar to get to the bottom of this. It also appears that you a workaround which is to create a view on the view by the sound of it..
-
Pls Help: View Crystal Report Via Oracle Form Builder
Hi!!
I want to know how to view the .rpt report (report made from Crystal Report) via Oracle Form Builder. I've to do it in my project. If you know, please tell me.
Thanks in advance,I don't know how does crystal reports work, and I would guess you should ask the crystal guys to help you with this. find out if they have a command line interface that you can invoke from the host command in forms.
We can help you do it with Oracle Reports though :-)
http://otn.oracle.com/products/reports -
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.
Maybe you are looking for
-
Hi, I am bit confused about what i am seeing, a. i used java client to talk to talk to server, got "untrusted server cert chain" , ressolved the exceptio by adding certificate to cacerts file. b. tried to connect to server using another weblogic serv
-
How to pass the context from Portal to Database for fine grain access?
Hi, I am developing an omniportlet and I need to pass on the context of the logged in user to the database so that when the user tries to access data in the omniportlet, he can see data relevant to him only. Does anyone know how to do that? I have se
-
How to create a new user in Netweaver system for ABAP training?
Hello, I had been learning ABAP using a trial version but recently purchased and installed a developer subscription of Netweaver 2004 SR3. Can someone please tell me the best way to create a new user for ABAP development and assign the needed transac
-
New iPhone 4 ugly yellow- dark display
Hello, I recieved my new iPhone 4 yesterday from the applestore and I'm very disappointed because the display is much darker and has a touch yellow. My 3GS display can perform the colours much more better. White is now always grey- yellow and it is o
-
Blackberry Desktop Software For PC Does Not Respond!
Since i want to take backup's and restore my backup's, the blackberry desktop software opens but then stops responding and closes the program and looks for an online solution which they actually don't. I have tried deleting it and re-installing it bu