Finding out the actual Class of an Object

I have an AdvancedDataGrid (ADG) where the top level items
are instances of my custom valueObject Class "State". The second
level items are instances of another custom valueObject Class -
"City". When I select an item in the ADG, I want to know which
Class each item is - "State" or "City". Is there some way to find
this out? I'm not looking for how to capture the event, I'm wanting
to find out if there is some function or utility for finding out
the Class of an Object.
FYI, when I capture the event, and pop an Alert with the
following code...
Alert.show(item.constructor.toString());
...I see either "[class State]" or "[class City]". So, I feel
like I'm close...
Thanks.

This link might be of interest:
http://onrails.org/articles/2007/02/24/flex-introspection-api-describetype-value-xml
http://ajaxandbeyond.blogspot.com/2008/04/object-introspection-in-flex.html
http://livedocs.adobe.com/flex/2/docs/00000460.html#225061
In generally, you might wish to goole for
flex introspection

Similar Messages

  • Finding out the actual text

    Hi,
    How can I find out the actual text stored in
    INCLUDE 200 OBJECT TEXT ID ST.

    Use Read_text  function module.
    ID                                  ST
    LANGUAGE                   EN
    NAME                            200
    OBJECT                         TEXT

  • 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 batch class link of the batch record in the MSC3N

    Hi,
    I would like to know how to pull out the class type and the characteristic value for a batch which is found in MSC3N.
    For example, the following is MSC3N screen showing material (INM000000001724945) and batch (A000001117) tie to batch class “XXXXXXXX”.
    Hence, I would like to know:
    How to pull out the class type and the characteristic value for a batch record which is found in MSC3N? What are the table? The table show in the F1 key is not a table.
    There are two batch classes setup in the system “XXXXXXX” and “YYYYYYY”, my question is why system decides to use the batch class “XXXXXXX”? Where is the system setup to determine this?
    Thanks
    Tuff

    Hi
    The table MCH1 keeps the information about Material, Batch and Internal object no.: Batch classification (CUOBJ_BM).
    The field CUOBJ_BM in MCHA represent the 'Key of object to be classified' (AUSP-OBJEK). The first 18 characters of AUSP-OBJEK.
    In CABN (Characteristic) the field ATINN and ATNAM is important. The link between CABN and AUSP is through ATINN.

  • How to find out the callers class?

    Is it possible to find out whats the callers class from within a method without having the caller to pass a reference to itslef?
    Ako

    There are many posts on the subject. Two things.
    1) Yes it's possible by getting a stacktrace.
    2) No one should ever want to implement this. It perverts the idea of the language.

  • Debug ME22N transaction to find out the message class

    Hi All,
    I want to know the best way of debugging for the following process:
    Create ME22N
    went to item level account assignment and selected the cost center.
    Got an error message in the status bar
    I wanted to find out where the message class is used in the background program
    Any help is appreciated.
    Thanks

    Hi,
    Take the message id and message number from the error message..
    Go to SE91..
    Give ID and display..
    Choose the message number..
    Press the where used list button..It will show all the programs that is using this message number..
    Thanks,
    Naren

  • How do I find out the actual status of my fibre or...

    Hi,
    I am posting here in despair because I cannot get an answer I can understand about why my fibre broadband order has been "delayed". 
    The call centre agents who ring me are not English and all they can do is repeat the same 5 sentences over and over again. 
    Apparently, there is no technical department that I can speak to either which means I am expected to just accept the fact that my order is "delayed" and be happy about it.
    My story is this.
    I placed my order with BT on the 12th of July and was assured that:
    - I could get fibre
    - My phone line would be activated by midnight on the 23rd July
    - An engineer would attend my property on the 24th July to install my fibre broadband
    I was very happy and booked the 24th off work.
    Then, two days ago, a person who I could barely understand because of a very thick accent told me that there was a"delay". 
    What delay I asked? 
    I was then told they would not know when I can have fibre until my phone line is activated. 
    Why I asked?  What has my phone line got to do with it?  If you know which exchange I am going to, why does my phone line have to be active before I can be told when an engineer can attend my property?
    I got absolutely no joy with getting an answer to this question.  Also, ominously, the agent mentioned something about there not being enough "slots at my exchange".  I asked when they were getting more.  At which point the guy repeated what he had said previously about there being a delay.
    My questions are very, very simple.
    When I placed my order, the sales person told me I could get fibre.  But, if there are not enough slots at my exchange then obviously I can't get fibre.  So which is it?  Can I get fibre or not?
    Regardless of whether or not I can get fibre, why can't BT tell me one way or the other now?  Why do I have to wait until my phone line is activated before they can tell me if fibre is support or not?
    Why can't BT tell me when they will be getting more "slots" if this is indeed why my order is "deleyed"?
    Assuming that I can get fibre (which should be a fair assumption or BT should not have taken my order in the first place) and assuming that my phoneline activates as planned, why can't BT leave my booking for an engineer for the 24th?  Why have they cancelled my booking and why are they now making me wait until my phone line is active before making a new booking?
    And finally, why can't anyone at BT actually give me any facts?  Either I can get fibre or I can't.  If there are not enough slots, then when are BT installing new ones?  Why should I be expected to wait around until the 24th for a magic date that may or may not materialise?  What kind of shop are BT running where a customer can place an order and be givein no idea whatsoever of when that order will be fulfilled?
    Perhaps someone on this forum knows how the technical details work and can explain what is going on? 
    Or maybe someone can advise me on how to gain answers to my questions from BT themselves?
    Or maybe a BT representative could respond regarding why their order management team can't explain to a customer why their order has been delayed?
    At this moment in time I wish I had never signed up with them.
    Kind regards,
    Jean Milne

    I understand that an active phone line is required before the engineer can install my fibre.
    What I don't understand is why BT will only place the order for my fibre engineer on the date they say my phone line will activate.
    They have said my phone line will be activated "by midnight on the 23rd". 
    Therefore, there is *no reason* why BT should not leave the original engineer date of the 24th as it was.
    *If*, for whetever reason, the phone line does not activate on the 23rd as planned, *only then* should they cancel my engineer.
    Instead, they have cancelled my order already and will not re-issue it until my phone line is activated.
    And on top of that they have no idea how long the order will take once they do place it.  I am expected to sit here twiddling my thumbs until BT deign to bother to give me a date.
    And this is all aside from the fact that the sales person *lied* to me when he said I could have both my phone line and my broadband on the same day.  I *specifically* checked this with him at the time I placed my order. I told him that I need broadband as soon as possible or I can't do my job and I was assured that there would be no problems.
    And, this is all assuming there is not a fundamental reason that BT have kept hidden about why my order is delayed e..g. not enough slots at the exchange.  One of the agents I spoke to said that and then back-tracked big-time when I asked why my order had been taken if BT did not have the infrastructure to fulfil it.
    All in all, the lies and the lack of information is completely unacceptable.
    I have had no response to my requests for *actual facts* from the so-called Order Management Team which is also unacceptable.
    I am left with no option but to sit here twiddling my thumbs waiting for BT to maybe or maybe not give me a date.
    Any other comapny that operated in this way would not be able to retain me as a customer but, unfortunately, in this case I have no choice but to suck up the bull BT are selling because they are the only company that can give me fibre.
    It is beyond a joke.
    At the very least, BT should have offered set up ADSL for free in the interim for utterly messing me around.
    They have offered *nothing* except a measly text message stating that they "will be in touch".
    It is a disgrace.

  • Urgent: How to find out the size in bytes of java object

    Hi Experts,
    We've a requirement that we need to find out the size of a java object at run time, is there a direct java API to get the size of a composite object in memory?
    Here is my requirement: We are adding string objects (which is an xml string of considerable size) into a List. After reaching certain size limit (lets say 5MB) of the list i need to put this data into DB as a CLOB. So every time I add a string object to the list, I need to see if the total size of the list exceeds the limit and if yes, flush the results into DB.
    I am not sure if java has a direct API for this, if not what is the beast way to do it, it s critical requirement for us.
    It would be really great if someone could help us out.
    Thank you,
    -Shibu.

    >
    We've a requirement that we need to find out the size of a java object at run time, is there a direct java API to get the size of a composite object in memory?
    Here is my requirement: We are adding string objects (which is an xml string of considerable size) into a List. After reaching certain size limit (lets say 5MB) of the list i need to put this data into DB as a CLOB. So every time I add a string object to the list, I need to see if the total size of the list exceeds the limit and if yes, flush the results into DB.
    I am not sure if java has a direct API for this, if not what is the beast way to do it, it s critical requirement for us.
    It would be really great if someone could help us out.
    >
    Could you explain your actual requirement a little more fully.
    1. Is each individual string a separate XML string? Or is it just a fragment? Why would you just concatenate them together into a CLOB? That won't produce valid XML and it won't let you easily separate the pieces again later. So provide a simple example showing some strings and how you need to manipulate them.
    2. Are you using these xml strings in Java at all? Or are you just loading them into the database?
    For example if you are just loading them into the database you don't need to create a list. Just create a CLOB in Java and append each string to the CLOB. Before you append each one you can check to see if the new string will put you over your length limit. If it will then you write the CLOB to the database, empty the CLOB and start appending again to the new clob instance.
    If you explain what you are really trying to do we might be able to suggest some better ways to do it.

  • How to find out the parameter type of a parameterized object?

    Hi,
    I've got a list containing instances of a parameterized class. The parameters of the instances can be different. When using the instances, I need to know the types of the parameters. How can I find them out?
    Regards,
    Frank

    Look at the first item in the List and see what it is?
    I'm not trying to be funny. Generic information is compile time only, the types of the parameters are not generally available at run time.
    You can find out the bounds on the types, if any, but not the actual types.
    AndyT

  • How to find out the properties of a field's/object's?

    Hello
    I have field (say, its name is field_1) in my_form and  i am coloring yellow by using below code of initialization event:
    this.ui.oneOfChild.border.fill.color.value = "255,255,191"; (Actually, just for differentiating / tracing back purpose here  am assigning this yellow color to this field, you can suggest me any thing else that marks / tags this field (i can not populate a value, bcz its visible to user), so that in the  CHANGE event of this field, again i want to check/get/know that whether this field is tagged/marked or not)
    fine. But, because of some/below reason, i need to find out its color by using JavaScript, pls. let me know how to figure out its color is as yellow by using JavaScrit?
    Reason: If field_1's color is YELLOW (or you suggested any tag/mark as said in the above in red text), then i have to make HIDE the field_2
    Field_0's position is extreme left, Field_1's  position is middle and the Field_2's position is exterme right of the page.
    I guess, i hv only one option of finding out color, hence am looking forward for JavaScript to find out the color of a field in question
    (OR)
    Also, pls. let me know the JavaScript that How can i make HIDE a check box for that COMLETE session (i mean, starting from launching the form in the browser until he closes the window/browser/tab/form), i guess, this idea also workes for my requirement, ( i want to put this code in the docReady event) .....no matter/what ever code is existing there in any event of that field level
    Thank you

    The unix file command:
    file *
    foo.doc ms-office file / word
    bar.png png image, 32x32 pixels, no transparency
    moo.hhml html text
    note that as in the last - file names are ignored, it works by checking the beginning of each file's data against it's database, and as in #2 it can sometimes see a lot more than just the file format.
    Don't know of a windows port, you could try cygwin

  • 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,
    lavanya

    HI, 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 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 Regards

    If 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 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 advance

    Hi 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

  • To find out the last row that is updated in a View Object

    Hi OAF Gurus,
    I have requirement like,
    I have to find out the last row that is updated on a particular View Object and I have send a mail to the users about the change.
    JegSAMassMobVOImpl vo = getJegSAMassMobVO1();
    JegSAMassMobVO is the View Object Name and it displays certain rows that has already been added to the VO in the Page.
    Now the issue is when a user updates a particular row,I have to find which row gets updated and have to send a email to that particular employee about the change.
    Just want to know,how to find out the last updated row in a particular VO.
    Any Help would be appreciated as this a immediate requirement.
    Regards,
    Magesh.M.K.
    Edited by: user1393742 on May 4, 2011 1:06 AM

    Hi Magesh
    It shoud be a Advanced table ,so when user will update the row ,the specific row will fire the PPR and on that event u can capture the row using row reference ,this is the sample code below
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean); OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if ("<ItemPPREventName>").equals(event))
    // Get the identifier of the PPR event source row
    String rowReference =
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] parameters = { rowReference };
    // Pass the rowReference to a "handler" method in the application module.
    262
    am.invokeMethod("<handleSomeEvent>", parameters);
    In your application module's "handler" method, add the following code to access the source row:
    OARow row = (OARow)findRowByRef(rowReference);
    if (row != null)
    Thanks
    Pratap

