How to refresh the tree

hi
I am using jdev 11g
in my page ,i use <af:panelSplitter> panel , left is my tree ,right is tree node details with dynamic region , because the different level has the different details page, so i use dynamic region
But when the node details update or delete at right, my left tree can not refresh ,how to refresh with ManagerBean or others ?
who can help me? thanks very much , i am waiting for your reply on line.

hi, tks,
in dynamic region , there is another page ,how to set PartialTriggers between two page(tree page and page in region ), perhaps it can't?

Similar Messages

  • How to refresh the ALV Tree

    Hi,
    I have an ALV Tree report developed using the OOPS. In my ALV Tree output, I have some buttons which will update the database after clicking. The data is correctly updating in the database. But, it is not getting updated in the ALV Tree display. That means, it is not REFRESHing the ALV Tree display. We have to again execute the program in order to see the updated output.
    Could anyone please suggest me how to Refresh the ALV Tree display..?
    We can't use the method 'REFRESH_TABLE_DISPLAY' as it is a PRIVATE method is the class CL_GUI_ALV_TREE.
    Please share your valuable thoughts.
    Thanks & Regards,
    Paddu.

    Hi paddu.
    please check out the link mentioned below,this will help u.
    How to Refresh data on ALV tree
    Regards
    Theres

  • How to refresh the textedit object in module pool

    Hi All,
    I would appreciate if anybody can solve my problem.
    Problem is i have created one TEXTEDIT and now when user clicks on the cancel button and come back to the screen the data which was previously entered is still coming up.
    Please tell me how to refresh the data in TEXTEDIT.

    actualy it is enough to do the following, assuming you have a container to put the textedit into it:
      DATA:  l_parent_container TYPE REF TO cl_gui_custom_container,
             l_obj_editor TYPE REF TO cl_gui_textedit, "make this a global variable
             l_text_table TYPE re_t_textline,
             l_itftext TYPE STANDARD TABLE OF tline,
             l_thead TYPE thead.
    l_parent_container = ... "your container
    move .... to l_thead...    "your text header to read or reread
    read text from SO10
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id                      = l_thead-tdid "Text-ID
          language                = l_thead-tdspras "im_request-language?
          name                    = l_thead-tdname "TDIC Text-Name
          object                  = l_thead-tdobject "Texte: Anwendungsobjekt
        TABLES
          lines                   = l_itftext
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    convert itf text to stream text (SAPSCRIPT_DEMO_NOTE_EDITOR)
      CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'
        TABLES
          itf_text    = l_itftext
          text_stream = l_text_table.
      IF l_obj_editor IS INITIAL.
        CREATE OBJECT l_obj_editor
            EXPORTING parent = l_parent_container. " Abstract Container for GUI Controls
      ENDIF.
    discard any previous changes
      l_obj_editor->set_textmodified_status( cl_gui_textedit=>false ).
    übertragen text in editor
      CALL METHOD l_obj_editor->set_text_as_stream
        EXPORTING
          text            = l_text_table
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2.

  • How to refresh the panel's display in listener?

    I have a Jcombobox and a panel(square,background color:white). I want user to choose the panel's size from the combobox and thus change the panel's display. However, when I choose a value from combobox, the panel's size DOES change, but the display cannot be rerfreshed realtimely. It still display the panel by previous size. If I minimize the whole window and restore, then the panel gets refreshed, displaying by new size.
    Can anybody tell me how to refresh the panel's display dynamically? thank you a lot.
    sraiper

    if we bounce the listener the connections to other might be lost.NO!
    The listener contacts the DB to establish the initial connection between client & DB.
    After the connection between DB & client has started, the listener has NO involvement between DB & client.
    Stopping the listener has NO impact on existing sessions.
    Edited by: sb92075 on Jul 28, 2009 4:37 PM

  • How to refresh the input text value in backing bean

    hi all
    i want to know
    how to refresh the input text value in backing bean?
    i have tried this code ,but it doesnt work
    public void click(ActionEvent actionEvent) {
    tempConId.setValue("111111111111111");
    AdfFacesContext.getCurrentInstance().addPartialTarget(tempConId);
    sb know?
    Edited by: Joe Zou on 2012-4-6 下午9:11

    The code looks good.
    Here is a sample based on your use-case:
    InputTextSample.jspx:
    <af:form id="f1">
            <af:panelFormLayout id="pfl1">
              <f:facet name="footer">
                <af:commandButton text="Ok" id="cb1" partialSubmit="true"
                                  actionListener="#{InputTextSampleBean.onClick}"/>
              </f:facet>
              <af:inputText label="InputText" id="it1"
                            binding="#{InputTextSampleBean.myInputText}"/>
            </af:panelFormLayout>
          </af:form>
    InputTextSampleBean.java:
    import javax.faces.event.ActionEvent;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.adf.view.rich.context.AdfFacesContext;
    public class InputTextSampleBean {
        private RichInputText myInputText;
        public InputTextSampleBean() {
        public void setMyInputText(RichInputText myInputText) {
            this.myInputText = myInputText;
        public RichInputText getMyInputText() {
            return myInputText;
        public void onClick(ActionEvent actionEvent) {
            this.myInputText.setValue("1234");
            AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(this.myInputText);
    }

  • How you refresh the planning application

    how you refresh the planning application ? what is an enhanced calculation script?

    Is this for an exam or interview?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to refresh the table control on some action

    Hi All,
         In a web Dynpro application, I am filling data to the Table control through Supply function. When  I do some action (like save new record )  i want to refresh the table control means add the newly added record.
       How to refresh the Table control.
    Thanks
    Hemalatha

    hi hema........
        if you are using a select query inside the supply function...
        then...
        you can just use node->invalidate(). method..
        it just invalidates the node that is bound to the table.
       so the supply function will be called again, which again uses the select query to fetch the values.. so that your table gets refreshed.
    ---regards,
       alex b justin

  • How to refresh the client area

    i used javax.swing.JPanel and drawed many shapes with paintComponent method. i wonder how to refresh the client area.
    ps: i first used paint method to draw shapes, but i found a copy of the menu bar appeared. at last i found paintComponent method works, but when i tried to refresh the client area with repaint, the same scene appears.
    could some one help me?
    thanks in advance!

    when i tried to refresh the client area with repaint, the same scene appears. When you invoke repaint() on a component, the paintComponent() method of that component is invoked. So unless your code in that method is different, the image painted will be the same.

  • How to refresh the filed catalog of POWL

    Hi all,
    How to refresh the field catalog of POWL?  The requirement is that the result list should meet the selection/query criteria. Even the system has executed the mehod GET_FIELD_CATALOG in feeder class, the filed catalog still keep the the original look. I have to switch to other query and then reswith back, then the field catalog changed to the new one.
    Thanks & best regards
    Julia

    Hello,
    When you refresh the query, only then it goes to the method you have mentioned.
    Also when you switch between the query, you have to do the refresh manually or there is personalization for query, On every visit of page, This option is avaible from 7.02 release.
    Best regards,R
    Rohit

  • How to refresh the Oracle Cache?

    Hi,
    I am dealing with millions of records. Every time, the cache is full. It causes my system to be slow. Could any one tell, how to refresh the cache.
    Thanks and regards
    Gowtham Sen.

    Hi Eric,
    I think that, it may cause the system to be slow. Actually my system (LINUX server Enterprise 3 ) has 1GB RAM.
    There I am running DB 10g , Work flow server 2.6.3, OWB 10G, Oracle Middle ware (HTTP server, portals).
    I don't know, why the systen is too slow?
    Could you please give some suggestions to increase the performace.
    Thanks and regards
    Gowtham Sen.

  • How to make the tree sibling nodes sorting  in memory per the VO default?

    Hi,
    I have a question on the uncommitted tree nodes sorting. The tree was built using the same VO with the view link to itself (parent/child relation). I have defined a default sorting on my VO. Now if I insert a node to the tree, the sibling nodes may not sort correctly if it is not committed. I tried to insert it to the RowsetIterator at the right position, it seems OK. but when you right click or something that make the tree to refresh, the order will mess up. If I do an auto save after each action, everything looks OK. But the fusion pattern is to do a global save, I have to manipulate the tree with the uncommitted data. I know I can set the view object's SQL mode to do the in-memory sorting. But not sure if it works on the tree structure, because it is not a single RowsetIteroator.. Can someone give an advice? Many thanks.
    Edited by: user736572 on Jan 20, 2012 2:48 PM

    Thanks Sudipto for trying to help. I did try that, and as I mentioned in the previous posting, it doesn't work for the tree nodes (multiple RowSetIterator). the following is my code, where the treeVO is the vo instance for the firstLevel tree nodes and it has view link to its children. I am not sure how to sort all children for each level. Even for the first level where I did the explicit sorting in memory, it still not sorting at all.
    treeVO.setSortBy("code");
    treeVO.setQueryMode(ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS|ViewObject..QUERY_MODE_SCAN_DATABASE_TABLES);
    treeVO.executeQuery();

  • How to solve the tree update problem

    Hi all,
    I met a urgent problem, I defined two tree control over two JScrollPanes.
    two JScrollPanes are in a JSplitPane which is located in another JSplit's left. The left JSplitPane and another JTextarea both are in another JSplitPane.they are layouted as:
    JTree1 | JTextArea
    JTree2 | JTextArea
    I want to achieve this: when I clicked a node in JTree1,then JTree2 is changed in the viewport according to the content of the clicked node.
    I use the following essential code :
    public class TNTree extends JTree {
    private TemplateFrame frame1;
    public TNTree(TemplateFrame frame/*,XTree tree*/)
    this.frame1=frame;
    getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
    setShowsRootHandles(true);
    setEditable(false);
    try{
    treeModel=initTree();
    setModel(treeModel);
    jbInit();
    }catch(Exception e){}
    this.addMouseListener(new MouseAdapter(){
    public void mouseClicked(MouseEvent e) {
    TreePath tp=getPathForLocation(e.getX(), e.getY());
    pt.x=e.getX();
    pt.y=e.getY();
    try{
    if((e.getModifiers()&InputEvent.BUTTON1_MASK)==InputEvent.BUTTON1_MASK)
    setSelectionPath(tp);
    if(e.getClickCount()==1){
    if((tp!=null)&&(!isIn((DefaultMutableTreeNode)tp.getLastPathComponent())))
    {    tempStr=((DefaultMutableTreeNode)tp.getLastPathComponent()).toString();
    Connection con=getConnection();
    PreparedStatement pstmt;
    pstmt=con.prepareStatement("select content from template ,tcontent"+
    " where template.tcode=tcontent.tcode and name=?");
    pstmt.setString(1,tempStr);
    ResultSet rset=pstmt.executeQuery();
    String str="";
    if(rset.next()){
    str=rset.getString(1);
    treeStr=str;
    System.out.println(treeStr);
    // frame1.xTree =new XTree(frame1,str);
    // frame1.xTree=new XTree(frame1);
    frame1.xTree.refresh( str );
    frame1.jScroll.getViewport().add(frame1.xTree);
    // frame1.repaint();
    if(e.getClickCount()==2){
    }else
    }catch(Exception e1){e1.printStackTrace();}
    public class XTree extends JTree {
    private TemplateFrame frame;
    public XTree(TemplateFrame frame) throws ParserConfigurationException
    this.frame=frame;
    refreshTextFlag=false;
    strBuffer=new StringBuffer();
         getSelectionModel().setSelectionMode( TreeSelectionModel.SINGLE_TREE_SELECTION );
         setShowsRootHandles( true );
         setEditable( false );
         dbf = DocumentBuilderFactory.newInstance();
         dbf.setValidating( false );
         db = dbf.newDocumentBuilder();
    treeModel = buildWelcomeTree();
    setModel(treeModel );
    TreeTXT = "";
    try{
    jbInit();
    catch(Exception e){
    //e.printStackTrace();
    Error err = new Error();
    eBuffer.append(err.getValue("Err#4"));
    eBuffer.append("\r\n");
    public void refresh( String text ) //throws ParserConfigurationException
    try{
    treeModel=buildTree(text);
    setModel( treeModel );
    TreeTXT = text;
    }catch(Exception e){
    // e.printStackTrace();
    Error err = new Error();
    eBuffer.append(err.getValue("Err#1"));
    eBuffer.append("\r\n");
    public class TemplateFrame extends JFrame
    static XTree xTree=null;
    static TNTree tnTree;
    xTree=new XTree(this);
    tnTree=new TNTree(this);
    jScrollLeft.getViewport().add(tnTree);
    void fileOpen_ActionPerformed(ActionEvent e)
    String fileName = "";
    BufferedReader reader;
    String line;
    StringBuffer xmlText;
    JFileChooser chooser = new JFileChooser();
    Container parent = jMenuItem4.getParent();
    int choice = chooser.showOpenDialog(parent);
    int returnVal = chooser.showOpenDialog(this);
    if(returnVal == JFileChooser.APPROVE_OPTION) {
    textMessage.setText("You chose to open this file: " +
    chooser.getSelectedFile().getAbsolutePath() );
    // chooser.getSelectedFile().getName());
    fileName = chooser.getSelectedFile().getAbsolutePath();
    path=fileName;
    if(fileName.substring(fileName.length()-3,fileName.length()).equalsIgnoreCase("xml"))
    //Will fix future
    try{
    reader = new BufferedReader( new FileReader( fileName ) );
    xmlText = new StringBuffer();
    while ( ( line = reader.readLine() ) != null )
    xmlText.append( line+"\n" );
    reader.close();
    //refresh the xml tree
    xTree.refresh( xmlText.toString() );
    textArea.setText( xmlText.toString() ) ;
    /*Set the title*/
    //fTitle = chooser.getSelectedFile().getName();
    fTitle = chooser.getSelectedFile().getName();
    this.setTitle(fTitle/*+mTitle */ );
    //Sign the editor has a file
    dirty = true;
    }catch(Exception Mye) {
    textMessage.setText("Error occured when opening the file");
    }else{
    textMessage.setText("Error occured when the opening file is not a xml file");
    Now my problem is when in TemplateFrame cl*** I call open method including import xTree.refresh(string),I can get the right results ,the JTree2 is refreshed correctly,but when in TNTree cl*** I call the xTree.refresh(String),I met a java.lang.nullpointer exception , How can I solve this problem?
    Are there other better ways to slove this problem?

    Hm ...
    what should it be otherwise?- You said, the problem is calling frame1.xTree.refresh(str) - and the NullPointerException is thrown there - so there are only 2 possibilities - frame1 is null or xTree is null. So please add the following code before this line ...
    if (frame1==null) { System.out.println("frame1 is null"); }
    else if (frame1.xTree==null) { System.out.println("frame1.xTree is null"); }
    else System.out.println("None of them is null - I haven't read the runtime error correctly");and then you will see, where the problem is :)
    greetings Marsian

  • How to refresh the data in a container and to update the new data

    Hi,
    I have created a Module Pool Program in which i have two containers to display the long text.
    Initially this container is filled and based on some condition i want to update the text in the same conatiner.
    I am using the below two classes to do all this.
    cl_gui_textedit,
    cl_gui_custom_container,
    Could someone help me how to remove the long text in the container and update the new long text.
    I am getting the new long text but not able display it in the same container. Please someone help me how to refresh and update the container.
    Thanks in advance.

    Hi
    Try this.
      IF cl_gui_textedit  IS INITIAL.
      create control container
        CREATE OBJECT cl_gui_custom_container
           EXPORTING
                container_name = 'Container Name''
           EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
    create text_edit control
        CREATE OBJECT cl_gui_textedit
           EXPORTING
                parent = cl_gui_custom_container
                wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
                wordwrap_to_linebreak_mode = cl_gui_textedit=>false
           EXCEPTIONS
                error_cntl_create      = 1
                error_cntl_init        = 2
                error_cntl_link        = 3
                error_dp_create        = 4
                gui_type_not_supported = 5.
      ENDIF.
    *--use method to set the text
      CALL METHOD cl_text_edit->set_text_as_stream
        EXPORTING
          text            =  t_lines ( Internal table with long text).
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.
    regards,
    Raghu.

  • How to refresh the data in sharepoint online

    Hi,
    I have an Office365 PowerBI Preview site and I have uploaded a excel sheet with a using power query connecting the
    azure data source. I then setup the "Data Management Gateway" and "Data Source" in the Manage Data settings within PowerBI and the Excel spreadsheet now refreshed data within the Excel web app. 
    Here I won't refresh my data but no error shown.  
    But Selected "Edit the Excel" option and refresh the connection on workbook Queries in power query within excel.
    Tts works fine. I can able to see my modified data.
    Anyone how to resolve this issues?
    Thanks,
    Ramu

    Is this still an issue, Ramu?
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to refresh the Expired Login Form on the onChange event of the password

    Hi,
    In the Expired Login Form I have places a custom label. My requirement is that on the onchange event of the password field the label color should change to orange if the entered password meets the password policy else red.
    I am trying the following code :
    Custom label:
    <Field name='Custom Label'>
    <Display class='Label'>
    <Property name='value' value='Custom label 1'/>
    <Property name='noNewRow'>
    <Boolean>true</Boolean>
    </Property>
    <Property name='color'>
    <block>
    <cond>
    <isTrue>
    <invoke name='checkStringQualityPolicy' class='com.waveset.ui.FormUtil'>
    <rule name='EndUserRuleLibrary:getCallerSession'/>
    <s>Default Password Policy</s>
    <invoke name='decryptToString'>
    <ref>resourceAccounts.password</ref>
    </invoke>
    <map/>
    <list/>
    <s>Configurator</s>
    </invoke>
    </isTrue>
    <s>orange</s>
    <s>red</s>
    </cond>
    </block>
    </Property>
    </Display>
    </Field>
    And on the password field i gave following in the onChange event:
    submitCommand(this.form, "Recalculate")
    But the above command is not refreshing the page. Instead on the onChange event its going back to the login.jsp.
    Any idea how to resolve the above issue.
    Thanks.

    I got it working as below but i dont know is this best practices?
    <%
        if(session.getAttribute("afterSet") != null){
             %>
        <div style="visibility:hidden">
          <iframe NAME="iframe1" src="/WebApplication2/TestController?fileDownload=test.pdf" WIDTH="40" HEIGHT="40"></iframe>
        </div>
        <%}       basically first time user visit the jsp page session attribute "afterSet" will be null so it wont create the hidden iframe tag . after it dispatched to the servlet controller and successfully processing the record it will set "afterSet" properties to some value and dispatch to itself
    after that it will popup/dialog box for user to save the pdf.
    this way the page already refreshes itself and wont have problem double clicking thing and so on

Maybe you are looking for

  • How can I get a list of all my apple ids

    I would like to get a list of all my apple ids .. as ive had many macs over the years i have one which i can remeber & i cannot use app store ?

  • CS6 Extended 3D functions not working... Need help!

    This is a copy of the system info from CS6: Adobe Photoshop Version: 13.0.1 (13.0.1.2 20130522.r.24 2013/05/22:21:00:00) x64 Operating System: Windows 7 64-bit Version: 6.1 Service Pack 1 System architecture: AMD CPU Family:15, Model:1, Stepping:0 wi

  • Problem Playing music in iTunes

    Hi. I play music directly from iTunes on my computer quite a bit. Recently I've noticed that the last 5-10 seconds of a song are cut off as iTunes skips to the next song on the playlist. It's become a big annoyance. Has anyone heard of this before/kn

  • Error when extracting data using DB Connect from an Oracle database

    Hi All, We are on BI 3.5 and loading data from a non-SAP (Oracle 10g) database using DB Connect. I received the following error messages when trying to perform "Check DataSource" using the DB Connect setup in RSA1. Event with errors RSDL_META_UPLOAD

  • BW Macros for Advanced Formatting of BEX Reports

    Hi BW Gurus, Would like to bring to ur attention for a small solution which i have proposed for SAP Tech Ed. As a BW consultant, you would have come across a situation where you had to decide a reporting tool that was flexible, reliable, user friendl