How to access root iterator

Jdev 11.1.1.4
I have a page with a region in it.
I need the region to update one field in the parent. This field is binded to a VO attribute through an iterator. The VO is filtered via two binding variables (with a view criteria). The region changes the values of the VO binding variables (via request variables).
I have tried AdfFacesContext.getCurrentInstance().addPartialTarget(field); but the field's iterator is updated from the cache and no SQL is sent to the database. The result is that the field is not updated.
If I'm able to execute rootIterator.executeQuery in the region, I think the field will be updated because this instruction will force it to read data from the database and then apply the binding variables in the query.
With JSFUtils.findComponentInRoot("pt_pb2") I'm able to access an UI element from the root. I would need something like this but related with binding.
May I get the binding and the the iterator via the pageDef file ? It's another option.....
Any idea ?
Thanks in advance.

Hi,
a quick solution is to ensure you use a shared Data Control and no isolated transaction. In your region you access the binding for the iterator (you may have to create it manually in the Executable section of the PageDef file that belongs to the view displayed in the region). Once you have this created, you can access it from BindingContext--> getCurrent-->getCurrentBindingsEntry --> get('name of iterator binding') - Now you are good to change the value in here. In the parent view, ensure the iterator has its ChangeEventPolicy (PageDef file) property set to ppr so that a change of the information refreshes the UI
Frank

