How to get references to project´s entities?

Hi there,
is there any straightforward way of getting reference to project´s entities? The idea is get a collection/array of all the entities enumerated at the persistence.xml via some JPA class. Is this possible?
Thanks for any hint!

Hi
   You should not set the attributes at the DOINIT, as the view will not be created that time.So what i suggest is , create it DOMODIFY .
As i said in my previous post , create five attributes in the component controller.
like l_view1,l_view2,l_view3...etc. of type if_wd_view_controller.
  And now go to each view's modify method. And write the following code.
Data: lo_api               TYPE REF TO if_wd_view_controller.
If first_time = 'X'.
  lo_api = wd_this->wd_get_api( ).
  wd_Comp_Controller->l_view1 = lo_api.
endif
And you could access this view controller , anywhere u want by using  wd_Comp_Controller->l_view1
Thanks
Anzy
Award points if this solves your issue.
Message was edited by:
        Mohammed Anzy S

Similar Messages

  • How to get Reference on files of my ADF Shared Library

    Dear All,
    Use case:
    I have compiled one project into a shared ADF library. This project has a ViewController.
    In it are some common css files that I would like to reuse.
    Now, I have a new project and have linked to that ADF library using Resource Palette.
    In my JSFF file, I tried to link to the CSS in my shared library
    <af:resource type="css" source="/com/test/common.css"/>But I cant seem to get the styleclasses in that shared library.
    I have checked at Firebug console and I notice that I am getting a 404 when I am requesting for the said file.
    What should be the correct path for me to get a reference to the CSS Files?
    Thanks
    JDEV 11G PS3

    Duplicate of How to get Reference on files of my ADF Shared Library
    Edited by: Bijesh Krishnadas on Aug 17, 2011 9:13 PM

  • How to get reference of a SessionBean From RemoteClient

    How to get reference of a SessionBean in a ApplicationServer from another SessionBean running in Another ApplicationServer

    Hi
    There is a method, getHandle() on the EJBObject interface that your remote interfaces extend. This handle can be used to pass a reference to an EJB to someone else (possibly running in another JVM). You can then call getEJBObject() on the Handle instance and get your remote interface on which you can call methods. Should be able to cast it to your specific bean.
    I haven't done this, so definitly test it out, but I think this is what you want to do.
    check it:
    http://mail-archive.objectweb.org/jonas/2000-12/msg00064.html
    I suggest u not to go for more complex code, make it simpler, or if its really required use it as a webservice
    Regards
    Abhijith YS

  • CS3 VB how to get reference to a text frame?

    Hi there,
    I got a text frame in a document with a table inside. In first cell of the table there is another text frame with table. How to get a reference to the first text frame from the frame inside of the cell?
    text frame in a cell has a character as parent, character has a cell as parent, cell has table as a parent - in this place there should be the right text frame as a parent of a table, but unfortunatly there is a story! so any idea how to get the text frame from there?
    regards

    thx again Harbs,
    believe me - I am watching all stuff at the watch window of VB6 - there is not even one insertion point which has a ParentTextFrames - if I try to adres it I get an error. VisualBasic do not allow syntax like InsertionPoints[1] - it allows something like this:
    InsertionPoints(1) but it is the same like InsertionPoints.Item(1). In both cases it doesn't works - all object has ParentTextFrames.Count = 0.
    Anyway I found a solution for my problem:
    innerFrame.Parent.ParentStory.TextContainers.Item(1) is the right text frame - don't ask me why....
    regards

  • How to get feedback from Project

    Hello,
    I have created many projects with Captivate, mainly software
    demonstrations and How To's; I ask no questions to the user and I
    have no LMS software.
    I want to know 2 things: how to get an alert of some kind
    (email, connect to a http site, etc.) when a project is being
    called, and if the user saw the entire presentation or not.
    I have tried to use the Email Reporting feature, but I have
    read that this feature does not work... and I can confirm that.
    What other option, if any, do I have to accomplish those
    action?
    thanks
    Roberto

    Hello marionette_66.
    A previous user to this post generally asked the same
    question.
    Take a look at this link
    http://iconlogic.blogs.com/weblog/2007/03/adobe_captivate_3.html
    where I had cerated a method to send results to an access database.
    It is a modification from a solution a Adobe guru had created
    using coldfusion.
    Here is that link.
    http://www.adobe.com/devnet/captivate/articles/store_cpresults.html
    Try it and let us know if you have further questions.
    Cheers!

  • How to get reference of UI controls in a JSON Controller?

    Hi Experts,
    This time I was looking to create a JSON view and I was successful in creating and including various UI controls in the view. However, I am not able to get the reference of the UI controls within the controller. Initially, I thought using same set of methods of CORE I can get their reference. But I, I am not able to see any thing getting filled.
    Please find the below screen shots about my view definition and controller implementation.
    Please provide some inputs
    Regards
    Pavan

    Hi Robin,
    Ok, then Let me conclude my understanding based on your opinion
    1. A View definition consists of UI controls, and their associated binding definitions(anything missing?)
    2. A Controller consists of Model implementation , and as you said initializations, event handlers, and helper methods.
    If my understanding is correct then an application can have various models and do the view recognizes or  understands all of them.  Otherwise what kind of approach should we follow.
    In the controller definition do I have to include the line sap.ui.core.getCore().setModel() for each of the models that I define. As per my understanding this statement makes the model available for all the elements within the view.
    Please correct me if my understanding is incorrect.
    I agree with your point but still if I have to access the reference of UI element in the controller how can I get that in the above context.  Please Share some inputs
    Thanks for pointing me in right directions
    Regards,
    Pavan

  • How to get reference of second diagramm axle

    i want to to scale my diagramm automatically, but i don´t know how i can get the reference of the second y-axle?Message Edited by reen on 06-01-2005 03:28 AM
    Message Edited by reen on 06-01-2005 03:28 AM
    Attachments:
    frontpanel.JPG ‏63 KB
    diagramm.JPG ‏50 KB

    hello,
    if it's an chart, then use the property "History Data", which is in the bottom of the property menu and wire an empty array.
    regards,
    robert h

  • How to get Reference Doc from copy from button

    Hi..
    I would like to know if there is a way to get the source document or reference document number with-out  sdk or add on development , if you used the copy from button to populate the data?
    sample
    in order entry you can populate the data by using the copy button then choose sales quotation,  then using formatted search or select statement could i get the source documents (sales quotation number)..
    thanks
    Loren

    Hi Loren,
    If you need to get the BaseRef field before saving the document you can use the screen reference in your query:
    SELECT $[$38.44.0]
    Just selects the BaseDocument reference number from a row.  You may want to also use:
    SELECT $[$38.43.0]
    To get the Base Document Type (sales quotation, delivery etc.)
    Bob Richardson

  • How to get a  Theme project in the File'Menu'

    Hi
    1. I was trying to follow the instructions ' how to edit themes' for a tutorial
    2. I have my NWDS in Sp13 and I downloaded the theme  editor and the theme folder for SP13.
    3. Copied the com.sap.ur* folders to the plugin folder under the sap/frontend / ..plugins folder.
    4. In NWDS, I tried to create a new theme project using the project wizard,, and donot see the UR Themes project  option to create...
    where am I missing ? thanks in advance...

    Dear satyanarayana,
    You have to copy it in eclipse\plugins folder .
    I think you have copied it in SAP GUI frontend's plugin folder.
    Copy them to the eclipse plugin folder and restart the NDS.
    It will be available in the projects list.
    Regards
    Bharathwaj

  • How to get a GB project from iPad2 to MacBook

    Hi folks,
    I posted this question yesterday in the logic forum.  It seems that it is possible to export an entire GB project from iPad2 to a Macbook and open it with Logic Pro.  Can some kind soul offer a step by step guide ?  I am missing something, I've exhausted my search options and it's driving me nuts.  TIA.

    with i'm not sure if you can go directly from GBi to Logic without GBX as a middle step, but here are the GB instructions:
    http://www.bulletsandbones.com/GB/GBFAQ.html#transfergbitogbx
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • How to get reference of application component in anothor component?

    Hello Friends
    I have one problem so plz help me.
    Thanks in advance.
    I have two file one is application and other is component. I have created Dividedbox in application and i put two buttons in component and used component in application. Now i want to change the direction of dividedbox when i click on button. I have written code but not working. Following is my code.
    Application file:  test.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"  xmlns:ns1="*">
        <fx:Script>
            <![CDATA[
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <mx:DividedBox id="plistdvidebox" direction="vertical" width="100%" >
            <s:Group id="grp_rlpart" width="100%" height="100%">
                <s:layout>
                    <s:HorizontalLayout paddingTop="10" paddingLeft="10"> 
                    </s:HorizontalLayout> 
                </s:layout> 
                <s:Label text="Left ot top part"></s:Label> 
            </s:Group> 
            <s:Group id="grp_rrpart" width="100%" > 
                <s:layout> 
                    <s:HorizontalLayout paddingTop="10" paddingLeft="10"> 
                    </s:HorizontalLayout> 
                </s:layout> 
                <s:Label text="right or bottom part" /> 
            </s:Group> 
        </mx:DividedBox> 
        <ns1:tc x="90" y="156"> 
        </ns1:tc> 
    </s:Application> 
    Component File : tc.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300">
            <fx:Script>
                <![CDATA[
                    import mx.containers.BoxDirection;
                    protected function btnhr_clickHandler(event:MouseEvent):void
                        var t:test=new test();
                        t.plistdvidebox.direction=BoxDirection.HORIZONTAL;
                    protected function btnvr_clickHandler(event:MouseEvent):void
                        var t:test=new test();
                        t.plistdvidebox.direction=BoxDirection.VERTICAL;
                ]]>
            </fx:Script>
            <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) here -->
            </fx:Declarations>
        <mx:HBox>
            <s:Button id="btnhr" content="HR" click="btnhr_clickHandler(event)" />
                <s:Button id="btnvr" content="VR" click="btnvr_clickHandler(event)" />   
        </mx:HBox>
    </s:Group>
    Plz tell me how to do this?
    plz reply me fast.
    Thanks
    Manjurhusen

    Check this:
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7e3a.html

  • How to get reference name in the class

    i have a doubt in java.
    class x
    public String toString()
    // code here i want
    class y
    p s v main(.....)
    x servlets=new x();
    x jsp=new x();
    s.o.p(servlets);
    s.o.p(jsp);
    the result i want is :
    hai servlets
    hai jsp
    what code to be in toString().

    You can't get hold of the variable name at runtime. If you want that output, you'll need to create it like this:
    x servlets=new x("servlets");so that the x.toString() can know which string to print out.
    Message was edited by:
    johannef

  • HOW TO GET REFFERENCE OF INDICATOR OF TYPE DEF CLUSTRE

    Have 2 quastions:
    1. Have a type def culster of boolian indicators.
        how to extract individual references so I can pass them to sub vi.
    2. Since bollian indicators dont latch its value.
        Can I make an array of boolian indicators that will keep its value hen passes to sub vi.
    Thanks.
    Solved!
    Go to Solution.

    Neos wrote:
    Actually the example was to just show how to get reference of individual controls of cluster.
    whatever the OP wants to do with refrences its his choice.
    Firstly, I got a little confused because you had thanked me and so I thought you were the OP for a moment.
    Secondly, though - your example added just enough obfuscation that the OP did not understand that this was actually an exercise to get references from a cluster.
    I know you used the property nodes to bring out the reference wires.  If the wires were connected to indicators that said "control reference" it would probably have been clearer.
    One thing you should note is that if a pupil does not get the concept you are trying to teach, 99% of the time it is the teacher's fault.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How to get object which is created previously?

    Hi ,
    My question is that how to get reference of the object which is created previously using reflection API.
    that means,
    suppose i created one instance of class : ABC
    Class classAbc = Class.forname("ABC"); //load the class ABC.
    Object abcClassObject =classAbc.newInstance(); // create an instance of classABC.
    now how do i retrieve that object which is referred by ref. variable abcClassObject?
    expecting a favourable reply,
    Thanks & regards ,
    Swapnil

    My question is that how to get reference of the object which is created previously using reflection API.
    Object abcClassObject =classAbc.newInstance(); // create an instance of classABC.
    now how do i retrieve that object which is referred by ref. variable abcClassObject?abcClassObject is already a reference to it. Just use it. Nothing further required.

  • How to find my iMovie projects and events since updating??????

    i updated my macbook pro retina to osx mavericks then my iMovie to the newer version. I now can't find or use my pervious projects or events and I've spent days hrs on some of them. I stored and use most of my projects/events on my external hd. its hooked up. can someone who knows how this works walk me through how to get my imovie projects and events linked from my external hd to this new imovie version that for some reason cant link them like the pervious.
    I hate when something work and then it gets updated and it doesnt work the same... frustrating.

    okay, do a search for iMovie cache or iMovie thumbnails, and you'll probably find them. Unless you choose reject clips and then move rejected clips to the trash, then check the cache or thumbnails, your clips won't be truly gone.  Just deleting them from the windows doesn't quite work.  Sorry I can't remember the technical name for 'em, just going by my experience.  Also, try deleting your project, and throwing that rascal in the trash, then start again. Usually it's becuz you chose copy the original rather than move it (to be on the safe side), like I did......
    anyways, thanks for writin'
    J.B.

Maybe you are looking for