Iterator Refresh Question

Hello there,
i have a case where i have a search screen that is based on a table , let's say employees, the results is an ADF Read Only table. I brought the department name from the deparments View object to the employees View object so i can see the name as well as the id in my Results. Now i have a button Create , when i create an employee and enter a department id and then press save , the page results to the search screen where the new record i created appears with the department id but without the department name.
My primary thought was to set the refresh iterator property but i'm not being able to solve my problem.
Anyone can help me ?

In your backing bean, if you have access to the binding container, run something like the following:
DCIteratorBinding iter = (DCIteratorBinding)bindings.get("MyIteratorName");
iter.execute();You can gain access to the binding container by doing the following:
1. Define an instance-level field in the backing bean:
private BindingContainer bindings;2. Add a getter and setter for the field:
    public BindingContainer getBindings() {
        return bindings;
    public void setBindings(BindingContainer bindings) {
        this.bindings = bindings;
    }3. Add a managed-property to the definition of your backing bean in faces-config.xml:
  <managed-bean>
    <managed-bean-name>myBackingBean</managed-bean-name>
    <managed-bean-class>com.acme.backing.MyBackingBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
      <property-name>bindings</property-name>
      <value>#{bindings}</value>
    </managed-property>
  </managed-bean>If you don't want to add a managed property to the bean, you can locate the BindingContainer like this:
FacesContext ctx = FacesContext.getCurrentInstance();
Application app = ctx.getApplication();
ValueBinding bind = app.createValueBinding("#{bindings}");
BindingContainer bindings = (BindingContainer)bind.getValue(ctx);

Similar Messages

  • Lov iterator refresh issue

    HI friends!
    I'm using JDeveloper 11g
    I've got a problem with a lov attribute in my application.
    I need to implement the following scenario:
    I have an adf table Licence in my jsf page. One of the table columns includes a lov attribute which values must be selected from a list box (a list data source is LicenceProducer lov view object).
    If there is no required licence producer in the drop down list we can trigger a pop up dilaog (kind of lov dialog) and create a new one row in the data source iterator.
    Then the required attribute value of the newly created row must be passed to the list in the source jsf page and become a currently selected value for the lov attribute of the Licence VO.
    SO i've have implemented almost the whole scenario:
    1. created an appropriate lov attribute in Licence VO with LicenceProducer VO as a list data source
    2. created a bounded adf task flow which is resonsible for displaying the pop up lov dialog with all insert/commit/return new value functionallity.
    Everything works just greate except that the lov iterator is never refreshed after returning from the pop up dialog.
    The updated content of the list box is only seen after reloading the source jsf page. Setting partial page rendering (for the Licence adf table) on returning from the pop up dialog does't work.
    I saw a number of posts on this issue but never found any good solutions.
    I think that i must somehow get an access to the lov iterator (data source vo) wich is not the same as the base LicenceProducer view object and refresh it programmatically.
    PS. if i brought my issue in a not sufficiently clear way. please answer the quite simplier question. Is it possible somehow to add a lov functionallity with the possibility to add new rows into lov iterator?
    Thanks in advance. Alex.

    Thanks friends.
    It is so greate to see somebody notice your question and even have the similar problem.
    First to Paul
    1. Yes I have a model driven LOV, i.e. i defined the lov functionalty for the attribute in a VO.
    2. I'm using JDeveloper 11g as you might be using.
    3. Actually i'm afraid i have not fully understood your approach with a row impl class. AS i could notice there were no worthy changes added into the row impl class after i had redefined VO's attribute to use a lov view object.
    it would be greatly appreciated if you let me know more detail about your solution.
    By the way i have noticed one interesting thing as I was experimenting with my issue. It turned out that the lov iterator refreshes just excellent on returning from a pop up "manually created lov dialog" after i click a rollback button of the data control
    where the VO iterator containing the attribute with the lov functionalty exists. Give it a try and you'll see, no other standard operation button gives the same effect!!!!! I realized it accidentially myself.
    To Hasim
    if i understand you right your assumption is to refresh a row iterator which is the basis for the lov attribute and then refresh a page element where the lov attribute has been dropped?
    If so than i've tried it because this is the first thing comes into mind. But it doesn't work, i think that this basis iterator we select for the list of values of the required attribute in VO is not the same as a real list Datasource iterator...
    If i understood you wrong please give me know and explain please your approach. Your opinion is interesting for me.
    I address our experts ones again with a rather simplier question. Is it possible to create a model driven lov attribute where it would be possible to insert new rows into the list of values during the ongoing user session?
    Alex.

  • Iterator Refresh

    Hi,
    I've created a rich client ADF App. My question is how can I refresh programaticaly an iterator?
    cheers,
    Bernhard

    Hi,
    you do not have enough information to have a better answer. what is the jdev version?
    you can execute the iterator from your managed bean like below to refresh it.
    DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iter = bindings.findIteratorBinding("ReceiptsIterator");
    iter.executeQuery();~Abhijit

  • JClient Refresh Question (Am I trying too hard?)

    Environment: Windows 2000, JDeveloper (9.0.3.10.35)
    I have a JClient with a bunch of JTextFields bound to my BC4J app. I perform all of my business logic calculations/validations in the entity objects. I have some entity calculated attributes and these are calculating just fine. However, I also do some more complex calculations and manually set these entity attributes (about 5 of them). These calculations are triggered whenever a user modifies a textfield...
    My problem is that whenever I modify a textfield, the calculations are performed, the entity attributes updated, but they aren't shown/refreshed in the client. Hmmm... Here are some of the things I've been trying:
    - Override sourceChanged() in my view implementation. Ok, I can see "attribute changed" events, but how do I update the Swing textfield?
    - Got a handle to the iterator binding and forced a refresh from entity->view by calling "navigate(null)".
    Calling navigate(null) worked, so I then thought I could add this logic to the sourceChanged() handler but I am not sure about the easiest way to get the iterator binding from the view implementation. Hmmm... I think I'm making this way too hard... Am I missing something totally basic here? Any suggestions would be great? Thank you.
    BTW, the attributes are marked as updateable in both entity and view.

    I've done some more debugging, looking into the areas you referred me to... I think I have stumbled across the "eventing mechanism bug" between EO and VO when subclassing is involved (Re: package in all_objects shows invalid but compiles fine
    ). I failed to mention that I was using a polymorphic rowset because I didn't think it was relevant (shouldn't have assumed...)
    Here's what I've verified:
    When I set an attribute in the entity with no subclassing, notifyRowUpdated() is called in the view object. However, if the entity is a subclass, notifyRowUpdated() isn't called.
    Your first question may be if I have correctly setup the polymorphic rowset behavior. I think so... I've read all the articles/how to's that I've found about polymorphic rowsets in this discussion group. My "abstract" view points to my abstract entity, and then imports all of the subclasses (defined when you click the "subtypes" button in view object properties window). The discriminator is working and BC4J is instantiating the correct subclass, however, the view isn't getting notified when an entity's attribute is modified (ie, notifyRowUpdated() isn't getting called).This info along with the other link gives us enough to reproduce the bug and as mentioned in the other link, it is targeted for fix in our next release.
    The workaround to the "EO/VO eventing bug" was to call executeQuery() to refresh the detail. My problem seems to be in a slightly different context, so I'm not sure exactly what to do. As I had mentioned earlier, calling navigated(null) seemed to refresh the view. Should I pursue this or do you suggest something else? naviated(null) is a fine workaround. JClient bindings simply get the current row from 'the iterator' and displays that so that's effectively a refresh on the control-bindings.
    Would you like a small repro case? Thank you. Let us know if you hit any issues with this workaround.
    Thanks
    Shailesh

  • Iterator refresh after commit

    Hi,
    I have three tabs in my page , and in each tab , i have separate taskflows.
    The first tab taskflow contains a jsff which has lets say master table iterator i.e departments iterator.
    In the second tab, i have a table based on read only query, but when i click on add button, i will be inserting in to detail VO (employee VO) and using postChanges() .
    so that read-only query based table gets the new data.
    now when i click on save button and commit , the iterators in taskflows of tab1, tab2 are pointing to first record rather than the current record.
    1) even i tried with having an action for the 'save' button and navigating to method activity which sets the iterator to current row.
    When i am returning back to taskflow,i am still seeing the iterator pointing to first record rather than the current record i intend to see.
    could anybody tell me why iterator is pointing to first row after commit()
    i don't have 'refresh' -- if needed for taskflows. its default.
    for transactions, datacontrols, its default for my taskflows.

    I generally retain the previously selected row using the following code in my VOImpl after every executeQuery().
    public void executeQuery()
    // current row key if any
    Key currentRowKey = null;
    Row currentRow = getCurrentRow();
    if ( currentRow != null )
    // get current row key
    currentRowKey = getCurrentRow().getKey();
    // super call
    super.executeQuery();
    if ( currentRowKey != null )
    // set current row now using previously stored key
    Row[] rows = findByKey( currentRowKey, 1 );
    if ( rows != null && rows.length == 1 )
    setCurrentRow( rows[0]);
    }

  • Oracle 9 Production - Integration refresh: questions

    Hello, I will have to proceed with Oracle 9 database refresh from production server to integration server. 5 biggest schemas must be exported and imported. They constitute 97% space used in a database. This is very big database so I would like to be sure that everything will go smoothly. That is why i want to ask you some questions. Have you got any clues for me before I start with exp/imp? From my side i will tell you that I will have to exp/imp schema by schema because there is small space both on production and integration disk for a dump. First thing I thought are dependencies between schemas that are exported and that which are not, and also between schemas that are exported/imported one by one.
    This is procedure that I plan:
    For every schema that is to be refreshed
    1. Export schema with ROWS=N CONSTRAINTS=Y
    2. EXPORT schema with ROWS=y CONSTRAINTS=N
    3. Import schema from step one
    4. Disable all the foreign key constraints using ALTER TABLE DISABLE CONSTRAINT.
    5. Import schema with rows
    ALTER TABLE ENABLE CONSTRAINT
    With above procedure i think that I will avoid problems with dependencies between schemas exported/imported one by one. But my concern is if there are any dependencies between those schemas and schemas that are not exported. Is there an way to check it before refresh ?
    Are there any details that i forgot to mention and i should be aware of?

    If the issue is disc space, then go via a pipe: create the pipe on the source server with mknod, and use NFS to make the file system containing the pipe visible on the destination server. Then you can start the import reading from the pipe, and start the export writing to the pipe. That way you do the whole job (all the schemas) in one exp/imp run, without staging anything on disc, and no dependency issues.
    Any good?

  • Keeping current record after refreshing iterator (iterator refresh)

    Greetings,
    I'm using the following code to refresh a master iterator, so that when data is saved\edited it is automatically refreshed in the user interface. I'm using BC for the model layer.
    public String commandButton_save_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("Commit");
    OperationBinding operationBinding2 =
    bindings.getOperationBinding("Execute");
    System.out.println("Now @ Global bean ... going to ...");
    operationBinding.execute();
    operationBinding2.execute();
    // It should be a error page
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    // Refresh main view object
    DCBindingContainer bc =
    (DCBindingContainer)FacesContext.getCurrentInstance().getExternalContext().getRe
    questMap().get("bindings");
    FirstCareAppModuleImpl fc =
    (FirstCareAppModuleImpl)bc.findDataControl("FirstCareAppModuleDataControl").getD
    ataProvider();
    ViewObject vo_SitSocProf = fc.findViewObject("EpisodiosMain");
    vo_SitSocProf.executeQuery();
    System.out.println(" All done. Ciao ");
    return "back";
    I just want to refresh data from database and still show the current record. This is always taking me to the first record in the iterator.
    The issue is: How to show the current record after the refresh? If the above
    code is not correct, or not the most adequate, please don't hesitate and tell
    me.
    Thanks.

    You can do this as follow:
    1) In your ApplicationModule (e.g ScottAM) define function:
    public void refreshView(){
    getMainViewObject().executeQuery();
    2) Expose this function to client
    3) In your manage bean define:
    public String commandButton_save_action() {
    String dc = "#{data.ScottAMDataControl.dataProvider}";
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding vb = ctx.getApplication().createValueBinding(dc);
    ScottAM am = (ScottAM)vb.getValue(ctx);
    am.refreshView()
    return null;
    Note, that this solution will set you on the first row after invoke.

  • Variable Iterator Refresh Problem

    Hi,
    I have two method in application module that I dropped on a jspx page as two buttons and the method returns as af:outputtext on that page. When I press one of the buttons to invoke the related method, it clears the result of the other method. Both outputtexts are binded to same variable iterator on the binding site. There seems no relation between these two outputtexts other than being binded to same variable iterator. So why invoking one method clears the result of the other method? Is variable iterator is refreshed everytime a method is invoked? Any help is appreciated.
    Best Regards,
    Salim

    Hi,
    the variable iterator is refreshed as a whole. The binding container is in request scope, which also guarantees that the iterator survives. So the work around is to execute both of the methods from a single button
    Frank

  • ADF Mobile _back without iterator refresh (11.1.2.3.0)

    Hi Forum Group,
    In ADF Mobile, does anyone know how to prevent the iterator from refreshing if using the back built-in? Let me try to explain the scenario. I have an amx page with that has two results from two separate rest web services. Both of these rest web services are called with a URLDataControl via pageFlowScope variables assigned within the pageDef. The second result depends upon the result of the first for it to be called. All of this is not a problem as I'm navigating with taskflows and methods and can, therefore, properly populate the parameters (pageFlowScope variables) and call the web services. If, however, I want to iterate with previous and next (moving the rows from the default 0 row index while properly re-querying the second dependency) and then further navigate to a detail page, using the back causes the iterators to refresh (which would be out-of-sync if I did not use a taskflow method to reset everything). I would like, however, the state to remain the same on the "header" page, rather than requerying everything and having to have the user move to the appropriate row that they were wanting again. All I simply need to do is tell the iterator (or URLDataControl) to not requery if _back is used.
    Any ideas?

    Hi Frank,
    Thank you for your response. Is there a way then to execute a piece of code right before the rendering of the page, so that this "current row" can be set? Like in web adf development, the binding to the backing bean can be added to any component and the set serves as an initializer (where code can be added to process things like this).

  • ADF CreateInsert and Iterator refresh control

    Hi
    JDEV Version : 11.1.1.6
    I have a scenario where i have dragged and dropped updatable EMPLOYEESVIEW as a form on my page with fields EMP_ID (Invisible on JSPX page)and EMP_NAME.
    and have buttons called ADD EMPLOYEE and SAVE.
    I enter the Value to EMP_NAME input Text box and Click on "ADD EMPLOYEE" button
    On click of  ADD EMPLOYEE button i m Setting the value of EMP_ID through java method and invoking  createInsert Operation like this.
    And i Have set Immediate property of CreateInsert button as True also "ADD EMPLOYEE" button has immediate Property set to true, since i want to show User entered EMP_NAME text on the screen bcos i need to give use an option to Edit.
                BindingContainer bindings =
                    BindingContext.getCurrent().getCurrentBindingsEntry();
      BindingContext bctxtree = BindingContext.getCurrent();
                  BindingContainer bindingtree = bctxtree.getCurrentBindingsEntry();
                  List attributelisttree = (List)bindingtree.getAttributeBindings();
                  Iterator itrtree = attributelisttree.iterator();
                                 while (itrtree.hasNext()) {
                                         AttributeBinding attrbind = (AttributeBinding)itrtree.next();
                       String label = attrbind.getName();
                                         System.out.println("lable"+label);
                       if(label.equalsIgnoreCase("EMP_ID")) {
                                           Boolean flag =
                              attrbind.processNewInputValue(variable);
                           attrbind.setInputValue(empid);
                           fetchVal=(Object)attrbind.getInputValue();
                            System.out.println(""+fetchVal);
    here i m invoking the Operation CreateInsert and Though I would have inserted the value of EMP_ID programmatically as soon as i click on CreaetInsert/ Invoke CreateInsert Operation the Binding EMP_ID becomes Empty.
    Because of which when i say "Commit" It throws me an error saying "Null cannot be inserted into EMP_ID since its primary Key"
    How to retain the Value of EMP_ID binding?
    Is it anything to do with the refresh condition which i m suppose to set for EMPLOYESSVIEWITERATOR????
    Help
    Thanks

    This is the java class
        public String onClick(ActionEvent aet) {
                            variable= (getting empid)
                    DCBindingContainer bindingsImplafter= (DCBindingContainer) bindings;
                                                            DCIteratorBinding dciterafter = null;
                    dciterafter.getRowAtRangeIndex(0).setAttribute("IntegrationId", variable);
                           dciterafter.getRowAtRangeIndex(1).getAttribute("EMP_ID"));
    dciterafter.getRowAtRangeIndex(0).getAttribute("EMP_ID"));
          dciterafter.getRowAtRangeIndex(0).getAttribute("EMP_NAME"));
    dciterafter.getRowAtRangeIndex(1).getAttribute("EMPNAME"));
                    RichCommandButton t = (RichCommandButton)genericUtility.findComponentInRoot("createinsertbutton1");
                         ActionEvent actionEvent = new ActionEvent(t);
                         System.out.println("  ActionEvent actionEvent = new ActionEvent(component);");
                         actionEvent.queue();
            return null;
    Tried setting the getCurrentRow too!!
    my jspx page:
        <af:panelFormLayout id="pfl1">
        <af:inputText value="#{bindings.EMP_ID.inputValue}"
                            label="#{bindings.EMP_ID.hints.label}"
                            required="#{bindings.EMP_ID.hints.mandatory}"
                            columns="#{bindings.EMP_ID.hints.displayWidth}"
                            maximumLength="#{bindings.EMP_ID.hints.precision}"
                            shortDesc="#{bindings.EMP_ID.hints.tooltip}"
                            id="it44">
                <f:validator binding="#{bindings.EMP_ID.validator}"/>
              </af:inputText> 
              <af:inputText value="#{bindings.EMP_NAME.inputValue}"
                            label="#{bindings.EMP_NAME.hints.label}"
                            required="#{bindings.EMP_NAME.hints.mandatory}"
                            columns="#{bindings.EMP_NAME.hints.displayWidth}"
                            maximumLength="#{bindings.EMP_NAME.hints.precision}"
                            shortDesc="#{bindings.EMP_NAME.hints.tooltip}"
                            id="it4" >
                <f:validator binding="#{bindings.EMP_NAME.validator}"/>
              </af:inputText>
    </panelFormLayout>
      <af:commandButton actionListener="#{bindings.CreateInsert.execute}"
                                text="CreateInsert"
                                disabled="#{!bindings.CreateInsert.enabled}"
                                id="cb1ci" immediate="true"  visible="false"/>
                                     <af:commandButton actionListener="#{bindings.Commit.execute}"
                              text="Commit" disabled="#{!bindings.Commit.enabled}"
                              id="cb2" />
           <af:commandButton text="+ Click to Add" id="cb1"  actionListener="#{javaclassname.onClick}"  immediate="true">
    On click of "+ Click to Add" button i m setting integration id and i click the button createInsert pro grammatically and in the front page if i call commit it says null value cannot be inserted into INTEGRATION ID.
            dciterafter.getRowAtRangeIndex(1).getAttribute("EMP_ID")); gives me null hence the EMP ID in the jspx page hold empty value in the front end too.
    How to handle this?

  • Iterator Refresh Issue

    Hi,
    I'm seeing a weired behaviour when working with Iterator.
    Here are the thing what i have done & the problem that im facing with Iterator.
    Things what i have done
    ===============
    1.I have a DTO and a java class named ServiceDelegate in my model. And i have defined a method inside ServiceDelegate with the return type of DTO.
    2.And exposed this ServiceDelegate as Data Control.
    3.Using this DataControl, dragged the return type of the method(which is nothing but DTO) as a Search Form with a Submit button on to a jsff.
    4.Now, when the user enters the data for first time...the DTO is getting populated and able to retrieve the information which has been entered by the user into ServiceDelgate properly.
    5.This is fine.
    6.Now,if user tries to modify the data which was already entered .... and clicks submit button. This time, the modified data is not coming into the ServiceDelegate.
    Finally, i'm able to get the data from the Iterator(DTO) only for the first time. It is not working for the second time and further. If you open the page once again as fresh, it works fine.
    Does any one of you have any idea about this, why it is behaving so.
    Here is the code from my page Def.
    <methodIterator id="*borrowerDetailIterator*" Binds="editBorrowerDemographics.result" DataControl="BorrowerServiceDelegate" RangeSize="25"
    BeanClass="org.tgslc.defaultmanagement.domain.Borrower"/>
    <accessorIterator MasterBinding="*borrowerDetailIterator*" Binds="person"
    RangeSize="25" DataControl="BorrowerServiceDelegate"
    BeanClass="org.tgslc.defaultmanagement.domain.Person"
    id="personIterator"/>
    <accessorIterator MasterBinding="*borrowerDetailIterator*" Binds="address"
    RangeSize="25" DataControl="BorrowerServiceDelegate"
    BeanClass="org.tgslc.defaultmanagement.domain.PersonAddress"
    id="addressIterator"/>
    <accessorIterator MasterBinding="*borrowerDetailIterator*" Binds="phone1"
    RangeSize="25" DataControl="BorrowerServiceDelegate"
    BeanClass="org.tgslc.defaultmanagement.domain.PersonPhone"
    id="phone1Iterator"/>
    <accessorIterator MasterBinding="*borrowerDetailIterator*" Binds="phone2"
    RangeSize="25" DataControl="BorrowerServiceDelegate"
    BeanClass="org.tgslc.defaultmanagement.domain.PersonPhone"
    id="phone2Iterator"/>
    <accessorIterator MasterBinding="*borrowerDetailIterator*" Binds="email1"
    RangeSize="25" DataControl="BorrowerServiceDelegate"
    BeanClass="org.tgslc.defaultmanagement.domain.PersonEmail"
    id="email1Iterator"/>
    <accessorIterator MasterBinding="*borrowerDetailIterator*" Binds="email2"
    RangeSize="25" DataControl="BorrowerServiceDelegate"
    BeanClass="org.tgslc.defaultmanagement.domain.PersonEmail"
    id="email2Iterator"/>
    Regards,
    Kiran Konjeti

    Hi Amit,
    Thanks for the post. But you are too late. :) . I already tried that and it was working fine as expected. Anyhow, would like to mark your answer as Correct, because your post it correct.
    Thanks again.
    Regards,
    Kiran Konjeti

  • Iterator refresh issue : best approach?

    Hi,
    I have a java based bean data control which has a list to be displayed as a table.
    I also have a method called addObject() which actually adds to the list.
    Now to get the newly added row one of the ways was to call the "Execute" opetation binding in the action listener which i want to avoid.
    We may have to do this in quite a few places.
    Finally i found a declarative way using contextual events to achieve this.
    I raise a contextual event from the button which executes the addObject() method.
    Added a subscriber to this event with the standard "Execute" operation available for the list model as the handler.
    The table gets refreshed fine now.
    Will this approach have any issues like performance or anything else?
    Cheers,
    Raj

    As I understand, you are refreshing a simple table on addObject button click. Why not use PPR on table to listen to addObject button click by setting partialTrigger property of the table component to the button..? In my opinion, contextual events comes handy when you are trying to communicate across different page fragments/regions(task-flow).
    Did I miss something in your usecase..?
    regards,
    ~Krithika

  • Query Refresh Question

    If the user wants to change the value of varables after executing the query for a diff set of variable values ...hw wud s/he do that?
    Close & Reopen the query ...???
    If  the variables r in the filter n if the values are changed in the report for that variable - filter ..it doesn't work....
    Refreshing the query wudn't prompt for variable inputs...right ?
    How to refresh the query when I am on report?

    Guys,
    <b><u><b>
    Refer</b></u></b>
    <b>Below is the query template for YTD report:</b>
    <b>Filter – Characteristic Restrictions</b>
    None
    <b>Filter - Default values</b>
    Posting Period
    Controlling Area
    Cost Center
    Fiscal Year
    <b>
    Rows/Columns – Free Chars</b>
    Fiscal Year
    Posting Period
    <b>Rows/Columns - Columns</b>
    0Amount – ( Res to Fiscal year – Res to Single user entry fiscal year variable & Res to Posting Period – Res to Single user entry posting period variable )
    0YTD – ( Res to Fiscal year – Res to Single user entry fiscal year variable & Res to Posting Period – Res to Value Range ( 1 - Single user entry posting period variable ) )
    <b>Rows/Columns – Rows</b>
    Cost Center
    Controlling Area
    When I execute the query & enter the variable values for Fiscal year ( say 2007 ), Posting Period ( say 7 ) - it shows correct data.
    Issue : On report when I change the filter of posting period to say 6 it shows only YTD values blanking out 0AMOUNT values for posting period 6 .
    <b>
    "When I do change variable it doesn't work accordingly "...what happens?
    It doesn't show data for 0amount.</b>
    Message was edited by:
            Jr Roberto

  • Iterating/indexOf Question

    The user is trying to guess the computers word one letter at a time. I kind of figured it out using the indexOf method, but it doesn't work if the same letter is in the word more than once. If the user gets the letter right, I'm trying to have the computer say where the letter is located.
    I.e. if the secret word is "believe" and the user guesses "e", I want computer to say that there is an e in the 2nd, 5th, and 7th blanks.
    Any tips?
    Here is the very cumbersome thing I put together:
                    indexHolder = itsComputersWord.indexOf(itsUsersLetter);
                    if (indexHolder == 0)
                        JOptionPane.showMessageDialog (null, "The letter you guessed is the first letter of the secret word.");
                    if (indexHolder == 1)
                        JOptionPane.showMessageDialog (null, "The letter you guessed is the second letter of the secret word.");
                    if (indexHolder == 2)
                        JOptionPane.showMessageDialog (null, "The letter you guessed is the third letter of the secret word.");
                    if (indexHolder == 3)
                        JOptionPane.showMessageDialog (null, "The letter you guessed is the fourth letter of the secret word.");               
                    if (indexHolder == 4)
                        JOptionPane.showMessageDialog (null, "The letter you guessed is the fifth letter of the secret word.");

    Why don't you do it la Hangman? :D (I love that game)
    String word = "believe";
    StringBuffer userAttempts = new StringBuffer();
    for (int i = 0; i < word.length(); i++) {
      userAttempts.append(word.charAt(i) == ' ' ? ' ' : word.charAt(i)); // multiple words: leave spaces intact
    while (!userAttempts.toString().equals(word)) {
      //: get letter from the user, into "attempt" (char)
      for (int i = 0; i < word.length(); i++) {
        if (word.charAt(i) == attempt)
          userAttempts.setCharAt(i, attempt);
    System.out.print("Word: " + userAttempts + ". Next guess? ");
    }s
    (hint: something in the code above, which iterates over the letters in the word, is what you're looking for even without such a Hangman-like game)

  • JFileChooser refresh question

    We all know that the JFileChooser is incredibly sloooooooow in sdk1.4 (especially across networks.)
    Maybe someone can help me with this (sort of) workaround:
    I selected a directory in the file chooser. It takes 10 mins to come back. During that time, I'd like my mouse pointer to change to the WAIT state. I can do that part, but the file chooser gives me back control before its done & my cursor goes back to the DEFAULT state.
    Does anyone know how to find out when the file choose is really done?

    Hi all,
    thanks for your answers I just realized that I did not expalin myself clearly:
    I know about the rescanCurrentDirectory method BUT I do not know how to link it in the JFileChooser diaolog interface.
    The only way I figured out is to create an accessory button an add it to JFileChooser (setAccessory) BUT it looks ugly .....
    Any idea ????

Maybe you are looking for

  • Refresh Tab contant

    good morning all : I am using ADF 10.3 with Jdevloper 11 . I have the following problem : i am using master detail table , the master table added into tab 1 and the detail table added into tab -2 when i change the information in tab-2 for detail tabl

  • Issues with running permission scripts on Hoted desktop via Citrix and when deploying via SCCM

    I am running a permissioning VBScript which runs when I do a standalone insallation manually running the power shell commands to add and publish the application. This only runs vis SCCM when a machine installation is acrried out but not a per user in

  • Best way to handle Interface Return Type for Web Service Method

    Hi All, i have the followinig situation. I would like to create a method as a web service: Customer getCustomer(someType){....} ie: getCustomer method, with a parameter that indicates some backend data source. The method returns a Customer object. Ho

  • Web DynPro - HttpServletResponse object equivalent

    All, I was just wondering what is the equivalent of HTTPServletResponse object in Web DynPro. Any ideas........... Thanks in Advance JJ

  • SQL generated by Discoverer

    Hi all, Could somebody post a sql code generated by discoverer that include LOV ? In this moment i'm not able to access the discoverer to see the code. Thank you very much, Dani