Maybe you are looking for

  • IWeb using spaces instead of _'s between words in titles stopping uploading

    Had major problems with iWeb ever since purchase when first came out. Given up on it til now cos it makes me so mad with not knowing what to do. Please help. My Blog site i've created is at http://uk.geocities.com/blondefishwalker/Site/Site/Welcome.h

  • Problem while transporting generic datasource to test box

    Hi Gurus, I am trying to transport Generic datasource from SCM Dev to SCM Test box. Datasource is created with custom table in SCM. It is throwing me RC8. Start of the after-import method RS_ISMP_AFTER_IMPORT for object type(s) ISMP (Activation Mode)

  • Can't uninstall or reinstall Quicktime/Itunes etc.

    I have Vista X64 I recently install itunes and quicktime. Now I want to remove them but it won't let me in control panel. So I manually deleted the folders in program files and did a search for the keywords in regedit and deleted every single referen

  • Adobe XI - Problem!

    Unable to open a 'normal' .pdf document - i.e. via received and/or sent email. Keep receiving message - 'Access denied.'  The only way I'm able to access any .pdf doc is to go into Adobe XI and 'open' each doc there.  I have tried the 'help' section

  • Programmatically Run an RT VI Which Is Saved on Host

    What I would like to do is simple.  I have a PC Host VI and an RT VI which communicate with one another using a Network Stream.  I want to be able to programmatically tell the RT VI to run within my Host VI, so that I can make sure that the network s