Refreshing a Component Display

Apologies for the length of the post, but I'm guessing it
would be useful to set the stage a little for this...
I have an application that references two components in a
master/detail layout where one component is the master and the
other is the detail. Within the master component, I have a combo
box that specifies the "view" of the data. I expose the selected
"view" in the component via a public var:String.
The detail component also has a "view" variable, and within
the main application mxml (where the components are referenced), I
specify that the detail components value for "view" equals the
master's "view" value. All is well so far.
Now within the detail component I have a viewStack of
containers which correspond to the number of possible views in the
master's combo box, and viewStack.selectedChild = this[view].
So in the end, if I change the value of the combo box in the
master pane, the viewStack in the detail pane changes
accordingly... except for one problem. The detail component isn't
updating immediately when the combo box changes values, but only
updates with other data being supplied to the detail component is
updated. What's really odd is that if I display the "view" string
as a label within the detail component, then it does update as
expected! But for some reason when the variable is only driving the
viewStack display, any changes to the "view" variable are ignored
with respect to the detail component being refreshed.
Any ideas on why the variable changes are being ignored and
how to remedy this situation?
Thanks,
Josh

Are the data in the detail component dynamically bound to
something? The part that confuses me is, "The detail component
isn't updating immediately when the combo box changes values, but
only updates with other data being supplied to the detail component
is updated."
When you change the ComboBox in the master, does the
ViewStack in the detail change?
Are the components within that ViewStack children the ones
that are not being changed?
For example, if you are seeing the first ViewStack child and
change the master ComboBox such that the second ViewStack child
appears, the components on that second child do not reflect the
correct data until some other data update happens?

