Calling one form from another form
hi
i have devoleped a form in 6i and registerd it inAPPSand run it on APPS and i have created a button in it if i press the button it should call the second form. But it is not opening.
please tell me
whether i can use the call_form or open_form and other builtins
or whether i have to use some coding in apps or in developer 6i only.
please reply me.
thanks in advance.
siddam.
but the call_form works without the .fmx..as example:
NEW_FORM(:global.ruta_forms||'Customer_data');
Customer_data is the name of the form,corresponding to the file Customer_data.fmx
But as you say it's probably that also work putting the extension.But if for you does not wortk,try without it.
Similar Messages
-
How to call one .SWF from another?
How do I call one .SWF from another. I built a very beefy
base .SWF, and want to add music overlay, and an intro slide show
to the exsting Flash animation, but put it in a second .FLA/.SWF
file. How do I call one from the other?
This will be embedded in an HTML file but I assume this is
superfluous to my question.
F.Z.I think you should open that Another SWF (FLA),
and add some actionscript..
For example, you could create a movie clip, and write
actionscript in the
first keyframe:
loadMovie("
http://www.somewebpage.com/movie.swf",
this);
"FredZimmerman" <[email protected]> wrote in
message
news:ftnjas$mj5$[email protected]..
> How do I call one .SWF from another. I built a very
beefy base .SWF, and
> want
> to add music overlay, and an intro slide show to the
exsting Flash
> animation,
> but put it in a second .FLA/.SWF file. How do I call one
from the other?
>
> This will be embedded in an HTML file but I assume this
is superfluous to
> my
> question.
>
> F.Z.
> -
CallerPrincipal when calling one sessionbean from another
Hi all,
I have a little problem when calling one sessionbean from another sessionbean. The problem is, that in the method, which is called, is used SessionContext's getCallerPrincipal().getName(). This works great from client, but from other sessionbeans getCallerPrincipal() retuns an "ANONYMOUS" principal. How can I set the correct principal (the principal from the first sessionbean)?
Thank you
My env: Glassfish 2.1.1, Netbeans 6.8, Eclipselink 2.0.0, Java 1.6.0.18
My code:
@Stateless
public class ABean implements ASessionRemote{
@Resource
SessionContext ctx;
@Override
public void aMethod(){
String name = ctx.getCallerPrincipal().getName(); // the name is ANONYMOUS, when the call is done from other sessionbean
@Stateless
public class BBean implements BSessionRemote{
@Resource
SessionContext ctx;
@EJB
private ASessionRemote aSessionBean;
@Override
public void bMethod(){
aSessionBean.aMethod();
}"This works great from client"
What do you mean by this, i.e what sort of client are you using (stand alone app, servlet) ?
what shows up if you printout the caller principal in the calling bean ?
are the two ejbs in the same ear ?
what security meta-information are you using in ejb-jar.xml and sun-ejb-jar.xml, if any ? -
Calling one script from another
InDesign has a nice mechanism for calling one script from another, so code can be made modular. What about FrameMaker ExtendScript? What methods are people using to call one script from another? Thanks for any suggestions.
Rick QuatroHi Trevor,
Note that ExtendScript is Javascript plus FM objects and methods, so you need to stick to Javascript syntax rules. The right way to include another script source is as follows:
#include "scriptname.jsx";
If this works when running the main script from the ESTK, you know it finds the included script. When you then Export the script to Binary (from the File menu of the ESTK), the binary will include the embedded script as well. After this you have a jsxbin file, which you can drop into one of the two available startup folders to make it fire automatically when FM starts. Or you can move it anywhere else and run it via the File > Script > Run command. The main idea here is that when compiling a script into binary format, all include references are resolved and the script contains the complete code. If you run the jsx, the script is interpreted and requires a correct relative reference to any included script.
I hope this clarifies things a little
Ciao
Jang -
How to Call one EJB from another
Hi all
I am trying to call one EJB in one system from another EJB residing on diferent system...
Both are Stateless session beans ...
I can't use No-args Intialcontext() as i need to specify the Ip address of other system to be looked up.....
So i am using properties Dorg.omg.CORBA.ORBInitlalHost....
But its not looking up..Its telling not bound...But i called it from standalone client remotely...
Am i wrong..?
I hope I am in right path....
I hope ill get reply as fast as possible...
Gopal VHi ken Thanks for replying....
Ya i packed it as a jar (using Export tool in Eclipse3.2)....
I am using SUN AS 9.....
I packed bean1 and bean2 as two different jars in the same domain...
Here is my code...
Bean1:
@Stateless(mappedName="ejb/Second")
public class SecondIMPL implements SecondRemote {
public FirstRemote obj;
public String connect() {
try{
InitialContext ctx= new InitialContext();
FirstRemote obj =(FirstRemote)ctx.lookup("ejb/First");
System.out.println("Client :"+obj.bMethod());
}catch(Exception e){
e.printStackTrace();
return "Check server Log";
}Bean2 :
@Stateless(mappedName="ejb/First")
public class FirstIMPL implements FirstRemote {
public String bMethod() {
return "From First Bean";
Client:
public static void main(String[] args) {
try{
InitialContext ctx= new InitialContext();
SecondRemote obj =(SecondRemote)ctx.lookup("ejb/Second");
System.out.println("Client :"+obj.connect());
}catch(Exception e){
e.printStackTrace();
Here is my Stack Trace...
[#|2007-05-24T18:35:17.214+0530|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=18;_ThreadName=p: thread-pool-1; w: 19;_RequestID=bb4848e7-829a-421d-a560-93659898eb02;|
javax.naming.NamingException: ejb ref resolution error for remote business interfacecom.SecondRemote[Root exception is java.lang.ClassNotFoundException: com.SecondRemote]
at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:350)
at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:61)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:314)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.FirstBean.rediff(FirstBean.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:110)
at $Proxy36.rediff(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)
Caused by: java.lang.ClassNotFoundException: com.Second
at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:701)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:614)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.sun.ejb.EJBUtils.getBusinessIntfClassLoader(EJBUtils.java:568)
at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:320)
... 31 more
|#] -
How to call one program from another program
Hai,
How to call one program through another program.
Example.
I have two programs 1.ZPROG1 2. ZPROG2.
When i execute ZPROG1 at that time it should call ZPROG2.Hi ,
u can use submit statement to call a program .
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
regards,
Santosh thorat -
Calling One Filter from another Filter
Hi Every body,
I am a faculty in a computer institute, I want to call one ServletFilter [Filter 2] from another ServletFilter [Filter 1] then, from the Filter 2, I want to call the servlet.
This is for one of my student project.
Is it possible something like that, when I read the theroy i can find some thing like that , but I was unable to implement it.
Please help me in this regard.
Sulfikkarchain.doFilter() method will do that for you.
Just specify your filters in the web.xmland they will be called in the order they are defined in the web.xml -
Calling one applet from another passing database connection
We are trying to establish if it is possible to start an applet that connects to a database and use that as a 'menu'. From there we would call other applets. Is there a way to pass along the database connection from one applet to another. Any help is greatly appreciated.
nullHere' s a sample program in the Java Tutorial that messages between applets.
http://java.sun.com/docs/books/tutorial/applet/appletsonly/iac.html -
How to call one procedure from another procedure
Hi all,
Could anyone give me clue how to call a procedure contains out parameters
from another procedure.
I had following procedures.
1)
create or replace procedure INS_PUR_ORDER
p_poamt in number,
p_podate in date,
p_poid out number
is
begin
select pkseq.nextval into p_poid from dual;
insert into pur_order(poamt,podate,poid)
values (p_poamt,p_podate,p_poid);
end;
2)
create or replace procedure INS_PUR_ORDER_DETAIL
p_pounits in number,
p_poddate in date,
p_poid in number)
is
begin
Insert into pur_order_detail(podid,pounits,poddate,poid)
values(pdseq.nextval,p_pounits,p_poddate,p_poid);
end;
I need to write a 3rd procedure which calls above two procedures.
like
call first procedure ,basing on the return value
i.e if p_poid != 0 then
we need to call second procedure
in the loop.
thanks in advance.
rampa.Not sure what are you doing, you can not assign cursor to another cursor, may be you are looking for this?
SQL> create or replace procedure proc1 ( result out sys_refcursor)
2 is
3
4 begin
5 open result for
6 select 'HELLO WORLD' from dual ;
7 end proc1 ;
8 /
Procedure created.
Elapsed: 00:00:00.01
SQL> create or replace procedure proc2
2 is
3 l_cursor sys_refcursor ;
4 begin
5 l_cursor := proc1 ;
6
7
8 open l_cursor;
9 fetch l_cursor into l_text;
10 dbms_output.put_line(l_text);
11 close l_cursor;
12
13
14 end proc2 ;
15 /
Warning: Procedure created with compilation errors.
Elapsed: 00:00:00.01
SQL> show error;
Errors for PROCEDURE PROC2:
LINE/COL ERROR
5/4 PL/SQL: Statement ignored
5/16 PLS-00306: wrong number or types of arguments
in call to 'PROC1'
6/4 PLS-00201: identifier 'L_TEXT' must be
declared
6/4 PL/SQL: Statement ignored
8/4 PLS-00382: expression is of wrong type
8/4 PL/SQL: SQL Statement ignored
9/4 PL/SQL: SQL Statement ignored
9/24 PLS-00201: identifier 'L_TEXT' must be
declared
10/4 PL/SQL: Statement ignored
10/25 PLS-00201: identifier 'L_TEXT' must be
declared
---- this is the correct waySQL>ed
1 create or replace procedure proc2
2 is
3 l_cursor sys_refcursor ;
4 l_text varchar2(100);
5 begin
---- procedure call
6 proc1(l_cursor);
7 -- open l_cursor;
8 fetch l_cursor into l_text;
9 dbms_output.put_line(l_text);
10 close l_cursor;
11* end proc2 ;
SQL> /
Procedure created.
Elapsed: 00:00:00.01
SQL> set serveroutput on
SQL> execute proc2;
HELLO WORLD
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> -
Calling one BPM from another BPM.
Hi Guys,
I'm trying to call an existing(working!) BPM from another BPM. Its a synchronus call. However in moni I see it as errored out on the outbound side. The error in the PE is:
<b>CL_SWF_XI_MSG_BROKER method SEND_SYNCHRON cannot be executed.</b>
I checked the following thread(<i>Re: Object CL_SWF_XI_MSG_BROKER method SEND_SYNCHRON cannot be executed), but those notes are already applied. Any idea, what could be the problem?
Thanks,
Harsh
PS: We are on SP16.Hi Krishna,
I have a doubt regarding transformations. In some of my transformations, I'm adding/stripping soap envelopes using XSL. For these messages, I'm only concerned about my target structure. Since there is not graphical mapping, I've assigned the same(target) structure to the source. The source message, I was assuming will not be validated(against the source structure) and thus will not throw an error. Could this be the problem, if so, what is the solution?
Thanks,
Harsh -
How can i call one report from another report (Drill Down Approach)
Hi Friends,
I've two reports in completely different layout format.
One is in Crosstab & another is in Tabular.
Now i want to call my Tabular report(report 1) from my Crosstab (report 2) without using BO's default drill down feature. Or, you can show using BO's feature if it supports my requirement.
How to do that?
Is it at all possible?
Please share your thoughts. Thanks in advance for your time.
Regards.
Satyaki De.hi
you can use openDocument for this.
[http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf]
I would suggest to use variables that build the HTML code for the hyperlinks dynamically, and display them in your crosstab. Set the display option for the related cells (ie. the cells where your variables are displayed in) so that the cell's contents as interpreted as HTML code.
Regards,
Stratos -
ABAP Objects : calling one method from another class
Hi,
Can you please tell me how to call method from one class or interfce to another class.The scenario is
I have one class CL_WORKFLOW_TASK, this class have interface IF_WORKFLOW_TASK & this interface have method IF_WORKFLOW_TASK~CLOSE. Now my requirement is ,
There is another class CL_WORKFLOW_CHAIN ,this class have interface IF_WORKFLOW_CHAIN & this interface have method IF_WORKFLOW_CHAINCLOSE_ALL_PREDECESSORS. Now i have to write my code in this method but i have to use IF_WORKFLOW_TASKCLOSE method for closing the task.
Can you please give me the code for the above .
Please waiting for reply.Hi,
You can use the concept of INHERITANCE in this scenario.By using this concept, you can call all the public and protected methods of class CL_WORKFLOW_TASK in the required calss CL_WORKFLOW_CHAIN as per your requirement.
Go through the Introdctory(INHERITANCE) programming from this SAPHELP link.
http://help.sap.com/saphelp_nw70/helpdata/en/1d/df5f57127111d3b9390000e8353423/content.htm
I hope, it will help in you inresolving your problem.
by
Prasad GVK. -
Calling one program from another and gettting values back
Hello All,
I am calling subroutine program X from a payroll function. I am not able to get internal table back in my payroll program.
This subroutine in program X is being used by some other reports in folLowing way and successfully returns values.Following sysntx is being used in suucessful implemetaiton of this piece of code.
perform fill_rt2 (RPXXXX) USING BEGDA ENDDA PERNR.
If i try doing that from payroll function, rt2 gets refreshed once control comes back to payroll.
Please help.
Thanks
Samirtry this ...
Do not declare RT2 in both programs, only declare it in Calling progrm HNZLCALC0.
Then use perform like this:
perform GET_RESULTS (hnzuclro) using begda endda pernr CHANGING RT2.
and ...
Caller prpgram HNZUCLR0 : rt2 declared here in main program <- remove RT2 from here
FORM GET_RESULTS using begda endda pernr CHANGING RT2
FILL RT2.
ENDFORM.
let me know if it works, I do not have SAP right now, I can check syntax in the morning. -
Calling One Servlet From Another
Thanks in advance for any advice!
I would like to call servletB from servletA then use the response returned from servletB within the processing of servletA.
I have checked the forums and jGuru but nothing I've found really matches the problem. RequestDispatcher has "forward" and "include" but I do not want to include the reponse from the called servlet in the response of the original one.
Here is the situation. I have a web application that uses an applet front-end using a mainframe datasource. The applet displays data in various JTables and prints various reports.
The applet calls a servlet(B) with an SQL statement in the request that responds with a Vector of data to be displayed in the JTable. This is working fine.
The applet also calls servlet(A) which uses iText from SourceForge to create a PDF report that is sent back to the browser for display in Adobe Reader. This also works fine.
Because I cannot figure out how to call servletB from within servletA, my current workaround is to embed the code of servletB inside servletA. Not very good OOP and as the application grows maintaining this will become a problem.
Any suggestions would be greatly appreciated.
MaxWhy don't you just take the code that the applet uses to "call" servlet B and replicate that code into servlet "A"? (Or better still, create a class to do that, which could be called both from the applet and from servlet A.)
-
Calling one Report from another Report in oracle 10g(Urgent)
Hi All,
Can anyone let me know how to make hyperlink to call another report.
I am trying
SRW.SET_HYPERLINK('/reports/rwservlet?&report=rep059_v31.rdf&il&destype=cache&desformat=pdf');
But i am getting message 'make sure the path or internet address is correct' .
Please let me know what are the attributes used to create hyperlink.
Thanks
Nikhil
Edited by: user9527411 on 29-Apr-2009 05:53
Edited by: user9527411 on 30-Apr-2009 00:24Hello,
The syntax is correct (except the & after the ?)
You are using a "relative URL" . It means the browser will use the protocol , server and port from the current page in order to build a full URL
(full URL = <protocol>://<server>:<port>/reports/rwservlet?report=test&destype=cache&desformat=html)
Regard -
Calling one Servlet from another servlet
First servlet...............>
package javaservlets.samples;
import javax.servlet.*;
import javax.servlet.http.*;
public class TableElements extends HttpServlet{
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException,IOException{
response.setContentType("text/plain");
try{
RequestDispatcher rd = getServletContext().getRequestDispatcher("/TableFilter");
if(request==null){
System.out.println("Request null...");
System.exit(0);
if(response == null){
System.out.println("Response null...");
System.exit(0);
if(request!=null&&response != null){
System.out.println("Both are not null...");
rd.forward(request,response);
}catch(ServletException se){
se.printStackTrace();
}catch(IOException ioe){
ioe.printStackTrace();
Second Servlet..............>
package javaservlets.samples;
import javax.servlet.*;
import javax.servlet.http.*;
public class TableFilters extends HttpServlet{
public void service(HttpServletRequest request,HttpServletResponse response)
throws IOException,ServletException{
String type = request.getContentType();
System.out.println("type : "+type);
from the TableElement servlet just I am calling the TableFilter servlet and in
the TableFilter I am trying to print the request content type. But I am getting
NULL. i was supposed to get "TEXT/PLAIN".
can any one tell what is the problem.
very urgent.
thanx in advance
Your example seems to assume that the reponse of the first servlet becomes
the request in the second servlet let this is not so. After the forward the
request and response obejcts are the same as before the forward, except the
referer attribute is changed.
"Gururaj Kosigi" <[email protected]> wrote in message
news:[email protected]...
>
> First servlet...............>
>
> package javaservlets.samples;
>
> import javax.servlet.*;
> import javax.servlet.http.*;
>
>
> public class TableElements extends HttpServlet{
>
>
>
> public void doGet(HttpServletRequest request,HttpServletResponse response)
> throws ServletException,IOException{
>
> response.setContentType("text/plain");
>
>
> try{
>
> RequestDispatcher rd =
getServletContext().getRequestDispatcher("/TableFilter");
>
> if(request==null){
> System.out.println("Request null...");
> System.exit(0);
> }
> if(response == null){
> System.out.println("Response null...");
> System.exit(0);
> }
> if(request!=null&&response != null){
> System.out.println("Both are not null...");
> }
>
> rd.forward(request,response);
> }catch(ServletException se){
> se.printStackTrace();
>
> }catch(IOException ioe){
> ioe.printStackTrace();
>
> }
>
> }
> }
>
> Second Servlet..............>
>
> package javaservlets.samples;
>
> import javax.servlet.*;
> import javax.servlet.http.*;
>
>
> public class TableFilters extends HttpServlet{
>
> public void service(HttpServletRequest request,HttpServletResponse
response)
> throws IOException,ServletException{
>
>
> String type = request.getContentType();
> System.out.println("type : "+type);
>
> }
> }
>
> from the TableElement servlet just I am calling the TableFilter servlet
and in
> the TableFilter I am trying to print the request content type. But I am
getting
> NULL. i was supposed to get "TEXT/PLAIN".
>
> can any one tell what is the problem.
> very urgent.
>
> thanx in advance
Maybe you are looking for
-
LaTeXiT equations with Keynote 6.5
Hi, After upgrading to Yosemite (10.10) and Keynote (6.5) and shifting to iCloud, I find that LaTeXiT has hiccups: I can still insert the equations into my Keynote presentations, but if I try to copy and paste an equation, or to copy and paste an ent
-
Fancybox iframe in Edge Animate - Not showing correct height and width
Hi All, Can someone please provide advice or a solution to this issue. I have been trying to use the Fancybox.js in Edge Animate to call an iframe (as a lightbox pop up). However when I try this it doesn't show the correct height and width properties
-
Really?! Nobody can help me?
I am still getting the Third Party Midi Driver conflict message. I have tried everything. PLEASE!! HELP!!!
-
Dynamically select multiple rows in web dynpro table
Hi All, I am populating rows in a table by calling BAPI. I set the selection property to 1..n for the context model node in view and custom controller. I set the selectionmode property to multi for the table. I have a "Select All" button in my view.
-
Apple System Preferences iTunes ??
Just realized my System Preferences does not have an iTunes icon in it as is indicated in several on-line tutorials. I am having no problems just playing my "Play lists" but I haven't tried xeveral features such as iBooks, etc. I would like to be set