Help with oracle forms
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.
Similar Messages
-
How to define the tab space in the PL/SQL editor with Oracle Forms 4.5?
When I use the PL/SQL editor with Oracle Form Builder, I found the tab space is very long that affects my programs readability quite a lot. Then, I tried to use Textpad to type my program. It looks fine with Textpad. However, when i tried to 'cut and paste' my code back to the PL/SQL editor, all tab spaces (approx. 8-character) are detected and the program looks awful again ~~ Would any one help me to solve my mentioned problem?
Thanks for any advices!In 4.5 you cannot change this. In Forms 5.0 and above there is a registry value DE_PREFS_TABSIZE which allows you to set a value for the tabsize.
-
Using jfreechart with oracle forms 11g
Hi everybody,
I'm using jfreechart with oracle forms 11g to continue having graphs in my application since i'm migrating from forms 6i. I've already got it working and it's great. Just have one problem left. I don't know how to change the axis labels. In Bar charts, it comes with "Values" in y axis and "Category" in x axis by default. I wanted to change that or make it dissapear. Anyone knows how to?I've never used the jFreeChart, but according to their website you can use the "setLabel" method to set the label for an axis. Check out Axis (JFreeChart Class Library) for more information.
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Enterprise portal integration with Oracle forms
Hi
Can anyone help me on this .
"Enterprise portal integration with Oracle forms".
I want to integrate oracle forms to EP .I am trying to work with app Integrator but I am not able to make any headway.Do you have any documents pertaining to this or any place where I can look for details.
Thanks
AlokHi,
i'm not aware of special integration feature with Oracle forms, but if as you said we are talking about a web application available via url then i see no problem doing so. the way you can implement the SSO is using something called Application Integrator which helps you build smart URL iView's that can use the portal framework (like systems, user profile , etc) , so you can build your oracle forms integration iView that will take the user password data from the portal (via system) using user mapping or sap logon tickets.
for more details on Application Integrator see
http://help.sap.com/saphelp_nw04/helpdata/en/70/5a3842134bad04e10000000a1550b0/frameset.htm
regarding to the java applet, i don't really know what you mean by "jinitiator" but if your regular browser can do it then i see no reason for problems.
i hope it helps -
Rightfax Integration with Oracle forms
We have Rightfax 9.3 integrated with our application running on Oracle forms 6i.
We are plaaning to upgrade to Oracle forms 10g.
We need to understand that if RightFax 9.3 can be configured with Oracle Forms 10g
Also, is the invocation for RightFax dependent only on Oracle Forms and not dependent on the Windows Operating system installed on the server?
Please helpThanks for the replies..
I would need some more information.
1 Right fax is already installed on windows server.
Will we need upgraded drivers to configure right fax 9.3 with oracle 10g
2. Will this require any kind of customization in rightfax configuration.
3. Will this be a one to one fullfilment
Request you all to help us on this. -
How can I JavaBean with Oracle Forms 10g. I attempting to use graphics (Aircraft Image created using SVG) interactively with Oracle forms. Any sample code to lead me in the right direction would be helpful.
How can I JavaBean with Oracle Forms 10g. I attempting to use graphics (Aircraft Image created using SVG) interactively with Oracle forms. Any sample code to lead me in the right direction would be helpful.
-
Another Problem with Oracle Forms 10G
Hi Experts;
Previously I posted here a problem was having with Oracle Form, when I tried to execute it (Internet Explorer has closed this webpage to help protect your computer. A malfunctioning or malicious add-on has caused Internet Explorer to close this webpage) .
However, with the help of a good Buddy of this forum, I could solved the problem and my forms were running properly. But today, i don't know how it's giving me a new problem. When I choose Run Form, I get this error (website restore error. Internet Explorer has stopped trying to restore this website. It appears that the website continues to have a problem.)
Any suggestion to solve this problem?
Thanks for your help.
Regards
AlHi Aamir;
I didn't upate file, but I don't know how, but last sunday the google toolbar was installed. I removed it already yesterday, but now I got this problem, I don't know if the installation and then, removing this toolbar, updated any important file.
The thing is, now I can not execute my forms.
Regards;
Al -
Incompatibility with Oracle Forms and Oracle JInitiator (1.3.1.22)
Hello,
I've detected a problem that I don't know how to solve or if it's in my hands to solve it.
In my company we're using a SAP EP as intranet and it is the default web page when we open the Internet Explorer.
The problem is that since we use the SAP EP as home page, when I try to open the url of an application delveloped with Oracle Forms (It's like a ritch client developed in Java. The first time you execute it, it installs the Oracle JInitiator and then it runs the aplication locally every time you call the web) it doesn't work. It shows a connection error (FRM-92102), but it seems that there is a problem with the JVM.
If you open the Internet Explorer (or Firefox) with other page as home page, then the application works correctly and without any problem, but if I open it after opening our SAP EP (or other link SDN, ...) it doesn't work.
Does anyboy know how to solve it or if is it possible to solve it?
Any help will be welcome...
Thanks in advance and best regards,
jc!Hello,
I solved the problem applaying SAP Note 791765 (Mixed JSESSIONID Cookies from Different Servers)... I followed this steps:
1. I opened Visual Administrator
2. I went to servlet_jsp
3. I changed the property JSESSIONID.CookieDomain value from SERVER to NONE.
4. And I restarted the J2EE.
After that, JSESSIONID cookie is stored for the fully qualified name of the J2EE and it doesn't interferes in other domains...
Thanks anyway and regards. -
Help with oracle 11g pivot operator
i need some help with oracle 11g pivot operator. is it possible to use multiple columns in the FOR clause and then compare it against multiple set of values.
here is the sql to create some sample data
create table pivot_data ( country_code number , dept number, job varchar2(20), sal number );
insert into pivot_data values (1,30 , 'SALESMAN', 5000);
insert into pivot_data values (1,301, 'SALESMAN', 5500);
insert into pivot_data values (1,30 , 'MANAGER', 10000);
insert into pivot_data values (1,301, 'MANAGER', 10500);
insert into pivot_data values (1,30 , 'CLERK', 4000);
insert into pivot_data values (1,302, 'CLERK',4500);
insert into pivot_data values (2,30 , 'SALESMAN', 6000);
insert into pivot_data values (2,301, 'SALESMAN', 6500);
insert into pivot_data values (2,30 , 'MANAGER', 11000);
insert into pivot_data values (2,301, 'MANAGER', 11500);
insert into pivot_data values (2,30 , 'CLERK', 3000);
insert into pivot_data values (2,302, 'CLERK',3500);
using case when I can write something like this and get the output i want
select country_code
,avg(case when (( dept = 30 and job = 'SALESMAN' ) or ( dept = 301 and job = 'SALESMAN' ) ) then sal end ) as d30_sls
,avg(case when (( dept = 30 and job = 'MANAGER' ) or ( dept = 301 and job = 'MANAGER' ) ) then sal end ) as d30_mgr
,avg(case when (( dept = 30 and job = 'CLERK' ) or ( dept = 302 and job = 'CLERK' ) ) then sal end ) as d30_clrk
from pivot_data group by country_code;
output
country_code D30_SLS D30_MGR D30_CLRK
1 5250 10250 4250
2 6250 11250 3250
what I tried with pivot is like this I get what I want if I have only one ( dept,job) for one alias name. I want to call (30 , 'SALESMAN') or (301 , 'SALESMAN') AS d30_sls. any help how can I do this
SELECT *
FROM pivot_data
PIVOT (SUM(sal) AS sum
FOR (dept,job) IN ( (30 , 'SALESMAN') AS d30_sls,
(30 , 'MANAGER') AS d30_mgr,
(30 , 'CLERK') AS d30_clk
this is a simple example .... my real life scenario is compliated with more fields and more combinations .... So something like using substr(dept,1,2) won't work in my real case .
any suggestions get the result similar to what i get in the case when example is really appreciated.Hi,
Sorry, I don't think there's any way to get exactly what you requested. The values you give in the PIVOT ... IN clause are exact values, not alternatives.
You could do something like this to map all alternatives to a common value:
WITH got_dept_grp AS
SELECT country_code, job, sal
, CASE
WHEN job IN ('SALESMAN', 'MANAGER') AND dept = 301 THEN 30
WHEN job IN ('CLERK') AND dept = 302 THEN 30
ELSE dept
END AS dept_grp
FROM pivot_data
SELECT *
FROM got_dept_grp
PIVOT ( AVG (sal)
FOR (job, dept_grp)
IN ( ('SALESMAN', 30)
, ('MANAGER' , 30)
, ('CLERK' , 30)
;In your sample data (and perhaps in your real data), it's about as easy to explicitly define the pivoted groups individually, like this:
WITH got_pivot_key AS
SELECT country_code, sal
, CASE
WHEN job = 'SALESMAN' AND dept IN (30, 301) THEN 'd30_sls'
WHEN job = 'MANAGER' AND dept IN (30, 301) THEN 'd30_mgr'
WHEN job = 'CLERK' AND dept IN (30, 302) THEN 'd30_clrk'
END AS pivot_key
FROM pivot_data
SELECT *
FROM got_pivot_key
PIVOT ( AVG (sal)
FOR pivot_key
IN ( 'd30_sls'
, 'd30_mgr'
, 'd30_clrk'
;Thanks for posting the CREATE TABLE and INSERT statements; that really helps! -
Integrate Business Activity Monitoring (BAM) with Oracle Forms Recognition
Hi All,
As per project requirement, I have to integrate Business Activity Monitoring (BAM) with Oracle Forms Recognition.
Does anyone have an idea how can this be achievable from OFR Verifier?
Thanks,
Moumi.Hi All,
Apart from my previous queries, I found that there is an sample reporting program - Oracle Application Express application has been developed and tested using version 4.1 of AppExpress.
To access OFR tables I run the below script in below sequence in my local IPM environment as found in this link- http://workplacedba.blogspot.in/2012/11/ofr-odc-installation.html
Seq 1 - 01-OFR-AP-Tables_Oracle.sql
Seq 2 - 02-OFR-AP-Reporting_Oracle.sql
Seq 3 - 03-XX_ROUND_IT.fnc
Seq 4 - 04-XX_ROUNDDOWN.fnc
Seq 5 - 05-XX_ROUNDUP.fnc
Seq 6 - 06-OFR-AP-EBS-Views.sql
Seq 7 - 07-INVOICE_NUMBER_FORMATS_INS.sql
Seq 8 - 08-Insert Into Company.sql
I couldn't found the below queries in my installables -
Seq 3 - 03-XX_ROUND_IT.fnc
Seq 4 - 04-XX_ROUNDDOWN.fnc
Seq 5 - 05-XX_ROUNDUP.fnc
Seq 7 - 07-INVOICE_NUMBER_FORMATS_INS.sql
Seq 8 - 08-Insert Into Company.sql
can anyone provide me these sql scripts?
Thanks,
Moumi -
Hi,
I need some help... if someone can help its great.
I need to make a statement in Oracle SQL that read data from a file and insert in a Oracle Database ... if someone can show me the syntax of it i appreciate..
ThanksOkay, I see you followed the advice in that other thread and started a new post for you question. Congratulations. Your next lesson in forum etiquette is to give your posts a more relevant subject. Pretty much everybody who posts here needs help with oracle; if they need help with cooking catfish they've come to the wrong place.
It that other thread I suggested using SQL*Loader or External Tables might be a more suitable solution. Find out more.
Cheers, APC -
Use of Times ten database with Oracle Forms 11g
Hi,
We need to use some caching / pre-fetching solution with Oracle Forms 11g. Is there a possibility that Oracle Forms 11g can be used with Times ten database.
Regards,We have never tested TimesTen with Forms 11g but we suspect there are issues that may prevent if from being used.
Sorry.
Chris -
How to connect to SQL server 2000 with Oracle Form
Hi,
I'm looking for the document of how to connect "SQL Server 2000" with Oracle Form 6i. Anyone knows that?Shay or other knowledgeable folks,
Is there a way to utilize the wizard for "Business Tier > ADF Business Components > Business Components from Tables" for SQL Server 2000, 2005 or 2008. I can successfully execute sql via java programmatically or import a table from SQL Server with "Business Tier > ADF Business Components > Entity Object" wizard, but the Business Components from Tables simply doesn't see any tables under any schema. Without the "Business Components from Tables", i don't get the referential constraints imported into the application and to code all those from scratch is just not as elegant. So far i have only utilized the sql server jdbc driver from Microsoft (versions, 1.1, 1.2 and 2.0). Is there an alternative client that i need to use to enable selecting tables from that "Business Components from Tables" wizard. Is this a limitation of SQL Server, the jdbc driver or the wizard itself? Did anybody else experience the same issues? I am using Jdeveloper 11.1.1.0.1 against SQL Server 2005 (currently)
Thanks,
Andy -
Display blob file with oracle forms
I need to display an image file with oracle forms.
can any body tell me how to do this ?
ThanksHow to do this is dependent on which version of Oracle Forms you are using. Please let us know what version (eg; 10.1.3.x.x not 10g) of Oracle Forms you are using and how your application is deployed (Client/Server or web). If web, what is your Java version?
Craig... -
Connectivity Oracle Lite DB with oracle forms
Hi,
Can we connect oracle lite db with oracle forms and report? If possible then ,please tell us how to..
Thankshi
please try to provide full informations what is your forms version and OS?
sarah
Maybe you are looking for
-
Multiple Partners for the same customer in Message tracking of SEEBURGER
Hi, This is for third party customers which use EDI messages. We have for one customer multiple partner numbers configured in Partner profile. I would like to know while configuring the trading partners in SEEBURGER Message Tracking, can we have mult
-
how can i change a forgotten security question and answer in my apple id ?, how can i change a forgotten security question and answer in my apple id ?
-
Selection of a line Item for printing
Hi, I am fetching three records in an ALV grid display with a check box option, i am not getting how to use the check box option to select the particular selected line, i want to use that selected line to be printed in a smart form. Also is there a
-
PDFs in Mail and Preview are very slow
I have been experiencing serious issues with PDFs, handling them in Mail, and in Preview. This problem surfaced a few weeks ago, and it is totally hogging my resources. It is like the PDF takes over my computer. It might take several minutes to load,
-
HT202297 can i share reminders?
just upgraded to OS X Mountain Lion, and love the new features. one question - now that reminders are separated out from the calendar app - you can share calendars with another person, can you share reminder lists?