Similar Messages

  • Refresh used component display by ABAP code in another used component

    Hi,
    I have a contract (WEB UI component 'IUCONH') which contains used components, among others: actions ('GSACTIONS') and attachments ('GS_CM'). I enhanced the GSACTIONS so that it changes  the content of contract attachments programatically (changing documents by use of BOL: status of documents, deleting...). However, although the backend content changes, the GS_CM UI component doesn't know that and doesn't change the list of the displayed documents till user refreshes the browser. If attachments' view is expanded for the first time after the action has been taken, then it displays correct content (obviously, due to 'lazy' initialization).
    I need to initiate frontend refresh of one used component from another (that is, the program within GSACTIONS should initiate refresh in GS_CM).
    How can I do this?
    Thanks in advance!
    KR,
    Igor

    Hi Igor,
    You can call publish_current( ) method on your context node at the place where you programmatically change the content to make them reflect directly. The syntax will be as follows:
    me->typed_context-><node_name>->collection_wrapper->publish_current( ).
    Replace <node_name> with the node where you change the data.
    Try this and check if it works.
    Regards,
    Shiromani

  • AS3 - Refresh FLVPlayBack component!

    Hey Guys,
    I am working on AS3 project using Flash CS3. I have to display some videos using FLVPlayBack component. I am using the same component instance to display videos but when a new video is loaded the max duration property does not updates and hence the onComplete event is never fired.
    I somehow wanted to refresh the component when a new video is to be played. Please let me know various ways to do so.
    Thanks in advance for your kind consideration.

    what code are you using to detect flv play completion?

  • Component display out of applet bound

    hi.
    what can i let the component display out of the bound of applet,just like the list at choice.

    use the java.awt.Window class. IE gives you a "warning applet window" on the bottom, but Netscape does not.
    Ragnvald Barth
    Software enigneerhttp://blake.prohosting.com/ragnvald

  • Dynamically refresh jspx component(i.e af:outputText) based on Java

    Scenario : To update my marquee OutputText value based on Table value change
    I have a requirement like, based on db table value change one of my component has to be refreshed from my server program(i.e java).
    I got the event using DataUpdateEventListener from DB that some changed has been occurred on my table, and the value is set to true on my java class...
    Problem
    Using that true value i have to get the component(i.e af:outputText) from jspx (note: which is not in the region) and refresh the component so that my output value will be updated.
    Any one of you have any idea abut this problem please suggest
    Thanks in advance
    Karthik

    Check my blog http://tompeez.wordpress.com/2013/03/24/jdeveloper-11-1-1-6-0-self-closing-popup/ which shows how to use a poll component on a page. As the use case is to only call hte bean methos once you have to change the implementation in a way that you don't reset the timeout, but leave is as is so that the poll listener is called periodically.
    Timo
    Edited by: Timo Hahn on 13.05.2013 09:23
    I found this video from Shay Shmeltzer showing how to use the poll component: https://blogs.oracle.com/shay/entry/using_the_afpoll_to_refresh_pa

  • Refreshing ALV output display

    Hi,
    I have a report with ALV .In the output success or error message gets displayed in a column based on certain conditions.The errors can be manually corrected.I
    f the errors are corrected and 'Refresh' button is pressed in my output,the error message displayed in the output  should disappear.
    As of now,this happens if the report is run again but i want this to happen just by clicking of refresh button.i.e. the entire report should be run again with the existing inputs entered in selection screen.
    If i try to call the same program using 'submit' spool gets created,but i want the output in the same page.
    Can you please tell me how this can be achieved.
    Regards,
    S.Subasree

    Hi Subasree,
    The following method call is used to refresh the data displayed within an ALV object grid:
         CALL method gd_tree->REFRESH_TABLE_DISPLAY.
    CALL METHOD gd_tree->set_table_for_first_display
        EXPORTING
          is_layout       = gd_layout
        CHANGING
          it_fieldcatalog = gd_fieldcat
          it_sort         = it_sortcat
          it_outtab       = it_report.
    CALL method gd_tree->REFRESH_TABLE_DISPLAY.
    CALL METHOD cl_gui_cfw=>flush.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • Refresh alv list display

    Hi,
    how to refresh an ALV LIST display?
    Thanks.

    Hi,
    Content and Structure Change
    Use
    You are able to change the internal data table in various ways. Depending on which type of change you use, you  have to proceed differently to make the change visible on the front end in the ALV output as well.
    You are able to make the following changes:
    ·        You change content or the sequence of the individual data records
    Afterwards you need to refresh the ALV output
    ·        You replace the entire data table
    Refresh Display of the ALV Output
    If you have changed single values, added rows or deleted rows in the data table of list-type ALV outputs, you need to complete these changes in the ALV output as well by refreshing the ALV display.
    For Changes in the Tree Structure you do not have to refresh the display. In the other ALV tools, you do not have to refresh the ALV output when you make the following changes:
    §         Changes to the Display of Columns
    §         Changes Sequence of Columns in the ALV display
    §         Changes to the DDIC Reference of Columns
    By default, the ALV output automatically scrolls to the beginning. However, you are able to determine that the current display (position on the screen) not be changed.
    You are able to refresh the ALV output in two ways:
    ·        All settings for filters and sorting remain.
    This setting can lead to newly inserted data records not being displayed because the filter setting hid exactly these data records.
    ·        All settings for filters and sorting remain.
    Features
    For changes to content and structure, you are able to make the following settings:
    ·        Refresh ALV output
    ·        Swap the data table of the ALV output
    Refresh ALV output
    With the refresh, you ensure that the changed values are available on the front end as well.
    Display type
    ALV Tool
    Classic ABAP list
    Full screen
    In the Container
    Simple, two-dimensional table
    Yes
    Yes
    Yes
    Hierarchical-sequential list
    Yes
    Tree structure
    No
    No
    Methods
    Function
    Class
    Method
    Refresh ALV output without deleting filter and sort settings
    CL_SALV_TABLE
    CL_SALV_HIERSEQ_TABLE
    REFRESH
    (Parameter REFRESH_MODE: SOFT)
    Refresh ALV output and delete filter and sort settings
    REFRESH
    (Parameter REFRESH_MODE: FULL)
    Change the Structure of the Data Table with SET_DATA
    Depending on which ALV tool you are using, the parameters of the SET_DATA method are different:
    If you assign a new structure with SET_DATA, all objects that referred to the previous structure will be deleted such as all sort objects in list-type ALV outputs or all node objects in tree structures.
    Methods
    Function
    Class
    Method
    Change structure and data table
    CL_SALV_TABLE
    CL_SALV_HIERSEQ_TABLE
    CL_SALV_TREE
    CL_SALV_HIERSEQ_LEVEL
    SET_DATA
    Change the Structure of the Data Table with the SET_DATA Method
    ALV Tool
    Parameter
    Remarks
    Simple, two-dimensional table
    T_TABLE
    Table for structure and contents of the ALV output
    Hierarchical-sequential list
    (in CL_SALV_HIERSEQ_TABLE)
    LEVEL
    Hierarchy level whose structure you wish to change
    T_TABLE
    New table of hierarchy level
    T_BINDING
    List of up to five foreign-key relationships
    (in CL_SALV_HIERSEQ_LEVEL)
    VALUE
    New table of hierarchy level
    T_BINDING
    List of up to five foreign-key relationships
    Tree structure
    T_TABLE
    Initial table
    Empty table, only sets the structure

  • Refresh table and display the records after insertion of data from back end

    Hi Experts,
    JDEV 11.1.2.1
    I have a useacase which needs data to be inserted from oracle back end procedure and displayed in a ADF Table Component, when a button is pressed.
    is this possible?..if yes , how?
    Is view object will automatically refreshed and fetches newly created(from back end) rows?
    thankz in advance
    PMS

    Hi user707,
    thankz for ur reply....
    i think after executing a procedure you want to call commit operation. better you can perform this.getDbtransaction().commit In Application Module;yes i want to commit transaction after executing back end procedure using preparedStatement.Procedure is for inserting data into same table , which used for creating VO and Read only ADF Table.Procedure is executed fine, but newly created records are not getting into ADF table.Once i did commit opeartion inside back end procedure, whole records are getting into ADF Table.
    Is there any way to get whole records without doing Commit operation inside Back end procedure?
    PMS

  • Tomcat and refreshing jsf component attributes in the browser

    I'm using Eclipse and Tomcat 5.0.25. I start Tomcat in debug mode with a shortcut: "C:\Tomcat-5.0\bin\catalina.bat jpda start". I have an entry in the Tomcat server.xml file that points to my web application:
    <Context debug="0" docBase="C:\MyProjects\eclipse\cdstore\WebContent" path="/cdstore" reloadable="true"/>
    I have a jsp page with a jsf dataTable tag. If I change the html markup (i.e. by typing "hello" in the jsp page) and press the refresh button in my IE 6.0 browser, the "hello" message is displayed.
    If, however, I change the content of a dataTable attribute (i.e. I change styleClass="aClass" to styleClass="anotherClass") or add a new dataTable attribute, the attribute changes are not sent to the browser when I press the browser refresh button. I do a "view html source" and they are not there.
    I have to close the browser down and relaunch the browser to see the new dataTable attributes.
    Does anybody know if there is any easier way of doing this?
    thanks, jeff

    Hi pushpa latha
    Yes it is possible to update the data at the header level using below approach
    create the component interface for your cusotm component
    use the component interface  in the header overview standard component as resuable component.
    Implement the event handler method for the button , in the event handler method get the refreshed value
    create the navigation and call the navigation (fire_outbond_plug) to cutom component by passing the plug name and refreshed data..
    set the refreshed data to your value node in your custom component.
    Thanks & Regards
    Raj

  • Help needed - showOneTab component displaying wrong tab

    Hi,
    I have a page with an af:showOneTab component, which contains several tabs, and also a table (that's separate from the showOneTab component).
    When the page is first loaded, the correct tab is disclosed, based on the contents of the table (there's a default tab, when the table is empty). Basically, on any of the tabs, different items can be added to the table, which then disables all of the other tabs. If the items are removed from the table, all the tabs are enabled again.
    This all works fine the first time the page is viewed, but I have a problem with subsequent viewings.
    Example scenario :
    - On load, table is empty, and opens on the default tab (E) (correct functionality)
    - change to tab A and add an item - all tabs except A now disabled (correct)
    - click ok button, return to other page, item from tab A displayed in list (correct)
    - go back to page - opens on tab A with all others disabled, and item in table (correct)
    - remove item from table - all tabs now enabled again (correct)
    - go to tab B and click cancel button - returns to other page, item from tab A still displayed in list (correct)
    but then...
    - go back to page - opens on tab B, with all others except A disabled, and the item from tab A in table. (should have opened on tab A)
    - clicking on tab A reveals that tab B is actually disabled as it should be
    So, the problem seems to be that somehow the showOneTab component is "remembering" the last tab that was disclosed, rather than determining which tab should be disclosed. (Furthermore, refreshing the page does not do anything - the wrong tab is still disclosed).
    I have tried to get this to work in the following ways, but none has worked :
    - binding each of the showDetailItems and using the setDisclosed methods
    - binding the showOneTab component
    - binding all of the "disclosed" and "disabled" attributes of the showDetailItems to boolean methods in the backing bean.
    - using disclosure listeners
    The backing bean for the page is on the session, but it is definitely being cleared before the page is loaded each time, so it can't be something persisting in that.
    I don't know if it makes any difference, but this page is a popup.
    This problem has been around for weeks now, and is extremely frustrating, so any help would be greatly appreciated.

    first I hope that you already solved your problem after one year but in case of I have a solution :
    I have the same problem with the component OADefaultHideShowBean and the function setDisclosed(boolean) ; finally I used this function setDefaultDisclosed(pageContext,boolean) which is working correctly and will not remember the position of the last page downloaded...

  • For Refreshing a table display in ALV when data is chngd in maintainance vi

    Hi All,
    I am displaying the fields of a Ztable in a ALV report. A maintainance view call button is attached to that report through which data of Ztable can be changed.Prolem is that when after changing the data when I return back to report, changes are not reflected.
    Kindly suggest to solve this problem.
    I am using ALV display through class.
    I have already used these functions in the else condition of IF GO_CUSTOM_CONTAINER IS INITIAL.
    CALL METHOD go_grid->refresh_table_display.
    CALL METHOD cl_gui_cfw=>flush.
    For maintainance view I am using the function as
    VIEW_MAINTENANCE_CALL on double clicking the maintain button.
    Kindly suggest.
    Ashutosh Kumar

    Ashutosh,
    Just calling the REFRESH method will not work. You need to re-fetch the data into the same internal table which you using the displaying the data in the grid.
    Probably you can write this data fetching as a subroutine and call this as soon as come back from the Maintenance screen. And updating the internal table, call the REFRESH method.
    This should work.
    Regards,
    Ravi
    Note : Please reward points if this helps.

  • Tree component display problem when text too long???

    hi all
    whenever i use a tree component to display some sort of text, i run into problems when the width of the text being display for a node is larger than the width of the tree component.
    Given: Tree tree1 with Node node1 and Child Node child1
    When the text of either node1 or child1 is longer than the width of tree1, the text is displayed on its own single line UNDERNEATH the node images. this makes the text look like it does not belong to the group of children of a given node.
    is there anyway to add maybe a text area or some sort of scrolling region to allow for any length of text for any node??
    thanks everyone!

    Yes, you can change the size of the tree node text field. Please see the "Tree Node Component Properties Window" section in the Help Contents within the IDE. Look at the info under the "Appearance" section.

  • Best method for refreshing a component's data?

    What's better when you want to refresh the content of an object? Should you just replace your JComponent with an entirely new one, or should you try to get access to the data and then remove the items and then re-add them.
    In my example, I have a JTree and am not sure which would be the best method to use. Should I try to remove all the nodes, or sometimes I think it would be easier to just remove the tree component from my panel, create a new tree and re-populate it?
    Thanks for any advice.

    pjbarbour wrote:
    I'm not quite sure what would be the best method for this.  My client is using a 4x3 screen and SD projector at a large meeting, and they want me to just create a DVD that is letterboxed.  I have one Premiere CS5 project that's 1920x1080, and another project that's 720x480 widescreen (1.2).  I created a new sequence in both projects that is 720x480, 4x3 (0.9), and what I do is just scale the timeline down so that it's letterboxed.  Is this the best method for achieving this?  Or would you do something else?  I don't like the idea of scaling my timeline down in Premiere.
    Hello.
    As Jim so rightly points out above, you do not need to do anything.
    Just use your normal 16:9 widescreen footage, and author as normal.
    Your player will letterbox automatically when it is connected to a 4:3 screen in setup (just make sure "Pan & Scan" is not also there)

  • Must refresh to correctly display page

    Using Safari 3 beta, when I go to sites that I made using iWeb or Dreamweaver CS3, perhaps other sites as well, sometimes they come up as a page of html rather than the website. To get the actual site, I must refresh the page once or twice. My suitemate also has this problem.
    It only happens in Safari. Firefox works fine.
    Thoughts?

    I'm having the same issue. When I start up my browser the home page (I'm using iGoogle) will not display. I have to hit the refresh button to make the page appear. I also have to do this with the majority of the pages that I visit. I was hoping that I wouldn't run into this issue again once I reinstalled the browser, since installing it after it was announced.
    The browser looks like it is loading the entire html file, but it doesn't appear to always load all the images, css, or js files associated with it. There are times that it loads all the images and the html but doesn't display them.
    I have also cleared my cache folder. But that doesn't seem to have solved anything. This is extremely frustrating!
    Thanks,
    William

  • Refreshing OutputText component on main page when region event occurs

    Greetings,
    I am attempting to force a refresh on an output text component whose value is retrieved from a session scope bean property. The bean property is being updated by a methodAction call within one of the sub-task flow regions. I have tried accomplishing this by attempting to force a ppr event via
    AdfFacesContext context = AdfFacesContext.getCurrentInstance();
    context.addPartialTarget(component);using an object bound to component on the page after the update is made. I started to look into contextual events but all of the examples refer to explicit regions defined in the pagedef. This is not the case using UI Shell.
    Any suggestions on how to refresh this 'parent-level' component?
    Thanks!
    michael
    Edited by: michael faith on Mar 3, 2010 11:25 AM

    Hi,
    I am facing similar problem.
    I am able to refresh a region based on another region but not a component in parent page based on a region.
    I am using contextual event framework.
    Can we point a region as a partial trigger for a component on the main page?
    Did u get the solution to your problem?
    Any help would be highly appreciated.
    Thanks.

Maybe you are looking for

  • No Signal

    OS Name Microsoft Windows 7 Professional Version 6.1.7601 Service Pack 1 Build 7601 System Model h8-1090t System Type x64-based PC Processor Intel(R) Core(TM) i7 CPU 970 @ 3.20GHz AMD Radeon HD 6850        A few days ago I was working on my computer

  • Provide syntax with multiple infotypes?

    Hi, If i take one infotype data we are taking like this... PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA. WRITE: P0002-PERNR, P0002-NACHN, P0002-VORNA. ENDPROVIDE. But i want multiple infotypes data like 0000,0006,0008....?Give me the syntax of

  • Video over IP

    My customer is looking for the following: 1. Video Conferencing across 20 WAN locations. 2. Each location would have a conference room which would be used for a multiparty video conference. 3. Individual PC users with a desktop camera should be able

  • Fatal error when installing master collection "[FATAL] Setup - Error installing C:\Users\Desktop\MasterCollection_CS6_LS6\packages\core\PDApp.pimx package. Return Value of pim_installPackage = -1

    Hi, When I try to install a trial product like photoshop cs6 or master collection cs6 I keep getting the error " Installer failed to initialized". I used Adobe cleaner to remove all cs6 products and tried again, but no luck, the same error. I opened 

  • Error when I try to add a non-catalog requisition t

    Hi When on our R12.3 E Business Site Admins is in Iprecurement and clicks None Catalog Request and attempts to add an item to the cart. The following error occurs, can anyone advise how to troubleshoot this? The error from the applications is very bl