How to fill a Tree in Java based on the BC4J?

Hi,
I want to build a tree based on the BC4J and then I want to use it with hGrid, could anyone please give me a example code.
Thanks
Mohammad Tahir

Hi,
I want to build a tree based on the BC4J and then I want to use it with hGrid, could anyone please give me a example code.
Thanks
Mohammad Tahir

Similar Messages

  • How to fill a Tree in Java?

    Hello,
    I have a tree to realize the navigation on my site and now I want to build this tree in a dataProvider. I found the class SimpleTreeData which seems to link to the <nodes>-Tag but I can't get it work. Here are some code extracts:
    DataProvider:
    private SimpleTreeData createShopNode(String text, String description)
     SimpleTreeData data = new SimpleTreeData();
     data.setText( text );
     if ( description != null )
       data.setDescription( description);
     data.setDestination( "http://bali.us.oracle.com");
     data.setDestinationText( "More Information");
     return data;
    private DataObject createData(RenderingContext context, String ns, String name)
      SimpleTreeData treeRoot = new SimpleTreeData();
      SimpleTreeData shop = createShopNode("Shop", "Spend some money!");
      SimpleTreeData books = createShopNode("Books", null);
      SimpleTreeData umbrellas = createShopNode("Umbrellas", "Rain, rain go away");
      SimpleTreeData art = createShopNode("Art", "Picasso et al");
      books.addChild( art);
      shop.addChild(books);
      shop.addChild(umbrellas);
    DictionaryData lDictionaryData = new DictionaryData();
    lDictionaryData.put( "dynamicNode", shop);
    return lDictionaryData;
    This is my UIX Page:
    <provider>
    <data name="TreeProxy">
    <method class="test.DataTrees" method="getTreeProxy"/>
    </data>
    <data name="treeData">
    <method class="test.NavigationNodes"
    method="createData"/>
    </data>
    </provider>
    <tree data:proxy="proxy@TreeProxy">
    <include data:node="dynamicNode@treeData"/>
    </tree>
    Thanks,
    Christian

    Perhaps it is helpful, I get this Exception:
    java.lang.IllegalAccessException: de/oc/vera/navigation/NavigationNodes
    java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
    native code
    oracle.cabo.ui.data.DataObject oracle.cabo.ui.data.provider.MethodDataProvider.getDataObject(oracle.cabo.ui.RenderingContext, java.lang.String, java.lang.String)
    oracle.cabo.ui.data.DataObject oracle.cabo.ui.data.provider.TableDataProvider.getDataObject(oracle.cabo.ui.RenderingContext, java.lang.String, java.lang.String)
    oracle.cabo.ui.data.DataObject oracle.cabo.ui.data.provider.CachingDataProvider.getDataObject(oracle.cabo.ui.RenderingContext, java.lang.String, java.lang.String)
    oracle.cabo.ui.data.DataObject oracle.cabo.ui.data.provider.DataProviderStack.getDataObject(oracle.cabo.ui.RenderingContext, java.lang.String, java.lang.String)
    oracle.cabo.ui.data.DataObject oracle.cabo.ui.laf.base.TryRenderer$CatchContext.getDataObject(oracle.cabo.ui.RenderingContext, java.lang.String, java.lang.String)
    oracle.cabo.ui.data.DataObject oracle.cabo.ui.RenderingContextProxy.getDataObject(java.lang.String, java.lang.String)
    java.lang.Object oracle.cabo.ui.data.DataBoundValue.getValue(oracle.cabo.ui.RenderingContext)
    java.lang.Object oracle.cabo.ui.BaseUINode.getAttributeValueImpl(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.AttributeKey, boolean)
    java.lang.Object oracle.cabo.ui.BaseUINode.getAttributeValue(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.AttributeKey)
    oracle.cabo.ui.data.DataObjectList oracle.cabo.ui.laf.base.BaseLafRenderer.getDataObjectListAttributeValue(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode, oracle.cabo.ui.AttributeKey)
    void oracle.cabo.ui.laf.browser.TreeRenderer.renderContent(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
    void oracle.cabo.ui.BaseRenderer.render(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
    void oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
    void oracle.cabo.ui.BaseUINode.render(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
    void oracle.cabo.ui.BaseUINode.render(oracle.cabo.ui.RenderingContext)
    void oracle.cabo.ui.BaseRenderer.renderChild(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
    void oracle.cabo.ui.BaseRenderer.renderIndexedChild(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode, int)

  • How to create a service entry sheet based from the PO

    how to create a service entry sheet based from the PO
    Gurus,
    I am creating a service entry sheet from the PO but I am getting an error of u201CPlease maintain services or limits Message no. SE029- Diagnosis(You cannot enter data until the PO item has been maintained correctly) u201C
    The document type of the PO is standard NB, account assignment category is Q- (Proj make to order) and the item category is D(service). Then I am trying also create a PR using account assignment category is Q- (Proj make to order) and the item category is D(service) but still cannot proceed, a message asking me to enter a service entry number. What I know the process is create a PO(maybe based from PR) then post the GR then create a service entry sheet in ML81N but I cannot proceed. Just creating a PR or PO using those mentioned account assignment and item category and getting an error of need to enter a service entry sheet number.
    Please help.thanks!

    HI,
    Process for Creating Service Entry Sheet
    Transaction Code :    ML81N
    1)To open the respective Purchase Order, Click on the u2018Other Purchase Orderu2019, then enter the Purchase Order No.
    2)Click on the u2018Create Entry Sheetu2019 icon(3rd Icon on Top-Left)
    3)Give Short Text (e.g. R/A Bill No. 1) and top service entry sheet number also generated.
    4)Click u2018Service Selectionu2019 Icon on the Bottom of the Screen.
    5)For the 1st Time, when we are making Service Entry Sheet for a respective Purchase Order, we need to u201CAdopt Full Quantityu201D by clicking the Check box next to it, then Enter.  (*For the next time, no adoption is required, just continue)
    6)Select the respective Services by clicking on the Left Hand Side, then Click u2018Servicesu2019 (Adopt services) icon on the Top.
    7)Give the completed Quantity, then Click u2018Acceptu2019 icon(a green flag on the top)
    8)Save .
    9)Service Entry Sheet is SAVED and account posting made.
    Hope, it is useful for you,
    Regards,
    K.Rajendran

  • How to find bpel instance in 11g based on the index values

    We have 10g BPEL process where we define 4 index values for all the instances. Whenever support request comes, we ask index values and based on that we search the process instance.
    We have migrated this 10g bpel process to 11g now. How to find bpel instance in 11g based on the index values ???

    I have multiple bpel in my composite. I checked in ci_indexes table and it shows the instance number of the bpel process. But the em console is showing only the composite instance number. when I opened composite instance, I could see all the bpel process with instance number in the audit trail. How can I find the the actual composite instance number that I should search for in the em console ???

  • How to find bpel instance in 11g based on the index values using Java APIs

    Hi ,
    In SOA10G we had option to find the instances based on the index value using Java APIs like below.
    WhereCondition criteria= new WhereCondition(SQLDefs.CX_index_1 + " = ?");
    criteria.setString(1, "indexValue");
    Locator mLoc = getLocator();
    IInstanceHandle[] foundInstances = mLoc.listInstancesByIndex(criteria);
    Please tell me how to achieve the same functionality in SOA 11G using Java APIs
    Regards,
    Saba

    I have multiple bpel in my composite. I checked in ci_indexes table and it shows the instance number of the bpel process. But the em console is showing only the composite instance number. when I opened composite instance, I could see all the bpel process with instance number in the audit trail. How can I find the the actual composite instance number that I should search for in the em console ???

  • How to find table used in java based forms

    In R12 how can i find table name used in Java Based forms.

    Record history for OAF / Selfservice pages is only available in R12.1.1 - pl see MOS Doc 565870.1 (Oracle Application Framework (OAF) Release Notes, Release 12.1.1) - it is not available in 11i and 12.0.x releases.
    HTH
    Srini

  • How to Create a Table Component Dynamically based on the Need

    Hello all,
    I have a problem i need to create dynamically tables based on the no of records in the database. How can i create the table object using java code.
    Please help.

    Winston's blog will probably be helpful:
    How to create a table component dynamically:
    http://blogs.sun.com/roller/page/winston?entry=creating_dynamic_table
    Adding components to a dynamically created table
    http://blogs.sun.com/roller/page/winston?entry=dynamic_button_table
    Lark
    Creator Team

  • How do I set twice monthly events based on the week number

    Greetings all. I can't seem to navigate this help system, so hopefully I'm not reasking something that's already been asked. But I have a problem with iCal that I just can't figure out of find an answer to. I need to create a twice monthly event, but it's based on the week number, not every two weeks. For example, I need to be able to create an event for the 2nd and 4th Mondays of the month. Is that possible with iCal? Thanks for your help... and not laughing at me
    Steve

    No problem.
    Go to Monday select the day you want. Create new Event. Then select repeat and you will come up with how you want to repeate it. Select Monthly and then do the following:

  • How to compile and run a Java servlet using the BEA weblogic server

              Hi,
              Could you help me out as to how to compile a servlet using Web Logic server.I have written a Servlet program and have also set up the environment in the "c:\bea\wlserver6.0\config\examples" folder by giving the command setExamplesEnv.cmd.
              I have stored my GreetingServlet.java file in "c:\bea\wlserver6.0\samples\examples\servlets" folder.
              How do I compile my servlet now?
              Vid
              

    Hello,
    1. The .form file was used by Netbean's GUI builder to create the .java and is not needed for compilation.
    2..../src # javac -classpath "..." mytool/*.java
    I guess the package mytool was not coped with.
    Alternatively it is worth to use the ant build tool also used by Netbeans.
    Then you can make a jar from the class files, indicate in the manifest.mf file:
    1. the main class
    2. the library jars

  • How can I automatically scale a table based on the page size?

    I have multiple tables within 100s of pages of an InDesign file and when I use the liquid layout to scale the content of the pages based on the size, the tables stay the same. I've searched for a while now and can't come up with anything other than going in and manually doing it - which I don't have the time to do.

    You probably haven't activated the layout adaptation (I'm on german ID, don't know the correct name for it in English) in the mini menu of the Liquid Layout panel.

  • How do I automatically position my files based on the Media Start time?

    In the project media window, it shows the Media Start, End, Duration of my MOV files based on the timestamp in the file.
    I'm talking about the time at which the video was shot (according to the camera), not any marks I have added.  Note the distinction: all searches for this treat "Media Start" as the mark-in, mark-out points and have nothing to do with what I'm asking.
    There are gaps between the files so I don't want to add them contiguously.  I will be lining this up with other sources, and using the absolute time is the easiest way to "just do it", within a fraction of a second.
    (I have not used Premiere since version 1.5 Pro)

    I'll try that Sync command on the next one; thanks.
    At least I should be able to get this out faster than last year's New Year videos: the lighting was so bad that I had to learn color correction and the Resolve tool to accomplish it.
    I've used (if memory serves)
    Ulead Mediastudio Pro
    Premere Pro 1.5 circa 2005 
    hiatus early 2008 (last use of DV camcorder) — Feb 2013 (dSLR video)
    Avidemux (just trimming and concatenating)
    Sony Movie Studio Platnum 12, 13 (when I needed real NLE again)
    DaVinci Resolve (color correction, but hey includes basic NLE and free!)
    Adobe CC 2014 includes Premiere, so jump to that!
    I learned concepts like importing asset files to a media pool and then taking clips from that, multi-track timeline editing with razor, single and all-track ripple, rolling edit, crossfades, J and L cutting, and all that, from Ulead in 2002 and later Premere.
    Other NLEs I've used since, sometimes one-off, I had no trouble doing basic things.  It's like driving a car: basic essential functions are known but need to hunt around for the interval wipers.
    This one, though, took much longer to get moving with.  They purposefully changed some control concepts presumably for the better (where is the toggle to slide all clips beyond this one when I move it, and another toggle for keeping all tracks in sync or just editing one?   I clicked somewhere to expand the track vertically but I can't quite figure out where to do it reliably.
    But also made things unnecessarily difficult: it says drop stuff here to to start, but why not allow right-click to work and show useful things in this situation, or at least have a "new" button!  There's no speed slider or reverse buttons in the player interfaces, and in general there are commands I can't find on any menu but apparently exist.
    The scrollbar/zoom will take getting used to, but why can't the arrow buttons still be there too?  Especially at high zoom the slider is much too touchy, and clicking to move a little bit would be helpful.  Ctrl-Wheel doesn't work in the waveform source editor but does on the timeline.

  • How to implement paging in webdynpro jave based on search criteria.

    Hi All,
    In a requirement I need to implement paging in webdynpro java development.
    I successfully did it when there is no search criteria is available i.e webdynpro fetched all data from the BO object and I did it using a "indexNO" (unique serial no from 1,2,3,4.....) field available in BO object.
    But when there is search criteria available , i.e the data to be fetched from the BO based on some specific field , at that time the "indexNo"  field of all data fetched based on search criteria are discrete i.e not continious. In that case how to implement the paging concept.
    I am using CE version 7.1 EHP 1.
    Thanks in advance
    Srikanta Satapathy

    Hi,
    If you go to your VO and generate the ViewObjectImpl, in there you can create a method which will contain two parameters, 1 the attribute name and 2 the value.
    Then you can follow something like explained in this post:
    ADF Tutorial: How to apply bulk actions to a view object rows
    The only difference is that you will need to create a method like this:
    public void updateAttribute(String attribute, Integer value){
            RowSetIterator iter = createRowSetIterator(null);
            while (iter.hasNext()){
                Row row = iter.next();
                row.setAttribute(attribute, value);
    Then you expose that as a client interface and then after you filter your table by your criteria you just need to execute this method passing the right parameters.
    Regards

  • How do I sell a new java based product

    Hi,
    I am bit new this, so would like to get some help. I have created a new product based on Java and now I want to sell it. Can someone please provide me what steps I need to take, in terms of licenses. Any sites which can help me in selling this application.
    Thanks in advance

    In the US any product of your genius that is not a collaborative effort is, by definition, copywritten by you.
    Now for practicality: you need to go hire a copywrite Lawyer and have them draw up a contract so you retain your legal rights. No gentlemen's agreements or handshakes, get things down on paper to retain your rights. Once the software goes out of your control, there has to be specific legal agreements that need be followed for your own protection.
    Have you ever noticed that license agreements also outline and define the extent that the company is liable for use and installation and any resulting damages or loss. Get the Lawyer to draw it up for your own protection.

  • How to extract substring from a string based on the condition ??

    Hi,
    I'm having a very large string which as below
    EQD+CN+SAMPLE18767+2200+++5'
    NAD+CA+FIR:172:20'
    DGS+IMD+3.2+2346+55:CEL'
    FTX+AAA+++GOOD'
    FTX+AAA+++ONE'
    EQD+CN+SAMPLE18795+2200+++5'
    NAD+CA+TIR:172:20'
    DGS+IMD+3.2+2346+55:CEL'
    FTX+AAA+++SECOND'
    FTX+AAA+++IS FAIR'
    similarly FTX+AAA as above and it goes on
    i tokenized each segment with delimiter as ' and able to read each segment.
    Now i want to concatenate the FTX+AAA in a single segment if more than one FTX+AAA with IMMEDIATE below
    The output is as follows
    EQD+CN+SAMPLE18767+2200+++5'
    NAD+CA+FIR:172:20'
    DGS+IMD+3.2+2346+55:CEL'
    FTX+AAA+++GOOD,ONE'
    EQD+CN+SAMPLE18795+2200+++5'
    NAD+CA+TIR:172:20'
    DGS+IMD+3.2+2346+55:CEL'
    FTX+AAA+++SECOND,IS FAIR'
    similarly FTX+AAA should be concatenated if it has similar FTX+AAA IMMEDIATE below.
    The FTX+AAA segments can come any number of times immediate below
    Please help me how we can do this??? Can anyone help me with the code snippet to do this?
    Thanks,
    Kathir

    Encephalopathic wrote:
    You've posted > 300 times here and you still don't respect the rule regarding notification of all cross-posts? [http://www.java-forums.org/advanced-java/30061-how-extract-substring-string-based-condition.html]
    Do you think this this will help convince others to help you?See also [http://www.coderanch.com/t/500088/java/java/extract-substring-string-based-condition|http://www.coderanch.com/t/500088/java/java/extract-substring-string-based-condition].

  • How can I create UI components dynamically based on the result of WebService/HttpService call?

    I would like to create child components of the component
    based on a XML which is retrieved by WebService/HttpService call.
    createChildren() is the one to be used to create components
    dynamically. But if I use createChildren() and call a
    WS/HttpService request in createChildren method, I can not get the
    result of WS/HttpService request in createChildren().
    It seems that the result event is processed later after
    createChildren() is completed.
    How can I implement my requirement?
    I would appreciate any pointer or suggestion.
    Best regards
    Masa

    1) Use a List, with a custom itemRenderer
    2) Use a Repeater (Probably easiest)
    3) use Actionscript to addChild() components.
    Tracy

Maybe you are looking for

  • Late 2012 Mac mini with OSX 10.8.2 has started shutting down instead of going into sleep mode.

    Sometime in the last week or so my mac mini has started going into full shut down instead of sleep mode. I have tried checking and unchecking energy saver boxes but haven't found anything which will get me back to where I used to be - and I haven't k

  • I can't hear the person I'm calling (they can hear...

    Nokia Lumia 925 have cyan update , 10 months old. Since the yesterday I can no longer hear the person I'm trying to talk to. They can hear me. All other sound functions seem to be OK. Any ideas?

  • Calendar alerts have no sound in Mountain Lion.

    When I create apointments in Calendar in Mountain Lion and put (Message with sound) and choose my sound for the allert. When it pops up as a notification it does not make any sound. My notification for the Calendar app is set to (Alerts) not (Banners

  • LG M2294D TV/Monitor

    Hi I have just bought one of the above tv/monitors for use with both my Dell Laptop and my Macbook, the problem I have is when connected to the Macbook, the picture size at 1680x1059 resolution does not occupy the whole of the screen, yet the PC does

  • Block MMORPG

    Can i block a MMORPG? I have a WRT54G wireless router. This computer is hardwired into the router. Whereas i'm on Wireless.