How to clear a tree at runtime when built via many different cursors?

I want to be able to clear an entire tree.
I have a tree that contains different levels of information about a client. At runtime I build my tree with the add_tree_node function using several different cursors. When the user queries a different client, I want to clear the tree and start over with node 1. Is there a way to clear the entire tree before I re-populate it, so that my nodes start afresh? Right now, I am deleting all the nodes from the tree before I start building the new tree. This, however, does not make my nodes start from 1. I would really like to be able to just clear the tree.
Thanks in advance for any help,
Tina
null

Taken from forms help:
Description
Clears out any data already in the hierarchical tree, and obtains the data set specified by the RecordGroup or QueryText properties.
Syntax
PROCEDURE POPULATE_TREE
(item_name VARCHAR2);
PROCEDURE POPULATE_TREE
(item_id ITEM);
Try making a record group with no nodes and populate the tree from that(using the above built-in).

Similar Messages

  • How to get a Tree Node Value when a Tree is Expanded

    My reqiurement is when i Expand a Tree i need the Expanded tree Node Value. For Example Consider Parent as a Root Node of a Tree, and Consider its two Children Child1 and Child2.
    When + Parent Expanded
    I will Get the Output as --Parent
    - Child1
    - Child2
    so As when i expand the Tree i must Get the String Value Parent.

    duplicate
    How to get a Tree Node Value when a Tree is Expanded

  • HT1296 How do you sync iphone and PC when you have two different iphones/users?

    How do you sync iphone and PC when you have two different iphones/users in house? I just tried to sync my iphone and cancelled sync becauase I saw it was updating my phone with my husband's apps! How do I make it so that sync can distinguish between my and my husband's phone?

    I sync two iPhones and an iPad with one iTunes library on the same computer and each device has different content. Each device has its own sync preferences with iTunes. You can transfer the same music and apps to each device or different music and apps.
    Are you sharing the same Apple ID or iTunes account?

  • How can i do with labview program,when i have 20 different values,and 1 want to add it with constant value.and how to get the results?

    how can i do with labview program,when i have   20 different values,and 1 want to add it with constant value.and how to get the results?

    Why do the 20 values have to be different? The same code should work even if some are equal.
    What do you mean by "get the result"? The result is available at the output terminal and all you need is a wire to get it where you need it. That could be an indicator, another operation, or even a hardware device.
    What is the data type of the 20 values? An array? A cluster? A bunch of scalars? A waveform? Dynamic data?
    LabVIEW Champion . Do more with less code and in less time .

  • How to change report displayname at runtime when run from the report server?

    hi all,
    with the reportviewer widget in a winforms app, i'm able to change report displayname at runtime by handling thesubmittingparametervalues event like so:
            private void reportViewer1_SubmittingParameterValues(object sender, ReportParametersEventArgs e)
                string po = e.Parameters["Order"].Values[0];
                this.reportViewer1.ServerReport.DisplayName = "Load Out - " + po + " - " + DateTime.Now.ToShortDateString();
    question: how do i achieve the same thing when the report is run via the ssrs reportserver website?
    thanks for any tips,
    sff

    Hi sherifffruitfly2,
    According to your description, you want to change the display name of report in Report Manager. Right?
    In Reporting Services, we can't make the report file name dynamically. But we have Build-in Fields to show report name and execution time in a report. We can add a textbox and put in the expression below:
    ="Load on- "+Globals!ReportName+" "+Globals!ExecutionTime
    It will show the report name with execution time when we run the report:
    Reference:
    Built-in Collections in Expressions (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to clear the previous  filter text when creating new record??

    Dear All,
    my question is i i created table having filter and sorting.
    when i m searching data through filter text data is coming but i want to clear that text(filter text) when i am creating new record.
    for my case when i am creating new record all blank field is coming but in that filter text box previous data is coming which one i was searching.
    but i need when i will create a new record tat filter text should be clear.
    Thanks
    Damby

    Damby, please tell us your jdev version.
    Check my blog http://tompeez.wordpress.com/2011/10/29/jdev-how-to-reset-a-filter-on-an-aftable/ you can add this to the button you use to create the new record.
    Timo

  • How to clear exception cache in VO when using OAAttrValException

    I am using OAAttrValException to validate that individual required attributes are populated before a user can submit the page. The function i have in the VOImpl is as follows
    public void validateRow() {
    ArrayList exceptions = new ArrayList();
    String address1 = (String)getCurrentRow().getAttribute("Address1");
    String postCode = (String)getCurrentRow().getAttribute("PostalCode");
    if (address1==null) {
    MessageToken[] tokens = { new MessageToken("FIELD", address1) };
    exceptions.add( new OAAttrValException(OAException.TYP_VIEW_OBJECT
    , getViewObject().getFullName() // VO name
    , getCurrentRow().getKey() // VO PKs
    , "Address1" // Attribute Name
    , address1 // Attribute value
    , "XX" // Message product short name
    , "NTZZ_CZ_ADDRESS_FIELD_REQUIRED"// Message name
    , tokens)); // Message Parameters
    if (postCode==null) {
    MessageToken[] tokens = { new MessageToken("FIELD", postCode) };
    exceptions.add( new OAAttrValException(OAException.TYP_VIEW_OBJECT
    , getViewObject().getFullName() // VO name
    , getCurrentRow().getKey() // VO PKs
    , "PostalCode" // Attribute Name
    , postCode // Attribute value
    , "XX" // Message product short name
    , "NTZZ_CZ_ADDRESS_FIELD_REQUIRED"// Message name
    , tokens)); // Message Parameters
    OAException.raiseBundledOAException(exceptions);
    The problem is that every time you click submit it adds these exceptions to the list of exception already thrown i.e. it doesnt seem to clear the exceptions from the last submit, so the list of exception messages just gets longer and longer. Ideally I would like to flush these messages on submit but before I validate using something like clearAllExceptions() as in the EOImpl, but this method does not appear to be available in he VO.
    Does anyone have any suggestions about how I can achieve this?
    Thanks,
    Danny

    Danny,
    The simple and straight solution to your problem in that the row validation code you are writing is written in wrong file.VOIMpl file should only contain logic related to query manipulation of View Object. If you wanna do row validation at vo level, this code should go in VORowimpl file and not VOimpl file. In VORowimpl file BC4J framework provides a method called validate(), you can utilise that.The validate() method is automically called every time a post event has been generated.The method in turn invokes validate entity method in each of the entity objects involved in VO.
    This validate method is called in process form data in OAF lifecycle. So this how your code should look like in VORowimpl :
    public void validate()
    super.validate();
    ArrayList exceptions = new ArrayList();
    String address1 = (String)getCurrentRow().getAttribute("Address1");
    String postCode = (String)getCurrentRow().getAttribute("PostalCode");
    if (address1==null) {
    MessageToken[] tokens = { new MessageToken("FIELD", address1) };
    exceptions.add( new OAAttrValException(OAException.TYP_VIEW_OBJECT
    , getViewObject().getFullName() // VO name
    , getCurrentRow().getKey() // VO PKs
    , "Address1" // Attribute Name
    , address1 // Attribute value
    , "XX" // Message product short name
    , "NTZZ_CZ_ADDRESS_FIELD_REQUIRED"// Message name
    , tokens)); // Message Parameters
    if (postCode==null) {
    MessageToken[] tokens = { new MessageToken("FIELD", postCode) };
    exceptions.add( new OAAttrValException(OAException.TYP_VIEW_OBJECT
    , getViewObject().getFullName() // VO name
    , getCurrentRow().getKey() // VO PKs
    , "PostalCode" // Attribute Name
    , postCode // Attribute value
    , "XX" // Message product short name
    , "NTZZ_CZ_ADDRESS_FIELD_REQUIRED"// Message name
    , tokens)); // Message Parameters
    OAException.raiseBundledOAException(exceptions);
    Sumit,
    Making Arraylist defined globally in VOimpl class would not solve the purpose, because in present code ArrayList has been initialized inside validateRow() method hence, everytime this method is called Arraylist is automatically initialized by new , but the errorstack is not cleared.This code should be at such a place where it should be automaticallyclear the last error stack when its called everytime in framework i.e. validate method in VOImpl or validateEntity method in EOImpl.
    I hope this helps.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to make bookmark tree open dynamically when moving in the content?

    Intro: When viewing a PDF-file with a bookmark tree, I can unfold(open) nodes in the bookmark tree and make the view window jump to the corresponding destination.
    If the bookmark tree is open (unfolded) I can observe a selection mark moving downwards in the bookmark tree as I move down in the content.
    Question: Is it possible to make the folded bookmark (outline) tree open dynamically as I move down in the content? I would like to see the bookmark tree unfold automatically and move the highlight to the bookmark (outline) node for the bookmark position nearest to (above) the view point in the content window.

    Dave,
    thank you for quick and precise answer.
    Magne

  • How can I have myself be visible when narrating via Keynote?

         I was wondering how I could have me (spokesperson) be narrating on a slide on Keynote. Similar to the spokesperson on this website: http://www.homejobfinders.com . Would I have to record myself talking with a green screen, zero out the background then import the footage as a video on the slide? How could it auto play?

    Would I have to record myself talking with a green screen, zero out the background then import the footage as a video on the slide?
    Yes.
    How could it auto play?
    Select the video clip on the slide:
    Inspector > Animation > Build in > Build Order >  in the Start dropdown menu select:   After Transition.

  • How tom take an average of file when i have three different values

    Dear all,
    I have a file with five column,                                                              
    A    B                      C    D    E               
    2    1.23375E+17    30    31    2              
    2    2.04196E+17    0      32    2               
    2    2.31994E+17    0      33    2               
    2    2.01626E+17    30    33    2       
    2    1.79445E+17    0      34    2          
    I want to take an average of  B for D= 0 to 15,,, 16 to 30, ,, 31 to 45, 46 to 59,, anf E= 0 ,2,3,4,5,........ 23,
    for A = 2, 3, 4, 5, ......32..
    here is programme and file.
    Solved!
    Go to Solution.
    Attachments:
    iisc0040-1014.txt ‏1489 KB
    average15mins.vi ‏11 KB

    I aapreciate with you sir,
     acually my problem is differenet, i repeat it belowe.
    A    B                      C    D    E               
    2    1.23375E+17    30    0    0              
    2    2.04196E+17    0      1    0              
    2    2.31994E+17    0      2    0              
    2    2.01626E+17    30    3    0      
    2    1.79445E+17    0      4    0        
    1-Column A having the value of no of system which start from 2 to 32,,
    2- colum D having the minutes which is start from 0 to 59.
    3- colum E is hour Which varies from 0 to 23.
    now i want to keep system (Column A) constant at 2 and for 0 hour ( Column E).. and want to take the average of Values (Column B). For 0 to 15 , 16to 30 , 31 to 45, 46 to 59 ,,,minute (column C).
    Means I will have 4 value for each hour,
    means i want to put first lup where Column A is constant for 2, at the same time second lup inside the first lup Having the constant value of Column 2.  and at third lup  take the avergae of value B for each 0 to 15, 16 to 30, 31 to 45, 46 to 59,..
    hope you will help me regarding this,

  • Runtime Error - DBIF_RSQL_INVALID_RSQL - Too many OPEN CURSOR

    When I try to train a Decision Tree Model via an APD process in RSANWB, I get a runtime error when my model is configured with too many parameter fields or too many leaves (with 2 leaves it works, with more it fails).
    By searching SAP Notes I see that there are many references to this kind of runtime errors. But no note on occurences of it in RSANWB / RSDMWB .
    Any information on this anyone?
    Claudio Ciardelli
    Runtime Errors         DBIF_RSQL_INVALID_RSQL
    Date and Time          29.07.2005 16:19:21
    |ShrtText                                                                                |
    |    Error in RSQL module of database interface.                                                   |
    |What happened?                                                                                |
    |    Error in ABAP application program.                                                            |
    |                                                                                |
    |    The current ABAP program "SAPLRS_DME_DECISION_TREE_PRED" had to be terminated                 |
    |     because one of the                                                                           |
    |    statements could not be executed.                                                             |
    |                                                                                |
    |    This is probably due to an error in the ABAP program.                                         |
    |                                                                                |
    |Error analysis                                                                                |
    |    The system attempted to open a cursor for a SELECT or OPEN CURSOR                             |
    |    statement but all 16 cursors were already in use.                                             |
    |    The statement that failed accesses table "/BIC/0CDT000030 ".                                  |
    |    The erroneous statement accesses table "/BIC/0CDT000030 ".                                    |
    |Trigger Location of Runtime Error                                                                 |
    |    Program                                 SAPLRS_DME_DECISION_TREE_PRED                         |
    |    Include                                 LRS_DME_DECISION_TREE_PREDU06                         |
    |    Row                                     103                                                   |
    |    Module type                             (FUNCTION)                                            |
    |    Module Name                             RS_DME_DTP_EVALUATE                                   |
    |Source Code Extract                                                                               |
    |Line |SourceCde                                                                                |
    |   73|* Prepare for Data evaluation                                                               |
    |   74|  CATCH SYSTEM-EXCEPTIONS OTHERS = 15.                                                      |
    |   75|    CREATE DATA ref TYPE (i_enum_dbtab).                                                    |
    |   76|    ASSIGN ref->* TO <fs_wkarea>.                                                           |
    |   77|    ASSIGN COMPONENT gv_class_dbposit OF STRUCTURE                                          |
    |   78|                      <fs_wkarea> TO <fs_class>.                                            |
    |   79|    CREATE DATA ref TYPE TABLE OF (i_enum_dbtab).                                           |
    |   80|    ASSIGN ref->* TO <ft_data>.                                                             |
    |   81|                                                                                |
    |   82|  ENDCATCH.                                                                                |
    |   83|  IF sy-subrc = 15.                                                                         |
    |   84|*   Error on Assignment.                                                                    |
    |   85|    CALL FUNCTION 'RS_DME_COM_ADDMSG_NOLOG'                                                 |
    |   86|      EXPORTING                                                                             |
    |   87|        i_type    = 'E'                                                                     |
    |   88|        i_msgno   = 301                                                                     |
    |   89|        i_msgv1   = 'EVALUATION_PHASE'                                                      |
    |   90|      IMPORTING                                                                             |
    |   91|        es_return = ls_return.                                                              |
    |   92|    APPEND ls_return TO e_t_return.                                                         |
    |   93|    EXIT.                                                                                |
    |   94|  ENDIF.                                                                                |
    |   95|                                                                                |
    |   96|* For the un-trained Rec-Ids, evaluate.....                                                 |
    |   97|  REFRESH lt_recinp.                                                                        |
    |   98|  APPEND LINES OF i_t_records TO lt_recinp.                                                 |
    |   99|  SORT lt_recinp .                                                                          |
    |  100|* Open Cursor..                                                                             |
    |  101|  DATA: l_curs TYPE cursor.                                                                 |
    |  102|  DATA: l_psize TYPE i VALUE 10000.                                                         |
    |>>>>>|  OPEN CURSOR WITH HOLD l_curs FOR                                                          |
    |  104|   SELECT * FROM (i_enum_dbtab)                                                             |
    |  105|     WHERE rsdmdt_recid NOT IN                                                              |
    |  106|        ( SELECT rsdmdt_recid FROM                                                          |
    |  107|             (i_learn_tab) ).                                                               |
    |  108|                                                                                |
    |  109|*  Start Fetch...                                                                           |
    |  110|  DO.                                                                                |
    |  111|    FETCH NEXT CURSOR l_curs                                                                |
    |  112|      INTO CORRESPONDING FIELDS OF TABLE <ft_data>                                          |
    |  113|      PACKAGE SIZE l_psize.                                                                 |
    |  114|    IF sy-subrc NE space.                                                                   |
    |  115|      EXIT.                                                                                |
    |  116|    ENDIF.                                                                                |
    |  117|                                                                                |
    |  118|*     Process records...                                                                    |
    |  119|    LOOP AT <ft_data> ASSIGNING <fs_wkarea>.                                                |
    |  120|                                                                                |
    |  121|*     Call Prediction Function.                                                             |
    |  122|      CALL FUNCTION 'RS_DME_DTP_PREDICT_STRUCTURE'                                          |

    Hi Claudio,
    well the message is very clear and I think in your case you need to split your model into a few somehow equal models, each not having more than 2 leaves.
    Another option might be to do more things serially instead of parallel.
    Hope it helps
    regards
    Siggi

  • How to clear Purchage return (T.code. F-41)

    Hi
    My dear friends...
    when i post purchase return document using F-41,  always showing pending traction means it showing open item.. how to clear that purchage return..
    when i post purchage invoice, outgoing payment  also it showing open item.. how to clear that open itemm..
    i will give full points..
    Thanks for your information..
    Ashok kumar

    Hi,
    Good morning and greetings,
    As per standard SAP process, the purchase return is normally accounted through transaction code MBRL and at that same time the system clears the open items as well, provided the purchases are accounted through Purchase order.
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • How to clear javaFx brower cookie?

    Dear all:
    How to clear javaFx brower cookie?when I frist request the url is right at frist time and brower go to sucess html then when I request the url is right at second time is error , brower go to sucess html directly.
    I need help.
    How to clear javaFx brower cookie? thank you!

    I designed an application that require login and use session(cookie) management,How did you implement the cookies. This isn't a built-in part of J2ME. You have to implement it yourself (saving the cookie and resending it in future requests), so only you can know how to delete it.
    shmoove

  • Clearing overview tree in Monitor

    Hi,
    I want to know how to clear overview tree in monitor . (Info package Load Monitor Screen)

    Hi Arshad,
    You cannot do that. What you can do is delete the request itself. In case the request is errored then goto RSA1 -> PSA -> find the request and delete.
    Bye
    Dinesh

  • General Settings not retained when connecting via VPN

    Forum,
    We have a user who connects to SAP via a VPN connection. Since then they have found that any form settings/column amendments made are not being retained when next logging into SAP.
    When these changes were made direct in the office, they are retained.
    My question. Is there any differences in how the settings are retained within SAP when accessing via a VPN?
    Regards,
    Juan

    Hi,
    When using your VPN are yo using Terminal LIcense or Remote Desktop Connection?
    Please do the following to save form settings:
    1. Only 1 module should be open when using form settings.
        Close other modules that doesn't need.
    2. Close the module after changed. To make sure the settings are saved.
    3. Always close all the module before exiting SBO program, use the click FIle and Exit habit.
    4. Terminal Licensing should be use when connecting remotely.
    Thanks.
    Clint

Maybe you are looking for