Similar Messages

  • How to access root apps folder again in Time Machine after a restore?

    I just did a Time Machine full system restore which worked, but now it doesn't look like Time Machine is backing up my root level apps folder. All of my root apps were indeed restored, but if I try to go into Time Machine with my (root) Apps folder open, it switches the folder contents to my user apps instead so I don't have access to the root apps in TM. It doesn't appear to be backing them up at the root level anymore either (nothing in the exclusions that would cause this). Any ideas on what happened here? I have just one admin level account on this machine.

    cubytus wrote:
    Hi everyone,
    I just reformated the MacBook hard drive using Extended HFS+, journaled partition to get rid of the case-sensitiveness, which is incompatible with just ONE of my softwares. As such, TM partition is formatted as Extended HFS+, journaled and case-sensitive.
    This mis-match is likely to cause trouble in the future. If you have, for example, two files named "FileA" and "filea" in the same folder on the TM drive, and try to restore them to your case-ignorant HD, TM is going to have a problem. I've never tried it, so I can't tell you whether it will overlay the first one it restores with the second, or crash, or what, but it can't be done.
    And you may have some of these without realizing it -- if you ever changed a capital to lower-case, or vice-versa, after a file's initial backup, it's a possibility.
    Indeed, I checked directly in the Time Machine tree on the external hard drive with Apple+I keys, and 'cubytus' was not listed in the permissions.
    No, TM automatically denies everything to everybody, among other things, in it's backups, to keep us mere mortals from messing with them. The original file permissions are kept separately, and TM should restore them along with the files, as they were.
    What you're probably seeing is, the user that you're signed-on as won't have those permissions, once TM restores the files. I'd suggest trying the same procedure as your other, or original user -- see if you get the same message.

  • ADF Tree: how to access root node after "Show as Top" selected on sub node

    I am currently working on a project that using ADF tree and implementing some search/filter functionality. I need to find the java API calls to get the new root node information after UI user select a sub node in the tree and clicked “show as top"(so search are done only on the current tree. Can someone help on this?

    Hi ,
    In our project we require to implement ADF menu tree inside <af:menulist>.
    We require to show 3-4 child menuitems inside 2 parent menus.
    Home
    --> Inbox
    -->Search
    Patient
    --> Information
    --> Search
    Can you please tell steps to implement <af:menutree> to have child menuitems like Inbox, Search inside parent like Home ? I searched on ADF sites but not much of help there.
    Thanks
    Suhas

  • How do i reset admin password. no disc but system automativally logs me in as administrator and can access root user mode

    I recenly got this macbook, MA&00LL/A, max OS X, V:10.4.11, 2GHz IntelCore 2 duo, 2GHz, When I power up it automatically logs me on as administrator but prompts for password when I try to access/change certain features.  I got the macbook from my cousin who has forgot password and has lost disc.  I can access root user mode but as iam unfamiliar with apple I am hesitant to delete anything without making things worse. Is their anyway I can reset this admin password without the disc or simply delete this user and reconfigure system as myself as administrator. step by step instructions would be appreciated at this stage till i familiarize myself more.  Any help would be greatly appreciated.  If it came down to buying a disc, how much roughly do these cost???  thanks again

    If you don't have your install disks you can get the 10.4 gray disks by calling Apple Store Customer Service at 1-800-676-2775 They can send them to you for about $16 per disk plus S & H. Just give them your serial number and they'll know which ones you need.
    To find your serial number go to the Apple in the upper left corner and select About This Mac, then click on More Info, the System Profiler will then come up. The Serial Number (System) is down near the bottom of the Hardware Overview list.
    If you don't have your install disc handy,then follow these steps
    1. Start up in single-user mode (hold Command-S as thecomputer starts up).
    2. Type: mount -uw /
    3. Press Return.
    4. Type this: passwd (user's short name) Replace "(user's shortname)" with the short name of the user account whose password you wish to reset. If you are not sure what the account name is, you can get a list of usernames by typing: ls /Users
    5. Press Return.
    6. Enter a new user password.
    7. Press Return.
    8. Type: reboot
    9. Press Return.

  • How to Unlock root user in Linux version 4.4

    Hi All,
    Please let me know how to unlock root user as i tried to access with wrong password more than 3 times.
    Thanking you in advance

    Hi All,
    We tried to reset the root password in single user mode and tried to change the passas follows:
    we are getting error message as follows:
    sh -3.00#passwd root
    Changing password for the user root.
    New UNIX password:
    Retype New UNIX password:
    passwd: Authentication token manipulation error
    Please suggest how to change the root password in single user mode

  • How to access .html in tomcat

    I am very new to programming. I have created an html file (ThreeParamsForm.html) and placed it in development directoy. I am unsure of how to access that file. When i am typing http://localhost/ThreeParamsForm.html it is giving me HTTP Status 404 error. I have tried using servlets but they seem to be working fine. It is only htmls which i am unsure how to access. please help

    I think it may be considered bad practice to include all your web applications in the root directory.
    Instead, why don't you deploy each web application in it's own directory with a deployment descriptor.
    Your directory structure should look like this:
    [TOMCAT_HOME]
    --|\webapps
    ----|\MyWebApp
    ------|index.html
    ------|\WEB-INF
    --------|web.xmlYou'r web.xml file might read like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app>
         <context path="/MyWebApp" />
    </web-app>This so when you browse to your web site, you will go to http://localhost/MyWebApp

  • How to access BPM 11g payload or process varibles in ADF task flow

    I am trying to view/edit data in a UI tied to a database using a foreign key, requestId. The foreign key comes from a BPM process where it is passed into the task flow, from a human task. The foreign key comes from process variables or payload values. I know I can simply load the payload in BPM with data from the tables, but I'm looking for a better solution to leverage ADF Business components to view and edit the data directly in the UI.
    The BPM process uses a web service to kick off the process. The web services takes a primary key as a parameter to reference a column in the database table. The database is pre-populated with content and a primary key reference. The first activity is a user activity. I want the task flow behind the user activity to accept this primary key and use it to locate the desired row in the database so views associated with database bounded ADF Business Components can work to present the data in the UI.
    I've tried two approaches to the problem. The first uses the operation setCurrentRowWithKeyValue. The other modifies the SQL where clause, used by the ADFbc Iterator, to only return a row for the given requestId. Both approaches fail to work because I don't know how to access the BPM payload or data variables coming into the task flow. Here's the snipet of code I used to try to set the row using setCurrentRowWithKey value:
    public String setRequestId() {
    FacesContext context = FacesContext.getCurrentInstance();
    Object requestObj = context.getApplication().evaluateExpressionGet(
    context, "#{bindings.RequestId.inputValue}", Number.class);
    if (requestObj== null)
    return null;
    Number requestId;
    requestId = (Number)requestObj;
    DCIteratorBinding itr = (DCIteratorBinding)
    getBindings().get ("PatfRequestHdrView1");
    itr.setCurrentRowWithKeyValue(requestId.toString() );
    return null;
    I haven't gotten very far with the second approach, modified SQL where clause, since I don't know Groovy. I think I need something like:
    adf.object.viewObj.RequestId. But there isn't a viewObject associated with BPM data, so I'm sure this particular expression won't work.
    Any help you can give me is very appreciated.
    Regards,
    Mark

    The first thing I want the task flow to do is display a page with a form showing the values from the database. This is why I tried to call the method first. If I add the setCurrentRowWithKey to the form as a button, I can get the form to load the data, but it's a two step process, requiring the user to click a button. The method approach throws the following exceptioin
    oracle.adf.controller.activity.ActivityLogicException: ADFC-02013: The ADF Controller cannot find metadata for activity '/WEB-INF/ApproveTravel_TaskFlow.xml#ApproveTravel_TaskFlow@setTravelRecord'.
         at oracle.adfinternal.controller.util.Utils.createAndLogActivityLogicException(Utils.java:230)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:927)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:147)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:2

  • Help me with how to access accessor!!!

    hi my code is..
    import java.lang.*;
    import java.util.*;
    import java.io.*;
    class testStudentIterator
         public static void main(String args[])
              TreeMap stuTree = new TreeMap();
              student myStudent1= new student(1111,"AAA");
              stuTree.put("1",myStudent1);
              student myStudent2= new student(2222,"BBB");
              stuTree.put("2",myStudent2);
              Collection allStudents = stuTree.values();
              Iterator stuIterator = allStudents.iterator();
              while (stuIterator.hasNext()) {
                   System.out.println(stuIterator.next());
    class student
         private int stuID;
         private String stuName;
         student()
              stuID=0;
              stuName="unknown";
         student(int iD, String name)
              stuID=iD;
              stuName=name;
         public String toString()
              String info="Student ID : "+ stuID;
              return info;
         public String getStuName()
              return stuName;
    }and i want to use accessor to explicilty print the student's name only
    but i don't know how to access it..

    Feels a lot like homework, but what the heck...
    Instead of
    while (stuIterator.hasNext()) {
      System.out.println(stuIterator.next());
    }you might want
    while (stuIterator.hasNext()) {
      student s = (student) stuIterator.next()) // Classnames begin with upper-case letters!
      System.out.println(s.getStuName());
    }

  • How to access last object in a Collection.

    Hello. I'm trying to figure out how to access the last element in a collection. This is how I have it coded now:
    Collection coll = someMethodThatReturnsACollectionOfMyTypes( );
    Iterator It = coll.iterator( );
    MyType myType = null;
    while ( It.hasNext( ) )
    myType = ( MyType) It.next( );
    At this point myType should reference the object I'm interested in, but there has to be an easier way. Any suggestions would be greatly appreciated.
    -Jason

    Containers either are or aren't expected to support random access, depending on the container. For those containers that do support it, like ArrayList, you can do the following:
    public Object getLast(AbstractList a) {
      if (0==a.size()) return null;
      return a.get(a.size()-1);
    }

  • How to access Captivate Objects From Widget

    Using the widget factory, is there a way to access a specific property such as a button or textbox in a captivate movie from an widget?
    The button in captviate does have an instance name called button_mc. In my widget, I do have
    myRoot = MovieClip(root);
    mainMov = MovieClip(myRoot.parent.root);
    Also, how can you get the slide properties such as total frames?
    Can't seem to find out how or I am just missing something
    Thanks

    Hi Ukie,
    Here's an article on how to access objects on the Captivate slide with WidgetFactory: http://www.infosemantics.com.au/widgetking/2010/10/slip-sliding-away/
    In short, pass in the instance name of the button into the getSlideObjectByName() method:
    var myButton:Sprite = getSlideObjectByName("button_mc");
    Also, WidgetFactory has a property widgetSlide wich gives you access to the slide that the Captivate Author placed the widget on. This is a MovieClip, so if you wanted to read its total frames, you'd write:
    widgetSlide.totalFrames;
    Hope that answers your questions.

  • How to access attribute

    Hi all,
       I am new to webdynpro for ABAP.  How to access the attribute which is directly under the root context.
    ex.
    Root Context
    |
       Name   ---> attribute.
    Regards,
    Gnid.

    Hi Gopi,
    Accessing a context element or a context attribute requires to first have a  reference to the related context node. The context root node can be accessed by the standard attribute WD_CONTEXT. 
    To Access a Node Element: After having accessed a context node, the reference to the element at lead selection  of this node can be obtained by calling the method get_element( ). Thismethod  returns a reference to the element instance of type IF_WD_CONTEXT_ELEMENT. Accessing the Node Element at Lead Selection  The element with index n can be accessed using the method get_element( index  = n ) .
    Once we access the element we can access the attribute by GET_ATTRIBUTE().
    Child nodes of the context root node can be identified using the get_child_node(  ) method. This method returns a reference to the node instance of type  IF_WD_CONTEXT_NODE. The get_child_node( ) method requires the name of  the node and, optionally, the index of the element in the parent node to which the  desired node instance belongs. In this case, the parent node is the context root,  which only ever has one element; therefore, the index parameter is 1 (default =  lead selection of parent element).
    Best regards,
    Suresh
    Message was edited by:
            Suresh Honnappanavar

  • How to access a view object under a nested appmodule in servlet

    Hi,
    Can anyone tell me how to access a view object under a nested appmodule in a servlet?
    I know that I can use
    ApplicationModule app = Configuration.createRootApplicationModule(amDef, config);
    ViewObject vo = app.findViewObject(viewObjectName);
    to get hold of an appmodule and view object.
    But in a nested appmodule, for example, I have am0 as root, am1 as child, and voZ within am1, what should I use for this amDef? config? and viewObjectName?
    Your help would be much appreciated.

    Hi,
    http://radio.weblogs.com/0118231/stories/2005/07/19/nestedApplicationModules.html
    Frank

  • How to access attribute name (xml) in Servlet ?

    Hi All,
    Anybody please tell me how to access attribute name in servlet ?
    Thanks

    Parser.java
    public class Parser
    public static String getAtt()
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setNamespaceAware(true);
              DocumentBuilder parser = factory.newDocumentBuilder();
              Document doc = parser.parse("customer.xml");
              Element root = doc.getDocumentElement();
    return root.getAttribute("name");
    public static void main(String [] argc)
    Parser p = new Parser();
    p.getAtt();
    Servlet.java
    Parser p1 = new Parser();
    String att1 = p1.getAtt();
    Hope this will help u.
    ....yogesh

  • How to access the *.java file corresponding to a TypeElement T?

    Here is a problem:
    How to access the *.java file corresponding to a TypeElement T from a AnnotationProcessor environment?
    Let us say the hook method
    public boolean process(Set<? extends TypeElement> annos, RoundEnvironment roundEnv)
    is invoked with a TypeElement T such that T.getQualifiedname() = "a.b.c.X"
    And the problem is how to locate the file that has the *.java source code for a.b.c.X?
    That is the file that has the source code for a.b.c.X say "some/path/a/b/c/X.java"?
    For simplicity, let us assume that TypeElement T corresponds to a top-level Java class.

    Pinaki wrote:
    That is not something you as the annotation processor author should be asking about. That is something you the person configuring the javac environment should set up via the -d option or its equivalent.
    I strongly recommend using a separate output directory hierarchy.That is the way the current implementation is. The annotation processor takes a -Aout= <some directory path> to write generated output relative to a user-specified location (which defaults to the class output location).That is contrary to the design of the annotation processing facility. The intended use is for that information to be configured via options like "javac -d".
    Additionally, IMO it is a serious configuration error to put generated files and input files, presumably tracked under version control, in the same directory. Interesting you said that. We are just running some "field trial" with these things and some users want them to be in the same directory of the original *.java files (especially when their source files are spread across many roots) .
    Who knows what the user wants?The user does and the user is free to (mis)configure their environment however they like ;-) However, that is the user's option and the user has control of this via the javac command line. The annotation processor is not the proper place to configure this setting; see slide 7 of http://blogs.sun.com/darcy/resource/J1_2006-BOF-0606.pdf for some thoughts on different roles in annotation processing.
    presumably tracked under version control, in the same directory.version control is another 'usability issues' that we are trying to get our heads around with this stuff. "To check-in or not?" - that seems to be the question. When presented these facilities without any cue, "the users" were divided -- some wanted them to be checked-in, some did not. The context where these generated files being used -- there exists some rationale to check them in a version control system.The right answer depends on the circumstances, but IMO generally generated files should not be checked in under version control, especially if they are derived from other source files. Checking in generated files of this nature just creates the opportunity for them to get out of date with the originating files.

  • How to access the element s in a hashMap with order

    Does anybody know how to access the elements in a hashMap with order.
    I know set is a collection that doesn't gaurantee the order so the iterator of keySet will not gaurantee the order.
    Is there any way to solve this?
    Thanks

    If you mean the order in which the key/value pairs where added to the
    map, have a look at the LinkedHashMap class. If you mean 'natural'
    order, you shouldn't be using a HashMap at all then; have a look at the
    TreeMap class instead.
    kind regards,
    Jos

