Help on oracle forms
I have 2 tables aa and bb as,
table aa
delivery_id number not null
trx_type varchar2(1) not null
fcat varchar2(3) not null
summary varchar2(10)
comment varchar2(10)
table bb
delivery_id number not null
trx_type varchar2(1) not null
fcat varchar2(3) not null
address varchar2(10)
state varchar2(2)
postal_code number
My doubt is ,
I created a form with a relation between aa and bb as aa.delivery_id=bb.delivery_id and
aa.trx_type = bb.trx_type and
aa.fcat = bb.fcat
Now of the rin the form and enter value only in aa table data gets saved in table bb also though I never entered any value for bb table. How to overcome this ? Only if I enter values in bb table it should save otherwise only table aa should get saved.
Previn
Two blocks with a relation should be giving you the functionality you describe without the need to do anything else. Have you got the relation the right way around, ie have you specified the correct block as the master ?
PS There is a forms forum
Similar Messages
-
Need help for Oracle forms 10.1.2
Hi , I have installed oracle form 10g application in one of my linux box ( 64 bit) , After bringing up the servers , the system-linux box is getting rebooted automatically . Please help as the Everytime the servers are going down along with the machine.
My shop uses that version of Forms. 64 bit Linux gave us so much trouble we installed 32 bit Linux on the 64 bit hardware.
Correct me if I'm wrong, but I don't think there's a 32 bit version of the oracle software so 64 bit Linux does not give you anything.
Best Regards
mseberg -
Hi everyone
i don't know anything in oracle forms , and all what i want to do is the following :
I have a table called 'fp_log' with 2 columns 'ID' and "UIS'
I have another table called 'EMP' with a column 'FP' which is a 'LONG RAW' type and another column 'EMP_ID'
i have a button and when i press the button with F11 i need to write code into it , the code should do the following :
check if the column 'FP' in table 'EMP' has a value or is it a null when EMP_ID = x for example
if it has a value and not a null i need to check if column 'UIS' in table 'FP_LOG' where ID in 'FP_LOG' is equal 1 is equal to 'EMP_ID' to show a message "Wrong FP" then exit the code without completing the rest of it .
in other language :
If (FP from EMP where EMP_ID = x) is not empty then
-- if (UIS from FP_LOG where ID=1) != (EMP_ID) then
-- -- message "WRONG FP"
-- -- exit the button function without doing the rest of the code
-- end if
end if
it is an easy job for who knows oracle at least a little :-)
and thanks in advance :-)You can try the follow code:
declare
temp_fp long raw := null;
temp_uis number := null;
begin
select fp
into temp_fp
from emp
where emp_id = x;
if temp_fp is not null then
select uis
into temp_uis
from fp_log
where id = 1;
if temp_uis != x then
message('wrong fp');
message(' ',no_acknowledge);
end if;
end if;
end;
Hope it helps you,
Fabrizio.
If this answer is helpful or correct, please mark it. Thanks. -
Need Help On Oracle form side for serial no genretion for every last record
Hi Experts,
currently i'm facing one problem like :
i'm populating one receipt detail in Multi block , like when user key in one receipt number that time record should go in first record ,and if they key in second receipt number then record should go in second record . mean to say every time record go in last record ..but the problem is i want to generate Serial no correspondence to every last record ..
here is my approch :
cursor c1 is
select * from table
where cname =:blk_name.clm_name.
Last record;
next_record;
for v1 in c1 loop
processed record;
next_record;
end loop;
last_record;
go_block(___);
first_record;
:sno := system.cursor_record ;
next_reocrd;
end loop;
first_record;
And in block level i'm writing code for Serial number generation when user key in manual entry for receipt detail:
:blk_name.coulumn_name := :system. cursor_record;
so in this approach their is no problem it is working properly but the problem is that
when user fetch one receipt automatically and then after he want to enter next record manually and he decided to go in detail block ,
and once he reached in detail block that time block level trigger i firing .ans serial number 2 generated and then suddenly he came to know no i want to fetch next record automatically mean to say now user going again master block and fetching next receipt detail ,
but the problem is when user leaving seccond sr no and going in master block and population next receipt detail that time cursor going on 3 record
but logically have to replace the second Serial no and generate the again serial number 2 record population .
so i'm appreciating is anyone if came accoross this type of issue please corrrect my code and send updated code ..plsssssssssssssssssssssssssssssss
Thanks
Abhishek
[email protected]Friend, If you forward this question in forms forums , It will be better for you.
Abishek Go this link and post there friend.
Link:Forms -
Attn: Oracle Form programmers - pls. help
Can somebody pls. give me the syntax for writing Oracle Query Forms. I've done it before but forgotten the syntax.
The idea is to create a statement by APPENDING the search items in a program unit & substituting in the WHERE clause. This program unit will be called by a button.
This way, we don't have to write many IF statments.
For example, if user wants to query by NAME AND COUNTRY, then the statement >> Block:Name ||&|| Block:Country
Where clause: Block:Name ||&|| Block:Country
Thanks - Mave1. that subject line of yours is just stupid. You're posting on an Oracle Forms Forum. Every single post on this forum is looking for help from Oracle Forms programmers.
Be specific.
2. I assume you're looking for something like
DECLARE
v_default_where VARCHAR2(32767);
v_btn NUMBER;
begin
IF :control.name is not null then
v_default_where := v_default_where||' AND name LIKE :control.name';
END IF;
IF :control.empno is not null then
v_default_where := v_default_where||' AND empno = :control.empno';
END IF;
IF v_default_where IS NULL THEN
v_btn := show_alert('NO_CRITERIA');
ELSE
v_default_where := SUBSTR(v_default_where,5); -- remove leading ' AND '
set_block_property(data_block, ONETIME_WHERE, v_default_where);
EXECUTE_QUERY;
END IF;
END; -
Questions on oracle forms?!?
Hi, all.
I need some help for oracle forms 10g.
I have some very important questions, pls help.
1) If i have VBean and say this.getCientProperty(Object o). Is this method returning me the value of property specified in the properties palete in oracle forms builder i.e. if i write this.getClientProperty("Name") -> it returns the name of the bean(is it valid for other components like VTextField for example)?
2)Could i call methods from the server on the client and how? I read that server method could be wrapped in pl/sql procedure(could you give mi simple example)?
3)As i understand the only way, that one form can communicate with one bean is with getProperty and setProperty methods, is it?
Thanks in advance.
Best regards.Hi Francois. First i want to thank you, because you are helping me.
First to say using ugly tags is not a problem, because this xml is only in the memory(it will be nice to be with good tag names but not mandatory).
Here is what "sign" process means:
This process is executed on the client not on the server. So after the xml document is generated it must be signed i.e. with java crypto api and bouncy castle api i create signature from this xml(with algorithms from the api) this signature is like hashcode(String). This string must be passed on the server and there with other algorithms to be verified.
Imagine you have to sign some bank check(represented as web form for example or electronic file) and send it to some person through internet. How could the bank know that this check is signed from you? So i am working to do this possible to sign electronically documents and data. That is the idea. And i created this as a framework like a lib that only needs to be added and used. But our client wants to do the same for oracle forms applications. Unfortunatly i am not oracle forms developer but no body ask me.
I read the how to debug guide but i have some problems and cant debug. I am using vista 64, i don't know if this may be a problem. My College managed to run debug with your guide but i am not. When i hit debug debug_pjc.html every thing is ok. The form is shown but the debuger is not started.
Here is the exception:
D:\DevSuiteHome\jdk\bin\javaw.exe -ojvm -XXdebug,quiet,port49717 -Xbootclasspath/a:D:\DevSuiteHome\jdev\mywork\WebFormSignerBean\WebFormSignerBean\classes;D:\DevSuiteHome\forms\java\frmall.jar sun.applet.AppletViewer file:/D:/DevSuiteHome/forms/java/debug_pjc.html
Debugger connected to local process.
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.0
java.lang.ClassNotFoundException: com/digisign/WebFormSignerBean
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(AppletPanel.java:377)
at java.lang.Thread.run(Thread.java:534) -
Issue for Amount From_amt and to_amt Overlapping validation On oracle Form
Hi Expert's
i need Help on Oracle Form side .
PROBLEM :-
i want to put Overlapping check On Fr_amt - To_amt in Oracle Tabular form in Modify MODE after execute query.
for example : If suppose User key in 1st line Amout range is 10 -100 ,the after 1st line if user key in second line like amount range is 50 -80 or 10-50 then i want to ristrict them and popup the message :- Sales Amount should not Overlap ...
--Here is my code which works only current record
declare
fr_amt number(10);
l_curr number;
begin
fr_amt := :blk_name.from_amt;
l_curr := :system.cursor_record;
first_record;
loop
exit when :system.last_record ='true'
if :system.cursor_record <> l_curr then
if fr_amt between :blk_name.from_amt and :bl_name.to_amount then
message('Sales amount should not be overlap');
raise form_trigger_failuier;
go_reccord(l_curr);
go_item('blk_name.from_amt');
end if;
next record;
end if
end loop;
go_record(l_curr);
first_record;
end;
Note : Can anybody correct my code if you come across same problem.
Thanks
AbhishekHi Dora ,
Note : My form is in modify mode and execute query ,mean to every time after open form record always on screen
so i want to check overlap value in form level only ..
can u please check my code which i wrote same like you but its not working :
PROCEDURE TEST IS
m_loop1_rec number:=1;
m_loop2_rec number;
m_exit number :=0;
m_last_Rec number :=0;
m_loop_rec NUMBER :=0;
m_from_amt NUMBER;
m_to_Amt NUMBER;
Begin
go_block('CG$CTRL01');
last_record;
m_last_rec := :system.cursor_Record;
first_record;
Loop
go_record(m_loop1_rec);
m_from_amt := :CG$CTRL01.FR_SLS_AMT ;
m_to_Amt := :CG$CTRL01.TO_SLS_AMT ;
m_loop2_rec := m_loop1_rec+1;
Loop
go_record(m_loop2_rec);
If (m_from_Amt between :CG$CTRL01.FR_SLS_AMT and :CG$CTRL01.TO_SLS_AMT) or (m_to_Amt between :CG$CTRL01.FR_SLS_AMT and :CG$CTRL01.TO_SLS_AMT ) then
m_exit := m_loop2_rec;
end if;
exit when m_exit > 0;-- or m_loop_rec >= m_last_Rec;
m_loop2_rec := m_loop2_rec +1;
End loop;
exit when m_exit > 0 or m_loop1_rec = m_last_Rec -1;
m_loop1_Rec := m_loop1_rec + 1;
end loop;
If m_exit > 0 then
go_record(m_exit);
message(' This range overlaps with previously entered ranges');
RAISE form_trigger_failure;
end if;
--END IF;
END ;
Thanks
Abhishek -
Hi all,
DB:11.2.0.3.0
EBS:12.1.3
O/S: Sun Solaris SPARC 64 bits
I am not able to view Forms Server version in Help: About Oracle Applications after the forms upgrade 10.1.2.3.0 after the forms upgrade 10.1.2.3.0 as per note:Upgrading OracleAS 10g Forms and Reports to 10.1.2.3 (437878.1)
Java/jre upgraded to 1.7.0.45 and JAR files regenerated(without force option). Able to opne forms without any issues.
A)
$ORACLE_HOME/bin/frmcmp help=y
FRM-91500: Unable to start/complete the build.
B)
$ORACLE_HOME/bin/rwrun ?|grep Release
Report Builder: Release 10.1.2.3.0 - Production on Thu Nov
28 14:20:45 2013
Is this an issue? Could anyone please share the fix if faced the similar issue earlier.
Thank You for your time
Regards,Hi Hussein,
You mean reboot the solaris server and then start database and applications services. We have two databases running on this solaris server.
DBWR Trace file shows:
Read of datafile '+ASMDG002/test1/datafile/system.823.828585081' (fno 1) header failed with ORA-01206
Rereading datafile 1 header failed with ORA-01206
V10 STYLE FILE HEADER:
Compatibility Vsn = 186646528=0xb200000
Db ID=0=0x0, Db Name='TEST1'
Activation ID=0=0x0
Control Seq=31739=0x7bfb, File size=230400=0x38400
File Number=1, Blksiz=8192, File Type=3 DATA
Tablespace #0 - SYSTEM rel_fn:1
Creation at scn: 0x0000.00000004 04/27/2000 23:14:44
Backup taken at scn: 0x0001.db8e5a1a 04/17/2010 04:16:14 thread:1
reset logs count:0x316351ab scn: 0x0938.0b32c3b1
prev reset logs count:0x31279a4c scn: 0x0938.08469022
recovered at 11/28/2013 19:43:22
status:0x2004 root dba:0x00c38235 chkpt cnt: 364108 ctl cnt:364107
begin-hot-backup file size: 230400
Checkpointed at scn: 0x0938.0cb9fe5a 11/28/2013 15:04:52
thread:1 rba:(0x132.49a43.10)
enabled threads: 01000000 00000000 00000000 00000000 00000000 00000000
Hot Backup end marker scn: 0x0000.00000000
aux_file is NOT DEFINED
Plugged readony: NO
Plugin scnscn: 0x0000.00000000
Plugin resetlogs scn/timescn: 0x0000.00000000 01/01/1988
00:00:00
Foreign creation scn/timescn: 0x0000.00000000 01/01/1988
00:00:00
Foreign checkpoint scn/timescn: 0x0000.00000000 01/01/1988
00:00:00
Online move state: 0
DDE rules only execution for: ORA 1110
----- START Event Driven Actions Dump ----
---- END Event Driven Actions Dump ----
----- START DDE Actions Dump -----
Executing SYNC actions
----- START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -----
Successfully dispatched
----- END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK'
(SUCCESS, 0 csec) -----
Executing ASYNC actions
----- END DDE Actions Dump (total 0 csec) -----
ORA-01186: file 1 failed verification tests
ORA-01122: database file 1 failed verification check
ORA-01110: data file 1:
'+ASMDG002/test1/datafile/system.823.828585081'
ORA-01206: file is not part of this database - wrong
database id
Thanks, -
Oracle Forms - need to update multi-record block - Help needed asap
Hi,
We are using Oracle apps release 11i - Oracle forms 6i.
I have a field "project_start_date" in project_block in a custom form. There is another multi-record block called role_block in the same custom form and it has a field named start_date. Requirement is when ever I make change in the project_start_date in project_block, that should reflect in role_block.start_date. I tried different means and could update only the very first record of the multi-record block - role_block. I need to update all the records in the role_block with the same project_start_date. Used looping and several other methods. But could not achieve. Any help is really appreciated.
Thanks
AkilHi;
For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Application Development in PL/SQL » Forms which you can get more quick response
Regard
Helios -
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 -
Re: Help in Oracle DB 11gR2 & Oracle 11gR2 Forms & reports Installation
i just want Help in Oracle Database 11gR2 & Oracle 11gR2 Forms & reports Installation
iam unable to install 11g Database & Forms_Reports Developer in the Windows XP.
Kindly Help me
regards
venugopalHi Venugopal,
Sorry, wrong forum! You have posted over in the Forms forum before
Forms
so I assume you just picked the SQL Developer forum by mistake.
Regards,
Gary -
Help me install oracle form and report 9.0.4 on red hat AS 4 x86
i installed oracle database 10.0.2 on my red hat AS 4 x86 in /u01/app/oracle/product/10.0.2/db_1. Now i want to install oracle form and report 9.0.4 on my computer in /u02/app/oracle/product/9.0.4
The oracle installer checks for required packages. It will produce the following list of missing packeges:
Package gcc-3.2.3-20 is missing
Package compat-gcc-7.3-2.96.122 is missing
Package compat-gcc-c++-7.3-2.96.122 is missing
Package compat-libstdc++-7.3-2.96.122 is missing
Package compat-libstdc++-devel-7.3-2.96.122 is missing
Package setarch-1.3-1 is missing
Package sysstat-4.0.7 is missing
Package gnome-libs-1.4.1.2.90-34.1 is missing
Package libstdc++-3.2.3 is missing
Package compat-libstdc++-devel-7.3-2.96.122 is missing
Package compat-glibc-7.x-2.2.4.32.5 is missingbut i installed newer versions of them. so can i continue to install without missing packeges??? and how to install missing packages because they conflict with packages i installed.
i tried to continue installation without missing packages and have some errors:
"Error in invoking target 'agent' of makefile /u02/app/oracle/product/9.0.4/sysman/lib/ins_sysman.mk"
Error in invoking target 'install' of makefile /u02/app/oracle/product/9.0.4/sqlplus/lib/ins_sqlplus.mk"
Error in invoking target 'install' of makefile /u02/app/oracle/product/9.0.4/plsql/lib/ins_plsql.mk"
Error in invoking target 'relink' of makefile /u02/app/oracle/product/9.0.4/precomp/lib/ins_precomp.mk"
Error in invoking target 'install' of makefile /u02/app/oracle/product/9.0.4/webcache/lib/ins_calypso.mk"
Error in invoking target 'install' of makefile /u02/app/oracle/product/9.0.4/network/lib/ins_net_client.mk"
Error in invoking target 'webm-install'(or genm-install or gen-install) of makefile /u02/app/oracle/product/9.0.4/forms90/lib/ins_forms.mk"
Error in invoking target 'proxy install' (runm-install,server-install,cgi-install,cli-install,conv-install,qv-install) of makefile /u02/app/oracle/product/9.0.4/reports/lib/ins_reports.mk"
and error in Configuration Assistants:
"output generated from coniguration assistant "oracle net configuration assistant":/u01/app/oracle/jre/1.1.8/bin/.../bin/i686/native-threads/jre: relocation error
":/u01/app/oracle/jre/1.1.8/bin/.../bin/i686/native-threads/libjava.so: symbol_ _libc_wait, version Glibc -2.0 not defined in file libc.so.6 with link time refrence
Someone help me!!!
Thanks.The requirements for installing 10.2.0 and 9.0.4 on RHEL4 differ - 9.0.4 is based on older versioned RSFs and require linking against older compatibility libraries.
The OUI may incorrectly complain if later versions of the required/pre-requisite packages really are installed - this should not be a problem functionally, however.
The latter errors you report, however (make, relocation error, glibc/symbol), are symptomatic of trying to link with/against incompatible gcc/glibc versions. Try installing the following additional compatibility files (appropriate for your architecture);
- http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/compat-oracle-rhel4-1.0-5.i386.rpm
- http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/compat-libcwait-2.1-1.i386.rpm
If you have not already done so, I suggest you create and use (i.e. source) separate environment definition files when working with each product/version environment. For 9.0.4, ensure that you specify environment variable LD_ASSUME_KERNEL=2.4.19 before installing 9.0.4 (or relinking).
If you have MetaLink access, refer also to Note.315832.1, Note.389811.1.
Message was edited by:
mychan -
hi guys..
am new to oracle forms..
ma prob is that i've created 4 oracle forms using oracle 9i and i can perfectly run and view 3 forms. but when i compile and run the other form it does not display on the browser window. it displays just the java applet (which is just a gray area). i cannot c any components... pls could any one help me on this prob....???
appreciate ya earliest response.
tnx
Anushkahi tony,
tnx 4 replying.... i checked the log stack. but it doesn't show any errors. here i hv quoted wt the stack gave4 ya reference.
QUOTE
Oracle JInitiator: Version 1.3.1.9
Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\UserProxy Configuration: no proxyJAR cache enabled
Location: C:\Documents and Settings\User\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------Loading http://cpstl-4d98172e1:8888/forms90/java/f90all_jinit.jar from JAR cacheconnectMode=HTTP, native.Forms Applet version is : 90290connectMode=HTTP, native.Forms Applet version is : 90290
UNQUOTE
pls gv me a suggestion. if u want i can send you the .fmb file.
tnx & rgds
anushka -
How to deploy oracle forms on weblogic server - please help
Hi,
I have installed weblogic server(10.3.1) and fussion middleware 11g forms & reports on windows 2003 server.
I want to deploy and test oracle forms in weblogic server.
Please help me.
Thanks & Regards,Hi,
thanks for your information.
where can i found the document for testing the report server?
Thanks & Regards, -
Do you neeed help upgrading your Oracle Forms to the Web?
If you are looking for help upgrading your Oracle Forms applications to the Web, join Oracle's partner for free internet seminars and see how they can help you.
These seminars feature partners specializing in character mode to the Web migration.
Seminars are scheduled online on Feb-13 and 14 11:00am PST (California time).
To register:
http://oracledirect.oracle.com/iccdocs/seminarList.shtmlHi, We are in the process of converting our inhouse developed applications (Forms 5.0 and Reports 3.0) into web enabled one. Since I am outside the US , I am unable to attend the free seminar help recently. I would appreciate your help in sending any documentation/handouts on the current topic. This will help me a lot.
Kind Regards,
Pandian
Muscat
Maybe you are looking for
-
Get value before print anything
Hello guys, I would like to know, how to get a value from database BEFORE the form starts any printing. I mean, where do I have to put my code? Or what part of a form, is executed first (before printing) so I can put my code right there, Thanks,
-
Alpine car stereo works with iPhone
I've consistently said it would require new hardware but I just found out that firmware 1.1.1 on the iPhone works with my Alpine car stereo just fine. It does ask (doesn't it always?) if you want to go to airplane mode to reduce interference, but it
-
Actionscript 3 photobooth upload photo with PHP
Morning everyone, in this few days I search for a lot references online and tried to make my first photobooth program with actionscript and PHP, finally I had done the actionscript part, but when I tried to upload my photo which took from actionscrip
-
Can I have CS5 AND CS6???
Hello everyone. I noticed when upgrading to LR4, that LR3 is still functional. If I get CS6, will it "absorb" CS5 or will it still be a seperately accesible program as well? Thanks
-
UWL Configuration : New Columns & Data
Dear All, We have HCM process and forms based processes.The work items go to portal UWL (standard UWL). Now client wants to modify/enhance UWL columns data. E.g. they want to add more columns which contain leave form's data. For example: If leave re