How to add a reference to an Object?

In a particular class, how can we create a reference to an object created in a different class?

Have that "different" class provide that reference, possibly as the result of calling a method in that "different" class.

Similar Messages

  • How to add some reference into naming/ejb service?

    are there some ways to add some reference into naming/ejb service for them to visit my library/interface/service.
    thanks for your reply.

    I am not sure of what you are asking, can you elaborate please?
    Check out the "Application Reference" concept at <a href="http://help.sap.com/saphelp_nw04/helpdata/en/28/c9a3a9606f434ea757a3536d220704/content.htm">Application references</a>
    Regards,
    Kiran

  • How to add assembly reference in Window Universal App project?

    Hello All,
    Thanks for reading my question. I'm migrating a Windows Phone project into the new universal environment, but I'm missing a place to add the assembly reference for the code. One instance that is, I'm using System.Net.Sockets, but it says "Sockets does
    not exists in the namespace 'System.Net' (Are you missing an assembly reference?)". So do the case of Background.
    In the old version, I can add the reference from right click on the "References" from the Solution Explorer, but it is not working in the Universal one.
    Appreciated all your comment and support.
    Vincent

    Hi,
    Visual Studio Unit Testingforum is to resolve visual studio unit tests issues. Your issue is about you can’t
    an assembly reference in universal app after you migrated a windows phone project to an universal environment, it is not in our scope, I suggest you to consult on Windows and Windows Phone apps forum:
    http://social.msdn.microsoft.com/Forums/en-US/home?category=windowsapps for better support.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to add row in multiple view object based on common entity object.

    Hi ,
    I have
    Jdeveloper version - 10.1.3.3.0
    Oracle Database - 11g R2
    I have a situation where i have to show data from one table in three adf tables on jsf page depending on a flag value in a column in table. For this purpose i have done the following steps
    a) Created an entity object on the database table .
    b) Created three view objects on this entity object and edited the view object's SQL and included the where clause
                       WHERE  A.USER_PERSONAL_NO = :P_USER_PERSONAL_NO AND
                           A.AUTH_TYPE = 'LF'
                       The auth_type cloumn decided in which view object the data will be shown
    Now, when i query the data from database by executing the query of these view objects the data is shown correctly in all three view objects. Till here there seems every thing ok
    Now , i have to provide the logic to add records in the adf tables for this i have provided add button in action facet of all three tables which are binded to methods in managed bean,
    when i add a record in a adf table by add button the new row which is created is shown in all three tables . I cant understand why this is happening , please help me to solve this problem.
    How can i make it possible so that the record appears only in that adf table in which the record is added.
    The method for adding record is
                Row rw = currentAM.getWfRecommAuths().createRow();
                rw.setAttribute("UserPersonalNo",this.getQuery_personal_no().getValue());
                rw.setAttribute("AuthPersonalNo","");
                rw.setAttribute("AuthType","LX");
                currentAM.getWfRecommAuths().last();
                currentAM.getWfRecommAuths().insertRow(rw);
               Please help , thanks in advance.

    Hi,
    have a look at polymorphic view objects
    http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/bcadvvo.htm#CEGDCCCB
    Frank

  • How to add a file as an object in Numbers spreadsheet

    In MS Excel one can add any file namely doc, xls, PDF as an object in a spreadsheet......how can we do that in MAC Numbers

    Hi Niranjan,
    In Numbers for Mac,
    Menu > Insert > Choose...
    Navigate to the file that you want to insert.
    You can insert screen shots, PDF documents and photographs. They will become pics (with restricted editing features).
    I can't see a way to insert a doc, xls, Numbers, Pages or any other file type.
    You can Copy from within a document and Paste into Numbers.
    What are you trying to do?
    Regards,
    Ian.

  • How to add an variable to the object name of the arraylist

    Greetings,
    i will like to create an object for arraylist with it name concat with a variable. This is what i mean as show below.
    for i=1; i <8; i++)
    ArrayList list = new ArrayList();
    What i want when it loops, the arrayliost will auto create list1, list 2, list3 and so on until the for loops end. How do i add the variable i to the object name list?
    Thanks

    Do anyone of u mind if let me know hows the code look like?This isn't intended to be an alternative to the previous reply: in fact it's worthless unless you read the information in the link given.
    import java.util.ArrayList;
    import java.util.InputMismatchException;
    import java.util.List;
    import java.util.Random;
    import java.util.Scanner;
    public class ListListEg {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            Random random = new Random();
                // create the mainList outside the for loop
            List<List<Integer>> mainList = new ArrayList<List<Integer>>();
            System.out.print("How many lists would you like? ");
            try {
                int num = in.nextInt();
                if(num <= 0) {
                    System.out.println("Smartass!");
                    System.exit(1);
                    // populate the main list inside the loop
                for(int i = 0; i < num; i++) {
                    mainList.add(new ArrayList<Integer>());
            } catch(InputMismatchException ime) {
                System.out.println("Idiot!");
                System.exit(1);
                // later do stuff with the lists, which you access with get()
            for(int i = 0; i < mainList.size(); i++) {
                for(int times = 0; times < 3; times++) {
                    mainList.get(i).add(random.nextInt());
            System.out.println("The first list is " + mainList.get(0));
            if(mainList.size() > 1) {
                System.out.println("The second list is " + mainList.get(1));
            System.out.println("The last list is " + mainList.get(mainList.size() - 1));
    }(In reality all the action would not take place in one method like this, and the exception handling would be more useful and polite.)

  • How to add JDK reference to JDeveloper Help?

    In older JDeveloper versions I was able to invoke the help window with the API documentation of a class by pressing
    the F1 key while the cursor was somewhere within the class (or variable) name.
    With JDev 903 I am struggling to add the JDK documentation (which actually comes within the JDev ZIP file!). With the cursor
    in the middle of the the word "String" I only get an error message when pressing F1.
    How can I include the JDK reference in JDeveloper?

    [  ] This question is too trivial to be answered.
    [  ] This question is so difficult that no one knows an answer.
    [  ] This question is so confused that no one understands it.
    Please, let me know!
    [X] None of the above - I don't see this problem..
    I unzipped the full distribution (including SDK) into
    a directory. Pressed F1 with the cursor in String and the file:
    \j2se\1.3\docs\api\java\lang\String.html
    was displayed inside the IDE main window.
    Are you doing exactly the same thing?

  • How to get the reference of one object's parent

    hello guys
    i have classA and classB like bellow
    class ClassA{
    public var myVar:String="test";
    public function ClassA()
    new ClassB();
    class ClassB{
    public function ClassB()
    trace("my parent is"+XXX);
    trace("my parent var is"+ XXX["myVar"]);
    suppose XXX in classB is the reference of instance of ClassA.how do i get it?

    Parent/child relationships pertain to display list only. When you instantiate ClassB in ClassA - it becomes a property of the scope where you instantiated it - NOT A CHILD. Note the word "scope" - variable may belong to class or function, etc.
    Instance of a class is totally agnostic to who instantiated it unless you pass a reference of the class that made the instance. Nevertheless, of a class is a DisplayObject, once it is placed on display list - it knows who the parent is.
    Instance can be either property or child or both proeprty and child.

  • How to add a reference to help for a custom tag

    Hello,
    I would like to add an icon (question mark icon) to my custom tag (in tag libraries view). Then, when I press this icon I would like to see some .html page with description of a tag as it is done for a struts tags.
    Is it possible?
    If yes please tell me how to do it.
    Thanks,
    Damian

    There are a variety of customization options available for BEA Workshop. Through metadata you can define renderings for custom tags, tag appearance in the tag libraries view, customize the tag editors, and much more.
    Information about customization can be found at the following link: http://workshopstudio.bea.com/docs/tlei.htm
    Adding custom tag documention to the Tag Libraries view is not currently a configuration option but would be a useful addition. I will file an enchancement request for this functionality.

  • How to add the missing java.lang.object

    hi guies:
    when i build the ui dc, an error occurs. it reminds me that the path is incomplete.the compliation indirectly references the missing type java.lang.object.
    if you once confronted the same problem as me and resolved it ,pls told me.
    thanks a million!

    The JDK is not in path of the DC build.
    Hence you are getting this error.
    Check that correct JDK is pointed in preferences.
    Regards,
    Ashwani Kr Sharma

  • How to add Spin animation to grouped object

    Hello,
    I would like to add a spin animation to a grouped object, but it is not available on the selection list. Is there anyway to overcome this issue? I tried loading the grouped object as an image but still no avail

    Hmmm ... I'd never noticed this before, but now when I try it, I can't either. SPIN is apparently unavailabe as an animation for both grouped objects and images, and I can't think of any way around that. But TWIRL is close - as I'm sure you already discovered. Looks like something you might want to suggest to Apple, at: http://www.apple.com/feedback/keynote.html
    Sorry.

  • How to add a reference to a custom stylesheet from a Team Site wiki page

    We have a Team Site (no publishing feature enabled).  We have several wiki pages where we inserted custom html content via "edit source".  This custom content has some divs defined in it to which we want to apply some styling.  We
    have styles.css saved in Style Library.  How do I reference this style.css from the wiki page?  I don't want to put the style definition on the wiki page itself since the same style will be shared by multiple pages.
    thanks,

    There are a variety of customization options available for BEA Workshop. Through metadata you can define renderings for custom tags, tag appearance in the tag libraries view, customize the tag editors, and much more.
    Information about customization can be found at the following link: http://workshopstudio.bea.com/docs/tlei.htm
    Adding custom tag documention to the Tag Libraries view is not currently a configuration option but would be a useful addition. I will file an enchancement request for this functionality.

  • How to add Web References

    Hello Experts,
                                           I am developing Web application in ASP NET for B1 , i am stuck up with adding web references , i have gone through B1WS doc but got no solution
    Please Suggest
    Quick Reply will be very helpful

    Hi,
    Have you searched the forum?
    You may check this first: Re: SAP B1WS
    Thanks,
    Gordon

  • How to add image in the button Objects.

    Dear All,
    I need image in the button object. I don't know whether it is possible or not.
    If anyone know the idea for solving this problem Please siggest me.
    Thank you
    saroj neupane

    You cannot put an image on a button put you can have an image then create a clear button that you can put over top of the image. Send the image to the background then set the background fill of the button to none. This will make the button transparent. You may need to play with the borders of both obejcts to get the effect you want.

  • How to Add Tracking Notation to Moving Object

    I have a video of a lacrosse game. A friend asked if I could put an icon or something on his son that will move with him (annotation) as he plays. I have tried the tracking tool (painful to keep adjusting it) not to mention the camera is really tracking the game as a whole not the player. Is there a way that is not as manually intensive to do this? Is there a plugin for this that works better than Adobes tracking toll or another piece of software for this? I looked at several AECS3 training videos but they weren't that helpful.

    If you had CS4, you certainly could use mochaAE, though it would almost certainly still lose the connection more than once. It's the nature of the beast. Apart from that, you might try one of those 3D matchmoving programs. Some of them allow to export 2D tracking info from supervised tracks to AE....
    Mylenium

Maybe you are looking for