How to reference layout object in the program unit?
Hi Everyone
I am trying to change the outcome of the result for a field- F_Test_Result1, so i create a format trigger for it, the code is showed at below:
function F_Test_Result1FormatTrigger return boolean is
begin
if F_TEST_Result1 = '0' then
F_Test_Result1 := 'Pass';
end if;
return (TRUE);
end;
but the report builder return error said F_TEST_Result1 is not defined yet. so how do i refer these layout object and data object(from the data model) in trigger?
Thank you
Bryan
Edited by: Bryanevil on Apr 22, 2009 8:50 PM
Hello,
I suggest to Create a Formula Column in the group containing the column PASS_FAIL_SUMMARY
and use a PL/SQL code like this for the Formula Column :
function CF_1Formula return Char is
begin
if :PASS_FAIL_SUMMARY = '0' then
return ('pass');
else
return('--');
end if;
end;
Then, set this Formula Column as Source for the field in the layout .
Regards
Similar Messages
-
How to reference a user parameter in program unit
I tried to define a user parameter in Oracle Report 6i and I could reference it (&p_where_clause) in the main query but I failed to reference it in one of the program units. Here is the logic:
function CF_OTHER_COURSESFormula return Char is
cnt number;
priority number;
class_code varchar2(8);
oc varchar2(100) := null;
cursor oc_cur is
select class_code, branch_priority
from nominations n, employments e
where n.hkic_no = e.hkic_no
and e.staff_status_code = 'EMP'
and &p_where_clause --> contain "n.course_code in ('A','B','C')"
and n.hkic_no = :hkic_no
and n.class_code != :class_code;
begin
cnt := 1;
open oc_cur;
loop
fetch oc_cur into class_code, priority;
if oc_cur%notfound then
exit;
end if;
if cnt = 1 then
oc := oc||class_code||'('||priority||')';
else
oc := oc||', '||class_code||'('||priority||')';
end if;
cnt := cnt + 1;
end loop;
close oc_cur;
return oc;
exception
when no_data_found then
return '';
end;
Does anyone tell me how to reference it in program unit? Does Oracle Reports 6i support this operation?There hasn't been any changes to the way lexicals and bind variables work in Reports between 2.5 and 6i. There are different versions of PL/SQL and you might be hitting some problem here.
In your case, you shouldn't be using the query lexical "&p_where_clause" just the PL/SQL bind variable syntax ":p_where_clause". Since you're creating a PL/SQL cursor, you should probably use dynamic sql creation with a concatenation of the where clause to build up the SQL for the cursor. Check out the PL/SQL documentation for this. -
How to create an object within the same class???
hi im just a newbie
i v been always creating an object from the main class..
but how to create an object inside the same class??
i got main and students class
the main got an array
Students[] stu = new Students[]
and i got
stu[i] = new Students(id,name);
i++;
but i wanna do these things inside the Students class..
i tried ..but i got errors.....
how to do this
.javaexpert, :)
I really have no idea what you are trying to do since you say you've always been creating an object from the main class, yet you always want to create an object inside the same class.
I'll assume that you have an object in the main class that you are trying to access from the Students class.
If you are trying to access objects that are contained within the main class FROM the Students class, then know that there are two ways of doing so, one being static, and the other dynamic (look up definitions if unclear):
1.) make the objects in the main class both static and public and access the the objects using a convention similiar to: Main.object; It's important to note that Main is the name of your main class, and object is a static object. There are better ways of doing this by using gettter/setter methods, but I'll omit that tutorial.
2.) Create a new instance of the main class and access the objects using a similiar fashion: Main myInstance = new Main(); myInstance.myObject;
You should really use getter and setter methods but I'll omit the code. In terms of which approach is better, step one is by far.
I don't mean to be condecending, but you should really brush up on your programming skills before posting to this forum. This is a fundamenetal concept that you will encounter time and time again. -
Since 2012 I have Photoshop Elements always worked without any problem, however now the language is suddenly German how can this be changed, removed the program and re-installed, not working. Program is downloaded and updated via the apple app store?
I've done some research on the SQLite database. Whenever Aperture hangs up (like during auto-stack or opening the filter hud) there are thousands of SQLite queries happening. These SQLite queries cause massive file I/O because the database is stored on the disk as 1kb pages. However, the OS is caching the database file; mine's only 12MB. I'm trying to track down some performance numbers for SQLite on osx but having trouble.
It's starting to look like most of the speed problems are in the libraries that Aperture uses instead of the actual Aperture code. Of course, that doesn't completely let the developers off the hook since they choose to use them in the first place.
Oh, and if anyone is curious, the database is completely open to queries using the command line sqlite3 tool. Here's the language reference http://www.sqlite.org/lang.html
Hmm, just found this. Looks like someone else has been playing around in the db http://www.majid.info/mylos/stories/2005/12/01/apertureInternals.html
Dual 1.8 G5 Mac OS X (10.4.3) 1GB RAM, Sony Artisan Monitor, Sony HC-1 HD Camera -
i have the new version of iMovie, and when i try to start the program, i can't because it says that it is looking for some movie files from the Iphoto, so all the program is locked up... how can i do to restart the program??
Hi
Did You ever use - iPhoto ?
Did You may be direct iPhoto to a different Photo Library
As iMovie tries to find the appropriate photo library - it can get lost if iPhoto direct it into a Library on a not connected external hard disk or to a strange location - And iMovie HANGS.
Do - When no other program is running that might interfere
• Start iPhoto - BUT NOW KEEP alt-key (option key) DOWN during the full Start-Up process
• Now iPhoto let's You select Photo Library
• Select the one in Your Account / Home folder / Pictures ! !
• Then iPhoto should start up OK
• Now Quit iPhoto
• START iMovie
Does it still hangs - then I would suspect - iMovie Pref. file
If it Run's OK - Then HURRAY !
Yours Bengt W -
How to trigger an event in the program
Hi,
I have a program. The purpose of the program is to retrieve the data matching the selection criteria and downlod the same to a file.
In the selection screen, I have a parameter called 'EVENT'. Here, user enters some event name. Generally, they enter the 'Background job processing events'.
So, my requirement is... once the files are successfully downloaded, the program should trigger the 'EVENT' specified in the selection screen at run time.
Can someone help me in this regard. How to trigger an EVENT in the program. Is there any Function Module or Method available in SAP which triggers the EVENT at runtime.
And is there any table available in SAP which stores all the events available in SAP. Because, whenever the user enters an EVENT in the selection screen, we should check whether the event is valid or not. So, if there is any table available which has all the events then, it will be easy I guess. or is there any other way to validate the EVENT name.
Please help me. Thanks in advance,
Best Regards,
Paddu.Hello Paddu,
have a look at tables
- btcsev, btcsed (system events)
- btcuev, btcued (user events)
and use function BP_EVENT_RAISE.
kind regards
Walter Habich -
How to remove unused objects from the webcatalog In OBIEE11g
Hi,
I want to delete unused objects from obiee11g catalog, i know in obiee10g it's working fine (i.e: we can do it via manage catalog then delete the unused objects) is there any way to do it automatically like RPD utility --->removing unused objects from Physical layer in RPD
fyi: I don't want to delete manualy. i need somethink like button/link to find unused objects(report,filter,folder..etc) from my obiee11g catalog.
Thanks
Deva
Edited by: Devarasu on Nov 29, 2011 12:06 PM
Edited by: Devarasu on Nov 29, 2011 3:15 PMHi,
Checked with Oracle Support team and confirmed below points
--> incorporated into the Current product and consider as BUG it may resolve future release
--> Currently there isnt any automatic method to remove the unused objects like reports, filters,folder etc from catalog.
Treated as Bug
Bug 13440888 - AUTOMATICALLY REMOVE OF UNUSED CATALOG OBJECTS FROM WEBCATALOG
FYI:
SR 3-4984291131: How to remove unused objects from the webcatalog in obiee11g
Thanks
Deva -
Mac, have just upgraded to Yosemite and when I shall open Photoshop (CS4), the following message appears:
"The licensing of the product does not work"
Fault 6
How should I proceed?
Have the program installed on only one computer.Download the Adobe Licensing Repair Tool.
Run the License Service Update.
Mac OS X 10.7 and above:
a. Double-click the LicenseRecovery111.dmg It will extract the folder. Open the folder.
b. Double-click your Hard Drive.
c. Double-click Applications.
d. Double-click Utilities.
e. Double-click Terminal.
f. Type sudo python
Note: There is a space following “python”. Do not press Return.
g. Drag LicenseRecover.py from the LicenseRecovery111 folder onto the Terminal Window and press Return.
It should look like this:
h. Enter your administrator user name and password when prompted and click OK.
(Note: the cursor will not move and you will not see stars or dots, just enter your password anyway.
i. Let the script run, it will tell you when it is finished. Quit terminal and restart Photoshop
Gene -
I have Acrobat XI on PC. After trying to convert a webpage to PDF, I received a Fatal Error message indicating that "Acrobat failed to connect to a DDE Server." Now, the program will not open. How do I regain access to the program?
I have Acrobat XI Pro and have been experiencing all sorts of "freeze ups" with it ever since Adobe released the new Acrobat DC the other week. I see that an automatic update was pushed down to my Acrobat XI Pro at the same time. Is this the first issue you have encountered with your Acrobat XI, or have you been having other issues suddenly as well?? Just wondering ...
-
How Do I Make Updated Procedure in the Program Unit of the Form to Work?
I have updated a procedure in the Program Unit of the Form that I modified. I am not sure what are the proper ways to compile or load the changed procedure in my form to make sure the changes work. Please help me with the following questions:
Do I have to use Oracle Procedure Builder to compile the updated procedure in order to have the form work properly? If so, how do I make the list of procedures in the program unit of my form to come up after I have the Oracle Procedure Builder opened and connected to our database?
Couldn't I just compile the form after the changes are made to the procedure (Body) in the Program Unit of the form in the Forms Builder?
Any thoughts and/or suggestions on this are welcome.
FYI, we are in Oracle Forms 6.i with Oracle database version 10.2.0.2.
Thanks.There was no errors what so ever, no triggers and other module errors, when I compiled and created an executable for my form.
If the database is not connected, Forms Builder would not allow me to compile/execute any forms so I am pretty sure that the database was connected when I did 'CTRL' + 't' to create an executable.
FYI, the following is an excerpt from Oracle Procedure Builder Help:
A procedure is a subprogram that performs a specific action. ...
A procedure has two parts:
* specification (spec for short)
* the body
Specification
The procedure spec begins with the keyword PROCEDURE and ends with the procedure name or a parameter list. Parameter declarations are optional. Procedures that take no parameters are written without parentheses. For example, the specification of procedure proc1 is displayed below:
PROCEDURE proc1 (param CHAR);
Body
The procedure body begins with the keyword IS and ends with the keyword END followed by an optional procedure name. The procedure body has three parts: a declarative part, an executable part, and an optional exception-handling part.
and all of other procedures, that do not have an '*' next to the procedure name in the Program Units of my form, contain both Spec and Body.
p.s. I remember the '*' next to the procedure name means the procedure has been changed, and ... (sorry, I don't remember the rest...)
Thanks. -
Please tell me how to create a slider in the program Adobe Edge Reflow?
Please tell me how to create a slider in the program Adobe Edge Reflow?
There is no way to add animations in Reflow. If you want to add animation, then you can either use Muse which has many slider plugins to choose form or use the exported Reflow code in Brackets and add JavaScript for animating images there using various jquery plugins http://www.jssor.com/
-
Is there a way to use business objects in the program or function module?
Hi Experts,
Is there a way to use business objects in the program or function module.
Thanks in Advance.
Naval bhattHi Naval,
Ofcourse you can use business objects in your programms/ methods.
You can use function modules or macros (available from include <cntn01>) for using business objects in your application.
refere following two links for startup information
http://www.sap-img.com/abap/reading-attribute-of-a-business-object-in-abap.htm
http://www.jt77.com/business-warehouse/work-flow-12619.html
Regards,
Abhijit -
How to reference multiple instances of the same Java object from PL/SQL?
Dear all,
I'm experimenting with calling Java from PL/SQL.
My simple attempts work, which is calling public static [java] methods through PL/SQL wrappers from SQL (and PL/SQL). (See my example code below).
However it is the limitation of the public static methods that puzzels me.
I would like to do the following:
- from PL/SQL (in essence it needs to become a forms app) create one or more objects in the java realm
- from PL/SQL alter properties of a java object
- from PL/SQL call methods on a java object
However I fail to see how I can create multiple instances of an object and reference one particular object in the java realm through public static methods.
My current solution is the singleton pattern: of said java object I have only 1 copy, so I do not need to know a reference to it.
I can just assume that there will only ever be 1 of said object.
But I should be able to make more then 1 instance of an object.
To make it more specific:
- suppose I have the object car in the java realm
- from PL/SQL I want to create a car in the java realm
- from PL/SQL I need to give it license plates
- I need to start the engine of a scpecific car
However if I want more then 1 car then I need to be able to refrence them. How is this done?
Somehow I need to be able to execute the following in PL/SQL:
DECLARE
vMyCar_Porsche CAR;
vMyCar_Fiat CAR;
BEGIN
vMyCar_Porsche = new CAR();
vMyCar_Fiat = new CAR();
vMyCar_Porsche.setLicensePlates('FAST');
vMyCar_Porsche.startEngine();
vMyCar_Fiat.killEngine();
END;
Thanks in advance.
Best Regards,
Ruben
My current example code is the following:
JAVA:
===
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED CODAROUL."RMG/BO/RMG_OBJECT" as package RMG.BO;
public class RMG_OBJECT {
private static RMG_OBJECT instance = new RMGOBJECT();
private String rmgObjectNaam;
private RMG_OBJECT(){
this.rmgObjectNaam = "NonDetermined";
public static String GET_RMGOBJECT_NAAM () {
String toestand = null;
if (_instance == null) {toestand = "DOES NOT EXIST";} else { toestand = "EXISTS";};
System.out.println("instance : " + toestand);
System.out.println("object name is : " + _instance.rmgObjectNaam);
return _instance.rmgObjectNaam;
public static Integer SET_RMGOBJECT_NAAM (String IN)
try
_instance.rmgObjectNaam = IN;
return 1;
catch (Exception e)//catch
System.out.println("Other Exception: " + e.toString());
e.printStackTrace();
return 5;
} //catch
PL/SQL Wrapper:
==========
CREATE OR REPLACE FUNCTION CODAROUL.SET_RMGOBJECT_NAAM(NAAM IN VARCHAR2) return NUMBER AS
LANGUAGE JAVA NAME 'RMG.BO.RMG_OBJECT.SET_RMGOBJECT_NAAM (java.lang.String) return java.lang.Integer';
Calling from SQL:
==========
CALL dbms_java.set_output(2000);
select CODAROUL.GET_RMGOBJECT_NAAM() from dual;
Edited by: RubenS_BE on Apr 6, 2012 5:35 AM
Edited by: 925945 on Apr 6, 2012 5:41 AMYou can do this by manually creating a new iterator binding in your binding tab.
So instead of dragging the VO directly to the page, go to the binding tab, add a new executable iterator binding, and point to that one from your ELs in the page itself. -
How could I pass object to the other object
Hi,
How could I pass an object to the new initializing object, so that I can reference to the first object later?You mean something like
MyClass1 myclass1 = new MyClass1();
MyClass2 myclass2 = new MyClass2(myclass1); // <-- myclass1 is being passed to the constructor of myclass2 -
I am creating a catalog of pictures only, as objects.
They are organized alphabetically, 4 images per page as a 2x2 grid, for 20 pages.
I want to insert a NEW object (image) in the middle of these 20 pages, and want all the objects after it to shift over one spot to make room.
How do I get the objects after the inserted ones to shift, as text would if you inserted more text in the middle of a paragraph?
I can't figure out how do do that (without just putting the images in a text box and in-line, but then I lose all the spacing controls)...
Thank you!
LawrenceID ships with a free Image Catalog script in the sample scripts. You don't need to buy one.
And that isn't going to do what you want, exactly. You'd have to re-run the script each time you add an image to make a new file, and you don't get to set the sort order yourself.
Maybe you are looking for
-
Using bind variable in dynamic where clause and concatenate with query
Hi, In my procedure i am framing where clause dynamically with bind variable,When i am concatenate this with my sql query for REF CURSOR i got sql command not properly ended exception. Is it possible to pass values to the bind variable through the dy
-
Multiple iTunes accounts authorized to one computer
Hi, I am trying to normalize my wife and my own environments. I have asked iTunes support to simply merge my wife's and my own account together into one, but they will not do this. It would be the simplest solution for us and as she hasn't got a lo
-
My external hard drive is not detecting in my macbook air.
My Seagate backup plus ext hdd is not showing up on my screen. But, it runs well on my pc. How to fix this issue? Thanks in advance.
-
Subscript execution with a variable name
Is the a way to run a subscript where the name is a dynamic variable? for example: SubtoRun = T1 (T1 is a diadem text variable which is the name of the sub to be run) Call SubtoRun
-
Help implementing mouse multi record select deselect with shift/ctrl click
Forms 10.1.2.3 on Solaris Sparc 64 bit We are trying to implement mouse multi record select/deselect using shift and ctrl click. I have read that you need the appcore library to do this but because we aren't using Oracle Applications (EBS) we can't h