JDev extension SDK: How to refresh navigator via API?

Hi,
I'm developing a jdev extension, in which I create some files in the project source folder manually (in file system).
These changes are not displayed in the projects navigator tree (of course). Is it possible to refresh the navigator view via SDK API, same like pressing the blue refresh-button on top of the navigation area?
thx,
Marcel

Hi Harry,
Sorry for the delayed response. I'm assuming we are on opposite sides of the world. :-)
I looked deeper into the method that you pointed out and I've posted an internal question to some of the developers about how to get that TNode. I tried a couple of things myself, but kept running into a dead end.
You can't get a TNode from the workspace. It has to come from the NavigatorWindow class.
The Workspace and the NavigatorWindow are two completely different things. One is a representation of the jws and jpr files, and the other is the representation of the filesystem.
I'm not quite sure that this will really do what you are looking for anyway. While it may refresh the Navigator window, I don't think it will go out and rebuild the tree with whatever is new in the project folder. When I look at the internal code for that Refresh button, it is doing a lot of re-reading of the filesystem and then rebuilding the tree.
I was able to create my own menu item and have it call the action for the refresh button, but it still requires that the workspace be selected first, so it's in context when the menu us selected. Doesn't quite achieve what you're looking for.
I'm assuming that you are looking to refresh the navigator window programmatically after you have add one or more files to the filesystem for a project. Is that correct? Just want to make sure I'm working with the same goal that you are.
I'll keep looking into how this is done with some of our internal wizards. There has to be a way to do it.
--jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • JDev extension sdk help

    Hi,
    We are trying to build an extension on JDev 11.1.1.6. We need to get the list of all files in current project like jspx or jsff files. The ApplicationOverview sample application has given a way to get list of all files but we are not able to run as IndexManager class is not found in extension package. Please let us know how can we get the list of files. We have tried using Project , ProjectContent classes but unable to get required list.
    Thanks

    What do you mean when you say that "IndexManager class is not found in extension package"? Indexing is the correct way to search the contents of a project. By adding a dependency on oracle.ide.indexing you should be able to use te IndexManager.

  • Creating an opportunity linked to a contact via API

    Hi,
    We are trying to create opportunity records against a contact but don't understand how to link the 2 objects via API as my development team can't find a direct link when looking in the WSDL.
    I can see in the UI that the primary contact can be stored against the object, would just like to know how to do this via API.
    Thanks for your help in advance.
    Leslie

    Hello Leslie,
    There are a number of ways to accomplish this. As you mentioned in your post there are often Id fields exposed on a parent object that allow one to associate to a record of a different type, in this case you can send a request for the parent object, in this case Contact and specify the ID of an existing Opportunity record.
    You can also use the child object structure to create an association. For example, if you are entering a new Contact and a new Opportunity you can use the <ListOfOpportunity> within a Contact Insert request to also insert a new Opportunity. I have attached a sample SOAP request below.
    I would recommend your team review the WS User Guide as well as the sample code provided at samplecode.oracle.com for further details. Please see the announcements at the top of the forum for additional links.
    I hope this helps.
    Thanks,
    Sean
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <ContactWS_ContactInsert_Input xmlns="urn:crmondemand/ws/contact/10/2004">
    <ListOfContact>
    <Contact>
    <ContactFirstName>Bruce</ContactFirstName>
    <ContactLastName>Wayne</ContactLastName>
    <ListOfOpportunity>
    <Opportunity>
    <OpportunityName>Capture the Joker!</OpportunityName>
    <CloseDate>04/10/2011</CloseDate>
    <Priority>High</Priority>
    <Status>Pending</Status>
    <SalesStage>Selected</SalesStage>
    </Opportunity>
    </ListOfOpportunity>
    </Contact></ListOfContact></ContactWS_ContactInsert_Input></soap:Body></soap:Envelope>

  • How can I get JDeveloper Extension sdk for 9.0.4 version

    HI~
    I want to download JDeveloper Extension sdk for 9.0.4 version.
    Of course, I found some link for downloading, but all of them I found were not connected or connected with 11g version.
    I also try to install the sdk in JDeveloper menu called "Check for updates" in help menu. But it was not operated in my pc(Windows 7 64bit).
    I really need to older version Extension sdk.
    How can I get the sdk?

    The only way I see is through support. Versions this old are not accessible via the web.
    Timo

  • How to get the Extension SDK

    I am new to JDeveloper and would like to explore how extensions can be added to JDeveloper. I have had some sample odes, but i cannot add the JDeveloper Extension SDK as a library because such a library is not listed in the list of available libraries. I tried downloading a few samples, even then the code would nt compile. When i checked the project properties for the added libraries, the entry for extesion SDK was there but with an error tag. It was seen that it was just a dummy entry and there was no corresponding library for it with my installation. I am having the JDeveloper 10g Studio Version 10.1.3.0.4.3673

    You download the Extension SDK as .... extension. Go to Help->Check for Updates.
    The Extension SDK is listed there. If you are behind a proxy, then don't forget to configure that in Tools->Preferences.
    Sascha

  • Extension SDK : Where are the wizards for extension creation in JDev

    I remember seeing there were few wizards in JDev 10.1.3 Preview version for creating extensions which generates the stubs (like create extension with windows etc.), but I don't see it in the new extension SDK. It only contains extension.xml file with basic properties, also it doesn't XML give insight in the extensions.xml.
    Why are the wizards missing? Are they left by mistake oir by intension?
    I hope having wizards for extension creation (like eclispe) will help people creating extensions. Currently we have to copy paste some extensions provided by Extension SDK and merge our code as and where required.

    Hi,
    The Extension Manifest gallery item that's in 10.1.3 production's Extension SDK at least provides a starting point. It will generate extension.xml automatically based on values entered in the creation dialog.
    There were a couple of other extension design time features in 10.1.3 preview that were pulled prior to production. This was mainly due to scheduling constraints (a number of other features had higher priority), changes to the extension SDK API between preview and production, and several bugs and design issues with the functionality.
    As I mentioned, extension design time support will be expanded in future releases, and is now a priority for us. These improvements are currently targeted for the 11.0 release, but it's not inconceivable that the ESDK for 10.1.3 could be updated with these improvements too if there's enough demand.
    Thanks,
    Brian

  • Refresh Navigation Range in a Table - Jdev 10.1.3.3

    Hello Comunity ...
    I have a editable table where the navigation range is 1-15 i change the values in the table and navigate 45-60, 60-75... and others rows, then i click on save button the information is refresh but the range navigation not. How can refresh the range navigation to the first row.
    Thanks for the help.

    Hi Peter i post the solution last week.
    Add the following code in your backing bean save button:
    this.getTable1().setFirst(0);
    Where table.setFirst(0) sets the index of the first row in the currently range of rows to the first record in the Table.
    Good Luck.

  • Downloading extension SDK fails

    Howdy,
    I'm trying to install the extension SDK from within JDeveloper 11.1.1.1.0, but I'm failing miserably. It seems that the download manager cannot connect with the download server. The update manager displays the SDK as a download option, but when I select the item and press "Next", connecting fails and the Summary page displays nearly immediately.
    There is no apparent sign of failure, but the download did not finish successfully and when checking $HOME/.jdeveloper/tmp/update, the file "esdk_bundle.zip" has only 708 bytes! Enabling debug output reveals that the update manager seems to require a proxy server.
    Jul 21, 2009 12:24:40 PM oracle.ideimpl.webupdate.DownloadUpdatesRunnable fixProxyForDownloadOracleCom
    INFO: Detected internal Oracle user with no proxy. Using emeacache for download.oracle.com.
    Jul 21, 2009 12:26:53 PM oracle.ideimpl.webupdate.DownloadUpdatesRunnable fixProxyForDownloadOracleCom
    INFO: Detected internal Oracle user with no proxy. Using emeacache for download.oracle.com.
    But I've explicitly disabled the proxy server in the preferences, because it does not seem to work.
    No HTTP response received.
    java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 405 Method Not Allowed"
         at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1517)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:164)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133)
         at oracle.ide.webbrowser.HttpPing$PingRunnable.run(HttpPing.java:109)
         at oracle.ide.webbrowser.ProxyOptions.doTask(ProxyOptions.java:811)
         at oracle.ide.webbrowser.HttpPing.ping(HttpPing.java:74)
         at oracle.ide.webbrowser.ProxySettingsPanel$5.run(ProxySettingsPanel.java:811)
         at java.lang.Thread.run(Thread.java:619)
    The host name of the proxy is "emeacache.uk.oracle.com". Port 80.
    I could not find any information about an alternative proxy. Can anyone provide some information about how the proxy and/or update manager can be configured to allow downloads from the internal Oracle server? Or is there an alternative means to download the extension SDK?
    Thanks for your help.
    Best regards,
    Marco Hunsicker

    Hello Shay,
    thanks much for your quick reply.
    you can download the file directly from the link here:
    http://www.oracle.com/technology/products/jdev/101/update/center.xml#oracle.jdeveloper.esdk
    Got it! Thanks.
    Internal JDeveloper forums for Oracle Employees are here:
    http://myforums.oracle.com/jive3/?categoryID=445
    I don't seem to be able to access that forum. Not sure whether there is such a possibility for developers outside of Oracle, as John's post seems to be implying. Or maybe it hasn't been obvious that I'm not an Oracle employee.
    Anyway, my immediate need is satisfied. Thanks much for all the help.
    If anybody is interested to receive further information regarding the proxy server issue, please don't hesitate to contact me.
    Cheers,
    Marco

  • Working with PL/SQL Packages and Extension SDK

    Hi,
    I'm working on an Extension for SQL Developer. I want this Extension to wrap my PL/SQL Packages.
    The Situation:
    I got an Oracle DB 10g Revision 1 so I can't use the dbms_ddl call to wrap my Packages. I have to use the wrap.exe Utility.
    When I right click on a PL/SQL Package I can choose "Wrap it!" and the Extension does the following: It implements an oracle.ide.controller.ContextMenuListener and when the handleEvent function is called I cast the Context Parameter to a oracle.dbtools.raptor.navigator.plsql.PlSqlNode Object.
    Through the getSource function I get source code, print it into a file wrap it and write it back to the database.
    But I have to call this for both the package body and the package header. How can I got the header if my oracle.dbtools.raptor.navigator.plsql.PlSqlNode Object is the body or the body if my oracle.dbtools.raptor.navigator.plsql.PlSqlNode Object is the header with the Extension SDK? There has to be a Way, cause there is also a standart function called "Save Package Spec and Body".
    Can someone help me, please. :-)
    Thanks
    Andi
    P.S.: I'm sorry for my bad english. :(

    Greetings,
    If you are using the HTP/HTF procedures/functions then the following code does what you are asking:
    htp.formOpen( curl => 'schema.package.procedure_name', cmethod => 'post');
    which would generate the following HTML:
    <FORM ACTION='schema.package.procedure_name' METHOD="post">
    The names of <INPUT> items between the <FORM> tags should match parameter names in your PL/SQL procedure.
    Thanks,
    Dale

  • How to Refresh a Page once saved to database in ADF.

    Hi,
    I created a JSF page using project template as "JSF,ADF,business components".
    There is a List of values displayed in a dropdown list,
    User can create new value and once it is saved to the database it should reflect in the list of values.But it is not displaying in the LOV and it is happening only when i close that page and open a new one.
    Can u please tell me how to refresh a page without closing the current page once save button is clicked.
    Thank you,
    Harika.

    Mini wrote:
    Hi Hari,
    Yes i have a apex page redirects from the ebs menu like you said. But for the refresh issue instead of modifying in the jsp i thought of bringing the automatic refresh for that apex page once it is loaded within apex.
    However these type of issues are sometimes get fixed by clearing browser cache or just by restarting your browser. Have you tried it?Yes i have tried, by clearing the browser cache and also by restarting the browser then too it still persist.
    Any DA action will be helpful for refreshing that page for 1sec once it is loaded. Since i dont want it to be loaded multiple times often once it is loaded.
    The refresh has to be only once if the page is loaded.
    or is it possible to Refresh the page based on the application page item through DA
    Thanks
    Brgds,
    MiniTechnically Yes, you can create a D.A. that will fire only once based on some apex page item or application item value. However this is NOT the correct solution.
    <li> When you see apex page (after clicking menu in EBS), do you see apex url in browser address bar? Can you post the URL here?
    <li> If you directly log-in to APEX (not via EBS), do you still face this issue?
    Regards,
    Hari

  • How to Refresh System Form in Run Time

    Dear All,
    Please give me idea for Refresh System Document in Run Time using DI,basically I am usingĀ  system columns for update for some scenarios.
    So please give solution that how should refresh system form.
    Thanks a lot.
    Ashish Singh.

    Hi,
    Please post above discussion in SDK forum.
    Thanks & Regards,
    Nagarajan

  • How-To "Refresh a table of data after inserting or deleting"

    I'd like to say a word on the how-to article "How to refresh a table of data after inserting or deleting a row using ADF".
    (http://www.oracle.com/technology/products/jdev/howtos/1013/updtable/index.html?_template=/ocom/technology/content/print)
    I spent a lot of time on it because I needed help in implementing simple CRUD functionality on a table, using JSF-ADF-TopLink technologies.
    While the the article does provide correct steps, it is in one important place not specific enough, so the reader may easily get stuck. In section "Refresh the data table", point 1: when you double click on the removeEntity() button, in Structure window, then you do not get the required dialog. You get CommandButton Properties dialog.
    You must click on the removeEntity() button in Editor's Design view. But even there you may get the CommandButton Properties dialog, not managed beans dialog.
    You may resolve that by going to JSF configuration file, faces-config.xml, and switch to Overview view. This will show you the managed beans that you have.
    Then, you may already have a backing bean for the page. You can use that and avoid creating a new managed bean.
    I could understand what the operations mean only after very careful reading of "Creating More Complex Pages", section "Overriding Declarative Methods" in JDeveloper Help (or in ADF Developer's Guide PDF document).
    In general: I believe that "ADF bindings" need more conceptual explanation, maybe in form of an article. Grammatical form "bindings" may create a false understanding that "bindings" are just references. But they are not -- ADF bindings are active objects that handle traffic between UI components and Data Controls. It seems that "bindings" even communicate among themselves. Maybe it would be more understandable to differentiate strictly between "binding objects" (or "binders"?), binding object definitions and binding object references.
    It would be very helpful to have a diagram showing grahically what specific binder objects are created in a small apllication (2-3 pages using 1-2 tables), with whom they communicate and what type of data is passed on.
    Priit

    Hi
    Thanks for your infos.
    Yes exactly I use almost the same code you have post here.
    Could You answer to my next questions?
    First - >what do you mean by saying that "it's not good idea using refreshing in IE?" Of course I use refreshing in backing_bean for my button "remove" that removes row, commit changes to database and refresh table, almost the same as You said in your post:
    Code in backing_bean is and comments on difference to Your code is below:
    public commandButton2_action1(){
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("removeEntity");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    //above remove entity, but I dont now if it do commit to database? So i do it below
    OperationBinding commit1 = bindings.getOperationBinding("Commit");
    commit1.execute();
    //and at the end I refresh my table, "findAllRezerwacja1 - it is an id of the methodAction, not the iterator -> is it ok? or should I change to Iterator id?
    OperationBinding requery = bindings.getOperationBinding("findAllRezerwacja1");
    requery.execute();
    return null;
    Page Definition code for this:
    <methodAction id="findAllRezerwacja1"
    InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="findAllRezerwacja"
    RequiresUpdateModel="true" Action="999"
    ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_findAllRezerwacja_result"/>
    <table id="findAllRezerwacja2" IterBinding="findAllRezerwacja1Iter">
    <AttrNames>
    <Item Value="dataDo"/>
    <Item Value="dataOd"/>
    <Item Value="idRezerwacja"/>
    <Item Value="liczbaUczestnikow"/>
    <Item Value="prowadzacy"/>
    <Item Value="uwagi"/>
    </AttrNames>
    </table>
    <methodAction id="removeEntity" InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="removeEntity"
    RequiresUpdateModel="true" Action="999">
    <NamedData NDName="entity"
    NDValue="${bindings.findAllRezerwacja2.currentRow.dataProvider}"
    NDType="java.lang.Object"/>
    </methodAction>
    <action id="Commit" IterBinding="findAllRezerwacja1Iter"
    InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" RequiresUpdateModel="true"
    Action="2"/>
    </bindings>
    //and rest of code for Iterator etc
    My second question is, why when you use refresh button in IE (I know is not recommended as You said, but sometimes user do it, so I want prevent situations that I will describe here) so when I press refresh button in IE exactly after removing one row by clicking my button, refreshing by pressing IE button is doing the same --> is deleting next row. How to stop deleting row, when for example user would press IE refresh button after pressing remove button for table. If I change selection in table after deleting row, and press refresh button in IE, instead of deleting row, I got error message: JBO-29000: JBO-35007: and
    JBO-35007. So where Im doing wrong. Maybe I should do sth with postback ? Could You help me? Thanks in advance
    Last one question: what is the difference between using delete and removeEntity from operations node? Im now reading carefully ADF Dev Guide, so I hope I can find infos there? But if You know, please answer to this question.
    Thanks

  • How to refresh a local file in the Reporting Studio?

    Hello,
    I need to refresh a few local files in the Reporting Studio via script, but obviously command
    ActiveDocument.Sections["Sectionname"].Process()
    does not work, since it's not a query. What else could I use?
    Many thanks for any answer.

    I am confused...How is the solution not exactly what I look for ?
    You asked how to refresh imported data files via script.
    You correctly identified that the Imported file is not a Query.
    However if you look at the Object model closely you will notice properties that if you can think outside the box will allow you to treat the imported file like a query section.
    ActiveDocument.Sections["data.csv"].ProcessSequenceNum
    ActiveDocument.Sections["data.csv"].IncludeInProcessAllBy strategically setting unwanted sections not to process via
    ActiveDocument.Sections["Sectionname"].IncludeInProcessAll = falseand setting targeted section(s)...imported file(s) to process via
    ActiveDocument.Sections["Sectionname"].IncludeInProcessAll = trueThen
    ActiveDocument.ProcessAll()Your section(s) will refresh.
    If this is not a satisfactory solution then move the data files to a database or create a DSN entry and OCE to those files instead of importing them.

  • Extending the UML class diagrams with JDeveloper Extensions SDK?

    Hello,
    I studied the JDeveloper Extension SDK docs, but couldn't figure out how to write extensions that support UML Diagrams.
    What I would like to do, is to pin a different data model under the class diagram view.
    Well if you can't do that. In the worst case, my extension would register with a regular class diagram and listen to its events and and refuse particular changes. It would also create or use an empty class diagram and fill in the classes and associations in it. (this is less clean but I could live with it).
    Thanks in advance for all your suggestions.
    Slawek

    By definition you can change classes through the model so I guess the problem here is that the model cannot apply updates to something that it is pointing to the the compiled version of.

  • How to refresh an iterator with PPR set to none after task flow operation?

    Using JDev 11.1.2.1.0.
    Doing the sample here: http://www.gebs.ro/blog/oracle/oracle-adf-creating-an-addedit-bounded-task-flow-using-a-new-transaction/
    For this to work, you've got to set your page iterator/executable's ChangeEventPolicy to "none". Otherwise, you can't set the selected row correctly due to the iterator refreshing on commit.
    I'm trying to extend this example to include a Delete operation setup in the task flow. However, I can't figure out how to refresh the page's iterator to display the updated results. The Delete doesn't run in a dialog so it doesn't invoke the calling button's returnListener.
    Any ideas?
    Thanks,
    Will

    Thank you for your response.
    I'm trying to call the delete operation from a task flow. Once the delete occurs, the page should somehow call a refresh on the iterator displayed. However, since the iterator can not have PPR set, the refresh doesn't happen automatically. Additionally, since the delete doesn't happen as part of a dialog window, the returnListener for the calling button does not fire.

Maybe you are looking for