Iteration - how to find out if an object is a button?
Using "for (var i in _parent) {}" I'd like to find out all
button objects and call "i.disable()". However, I have the problem
to be unable to tell if any "i" is a button, because instanceof
does not work, and all other methods I tried, including simply
adding "if (i.enabled != undefined)" only resulted in compile
errors.
Help appreciated...
SOLVED - of course I have to use _parent
in the loop instead of just "i", which is only a
string.
Similar Messages
-
How to find out if an object belongs to young or tenured generation
Hi,
Working on an internal memory analysis tool (to embed in an application), and I wonder if anyone knows how to find out what part of the heap an object belongs to (young, tenured, permanent etc.). Since tools like VisualGC (both for JDK 1.4 and 1.5) seem to be able to discern between the objects in the heap, there must be a way to figure it out. Is there an API in JNI, JVMTI or JVMPI or anything else that provides this info?
Thanks,
LucIn Java 1.5 the Monitoring & Management API can tell you this. See J2SE 5.0 in a Nutshell
-
How to find out the Referenced objects ?
Hi all,
I want to find out the referenced objects
Example : Table Name is Customer
I want to know what are the procedures,functions,packages used that customer table. Please provide that sql Query.
Thanks and RegardsIf this is not what you want, please give us a test case with input and expected output:
SQL>
SQL> drop table cust;
Table dropped.
SQL> drop procedure proc1;
Procedure dropped.
SQL> drop procedure proc2;
Procedure dropped.
SQL> drop procedure proc3;
Procedure dropped.
SQL>
SQL> create table cust(x int);
Table created.
SQL>
SQL> create procedure proc1
2 is
3 begin
4 update cust set x = x + 1;
5 end;
6 /
Procedure created.
SQL> show errors
No errors.
SQL>
SQL> create procedure proc2
2 is
3 begin
4 delete cust;
5 end;
6 /
Procedure created.
SQL> show errors
No errors.
SQL>
SQL> create procedure proc3
2 is
3 begin
4 insert into cust values(0);
5 end;
6 /
Procedure created.
SQL> show errors
No errors.
SQL>
SQL> select name, type
2 from all_dependencies
3 where
4 type ='PROCEDURE'
5 and referenced_name = 'CUST'
6 and referenced_type = 'TABLE';
NAME TYPE
PROC1 PROCEDURE
PROC2 PROCEDURE
PROC3 PROCEDURE
SQL> exit -
How to find out the overlapping object?
Is it possible to find out wheather one pathItem which not in horizontal and vertical position be overlaped or touched any other items like pathitems,textframes etc. in illustrator cs3 active document.
I got the top, left, right and bottom values of the bounding box for every items. From that i got the overlap of bounding boxes. But i don't know how to find out one pathItem overlaped (or) touched any other items. Kindly advice me the possibilities. I have attached the sample file for review.
Thanks in advance.You always can copy your art and implement "Intersect" in Pathfinder
using sAIActionManager->PlayActionEvent(...).
Then check if remained art != nil. -
How to find out if an object is already saved in a transport request
Hi all,
Does anyone know a function module or a class using which I can find out if a development object(class. interface etc.) is already processed and saved in an open transport request in my system?
Thanks in advance
SükrüHi Sükrü
You can read the table E071 with the object id and get the transport request number. Use this transport request and read the table E070, the field "TRSTATUS" will give the status whether the object is locked or released.
Hope this helps !
Regards
Ranganath
PS : Reward points if found useful ! -
How to find out the Gradient Object Information?
Is it possible to find out wheather the textframe contains "gradient object" or not through programmatically(Vbscript or javascript). Kindly advice me, also please provide any examples.
If I have correctly understood question, then it easy:
that is on VBS:
Dim objFSO 'As FileSystemObject
Dim objTextFile 'As Object
Set appRef = CreateObject("Illustrator.Application")
Set mydoc = appRef.ActiveDocument
myselection = mydoc.Selection
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile("c:\color.txt", True)
For Each ch In myselection(0).Characters
Select Case mydoc.DocumentColorSpace
Case aiDocumentCMYKColor
c = Round(ch.CharacterAttributes.FillColor.Cyan, 2)
m = Round(ch.CharacterAttributes.FillColor.Magenta, 2)
y = Round(ch.CharacterAttributes.FillColor.Yellow, 2)
bk = Round(ch.CharacterAttributes.FillColor.Black, 2)
objTextFile.Write ("C=" & c & " : " & "M=" & m & " : " & "Y=" & y & " : " & "B=" & bk & chr(10) & chr (13))
Case aiDocumentRGBColor
r = Round(ch.CharacterAttributes.FillColor.Red, 2)
g = Round(ch.CharacterAttributes.FillColor.Green, 2)
be = Round(ch.CharacterAttributes.FillColor.Blue, 2)
objTextFile.Write ("R=" & r & " : " & "G=" & g & " : " & "B=" & be & chr(10) & chr (13))
End Select
Next
objTextFile.Close
script create txt file on C: and write a color of every character in selected frame -
How to find out size of objects
hi, i need to draw a few objects in PS - a few rectangles and circles, and i need to draw them with precise size - width and height, but i dont know where i can find some information about their width and height (in cm or mm). once i draw them, there's nothing about their size in the panel or properties. thanks
A way to measure pretty much anything is to select the Ruler tool, then drag from one side to the other...
Once you've set the endpoints, you can read the results near the top of the Photoshop main window. It will read out in whatever units you've set in Edit - Preferences - Units & Rulers
-Noel -
How to find out whether an object can be converted into a Long?
Hi,
I am facing a problem which can be summarized by the following. Let's imagine the following method:
public static int MyCompare(Object anyObj) throws Exception {
Long X = new Long(3);
if (anyObj "can be converted into a Long") {
Long MyConv = anyObj;
return X.compareTo(MyConv);
} else {
throw new Exception("No success");
}My issues are i) that I don't know how to write the proper test to check whether the anyObj parameter can be conveted into a Long and ii) How do I convert anyObj into a Long properly?
The method should not return an Exception in the following cases:
int a1 = 33;
long a2 = 44;
MyCompare(a1);
MyCompare(a2);Can anyone help? Thanks !
J.Hi,
I have tried to test the suggestion with the following code:
public class MainLong {
public static void main(String[] args) {
int i = 33;
long j = 44;
Long k = new Long(55);
String l = "Trulu";
System.out.println(MyCompare(i));
System.out.println(MyCompare(j));
System.out.println(MyCompare(k));
System.out.println(MyCompare(l));
public static int MyCompare(Object inObj) {
Long Dummy = new Long(30);
if (inObj instanceof Long) {
Long Temp = (Long) inObj;
return Dummy.compareTo(Temp);
} else {
return Integer.MIN_VALUE;
}and I got the following output:
-2147483648
-1
-1
-2147483648which is all fine except for the call with an int, it should return -1.
The above are example of objects which can be passed as a parameter to the function. I bet I should test for (anyObj instanceof INTEGER), correct?
Thanks,
J. -
How to find out which objects are at the end of the datafiles
My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
For that how to find out which objects are at the end of the datafiles.>
My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
For that how to find out which objects are at the end of the datafiles.
>
You may want to copy this and add it to your toolkit
See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/ -
How to find out prerequisites of archiving objects?
As we plan an archiving project for our ERP system, I would like to know how to find out the prerequisites for archiving the different objects.
For example, as I know for archiving material master data, the usage of object MM_MATNR requires that the deletion flag is set on materials.
Or as I assume, orders probably can only be archived if they are delivered and closed.
How to find out these prerequisites?
Best regards
MartinHi Martin,
Network Graphics helps in determining the dependencies among the archiving objects.Once you have sorted out the flow you can schedule archiving in test mode to find more details.
Eg PP_ORDER you can find out why a particular order is not archivable...may be cos of unsettled balance..etc.
You can find few details about the prerequisites in the archiving run (test)
Hope this helps.
Thanks,
Priya. -
How to find out the PATTERN, GRADIENT and BRUSHED objects?
How to find out the PATTERN, GRADIENT and BRUSHED objects information in illustrator active document file. And also how to find the CMYK and RGB color information in illustrator file through javascript. Could you please provide any examples.
I tried using the below code. But for both "cmyk" and "grayscale" pattern it gives only CMYK. Kindly check and advise.
Code:
var docRef = activeDocument;
for(var i=docRef.inkList.length-1;i>=0;i--){
var inkRef=docRef.inkList[i];
var inkRefName=inkRef.name;
alert(inkRefName);
alert(inkRef.inkInfo.kind);
Thanks for looking into this. -
How to find out the Number range object for Incident number
How to find out the Number range object for Incident number ?
CCIHT_IAL-IALID
regards,
lavanyaHI, an example.
data: vl_num type i,
vl_char(6) type c,
vl_qty type INRI-QUANTITY,
vl_rc type INRI-RETURNCODE.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = '01'
OBJECT = 'ZRG0000001'
QUANTITY = '1'
SUBOBJECT = ' '
TOYEAR = '0000'
IGNORE_BUFFER = ' '
IMPORTING
NUMBER = vl_num
QUANTITY = vl_qty
RETURNCODE = vl_rc
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
vl_char = vl_num.
write vl_char.
Regard -
How to find out the object and tables that belong to it
Do you know how to find out which tables belong to which object in trans. BD66, I have a CABN table but i donot the object name so how i can find out that??
Hi,
Wht object u r taking about .if it's a transport object,
Go to Utilities -> Versions -> Version Mgt ->
The latest one which is active, is the one u have to transport .
Rgds ,
J
Do Award pts by cliking the left-hand side of this info. -
How to find out the object is available or not in BC
Hi dear friends,
Suppose I want to design/create a Cube / ODS, before going to create that object, how to find out the same type of Object is available or not in BC with the specification which I want
Thanks in advanceHi Paul,
at least you need to know the application you are talking about. Then you can goto that particular area and evaluate the content (cubes, infoobjects, infosources, datasources). It will surely give you an idea of the fulfilment of your requirements by the content.
Siggi -
How to find out Locks on the database objects
how to find out Locks on the database objects
The following notes should be helpful:
Note: 200590.1 - bde_session_locks.sql - Locks for given Session ID
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=200590.1
Note: 1039273.6 - SCRIPT: VIEWING LOCKS ON OBJECTS HELD BY SPECIFIC USER
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1039273.6
You can also search Metalink, there are many notes/scripts published there which would be also helpful.
Maybe you are looking for
-
Export to Excel in Web Analysis
We are in the process of upgrading to Web Analysis (and the rest of the products for that matter) 11G and we're having an issue when someone tries to export to excel. It pops up and wants the user to drill down to excel.exe so it can launch excel and
-
Performanc​e issues with GOOP
I would like to use GOOP in my next application development. Does anyone know if there is known performance issues I should be aware of?
-
Automatic Reservation from Maintenance Order
Hi, I have a problem. Generally from Maintenance Order type PM01 under Order Category 30, when we give some materials requirement, SAP automatically generate reservation for those materials and take the GL as Consumable Item. But in my case, that GL
-
Tips for downloading Flash Player to Macbook Pro?
I cannot seem to download Flash Player to my new Macbook Pro. Does anyone have any tips?
-
Itunes has stopped my cd and dvd drives from being recognised
once i installed i tune onto my computer both my disc drives disapeared from "my computer". Does anyone know about this and can anyone help me as my computer is not much use without these drives. I ran the cd diagnostics in itunes and here are the re