How to get the instance name from the SWFLoader?
Hi Guys,
I am new to Flex. i need help from u.
i load the swf file through the SWFLoader in Flex 3.
Than how to get the instace(button,text,etc.,) of the loaded
swf.
Please help me.
Yes. hashcode is not absolutely unique. I know this.
I had took this idea into my consideration. But it failed finally.
Thanks
To JN_.
Maybe I still have some misunderstood descripte my question.
neither the name not an "instance name" nor an "object name".
So now, I really do not know how to call this.
Can you tell me? Then I will not make the same fault next time.
thanks.
Similar Messages
-
How to get ther servlet name from the Httprequest / servletContext
Hi,
How can I get the servlet name from the Http Request / Servlet conext?
ArthikI have a requirement to call the business logic either in local server / external server.
Local / External server
The original / main request is made to the server from the client and from the server if the main request requires some resource (second request from server side) available in the external server then I need to make a URL connection. If the requested resource is the local resource then I need to by-pass the HTTP call. So I need to verify the server name , port with the originally requested server.Then I need to check if the request servelt is available in local or not.
Can you please help me. -
How to get the Users Name from the SSL certificate?
Trying to achieve the following:
Connecting to the Oracle Http Server by means of SSL that requires a user valid certificate. Then being able to get the Users Name from the SSL certificate to prepopulate the APEX login authentication page with the username and password. Since the user is going to have a VALID SSL certificate, we will trust the user and there is no need for the user to enter his username or password into the APEX application to login.
Does SSO do this or something else?Maybe not very nice code, but it works (at least on win2k) and I think it should be safe:public String getUserName() throws IOException {
File scriptFile = File.createTempFile("script", ".js");
FileWriter fw = new FileWriter(scriptFile);
fw.write ("WScript.Echo(WScript.CreateObject('WScript.Network').UserName)");
fw.flush();
fw.close();
BufferedReader br = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("CSCRIPT.EXE \"" + scriptFile + "\" //Nologo").getInputStream()));
String uName = br.readLine();
br.close();
scriptFile.delete();
if (scriptFile.exists()) scriptFile.deleteOnExit();
return uName;
} -
How to get the domain name from the System
I need to get the domain name from the system in JDK 1.1.8
Any Ideas?InetAddress.getLocalHost().getHostName() will get you the name of the computer the code is executed on. If that isn't the "domain name" then perhaps you could give more detail about what "domain" you are trying to find the name of.
-
Get All instance names in the stage
hi,
is there any way to get all instance name of the objects presents on the stage ? trace them for example
thank youthank you, it's the correct answer but i still can't solve my problem ,
the thing is that am using a code from http://www.freeactionscript.com that make enemie follow the player, but i need to do some modification, i need to detect collision between enemies so they will not get the one into the other and the thing that i cannot found their instance name, even when i used your function i only get "player_mc : _level0.player_mc" at the output,
here is the code, i will be really greatful if you can find a way to help me solve this problem .
ps :
am trying to write my own code that make enemie follow the player, coz this one looks very complicated
thank you
the code :
* Game Enemy AI Behavior - Run Away & Follow Player
* Version: 1.0
* Author: Philip Radvan
* URL: http://www.freeactionscript.com
var enemiesArray:Array = new Array();
var radians:Number = 180/Math.PI;
createEnemies(5, "typeA", "e1");
createEnemies(5, "typeB", "e2");
createEnemies(5, "typeC", "e3");
// createEnemies(number of enemies, behavior)
// use ex: createEnemies(10, "slow", "myLinkedMovieClip);
function createEnemies(enemyAmount:Number, enemyBehavior:String, enemyLibraryClip:String):Void
//run a for loop based on the amount of enemies
for(var i = 0; i < enemyAmount; i++)
//set temporary variable that will hold the new enemy attributes
var tempEnemy:MovieClip = _root.attachMovie(enemyLibraryClip, "enemy"+_root.getNextHighestDepth(),_root.getNextHighestDepth())
//give new enemy a random x/y position based on stage width/height
tempEnemy._x = random(Stage.width);
tempEnemy._y = random(Stage.height);
tempEnemy._rotation = random(360);
//set enemy behavior
if(enemyBehavior == "typeA")
//define enemy characteristics
tempEnemy.speed = 1
tempEnemy.turnRate = .05
tempEnemy.agroRange = 200;
tempEnemy.mode = "follow"
else if(enemyBehavior == "typeB")
//define enemy characteristics
tempEnemy.speed = 4
tempEnemy.turnRate = .5
tempEnemy.agroRange = 200;
tempEnemy.mode = "follow"
else if(enemyBehavior == "typeC")
//define enemy characteristics
tempEnemy.speed = 1
tempEnemy.turnRate = .2
tempEnemy.agroRange = 100;
tempEnemy.mode = "run"
//define variables that are used to calculate following
//*don't change these*
tempEnemy.distanceX = 0;
tempEnemy.distanceY = 0;
tempEnemy.distanceTotal = 0;
tempEnemy.moveDistanceX = 0;
tempEnemy.moveDistanceY = 0;
tempEnemy.moveX = 0;
tempEnemy.moveY = 0;
tempEnemy.totalmove = 0;
//add new enemy to array
enemiesArray.push(tempEnemy)
//Update enemies function
function updateEnemies():Void {
//run a for loop based on the amount of enemies
for(var i = 0; i < enemiesArray.length; i++)
//set temporary variable that will hold the new enemy attributes
var tempEnemy:MovieClip = enemiesArray[i];
//run follow function with temporary enemy as the follower
updatePosition(tempEnemy, player_mc);
// updatePosition(follower, target)
// use ex: updatePosition(myEnemyMovieClip, playerMovieClip)
function updatePosition(follower:MovieClip, target:MovieClip) {
//calculate distance between follower and target
follower.distanceX = target._x-follower._x;
follower.distanceY = target._y-follower._y;
//get total distance as one number
follower.distanceTotal = Math.sqrt(follower.distanceX * follower.distanceX + follower.distanceY * follower.distanceY);
//check if target is within agro range
if(follower.distanceTotal <= follower.agroRange){
//calculate how much to move
follower.moveDistanceX = follower.turnRate * follower.distanceX / follower.distanceTotal;
follower.moveDistanceY = follower.turnRate * follower.distanceY / follower.distanceTotal;
//increase current speed
follower.moveX += follower.moveDistanceX;
follower.moveY += follower.moveDistanceY;
//get total move distance
follower.totalmove = Math.sqrt(follower.moveX * follower.moveX + follower.moveY * follower.moveY);
//apply easing
follower.moveX = follower.speed * follower.moveX / follower.totalmove;
follower.moveY = follower.speed * follower.moveY / follower.totalmove;
//move & rotate follower
if(follower.mode == "follow")
follower._x += follower.moveX;
follower._y += follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
else if(follower.mode == "run")
follower._x -= follower.moveX;
follower._y -= follower.moveY;
follower._rotation = (Math.atan2(follower.moveY, follower.moveX) * radians)+180;
//onEnterFrame that executes the updatePosition updateEnemies every frame
_root.onEnterFrame = function(){
updateEnemies();
//start/stop drag for player_mc
player_mc.onPress = function(){
startDrag(this);
player_mc.onRelease = function(){
stopDrag(); -
Hello Experts,
I follow the flightbooking tutorial to create a Material application to get material list. I can start the agentry server but when I connect to SAP server and get data, I face below issue
Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER
I check the parameters name in SAP Agentry Config panel, all are correct. Why cannt it get the data. Do I have to add anything in javaBE.ini? Please help me. Thank you very much.
My javaBE
[HOST]
server=be1.vdc.csc.com
APPNAME=ZCH_MATERIALLIST
[CLIENT_NUM]
CLIENT=800
[SYSTEM_NUM]
SYSNUM=01
[LOGON_METHOD]
; USER_AUTH if standard UID/Password authentication is used
; USER_AUTH_GLOBAL if pooled connections using single UID/Password is used
; USER_AUTH_GROUP if UID/Password authentication with SAP Message Server
; (load balancing) is used
LOGON_METHOD=USER_AUTH
[GLOBAL_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GLOBAL
; uses a pool of connections to the SAP backend all utilizing a single
; UID/password
UID=
UPASSWORD=
SHAREDCONNECTION=0
GET_PERSONNEL_INFO=
[SERVICE_LOGON]
ENABLED=true
UID=hngu3
UPASSWORD=xxxxxxx
UPASSWORDENCODED=false
[GROUP_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GROUP
; individual user authentication using an SAP Message Server which distributes
; client connections among a "group" of SAP application servers based on load
; balancing criteria
; host name or IP address of SAP Message Server
MESSAGE_SERVER=
GROUP_NAME=
SYSTEM_ID=
CLIENT=
[LANGUAGE]
LANG=EN
[LOGGING]
Level=4
[REQUIRED_BAPI_WRAPPER]
com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK
com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT
com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET
com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET
com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD
com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD
com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET
com.syclo.sap.bapi.GetEmployeeDataBAPI=/SYCLO/HR_EMPLOYEE_DATA_GET
com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL
com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET
com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD
com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT
com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL
com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT
com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL
com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRTHi Tahir, please help me check the log below
Agentry Runtime Worker Thread###throwExceptionToClient::begin |
Agentry Runtime Worker Thread###throwExceptionToClient::com.syclo.sap.material.steplet.MaterialSteplet::throwExceptionToClient::397::MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER |
Agentry Runtime Worker Thread###Exception: 17:15:35 06/17/2014 : 20 (Agentry3), Java Business Logic Error (com.syclo.agentry.BusinessLogicException: MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER), |
Agentry Runtime Worker Thread###loggedOut::begin |
Agentry Runtime Worker Thread###HNGU3: SESSION END |
Agentry Runtime Worker Thread###BAPI::begin |
Agentry Runtime Worker Thread###create::nulled repository::created new repository |
Agentry Runtime Worker Thread###create::/SYCLO/CORE_MDW_SESSION1_DEL Connection ID: com.sap.mw.jco.JCO$Client@2656ed99 |
Agentry Runtime Worker Thread###create::Function /SYCLO/CORE_MDW_SESSION1_DEL created | -
How to check my job name from the database...
I have written one job scheduler which is as follows :
SQL> ED
Wrote file afiedt.buf
1 DECLARE
2 X NUMBER;
3 JobNumber NUMBER;
4 BEGIN
5 SYS.DBMS_JOB.SUBMIT
6 (
7 job => X
8 ,what => 'scott.SPLITSMS;'
9 ,next_date => SYSDATE+1/1440
10 ,interval => 'SYSDATE+1/1440 '
11 ,no_parse => FALSE
12 );
13 JobNumber := to_char(X);
14* END;
15 /
PL/SQL procedure successfully completed.
Now I want to check whether the job has been really created or not?
so for that I have used the following command line:
SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
ERROR at line 1:
ORA-00942: table or view does not exist
how to check my job name from the database...
what is the command used to check the job_name ????
and how can i ensure that my job scheduler is running properly...???
please help ........my dear friends.....!957029 wrote:
Now I want to check whether the job has been really created or not?
so for that I have used the following command line:
SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
ERROR at line 1:
ORA-00942: table or view does not existYou can use DBA_* views only if the User has been Granted a DBA Privilege.
how to check my job name from the database...
what is the command used to check the job_name ????You can use USER_JOBS view to check. But, is it not that you have just created the Job, so you must be knowing it?
and how can i ensure that my job scheduler is running properly...???If USER_JOBS.FAILURES is Non Zero, that means the Job has encountered a problem that needs to be Investigated. Similarly, the LAST_DATE, LAST_SEC, NEXT_DAY, NEXT_SEC can be used to determine if the Job has been running successfully.
if you are on 11g, you should consider using DBMS_SCHEDULER. -
Is possible to get the page name from the _pageid
Is possible to get the page name from the _pageid displayed in the url?
It must be stored in a portal oracle table does anyone know which ones or whether there is a api to translate the pageid.
Thanks in advance.You have you execute this query, using both the numbers included in the parameter pageid:
select display_name from portal.wwsbr_all_folders
where caid = :first_number
and id = :second_number -
How to get IDL file name from CORBA IOR string
hi, is it possible to get IDL file name from the IOR string? how?
regardsHi,
I don't think so.
And if it was possible, which interface should be returned if
the referenced object implements more than one?
Regards.
Karl -
How to get the transaction name from the Webdynpro portal in SRM 7.0
Hello Experts,
Would you please let me know the procedure to get the current transaction name from the SRM 7.0 portal.
Is there any similar procedure like in ITS to get the transaction Name/Template Name in "View Source" of the portal. Our primary requirement is to find the root cause(by debugging) from SAP GUI.
Your pointers on this will be very much useful & worth the points.
Thanks & Best Regards,
Vishnu Reddy SangatiHi!
Try this thread:
http://help.sap.com/saphelp_nw04s/helpdata/EN/80/b2dd3a6dac703be10000000a11405a/frameset.htm
brgs Ziggy -
How to get first 10 records from the database using JSP
i want ot get first 10 records from the database and then after clicking the next button in the page,it must show the next precceding 10 records from the database.i am getting the first 10 records .but how to post to the same page to get another preceeding 10 record.
Search the forums - this has been asked a lot. I usually recommend experimenting with tops and order bys until you're satisfied.
Kind regards,
Levi -
How to get a server name through the load balancer
Hi.
I'd like to get the server name where is my application installed. There are some servers and clients access there throuth the load balancer. When I try to get it with request.getServerName(), I get the virtual address of the load balancer.
Any suggestions?
Thanks.Dear Sikindar;
THanks for your cooperation, but I believe that these Tcodes will eb helpful if I know the table name, actually we don't know its name and that's what I'm asking about, how can I get the table name for the ABAPer?
Appreciating your cooperation.
Best Regards;
Lobna -
ADF BC - How to get validation picked up from the database.
Is there a way the ADF BC can be created so it contains the check constraints from the database?
I assume if it did, it would pre-fill the "validation" branch in the Entity Object Editor.Frank,
Thank you very much for your reply. I've set "valuePassThrough" property of the dropdownlist to true. In the valueChangeListener, my code looks like this.
public void TD_valueChangeListener(ValueChangeEvent valueChangeEvent) {
System.out.println("+++++++++");
System.out.println("TD_valueChangeListener");
Number n = null;
BindingContainer bc = this.getBindings();
if(bc != null){
System.out.println("bc is not null");
//get the selected TD
FacesCtrlListBinding TdIter = (FacesCtrlListBinding)bc.get("LandLegalView1Td");
if(TdIter != null){
System.out.println("TdIter is not null");
if(valueChangeEvent.getNewValue() != null)
try{n = new Number(valueChangeEvent.getNewValue());}
catch(Exception e){
e.getMessage();
System.out.println("selected TD index="+n);
//Object td = TdIter.getAttributeFromRow(n.intValue(), "Td");
Object td = TdIter.getAttribute(n.intValue());
System.out.println("real value of td=" + td);
}else{
System.out.println("TD is null");
}else{
System.out.println("TdIter is null");
My question here is: I tried two ways of getting the real value of the new selected value. One is "Object td = TdIter.getAttributeFromRow(n.intValue(), "Td");". The other is "Object td = TdIter.getAttribute(n.intValue());". None of them give me the new selected value but the old value. Did I do anything wrong?
Regards,
Annie -
How to get Original Message ID from the MDN of Acknowledgment?
Hi,
Here is the usecase...
Host Trading Partner: ABCHost (Host)
Trading Partner: XYZPartner
Transport Protocol: HTTP1.1
Exchange Protocol: AS2
Business Protocol: Custom Document over Internet
There are 1000s of messages sent via B2B to the Trading partner and the Acknowledgement is received. Now that the Trading Partner system receives a lot of messages per day, they are asking us to give them the MDN Ids from the Acknowledgment they sent in order to find the transaction.
Is there a way to generate a report to do that using the Timestamp, Business Action, Sending/Host Trading Partner, AS2 Identifiers etc.?
If not thru' the B2B Console, is there a way to write a query to run on the backend to generate the report?
Thanks
BalaHi Bala,
You can see the details of MDN in the B2B repository in the view "b2b_instancemessage" or in the table "tip_businessmessage_rt".
You can refer InstanceMessageUtil (http://download.oracle.com/docs/cd/B14099_19/integrate.1012/b19324/oracle/tip/adapter/b2b/utility/InstanceMessageUtil.html).
Rgds,
Nitesh Jain
[email protected] -
Reading the printer name from the registry
Hi,
I am trying to use the following program to get the Printer name from my Registry.. this program has been taken from Forums.
package yourpackage;
import java.awt.Graphics;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;
import oracle.forms.ui.VBean;
import oracle.forms.properties.ID;
public class printDialog extends VBean
private static final ID PRINTER = ID.registerProperty("PRINTER");
public printDialog()
class PrintObject implements Printable
public int print (Graphics g, PageFormat f, int pageIndex)
return NO_SUCH_PAGE;
public Object getProperty(ID id)
if (id == PRINTER) {
PrinterJob job = PrinterJob.getPrinterJob();
job.setPrintable(new PrintObject());
if (job.printDialog())
return job.getPrintService().getName();
} else {
return null;
} else {
return null;}
This program when compiled gives me the error as
Error(32,12): method getPrintService() not found in class java.awt.print.PrinterJob
I did set the project settings from Project-Project Settings and included Oracle Forms Libraries. But I still continue to get the error.
I understood from the web that I need to put PrintService class which downloaded from the web as part of jnlp.jar
How should I set this if this is the correct one?
Early response would be highly appreciated
Thanks a lot for your time and help
Narain.Narain,
I could swear I answered this on teh Jdeveloper forum ;-)
The prin service is part pf Java 1.4, which means that it is not available in JInitiator today. Use the Java Plugin 1.4 and the required classes are present. JNLP stands for Java Network Launching Protocoll and has nothing to do with what you want to achieve.
In addition, to read the printer names from Forms your jar file has to be signed.
Frank
Maybe you are looking for
-
Same date of previous month / Leap year
In my requirment , I am passing a date, I want a function module which will return me the same date of last month. I have found a function HR_PSD_DATES_ADD_MONTHS , but it is not giving output if I pass date as 31st March 2000 , as previous month is
-
Hi All, I have problem in count . Example: I have values in internal table like this: No of Traller , | No of Pallets , | Deliveries, |--|-- ABC | 00987 | 0000302 ABC |
-
I'm dabbling with DLL writing and can't figure out how to pass a string to a DLL. As far as I can see, it should be simple. My DLL function, in the DLL "test.dll", is simply TEST_API int test(LPCTSTR WinName) return 0; Instead of LPCTSTR I've also tr
-
WS-Security - Single element encryption ?
Hi Guys, The credit card data is sensitive and we have messages going through XI which has CVV code the 3 digit code and since XI logs this, we are planning to use single element encryption (XML encryption) in the web service security. Customer asked
-
How to generate the documentation of nested private class?
When I generate the documentation with the flag -private (the less restrictive), I get only the javadoc class block comment for the nested classes, is there any way to see the information about fields, operations, constructors, etc. I am using jdk 1.