Calling iBrowser Object from iframe inside iframe
Hi,
Normally i can get the selected value of iBrowser using this method.
var myString =document.appletname.getBrowserObject().getSelectedDatalinkValue();
But in my case i have iframe inside iframe. In 2nd iframe i am calling iBrowser.
I need to get the selected value of iBrowser in an iframe inside another iframe.
I tried iframe1.iframe2.document.appname.....
But i didn't get any value. Can anybody suggest regarding this.
Thanks & Regards,
Giri
Try the following:
window.frames["TheIFrameName"].document.appletname.getBrowserObject().getSelectedDatalinkValue();
This should work as long as both IFrames are sourced from the same server. Cross-frame scripting when the sources are different servers is usually not permitted by the browser for security reasons.
Edited by: Rick Bullotta on Nov 19, 2008 6:40 AM
Similar Messages
-
Procedure to Call Workflow Object from ABAP program in Se38
Hi All,
I have one scenario like i have to call one Workflow object from ABAP program in SE38.The scenario is like below.....
I have to select some records from database table.For example there are 100 records in the internal table.
For all that records i have to invoke Workflow for getting approval from the authorized persons. Once Approval has come to program, It will post one document in SAP and process ends.
Please suggest me how to move forward with this scenario.
Regards
Manas Ranjan PandaHi,
So you want to start a workflow from an ABAP, if an event exists for that particular workflow then the best way is to use fm SAP_WAPI_CREATE_EVENT,
to start a workflow from an ABAP you can use fm SAP_WAPI_START_WORKFLOW.
Kind regards, Rob Dielemans -
Call view object from ViewController [SOLVED]
I'm using a valueChangeListener method in a managed bean, which I'd like to use to call a method on a view object. How can I call the view object from a managed bean class?
RegardsMaik,
It is best practice to create a method on your application module, and have this method manipulate VO's and call VO methods.
See section 8.5.3.1 in ADF Developers Guide for more info o calling an AM method from a managed bean:
http://download-west.oracle.com/docs/html/B25947_01/bcservices005.htm#sthref673
Please use the JDeveloper forum in the future for question like this, that are not related to JHeadstart.
Steven Davelaar,
Jheadstart team. -
CALLING BUSINESS OBJECT FROM AN ABAP REPORT
Hi friends,
I have a business object to which a Custom Function Module is assigned in one of its method.This Function Module calls a Bapi to update a Service Order.I need to capture the status of Idocs regarding success or failure from the function Module in the ABAP Report.I would like to know if there is any way to call this business object from my report and get the status of IDOC.
Regards,
Dev Reddysorry I think i was not clear in explaining .I am calling a BAPI to update 'Priority' field of service orders in a custom function module(remote enabled) and I have assigned this bapi to a custom business object. Also I have developed an ALE interface thru BDBG transaction which automatically generates custom basic idoc type,messsage type ,Ale i/b and o/b function modules.
Actually my requirement deals with a report where we have list of service orders in an internal table and pass each service order to update Priority field.
Is there any way to create an IDOC from the report and update the priority field and pass back the status of IDOC.
I have tried calling ALE O/B function function module generated thru BDBG transaction in my report but as a result i am unable to get any of the message whether idoc is created or not.
Here is my report code.
data: it_methods type table of BAPI_ALM_ORDER_METHOD with header line,
it_header type table of BAPI_ALM_ORDER_HEADERS_I with header line,
it_header_up type table of BAPI_ALM_ORDER_HEADERS_UP with header line,
RECEIVERS TYPE TABLE OF BDI_LOGSYS WITH HEADER LINE.
T_METHODS-REFNUMBER = '000001'.
IT_METHODS-OBJECTTYPE = 'HEADER'.
IT_METHODS-METHOD = 'CHANGE'.
IT_METHODS-OBJECTKEY = '000004000768'.
APPEND IT_METHODS.
CLEAR IT_METHODS.
IT_METHODS-REFNUMBER = '000000'.
IT_METHODS-METHOD = 'SAVE'.
APPEND IT_METHODS.
IT_HEADER-ORDERID = '000004000768'.
IT_HEADER-PRIORITY = '2'.
APPEND IT_HEADER.
IT_HEADER_UP-ORDERID = '000004000768'.
IT_HEADER_UP-PRIORITY = 'X'.
APPEND IT_HEADER_UP.
CALL FUNCTION 'ZZ_FM_SM_ORD_PRIOR_UPDATE'
EXPORTING
OBJ_TYPE = 'ZBOSMPRUPD'
SERIAL_ID = '0'
TABLES
ITMETHODS = IT_METHODS
ITHEADER = IT_HEADER
ITHEADERUP = IT_HEADER_UP
RECEIVERS = RECEIVERS
COMMUNICATION_DOCUMENTS =
APPLICATION_OBJECTS =
EXCEPTIONS
ERROR_CREATING_IDOCS = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
Dev Reddy -
New to JavaFX--Calling Java objects from JavaFX
Hello,
I am a Java developer who is new to JavaFX. I am having no luck in finding a tutorial that exhibits more than just fun effects. I need to be able to call existing classes from a JavaFX GUI. Can anyone offer any assistance on this? It's very frustrating because this should be a simple task. If we are faced with having to rewrite existing code, we will probably be forced to abandon JavaFX. I hope this is not the case.
Thanks!The answer is yes. The impementation is -
If you have classes that you keep as library classes that you intend for use irrespective of the platform, then I suspect that you have already written them with no view content. For those, including them in your JavaFX is not really different to using them in Java. I am just learning JavaFX too and the most important lesson for us to learn is that 'JavaFX is Java with FX on the end of it'. I know the strickly come dancing set will say 'oh but what about types'. Well I have found no trouble at all with types, basic or my own, we are in object world so long as the compiler has the class object and we have all stuck to the rules then it has all it needs to act on your objects.
So your non-View classes can be used as you always use them -
import mylib'
var somethingFromMyLibOfClasses = new mylib.ClassThatDoesSomethingVeryClever();
It is then just a matter of arranging a FX trigger of some kind (trigger/event/timer/bind) to call the function in your library.
Which triggers and when are the part I am still finding difficult. The basic GUI events are fine (onMouseClick etc), it is 'bind' that is troublesome.
Binding something in your code to a 'property' of the display element is easy enough, but binding where you have no external variable that relates to 'Property' value is less clear. For example you may have to change a form contents due to a trigger sent from a remote database.
You have some in the forum talking of 'resize your window a few pixels to force a redraw so that your code can be retriggered'. Others are using timers at high tick frequency to for an update. such as changing a property that you can't see.
That is utter nonsense, if you look up the proper description of bind then it becomes obvious. Bind can be a two way thing, you can change a value in your element from outside, but you can also change a value outside of your element from within your element.
Equally that trigger can be your own code. There is no need of trickery to update Scenes, the writters of JavaFX already have it sussed.
The Sun web site has some great tutirials, but as a personal favourite that cleared up som of the junk about JavaFX that was building up in my mind I reccommend you spend a bit of time here [JavaFX Refference|http://openjfx.java.sun.com/current-build/doc/reference/JavaFXReference.html]
Not the best layout you will ever see, but it is the best source I have found, then if you use that along side [Master Index|http://java.sun.com/javafx/1.2/docs/api/javafx.stage/javafx.stage.Stage.html] hopefully you will find, as I did, that you do not have to think differently to make use of the FX on the end of Java. -
Hi guys, I'm pretty new to as3 and I'm trying to make a game where the player supposedly clicks on the stage and 3 towers which I've spawned dynamically should shoot towards the area. Everything works in terms of tower rotation, etc, but the bullets will not be removed from the stage when I exit the level into another scene. The boundary checking is fine, too.
Here's a part of the code in the Main.as file.
private function clickTower1(e:MouseEvent):void
for each (var tower1:mcTower1 in tower1Array)
var newLaser1:mcLaser1 = new mcLaser1();
newLaser1.rotation = tower1.rotation;
newLaser1.x = tower1.x + Math.cos(newLaser1.rotation * Math.PI / 180) * 40;
newLaser1.y = tower1.y + Math.sin(newLaser1.rotation * Math.PI / 180) * 40;
newLaser1.addEventListener(Event.ENTER_FRAME, laser1Handler);
tower1BulletArray.push(newLaser1); stage.addChild(newLaser1);
private function laser1Handler(e:Event):void
//Make laser move in direction of turret.
var newLaser1:MovieClip = e.currentTarget as MovieClip;
newLaser1.x += Math.cos(newLaser1.rotation * Math.PI / 180) * laser1Speed;
newLaser1.y += Math.sin(newLaser1.rotation * Math.PI / 180) * laser1Speed;
//Boundary checking if (newLaser1.x < -50 || newLaser1.x > 800 || newLaser1.y > 600 || newLaser1.y < -50)
newLaser1.removeEventListener(Event.ENTER_FRAME, laser1Handler); stage.removeChild(newLaser1);
tower1BulletArray.splice(0, 1);
I have a function called exitLevel, which basically, as the name states, exits the level when a button is clicked. It worked perfectly before I started coding the bullets.
private function exitLevel(e:MouseEvent):void
stage.frameRate = 6;
gamePaused = false;
clearLevel();
gotoAndStop(1, 'exitLevel');
btnExitLevel.addEventListener(MouseEvent.CLICK, levelSelect1);
private function clearLevel():void
stage.removeEventListener(Event.ENTER_FRAME, update);
stage.removeChild(buttonCreep1); stage.removeChild(buttonCreep2);
for (var i = creep1Array.length - 1; i >= 0; i--)
removeChild(creep1Array[i]);
creep1Array.splice(i, 1);
//trace ("Creep1 Removed");
for (var j = creep2Array.length - 1; j >= 0; j--)
removeChild(creep2Array[j]);
creep2Array.splice(j, 1);
//trace ("Creep2 Removed");
for (var k = tower1Array.length - 1; k >= 0; k--)
removeChild(tower1Array[k]); tower1Array.splice(k, 1);
for (var l = tower1BulletArray.length - 1; l >= 0; l--)
stage.removeChild(tower1BulletArray[l]);
tower1BulletArray.splice(0, 1);
After debugging, it says the error is at the end, where i try to remove the child from the stage. What is wrong? Sorry, I'm a beginner at as3 so any answers might have to be spoonfeeding... I'll try to learn and understand, though. Thanks!
I did take some of the code off of a guide on the web, and I don't understand it totally, so can someone explain to me what this code does as well? What is e.currentTarget? Thanks!
var newLaser1:MovieClip = e.currentTarget as MovieClip;
Here's the full .as file if anybody wants to take a look. http://pastebin.com/5ff4BQa5Hi, I managed to solve the errors (kind of) by using this code.
for (var i:int = tower1BulletArray.length - 1; i >= 0; i--)
if (tower1BulletArray.parent)
tower1BulletArray[l].parent.removeChild(tower1BulletArray[l]);
tower1BulletArray.splice(i, 1);
However, the problem still persists that the bullets stay in the screen after I change the scene. Any solution? Thanks! -
Calling COM object from an Applet
Hi,
Can an applet communicate with Microsoft COM object?
ThanxCheck out some software called JIntegra (commercial). Also, I think there used to be some sun stuff... but it got dropped... and then got picked up again... but I don't know what the status is on it.
-
How to call Java Objects from ESB?
I don't know whether its possible but if there is a way please let me know I'd really appreciate.
I'm sending message to the JMS queue and I've created JMS adapter that I expect to be triggered when message gets into the queue. The message is an xml file that I read and look up some values that are Java classes and methods that I want to call. So how do I configure ESB to call Java Classes. I tried to look at the routing rules.
RegardsYou could create the wsdl yourself and instead of the soap:binding use the java:binding
not sure if this works...just a guess. -
Is it possible to call COM objects from ABAP?
Hi guys, is it possible?
Can you also provide me a little sample code?
Thanx a lot!
PeterI think OLE is possible through ABAP
as in
INCLUDE OLE2INCL.
DATA EXCEL TYPE OLE2_OBJECT.
CREATE OBJECT EXCEL 'Excel.Application'.
FREE OBJECT EXCEL.
i dnt know much about COM ..
there maybe somthing similar to this
hope this helps
Award forum points to helpful answers -
Calling NI objects from aa Afx thread
Hi,
I have a Dialog class in Visual c++ 2003 "TESTDlg.h and TestDlg.cpp"
In TestDlg.h i have publikc members:
public:
CNiButton m_nbool1;
CNiButton m_nbool2;
CNiButton m_nbool3;
CNiButton m_nbool4;
CNiButton m_nbool5;
in TestDlg.cpp i have a worker thread: CWinThread* pThread = AfxBeginThread( MyFunc_, this, THREAD_PRIORITY_NORMAL, 0, 0,NULL);
MyFunc function gets the "this" pointer and obtains a reference to the Dialog.
I can access all the Public members within TestDlg but the NIButtons(although they are also public)
My code returns with error:
Unhandled exception at 0x7c812a5b in TestDlg.exe: Microsoft C++ exception: NI::CNiOleException @ 0x01bafb54.
How can i fix that?I realise that this is some time ago, but I'm working on a similar project and need some MFC assistance.
I've created a DLL with MFC, but I need to use Multithreading to collect some data.
Since all the calls look similar to
_declspec(dllexport) HRESULT __cdecl OpenPort ( unsigned char DeviceID )
return ( m_pBrickInput->OpenDevice ( DeviceID ) );
I haven't had any reason to create any instances of the class.
Now, when I try to do this...
static void StartRead(void)
CBrickApp *MyApp;
MyApp = new (CBrickApp);
MyApp->StartReader();
void CBrickApp:tartReader(void)
CWinThread *pReaderThread;
// this->Data.SetSize(0);
pReaderThread = AfxBeginThread (ReadThread, (void *)this, THREAD_PRIORITY_HIGHEST,
0, 0, NULL );
the MFC Linker complains...
Any suggestions ?
DOK -
Calling a java object from a store procedure
I have written a translation object in java that takes a $en_var in and returns its path.
What I need to do is call that object from a PL/SQL store procedure. All the examples I have seen treat the store procedure as a wrapper around the java object.
But in my store procedure calling the object is only one part of the procedures role:
The store procedure code is :
CREATE OR REPLACE PROCEDURE WRITE_TO_FILE(in_file_name IN VARCHAR, in_en_var IN VARCHAR)
file_handle UTL_FILE.FILE_TYPE;
file_location VARCHAR2(50)
BEGIN
I need to be able to call the javaobject translation here
file_location = translation.translatePath(in_en_var)
file_handle := UTL_FILE.FOPEN(file_location, in_file_name, 'w');
dbms_output.put_line ('input file name opened file name' ||in_file_name ||'-->' ||in_file_location);
UTL_FILE.put_line(file_handle,'Hello Tony);
UTL_FILE.FCLOSE(file_handle);
END WRITE_TO_FILE;
I call the java class method translatePath with a string the en_var which returns the path as a string which is then passed as a parameter to UTL_FILE.FOPEN.
Thanks for any help
TonyNo Longer the problem
-
Invoking COM objects from Weblogic EJB
Hi,
I am searching the BEA site on how best to call COM objects from
a EJB deployed in Weblogic. I find rmi over iiop, articles on ObjectBridge
which are confusing. Is there a sample where a COM method is called
from EJB server ( I only see example the other way round)
Thanks,
Harish.http://www.weblogic.com/docs51/examples/com/examples.com.ServerSideDLLClient.html
This shows use the WebLogic COM compiler to generate and RMI wrapper
around a COM DLL and invoking it remotely. Unfortunately, the example
appears to be a little out-of-date (e.g., it is using the old RMI Naming
style of doing the lookup)...
Be forewarned, WebLogic COM is not supported in WebLogic 6.0 (due to the
inavailability of a Microsoft 1.3 JVM implementation).
Harish wrote:
JIntegra is fine, but I want to know if anybody tried WebLogic-COM.
(Is this the right forum?)
Actually I tried out the 'beeper' sample but still have many doubts.
Robert Patrick <[email protected]> wrote:
JIntegra by Linar (http://www.linar.com).
Harish wrote:
Hi,
I am searching the BEA site on how best to call COMobjects from
a EJB deployed in Weblogic. I find rmi over iiop, articleson ObjectBridge
which are confusing. Is there a sample where a COM methodis called
from EJB server ( I only see example the other way round)
Thanks,
Harish. -
Calling a method in BPM Object from jsp page
hi all,
I try to call a method from BPM Object using <f:invokeUrl >
I change server side method properties to yes.
and then how can i get request and response object inside the BPM method.
Thanks.Thanks for ur response,
But i mention about BPM method inside BPM Object.
i found this inside the documentation.
methodName(Fuego.Net.HttpRequest request, Fuego.Net.HttpResponse response)
i need to match above BPM method and <f:invokeUrl > tag. am i right?
But i don't know how to create method with argument "Fuego.Net.HttpRequest request, Fuego.Net.HttpResponse response" inside BPM Object.
I can't find any place to define method argument inside Oracle BPM studio.
I don't know how to parse argument like "Fuego.Net.HttpRequest request, Fuego.Net.HttpResponse response"
With Regards,
Wai Phyo
Edited by: user8729650 on Sep 9, 2009 7:03 PM
Edited by: user8729650 on Sep 9, 2009 9:20 PM -
Calling (VB)activex object from JSP
Hi,
I am trying to call a ActiveX object from JSP using the ActiveXObject method in javascript. I have a dll filed named LPMSFunctions.dll which is registered and is being passed as an argument to the ActiveXObject method. Below is the code i am trying to execute..
<html>
<head>
<title>Script Example</title>
</head>
<body>
<br><br>
<P align="center">
<form action="" method="post">
<script language="JavaScript">
function comEventOccured()
try{
var myobject;
myobject = new ActiveXObject("LPMSFunctions72.LPFunctions72");
alert("Inside LPMSFunction72");
alert(myobject.GetDocPath());
catch(e)
alert("Error");
</script>
</form>
</body>
</html>When i write the above code and save it as an html file it works fine..the activex object is created and the methods are called , but when i copy the same code to a file and save it as jsp file under webapps folder under tomcat it doesnt work and reports a javascript error with the error being:
Automation server cant create the object at line :
var SSOObj = new ActiveXObject("LPMSFunctions72.LPFunctions72");
Please suggest how can I solve the problem. Your help would be sincerely appreciated.
Thanks
shravanYou want to use the Variant to Data node, wiring in an ActiveX constant configured to the interface type you want.
Brian Tyler
http://detritus.blogs.com/lycangeek -
Displaying image inside iframe
In the servlet,I have an image which is retrieved from database using BufferedOutputStream.I would like to display the same in my JSP iframe.
<iframe name = "myInlineFrame" src ="SiServlet" width="100%" height="300" >
</iframe>
view
The above code opens the image as separate bmp file only not inside the iframe.byte[] bytearray = new byte[1048576];
int length;
BufferedOutputStream output = new BufferedOutputStream(response.getOutputStream(), 1048576);
BufferedInputStream input = null;
response.reset();
response.setBufferSize(1048576);
response.setContentType("application/plain");
response.setContentLength(bytearray.length);
response.setHeader("Content-Disposition","inline;filename=x.bmp");
psmnt = con.prepareStatement("SELECT query to retrieve varbinary data from DB");
rs = psmnt.executeQuery();
while (rs.next()) {
input = new BufferedInputStream(rs.getBinaryStream(1), 1048576);
while ((length = input.read(bytearray)) > 0) {
output.write(bytearray, 0, length);
output.flush();
Maybe you are looking for
-
Need Help: Query Designer
Hi experts, In Query designer, is it possible to create an IF statement for "IRRATIONAL NUMBERS"? Lets say 10.03, 1.26, 3.1 and so on... The statement would be as follow: If Val1==N.x then 0 else Val1. To summary, if the value is N.x (N for rational
-
Strange caching error in exporting a report to csv (AppEx v2.0)
We have just upgraded to v2.0. I am experiencing a problem exporting a report to a csv file. I don't recall this problem in v1.6. What happens is that what gets exported is not the report that is on the screen. I have a report that employs a simple o
-
First Generation Apple TVs Unable to Connect to iTunes - Is anyone else po'd about this?
-
Abap-Hr : Calculate actual basic pay earned
Dear Experts, I am new to ABAP HR... my requirement is : I want the actual basic pay earned ( after L.O.P ) by an employee for a particular month, we view the actual basic pay earned in PAY_RESULT. Regards Karthik
-
Problems with mouse buttons after update
In recent days, for no apparent reason, I am experiencing problems with the mouse. The right button is set to right-click does not work and the role of the side buttons have also changed. A friend who also has a similar iMac is experienced problems f