Calling VC Function in R/3 from IPC - Jco parameters
Hello,
Is there anyone who has worked on development of VC Java Function in IPC? I basically create a JCO connection to R/3 and call the VC Function from R/3. I am currently storing the JCO connection parameters like the userid,password etc.. in a property file. Since the password is not encrypted, this doesnot look the best way. IS their anyway to store these JCo parameters especially the password in a encrypted way? IS it possible to create a password parameter in the IPC XCM admin and use it in the VC Java class?
Thanks
This is technically a big NO due to various performance and security reasons.
Instead you can use the default connection used by IPC (you can get access to that in your Java code easily) to CRM and launch all the R/3 access from CRM. This way, you follow best practice and use existing system resources.
If you need further help on getting the default connection in IPC in your Java exits, please let me know.
Easwar Ram
http://www.parxlns.com
Similar Messages
-
Call a function inside a package from a stored procedure
Hello:
I am kind of new to the stored procedure. Does anyone know how to call a function inside a package from another stored procedure?
I have a existing function (func_b) inside a package (pack_a) and it returns a cursor. I want to call this function from a stored procedure (proc_c) so that I use the data inside the cursor.
can I do the following in proc_c:
my_cursor1 SYS_REFCURSOR;
begin
my_cursor1 := exec pack_a.func_b
end
It will be very helpful if anyone can point me to any reading or example. Thank you very much for your information.guys:
Thank you for your information so far. I need some more help here. I was able to run the function in my stored procedure. However, I was not able to print the result on the screen to view the cursor result, although I am using dbms_output.put_line statement inside my stored procedure.
I use the following statement to execute my stored procedure on sql*plus. I can tell the stored procedure is executed successfully, but I did see anything printed:
DECLARE TEMP VARCHAR2(100);
BEGIN PROC_LAWS_CAD_NAME_SEARCH('LPD', 'TEST DEVICE ID', 'TEST LAST NAME', 'TEST FIRST NAME', 'F', '11112009', TEMP); END;
I tried to use 'set serveroutput on' and got the following error:
ERROR:
ORA-06502: PL/SQL: numeric or value error: host bind array too small
ORA-06512: at line 1
I am kind of confused now. thank you for your help.
Jack
Here is my procedure:
create or replace
PROCEDURE PROC_SEARCH
( AGENCY_ID IN VARCHAR2,
DEVICE_ID IN VARCHAR2,
L_NAME IN VARCHAR2,
F_NAME IN VARCHAR2,
SEX IN VARCHAR2,
DOB IN VARCHAR2,
CAD_NAME_SCH_RESULT_STR OUT VARCHAR2)
AS
v_agy_id varchar2(10);
v_device_id varchar2(20);
v_l_name varchar2(25);
v_f_name varchar2(15);
v_sex varchar2(1);
v_dob date;
-- this cursor is going to be used to store a list of warrant matching
-- name search criteria
cad_srch_cursor sys_refcursor;
objSrch SEARCH_RESULT_TEMP%ROWTYPE;
BEGIN
cad_srch_cursor := SEARCH_PKG.SEARCH('TESTING', 'TESTER', null, null,null, null, getPhonetic('TESTING'));
LOOP
FETCH cad_srch_cursor INTO objSrch;
EXIT WHEN cad_srch_cursor%NOTFOUND;
--insert into SEARCH_RESULT_TEMP (name_last) values (objSrch.name_last);
CAD_NAME_SCH_RESULT_STR := objSrch.name_last;
dbms_output.put_line('First:'||objSrch.name_first||':Last:'||objSrch.name_last||':Middle:'||objSrch.name_middle);
end LOOP;
END PROC_LAWS_SEARCH;
----------------------------------------- -
Calling a function in child window from parent window
Hi,
How can I call a method in child window from parent window in adobe air using javascript. In the following example I need to call mytest() function in
child.html from parent.html file.
Thanks,
ASM
//parent.html
<HTML><HEAD>
<script>
var initOptions = new air.NativeWindowInitOptions();
initOptions.type = air.NativeWindowType.NORMAL;
initOptions.systemChrome = air.NativeWindowSystemChrome.STANDARD;
var bounds = new air.Rectangle(300, 300, 600, 500);
var html2 = air.HTMLLoader.createRootWindow(false, initOptions, false, bounds);
var urlReq2 = new air.URLRequest("child.html");
html2.load(urlReq2);
html2.stage.nativeWindow.activate();
html2.window.mytest(); //NOT WORKING
</script>
</HEAD><body></body></HTML>
// child.html
<HTML><HEAD>
<script>
function mytest()
air.trace("in child window");
</script>
</HEAD> <body></body></HTML>I suspect your problem is that the child window hasn't been created by the time you call the function in the parent.Loading the content is an asynchronous processes -- AIR doesn't stop executing your code until the window has finished loading child.html. So, you will need to add an eventlistener to html2 and call the function from there:
html2.addEventListener( "complete", onChildLoaded );
function onChildLoaded( event )
html2.window.mytest(); -
How to call a function in a class from the main timeline?
Hey Guys
I have a project in Flash with four external AS files, which are linked to items in the library using AS linkage.
What I want to do is call a function in one of these files from the main timeline, how would I go about doing this? I'm not currently using a document class, most of the code is in Frame 1 of the main timeline.
Thanks// change type to the class name from the instance
ClassNameHere(this.getChildByName('instance_name')).SomeFunction(); -
How to call C function in .m file from another function in a .mm file
I am making an interface class between a C library and an objetive C application.
I have not problem calling function the C library from .mm funstions,
but I am having problems calling .m functions from the .mm class.
here is an example of what I mean.
here in my .m vector file
*struct dVector*
* float m_x;*
* float m_y;*
* float m_z;*
* float m_w;*
*struct dVector InitVector (float x, float y, float z, float w);*
*struct dVector AddVector (struct dVector* A, struct dVector* B);*
*struct dVector SubVector (struct dVector* A, struct dVector* B);*
here is my .mm class
*#import <Foundation/Foundation.h>*
*@interface iNewton : NSObject*
* void* m_world;*
*-(id) init;*
*-(void) dealloc;*
-(void) CreateBox: (Entity*) ent: (int) shapeId;*
@end
here is the implemrntation of function funtion CreateBox in a .mm file
[code]-(void*) CreateBox: (Entity*) ent: (int) shapeId
struct dVector minBox;
struct dVector maxBox;
// this is fine
[ent GetBBox: &minBox: &maxBox];
//calculate the box size and dimensions of the physics collision shape
// this report a link errors, and I do no knwo why
struct dVector size = SubVector(&maxBox, &minBox);
struct dVector origin = AddVector (&maxBox, &minBox);
// thsi work without problemen
return NewtonCreateBox ((NewtonWorld*) world, size.m_x, size.m_y, size.m_z, shapeId, &offset.mfront.mx);
I get these compiler errors
Building target “tutorial102AddingRigidBody” of project “newton_iPhone” with configuration “Debug_Emulation” — (3 errors)
cd /Users/juliojerez/Desktop/NewtonMac/NewtonSDK/newton_iPhone
setenv MACOSXDEPLOYMENTTARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2 .1.sdk -L/Users/juliojerez/Desktop/NewtonMac/NewtonSDK/newtoniPhone/build/DebugEmulation-iphonesimulator -L/Users/juliojerez/Desktop/NewtonMac/NewtonSDK/newton_iPhone/../sdk -F/Users/juliojerez/Desktop/NewtonMac/NewtonSDK/newtoniPhone/build/DebugEmulation-iphonesimulator -filelist /Users/juliojerez/Desktop/NewtonMac/NewtonSDK/newtoniPhone/build/Debug_Emulation-iphonesimulator/tutorial_102_AddingRigidBody.build/ Objects-normal/i386/tutorial_102AddingRigidBodies.LinkFileList -mmacosx-version-min=10.5 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework CoreGraphics -lnewton_iPhoneEmulation -o /Users/juliojerez/Desktop/NewtonMac/NewtonSDK/newtoniPhone/build/Debug_Emulation-iphonesimulator/tutorial_102_AddingRigidBodies.app/ tutorial_102AddingRigidBodies
Undefined symbols:
"AddVector(dVector*, dVector*)", referenced from:
-[iNewton CreateBox::] in iNewton.o
"SubVector(dVector*, dVector*)", referenced from:
-[iNewton CreateBox::] in iNewton.o
"Scale(dVector*, float)", referenced from:
-[iNewton CreateBox::] in iNewton.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
"AddVector(dVector*, dVector*)", referenced from:
-[iNewton CreateBox::] in iNewton.o
"SubVector(dVector*, dVector*)", referenced from:
-[iNewton CreateBox::] in iNewton.o
"Scale(dVector*, float)", referenced from:
-[iNewton CreateBox::] in iNewton.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build failed (3 errors)
Basically I can call objective C class methods from .mm files,
but I can not call functions who are not members of a class from .mm funtions.
Does any one knows how I can solve this?
I have two books on objective C and neither show how to do that.
Please I will apreciate if some one can help me with this.
Julio Jerezjulio jerez wrote:
// this is fine
[ent GetBBox: &minBox: &maxBox];
why will tha be wrong?
ent is a objective C class with a method GetBBox
wich I use in hundred of places with out problem.
Beside that is not the problem that.
Well, you've got me on this one. You are correct. Apparently you don't need to specify the parameter names. Still, I strongly encourage you to use parameter names. Even though they apparently aren't required, I've never seen them not used. I would have expected to see:
[ent GetBBoxMin: & minBox max: & maxBox]
The problem is calling C function that are declared in .m files.
if you read the errors, they are linking errors not compiler errors.
this is a C function that is declared in a .m file
struct dVector size = SubVector(&maxBox, &minBox);
beside I also use those functions in many other place as well in teh project and they work.
If it helps I can post a link to the a download place to the xcode project maybe it is eassy to see what I am trying to do.
That would probably be a good idea.
Normally, all you need is
extern "C"
but there is so much missing from what you've posted that I can't tell for sure what is going on. -
Calling oracle function defined within package from JPA
Hi All,
I am trying to call a function get_owner() defined under a package pkg_x_y.
But I get an error when I do
entityManager.createNativeQuery("call pkg_x_y.get_owner()");
Caused by: java.sql.SQLSyntaxErrorException: ORA-00907: missing right parenthesis
What is the correct way to execute this function?
Thanks in advance.JPA 2.1 standardized stored procedure support, and is available within EclipseLink 2.5 as described here: http://wiki.eclipse.org/EclipseLink/Release/2.5/JPA21#Stored_Procedures
If you are unable to use JPA 2.1, you can use EclipseLink's stored procedure support as described here: http://wiki.eclipse.org/EclipseLink/Examples/JPA/StoredProcedures
The problem you are getting with your call though might be coming from within the stored proc itself, not the native query execution. Its hard to tell - are you able to execute the query on your database directly, such as through SQLPlus? -
Problem: Unable to call a function in parent swf from the child swf.
I am working on a site right now that has a parent loader
(all it contains are the menu bar [which is as3 tweened] and the
functions for calling all of the other pages.) The problem that I
am having right now, are some of the internal or child pages, need
to call functions that are in the parent loader. For what ever
reason, I am unable to do any of that.
I have attached the code so you can look at that.
Let me see if I can explain it any better.
The code I just posted is for the Main Stage swf called
loader.swf. It has the menu, and all the functions that control the
menu's movement and when to load all the other swfs. The easiest
way for me to ask this, is to show you.
click
http://dev.locallinux.com/mystictan/layout2.html
When you get there, you will see the menu bar, and it is
loading home.swf onto the stage behind the menu.
Mouse over "The Perfect Tan" and click on "1: Base"
You will notice it just loaded a new swf called ptbase.swf.
Well in that swf is a button for "Products" That button
basically needs to take you to "Products > 1: Base" on the menu
(not working yet, I know. But theres no point in me making that,
until I could get this working"
What I would like is when you click on "Products" in
ptbase.swf, it calls the function clickedProductsBase(), which does
its thing. But that function is back in the loader.swf. Does that
make sence?
What am I missing here?RyanORo, thank you very much for your response.
I try that, and I get this sort of error when I click on it:
TypeError: Error #1006: fwd is not a function.
at ptbase_fla::MainTimeline/testing()
I know all that code that I posted was a bith much, but here
is the movie loading part:
function loadComplete(event:Event):void
loaderbar.visible = false;
mainbody.removeChild(thisMC);
thisMC = MovieClip(myloader.content);
myloader.unload();
mainbody.addChild(thisMC);
thisMC.gotoAndStop(1);
TransitionManager.start(thisMC, {type:Fade,
direction:Transition.IN, duration:5, easing:Strong.easeOut});
mainbody is an empty mc under the menu, so that the loaded
swf file appears under the menu.
You know what, scratch all that . *MOOWHA* I could KISS you
right now. "(parent as MovieClip).clickedProductsBase()" did not
work because it was calling it out of the wrong parent. Just did
"(this.parent.parent as MovieClip).clickedProductsBase()" and that
did the magic I needed. Thanks... -
Why can't I call the function in the swf from the javascript?
Hello,
I have an html file that calls the function in swf file. In the swf file, I registered the function to be called using ExternalInterface.addCallback, as the book says.
And I put this swf file in the html file using <object> tag and attempted to call the function using this object's id attribute.
But every time to run this file, what I see is the error message such as "test1.show is not a function".
Why is it?
Please anyone help me. I am enclosing my work file. It's very simple one.
Thank you.
Daniel.It is entirely possible your college has decided to block certain websites. It's easy to do.
-
¿Can I call a function in a frame from another frame?
In a Canvas HTML5 document. I use javascript and easeljs.
I declare a function in frame 1:
function ponerBicho() {
this.bichofuncion.cabeza.nariz.gotoAndStop(1);
then I call it in frame 9 (in the same timeline):
ponerBicho.call(this);
this.stop();
It dont works.
But if I put the declaration in the same frame, frame 9, it works.
function ponerBicho() {
this.bichofuncion.cabeza.nariz.gotoAndStop(1);
ponerBicho.call(this);
this.stop();
Where is the problem?
I really appreciate your help.
(Im begineer )It works. Thank you very much, Nipun.
Suggestion: Adobe should do a good manual for Canvas's use from the beginning. As those who exist of ActionScript. It is very hard for not programmers to have to learn javascript + createjs out of Flash. -
How do we call a function returning a collection from package
Dear Member,
i have a package spec whose code is as follows:
create or replace package c_test as
procedure main;
TYPE JOURNAL_HEADER_TYPE IS TABLE OF NUMBER;
l_header JOURNAL_HEADER_TYPE := JOURNAL_HEADER_TYPE();
TYPE JOURNAL_SOURCE_TYPE IS TABLE OF VARCHAR2(255);
l_source JOURNAL_SOURCE_TYPE := JOURNAL_SOURCE_TYPE();
FUNCTION JOURNAL_SOURCE_STRING(P_SOURCE_STRING IN VARCHAR2)
RETURN JOURNAL_SOURCE_TYPE;
FUNCTION JOURNAL_HEADER_STRING(P_HEADER_STRING IN VARCHAR2)
RETURN JOURNAL_HEADER_TYPE;
end main;
I have a package body in which i am trying to call the above functions in the procedure main:
SELECT COUNT(*)
INTO l_je_header_id_count
FROM ( select c_charge.je_header_id je_header_id
from dual)
WHERE je_header_id IN (select * from THE ( SELECT CAST(JOURNAL_HEADER_STRING(P_JOURNAL_HEADER_ID) AS JOURNAL_HEADER_TYPE ) FROM dual ))
if i try to compile the package its giving me ORA-00902: invalid datatype error. How do i remove this error.
If i create both "Type" and "Function" separately outside package then the above sql works perfectly.
Please correct me if am doing any thing wrong here.
ThanksHi,
The collection type that you declared local to the pl/sql procedure/ package and is not visible to SQL.
If you want to use the collection in your sql, you need to create it as a SQL Type and then use it in your queries.
Thanks.
Rajesh. -
Calling stored function that contains commit from .JCX
I would like to call a stored function (Oracle) that contains a commit, from
a WebLogic database control (.JCX). The suggested way to call a stored
function is to do something like:
* @jc:sql statement::
* SELECT MY_FUNCTION({projectID}, {staffID}) FROM DUAL
int callMyFunction(int projectID, int staffID) throws SQLException;
This doesn't work if the function contains a commit - I get: ORA-14552:
cannot perform a DDL, commit or rollback inside a query or DML. I don't
want to just get my own connection to the db in my code and call it directly
because then I won't be using the connection pool provided by WebLogic. Is
there a recommended way to do this? So far, the database control has taken
care of getting connections from the pool. Can I get a connection from the
pool explicitely and use it? How do I "return" it to the pool?
Thanks.
SteveSteve Kincer wrote:
Thanks for the response.
So far, I've only used the database control, so I haven't been doing any
transaction management (rollbacks/commits) myself - I've just called methods
in my database control and not worried it. Come to think of it, all my
other calls are just SELECTs, so it hasn't been an issue, but I've assumed
WebLogic or the connection pool would take care of transaction management
for me if I coded an UPDATE function in the database control.
What do you mean by "find and use the control API provided for
defining/demarking
transactions" ... what control?
I've seen stuff in the help file about transaction management, so I can
research that, but where do I get the connection to use for this? I'm
thinking I should get it from the pool (rather than create my own
connection). I saw a generated method in my database control called
getConnection, but when I tried using it with a CallableStatement I got
error:
"The transaction is no longer active - status: 'Committed'. No further JDBC
access is allowed within this transaction."This means that you are automatically being taken care of transactionally,
and don't need to do any commit() calls.
Joe
>
I guess it's pretty obvious that I'm pretty new to WebLogic.
Thanks for your help.
Steve
"Joe Weinstein" <[email protected]> wrote in message
news:[email protected]...
Steve Kincer wrote:
I would like to call a stored function (Oracle) that contains a commit,
from a WebLogic database control (.JCX). The suggested way to call a
stored function is to do something like:
* @jc:sql statement::
* SELECT MY_FUNCTION({projectID}, {staffID}) FROM DUAL
int callMyFunction(int projectID, int staffID) throws SQLException;
This doesn't work if the function contains a commit - I get: ORA-14552:
cannot perform a DDL, commit or rollback inside a query or DML.Right. It is bad style to hide a commit in a procedure. The begin-tx
and commit should be at the same level, above any specific SQL for the
tx. How did you start a transaction? Are you sure you have an ongoing
transaction?
I don't
want to just get my own connection to the db in my code and call it
directly because then I won't be using the connection pool provided by
WebLogic. Is there a recommended way to do this? So far, the database
control has taken care of getting connections from the pool. Can I get a
connection from the pool explicitely and use it? How do I "return" it to
the pool?You should find and use the control API provided for defining/demarking
transactions.
Joe
Thanks.
Steve -
Weird error when calling AS function to switch state from embedded HTML page
Hey everyone,
I'm developing an application that has 5 states in it. The
welcome state is set by default. I wrote a function called
changeState that looks like this:
internal function changeState(sState:String):void
currentState = sState;
Now, inside the registration state, there is an mx:HTML
component named htmlReg with the following attribute:
htmlDOMInitialize="htmlReg.htmlLoader.window.changeState =
changeState;"
Inside the plain handcoded HTML web page that's loaded,
there's a button that looks like this:
<button onClick="changeState('Welcome')">Back to
Welcome</button>
The idea being, when the user clicks the HTML button, it
calls the AS function changeState('Welcome') and the user gets
taken back to the welcome screen.
The good news is that when I click this button, it works
fine, and I'm taken back to the welcome state.
The bad news is that when I then switch to another state
(using an mx:Button in the welcome state), I get the following
error:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at flash.html::HTMLLoader/onFocusOut()
I'm having trouble figuring out why this is happening, and
what to do about it.
Two additional data points:
1) If I add an mx:Button to the registration state with a
click="changeState('Welcome')" handler, it works as expected and I
don't get an error. I only get this error when clicking the HTML
button, which calls the same function in the same way.
2) If I move the mx:HTML component out of the registration
state and into the main application, I don't get this error any
more (and the HTML state change button still works as expected).
Anybody have any clues or ideas as to what might be
happening? Or ideas as to what I might try to collect more data
points? Or even workarounds to accomplish the same task in a
different way?
Thanks in advance.Probably what is happening is that when you change states,
the HTML control is removed from the stage. However, the HTMLLoader
(which is wrapped by mx:HTML) does seem to know that it has been
removed, and losing focus, it's internal handler for the focusOut
event access some property that requires it to be on the stage --
hence the null object reference.
You should report this bug at
http://www.adobe.com/go/wish
and provide a sample that demonstrates the issue.
A workaround might be to change the focus to another object
with stage.assignFocus() before you change states. -
How to call javaScript function in the form from Action:Tab buttion in workspace
Hi,
I want to trigger JavaScript function that I have written in form from Action: buttons in workspace user's account.
Is there any way that if i hit a button on action bar, it fire a javascript function.
Reason is: I dont want to place button on the form to perform any action on the form. I want to take control of the form from these buttons. Like submit, edit a form, etc, etc..
Please let me know if i couldnt explain it properly.
regards
SunilSunil, you want to look at the "Customizing the LiveCycle® Workspace ES User Interface" document at http://help.adobe.com/en_US/livecycle/9.0/customizeworkspaceui.pdf. The workspace is a Flash component. For ES4 there's an option to run the workspace in HTML5 which might be more productive long-term.
-
How do you call a function in an attached MovieClip from the current MovieClip?
Hi there,
I have this MovieClip A (converted as a symbol) and put in my
main MovieClip B using attachMovie() , and I am wondering how I can
call a function defined in A from within B.
Is it possible?
ThanksHi kglad,
yes, I did the attachMovie of the symbol B and it seems like
none of the ActionScript written in B was not carried over.
This is how I built B into a symbol :
(1) Two layers ( one for the ActionScript only, the other for
the Components)
(2) I defined the functions to be called remotely by A in the
ActionScript layer
(3) I selected all the components in the Components Layer and
did a Convert To Symbol
(4) I added the Symbol into A's Library
(5) I used attachMovie to instantiate the Symbol of B
I must have missed out something somewhere
Thanks -
Call Plugin-Function with parameters via JavaScript
Hi!
I have following problem: I wrote a plugin for Illustrator CS2 in C++ and now I would like to call a function of the plugin from outside of illustrator (from a JavaScript).
This can be done with the Actionsuite. But how could I then give some parameters to my function?
For example:
In the plugin, I have a function "void myFun(char * test)" and I want to call this function in JavaScript with test="Hello World" for example.
The only possible way right now seems to write parameters into a file and open that file in the plugin to "receive" them.Hi,
Could you send your plugin coding.
Regards,
Maria
Maybe you are looking for
-
Archive logs are not transferred to STDBY database
Hi, I have create a STDBY database (I am running the release 9.2.0.7.0). I see that the archivelogs are not correctly transferred into STDBY server. From Primary alert log, I see the following error: ARC1: Evaluating archive log 1 thread 1 sequence 1
-
How to create interactive BW reports in Portal
Hi customer wants following senario. From BW report is generated and displayed in portal.that report contains list of customers whose sales is less than 50% than targets.now when i click on perticular customer on the report it should show me details
-
Im trying to update my iphone with ios 5 but, for some reason its not giving me the option to do it? i've restored my phone once like it says do on the website and it hasnt done it? what can i do ?
-
Fragment library with SAP?
We want to deploy a set of forms that use references to fragments stored in a fragment library, because there are a lot of elements in common among the forms. Some will change over time and we would like to maintain them in one place. Is this possib
-
I am having my computer post a Unknown Device Error in the System Devices . When you look at the device it states that it is a National Instruments device with the following files: NIPCFK.sys Version 1.1.1.f0 NIPXIBAF.sys Version 2.5.4f1 NIPXIBRC.sys