Javascript API for searching component

Hello,
I want to search component hierarchy in Java Screen start from AdfRichForm. Is there any java script API available that will give me children of a AdfComponent? We can use AdfPage.PAGE.findComponent(Id) or similar API. But that require Ids to be know. I want to look for component by looking at component hierarchy.
In Java, we can use ViewRoot object to look for component structure. How to do this in java script?
- Sujay
Edited by: Sujay Patil on May 4, 2012 3:15 PM

I am mainly trying to do this for Popup in my application. I have different links in my application, on click of them I am opening ADF popup with inlineFrame. I am opening the URL associated with the link in these inlineFrame. Till now I was using hard-coded height and width. But now I am planning to populate them using Java script. I did manage to implement my logic. By now popup is not showing at the center of the page. I am calculating the size in Java script based on screen sizes before calling show method.
I think no one has able to make the af:popup in the center of the page.
I tried "hint" property but it aligns the popup with the component. I want to show it in center of the page.
I think I have deviated from my initial problem.

Similar Messages

  • Getting error when updating the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1

    Hi,
    I`m getting error message like "None of the apps in your project can be activated in the target. The manifest file of one or more apps contain API sets or Office applications that are not supported by
    the target Office client. To debug those apps, update manifest files to exclude any unsupported API sets or Office applications, and then start the project again. Alternatively, you can debug your apps by using Office 365 as a target." when when
    updating the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1 in manifest file though i have added host elements.
    any help in this regard is highly appreciated
    Thanks,
    Santosh Sutar  

    Hi Satosh Sutar,
    Based on the description, you got the error message when you update the apps from version 1.0 to 1.1.
    From the error message, it seems the menifest include some settings no allowed in the new version. Would you mind sharing more detail about how you update the project?
    And here is an article about updating apps for Office and menifest schema files in the project for your reference:
    How to: Update the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1
    Regards & Fei
    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.

  • API for search profile options-R12.

    Is there any API for searching profile options? (R12)
    Using ibe_customer as the default responsibility.How to filter profile option search using organization , responsibility and different access level?
    Edited by: Ep on Aug 29, 2012 11:57 PM
    Edited by: Ep on Aug 29, 2012 11:58 PM

    hi ,
    You can search the table that profiles options are saved,Using the application id in that table ,you have query it....

  • APIs for Search service

    Post Author: prabhanjana
    CA Forum: JAVA
    Hi All,
    Please let me know is there any APIs in java available for programming the search service of BO Enterprise Productivity Pack.
    I have to develop the custom JSP search screen which should accept the inputs from user and calls the Search facility of BO.
    Please help me in this regard.
    Regards,
    Prabhanjana

    Post Author: Ted Ueda
    CA Forum: JAVA
    The search service uses a scheduled program to index contents on Enterprise, and another to search the index for matches to search requests.There currently are no public APIs for the Search Service.Sincerely,Ted Ueda

  • Search API for searching Business Objects in SAP R/3

    Hi All,
    As per my requirement i need to search Business Objects from a third party application by writing some java code.
    I know only JCO which is useful for to establish a connection from Java to SAP Server and execute the RFC's or BAPI's which are reside in SAP Server.
    Can any one help me, it is possible or not to search Business Objects in SAP for example Master Data( Like Employee, Vendor, Customer-) or Transactional Data ( like Sales Order, Purchase Order--), in case if it is possible any Search API is there to use on SAP System and what are the Prerequisites and the Feasibilty.
    Its urgent---PLZ help me how to resolve this issue
    Thanks in ADV
    Regds
    Rajesh

    Hi,
    Good evening and greetings,
    Please go through the following link
    http://help.sap.com/saphelp_erp2004/helpdata/en/0d/afb8f627878b4fa71ac79508f2358a/frameset.htm
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • Map Builder JavaScript API

    Hello everybody,
    I'm a student who is currently working with Oracle for the first time. I developed an Web mapping application by using Oracle XE Database (10g), Oracle Map Viewer and corresponding Map Builder (the latest version). I choose the JavaScript API for the implementation of this application.
    The reason for this post is one particular problem that I encountered. I want to extract the X and Y coordinates (which are naturally stored as SDO_GEOMETRY in my database) for certain features that are visible in my map window (this features belong to themebasedFOIs). I know that the x and y coordinates (and other attribs) are easily accessible for the JavaScript Client if the coordinates are stored in own columns (additionally to the information stored in the SDO_GEOMETRY) ... but that is not the case!
    I searched the JavaScript API, the Internet, this forum and it took me a long time ... but I didn't come across any possiblity to manage this. So does anybody who reads this post see a possibility to get my X and Y coordinates from my HTML application that is build with JavaScript API???
    I will be very thankful for any advices and/or hints... :-)
    With regards

    hi, we don't return the geometry back to the client unless the foi is a point.

  • How can i use  a adf javascript api

    hi
    can i use the adf javascript api for creating the AdfRichInputText .is there any producer
    to create the AdfRichTextInputText in javascript .plz guide me
    Thanks and Regard
    Message was edited by:
    Prapan Sol

    Hi,
    the ADF JavaScript API is not meant for you to create JSF components on the fly. For this you please use teh ADF Facesserver side components.
    The RichInputText component is defined by a pair of components, the AdfRichInputText and its Peer component. I don't know what your usecase is, but my impression is you are looking at it from the wrong end
    Frank

  • How to add a polygon to mapviewer using Javascript API

    Hi,
    I am using JavaScript API for the MapViewer.
    Using redlining tool, my application allows user to draw polygon onto the map.
    I would like to have union, difference and intersect tools. I know the back end logic can be done using using JTS or SDO_Union, SDO_difference, and SDO_intersection. but how do i display the result polygon on the map? Note that I am not going to store the polygon in the database.
    Thanks for any ideas.

    Hi,
    If I understand well you are using Oracle Maps. User do some redlining, then you somehow makes FOI polygons. Then you get the coordinates of the polygons and send them to the back-end where you can use spatial functions and get the coordinates of the new polygon.
    You can store those coordinates in i.e. hidden input field on page (if you use JSF it is very simple) and then use JavaScript to parse them and Oracle Maps API to create new FOI polygon and add it to mapviewer object. One disadvantage of this concept is that reloading of page (submit) is necessary.
    Branislav

  • Javascript API

    Is there any update on the proposed release of the javascript API for post Forms 9.0.4 ?
    thanks
    Andrew

    Andrew,
    we started working on the JavaScript API for Oracle Forms 11. We have a spec, which is a good way to start and I am confident that we will see this feature coming.
    Frank

  • OneDrive Javascript api access to powerpoint

    I'v been using the new javascript API for OneDrive and was wandering how/if the api extends to cover calling powerpoint files into an webpage or even hopefully specific slides into an iframe e.g
    regards
    Mark

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office ,the issue is more related to coding/programing, you'd better post your question to the MSDN forum
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=messengerconnect
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • Shockwave 11 Javascript API

    I'm seeking any information regarding the javascript API for
    Shockwave 11. Does it exist? Is there documentation?
    I've seen one example using a javascript to control the
    shockwave player created for 8.5 at famous3D website, but it
    appears to be broken now with version 11. I've been having a
    serious problem with the Shockwave ActiveX Control since upgrading
    to 11. I'm hoping the Javascript API could be a potential
    workaround.
    Any info would be greatly appreciated! Thanks in
    advance!

    _PlayerOne_,
    No, I haven't made any progress on this. I can confirm that
    it happens also in Director 11 and Director MX 2004. Director 11 is
    a currently supported product and yet it experiences the same
    error. I have also posted this to the director forums but no
    response there. I have also explored calling it from Swing in Java,
    same effect. Calling it in a Power Point presentation with Visual
    Basic also causes it to crash.
    I got the "compatibility player" portion to load but it
    didn't have any effect on this issue.
    No solution has presented itself. Currently, I am advising
    our company and our customers to revert to the 10.3.0.24 version
    and to avoid installing the 11.0.0.429 version until it gets fixed.
    Unfortunately, this means Vista performance is poor but luckily our
    customers haven't moved entirely to Vista.

  • Javascript API - Selection Refresh

    I'm building a command with JSFL to run through the list of
    objects in a frame one at a time and turn them into symbols. The
    purpose is to automate making any text boxes into symbols with the
    text string for it's name, however, I also want to be able to name
    bitmap images in the frame as well, so I have an XML-UI Panel pop
    up when/if it's necessary to name each bitmap.
    So far it works perfectly, but for one thing: the screen
    doesn't refresh the selection until after the first panel pops up
    and a name is inserted. This is a problem because I don't know
    which bitmap (if there's more than one) I'm naming, because all
    items on in the frame are selected. After that first panel pop-up,
    the selection refreshes appropriately, highlighting the objects one
    at a time as I need to name them - it's just that first panel that
    doens't work.
    Here's the code I have so far:
    D = fl.getDocumentDOM();
    SEL = D.selection;
    MSEL = new Array();
    for (i=0;i<SEL.length;i++){
    if (SEL
    .elementType == "text"){
    MSEL[0]=SEL;
    D.selectNone();
    D.selection = MSEL;
    var myText = "t|"+D.selection[0].getTextString(0, 15);
    D.convertToSymbol("movie clip", myText, "top left");
    } else if (SEL
    .elementType == "instance"){
    if (SEL.instanceType == "bitmap"){
    MSEL[0]=SEL
    D.selectNone();
    D.selection = MSEL;
    var result = D.xmlPanel("file:///C:/.../blah.xml");
    if (result.dismiss == "accept"){
    gName = "g|"+result.bN; // bN is the UI-Panel input variable
    to name the bitmap
    D.convertToSymbol("movie clip", gName, "top left");

    Andrew,
    we started working on the JavaScript API for Oracle Forms 11. We have a spec, which is a good way to start and I am confident that we will see this feature coming.
    Frank

  • Javascript API and server-generated URLs

    I'm creating a Shopify site for a client and part of the site is a complex Adobe Edge Animate animation. Shopify uses server-generated paths to files. My animation uses images and audio.
    It looks like the animation sets a base path set in the Publish settings then it sets everything itself in the Javascript runtime and associated files. With Shopify, I end up with image URLs that are like this one: "cdn//path//image.gif?234324". I don't have a absolute path with an absolute file name.
    Does anyone know of a way I can put these specific unique server-generated paths to the files needed for my animation in the files for my animation? Basically, can I customize and control the entire URL to all the files needed for my animation?
    I see how I can put any URL for assets in the edge.js file. My bigger problem, I think, is being able to customize the URLs for the edge.js and edgeActions.js files.
    If anyone has any ideas, I'd really, really appreciate it!

    I am getting close on this!  I'm hoping someone can help me figure out the last step.
    I am using an iframe and sandbox method to load the swf video player like this:
    <iframe id="playerFrame" src="player.html" sandboxRoot="http://localhost/air/" documentRoot="app:/"></iframe>
    So now the JavaScript API for the player actually works in player.html.   The BIG problem is that the videos are downloaded to the app-storage directory.  Well, based on AIR security, the iframe (non-application sandbox) content cannot access the application storage directory.  So now only videos that are in the app:/ location will load.  Unfortunately, this application downloads video from a central server and places them in the application storage directory.  Security also will not allow me to download to the app directory.  So I am in an endless circle!
    I can't use the API if I am in the application sandbox because there is no domain (sandboxRoot) available.
    The API works in the non-application sandbox, but I can't access the downloadable content.
    What am I missing here?  Surely, people have needed to interact with a SWF file using JavaScript and load dynamic content at the same time.

  • Local Javascript API and AIR

    I'm having a hard time describing this problem, but I'll try...
    Is there anything I can do to allow Adobe AIR to load a JavaScript API to interact with JW Player (longtailvideo.com)?  The API already exists, and I can port my AIR code over to an HTML page on my server and it works fine.   Longtail support boards say that the API will not load locally (either locally on a folder OR "locally" in an AIR app).  They said it is a restriction of Flash.  Is this correct?  I did put my HTML files on my desktop and the API did NOT load.  It only seems to load when I put it on my server and run it on a domain.
    I assume this is somehow related to security. JavaScipt cannot interact with Flash unless it is on a domain?  Is that correct?
    I can get the player to load and play video just fine in AIR.  However, the API never loads, so I cannot interact with it.
    This is the last piece of a very LONG project I have been working on, so any help would be greatly appreciated!    Is it possible to get AIR to "pretend" it is on a URL?  I tried referencing files with app:/, and that had no impact.

    I am getting close on this!  I'm hoping someone can help me figure out the last step.
    I am using an iframe and sandbox method to load the swf video player like this:
    <iframe id="playerFrame" src="player.html" sandboxRoot="http://localhost/air/" documentRoot="app:/"></iframe>
    So now the JavaScript API for the player actually works in player.html.   The BIG problem is that the videos are downloaded to the app-storage directory.  Well, based on AIR security, the iframe (non-application sandbox) content cannot access the application storage directory.  So now only videos that are in the app:/ location will load.  Unfortunately, this application downloads video from a central server and places them in the application storage directory.  Security also will not allow me to download to the app directory.  So I am in an endless circle!
    I can't use the API if I am in the application sandbox because there is no domain (sandboxRoot) available.
    The API works in the non-application sandbox, but I can't access the downloadable content.
    What am I missing here?  Surely, people have needed to interact with a SWF file using JavaScript and load dynamic content at the same time.

  • What the correct URL for searching on KM Index

    I have an application that supposed to mimics a KM search over TREX Index.
    When Pressing the button "search" I operate the following url:
    <i>"/irj/servlet/prt/portal/prtroot/com.sap.km.cm.basicsearch?layoutSetMode=exclusive&ResourceListType=com.sapportals.wcm.SearchResultList&SearchType=ctrlpers&QueryString="str"&SelectedSearchIndices="+ Index</i>
    The var "str" stands for the input field (the search Item)
    The var "Index" stands for the Index.
    It doesn't work!
    What am I doing wrong?
    Thanks,
    Meytal.

    Hi,
    If you need a search in TREX index you can try use a portal API  for search.
    See this example <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/nw/netweaver-developers-guide-2004s/NetWeaverDevelopersGuide2004s_Documents/KM_articles_new/examples/com.sap.netweaver.kmc.search_servlet.zip">https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/nw/netweaver-developers-guide-2004s/NetWeaverDevelopersGuide2004s_Documents/KM_articles_new/examples/com.sap.netweaver.kmc.search_servlet.zip</a>
    It is an example of search in exact index:
                             // get an instance of the indexmanagement service
                             IIndexService indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
                             // build a query object, using the SearchQueryBuilder
                             SearchQueryListBuilder sqb = new SearchQueryListBuilder();
                             sqb.setSearchTerm(query);
                             IQueryEntryList qel = sqb.buildSearchQueryList();
                             // get an instance of federated search
                             IFederatedSearch federatedSearch = (IFederatedSearch) indexService.getObjectInstance(IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);
                             List indexList = new ArrayList();
                             if (index!=null && index.length()>0) {
                                  // take a specified index from index= parameter
                                  indexList.add(indexService.getIndex(index));
                             } else {
                                  // take all available indexes
                                  indexList = indexService.getActiveIndexes();     
                             // it is recommended to use a search session object
                             // for searching execution
                             ISearchSession session = null;
                             if (session==null)
                                  session = federatedSearch.searchWithSession(qel, indexList, c);
                             this.renderResultHeader(response, session, indexList);
                             // get all results from the search session
                             ISearchResultList results = session.getSearchResults(1, session.getTotalNumberResultKeys());
                             this.renderResultList(response, results);
    You can use this code when you press you "search" button and render the result.
    Regards,
    Andrei

Maybe you are looking for

  • Magsafe Middle pin stuck down (small one) - how can I fix this?

    I have a classic magsafe problem - the adapter will power the computer with no problems at all but the battery doesn't charge and the LED doesn't come on (or comes on incredibly faintly). After hearing theories of anything from a dead battery to a ba

  • Officejet 6000 E609n prints on USB. I am unable to get it to run wireless

    HP Officejet 6000 E609n Win 7 64 bit My printer works on a USB connection but I have not been able to get it to function on a Wireless to router connection. Router is Linksys WRT160N V3. I have used all the recommended solutions in HP's instructions.

  • IPad camera -problems with still shot, very grainy images indoors or atnight

    Hello, I have the ipad 2 and am experiencing problems with the still camera shots (using the built in rear camera). The images are very grainy to such an extent that th ipad camera images are unusable when taken indoors (under full light), in early e

  • MacBook Slow/Crashes after Lion Upgrade

    MacBook (13-inch, Aluminum, Late 2008) runs slow, crashes after update to Lion. Ran fine before. Now it crashes when it goes to sleep with screen saver running, sometimes takes multiple force-restarts to boot and seems to run out of RAM (menu bar dis

  • How can I open my project from the new account on my Mac?

    After suffering Autosave problems, I contacted Apple and they recommended I create a new 'admin' account on the MacPro and try FCPX from there. I created a new event and worked on it for a couple of hours and all went well. To take the trial further,