Maybe you are looking for

  • How can I sort bookmarks within a folder by date such that this is apllied not only in the library but also on the toolbar?

    Hello, I have several folders on my firefox toolbar which I use to sort new bookmarks by topic. If I add a new bookmark to a folder it is alwas placed at the bottom (below existing bookmarks) which is somewhat annoying with a increasing number of boo

  • Hide Button if Field Empty

    I have a view which I create a new button. I'm using a JSONModel to bind data to the button like so: var btnCall = new sap.m.Button('btnCall' { text: "{PHONE}",      press: [oController.onCall, oController]}); Not all records have a phone number, in

  • TDS on Rent

    At the time of calculating the TDS on Rent, system deduct TDS on Service tax amount also. But according to Govt. Circular, TDS should be deducted only on Rent (excluding Service Tax). What configuration should be made?

  • Datasource works in Tomcat 5.5.4 but not 5.5.9

    I am encountering a very strange problem when trying to use a datasource in Tomcat. I got Tomcat 5.5.4 to access the datasource by using the following in <TomcatHome>\conf\Catalina\localhost\<webAppContext>.xml <Context path="/appName" docBase="appNa

  • Compressor 2.0 blues

    Hi, Im just so frustrated - I recently installed Final Cut studio and now tried to output a little film on DVD and all I seem to get from compressor is pixels. I`ve done another project a little while ago on Final Cut 4,0 and Compressor 1.0 and it lo