Flexlib windowshade opened state maintain

Hi,
I have flexlib WindowShade component in repeater in my Flex + AIR application.
<mx:XML id="mainMenuXML">
    <items>
        <item value="abc" />
        <item value="xyz" />
        <item value="lmn" />
    </items>
</mx:XML>
<mx:VBox width="100%" height="100%">
        <mx:Button label="Button" click="button1_clickHandler(event)"/>
    <mx:Repeater id="rep" dataProvider="{mainMenuXML.item}">
        <flexlib:WindowShade label="{rep.currentItem.@value}" width="50%" opened="{rep.currentItem.@open}">
            <mx:Label text="xxxxxxxxxx" />
        </flexlib:WindowShade>
    </mx:Repeater>
</mx:VBox>
Now in button1 click handler I am appending child in XML(mainMenuXML) resulting adding one more windowshade instance. But the problem is it opens all the windowshade intances.
I need to maintain the opened states after adding a new windowshade instance. For example: Initially I get 3 windoshades with labels: abc, xyz, lmn all opened. Now I close the xyz windowshade instance(by clicking on the header) Now I click on button which appends child in mainMenuXML and also add a windowshade instance with some label "pqr". But now I see all the windowshade instances opened. But it should be like abc, lmn, pqr should be opened & xyz closed(property opened="false").
Please help me in maintaining the opened true/false state of windowshade instances.
I tried to add a property in dataprovider Bindable to opened property of windhowshade but didn't worked for me.
Thanks in advance

Create a loop and updated each table separately.
Other than that you question is too vague to give a better reply.

Similar Messages

  • User clicks one link and goes to other and comes back state maintain prob

    1st say 2 links r there,
    aaa --> if u click on "aaa" (my requirement) as shown below.
    problem : the bean values still maintaining when i go to "bbb" and come back to "aaa".
    ======
    NOTE: when user enters all fields and clicks on button it goes to "second.jsp" their ajax response (1 table) generating. That means page wont get refreshed. (panel is fixed) only down 1 table will generate.
    on FROM DATE AND TO DATE basis.
    if user presses on F5 also state maintaining with the help of bean object.
    i.e, say user in response table clicks on "page 5" then presses on F5 .
    but problem is when user goes to "bbb" link or "ccc" or "dddd" (separate interface or link) which is not related to this
    (they r nearly 50 interfaces or links) and comes back to "aaa" still old response is there.
    NOTE: i can clear the bean object, but if i clear the bean object in "onload" or general i cant handle F5 issue.
    bbb
    ccc
    ddd
    sample
    =====
    first.jsp
    =====
    <jsp:useBean id="sd" class="TestPage" scope="session">
    </jsp:useBean>
    <jsp:useBean id="sptb" class="TestPageBean" scope="session">
    </jsp:useBean>
    <script type='text'/javascript'>
    function testfun()
    --ajax response.
    forwarding to to
    "second.jsp"
    </script>
    <%
    HttpSession mdsession=request.getSession(false);
    if(mdsession!=null){
    String s1=sptb.getTxtname();
    String s2=sptb.getTestselect();
    %>
    <form>
    <table>
    <tr><td><input type='text' name='fromdate' value='fromdate'></td></tr>
    <tr><td><input type='text' name='todate' value='todate'></td></tr>
    <tr><td><select name='testselect''><option value=1>aaa</option></select></td></tr>
    <tr><td><input type='contains' name='txtname' value=''></td></tr>
    <tr><td><input type='button' name='clickname' value='Click' onclick='testfun()'></td></tr>
    </table>
    </form>
    <%
    %>
    second.jsp (this is ajax response)
    =======
    <%
    String txtname= request.getParameter("txtname");
    String testselect= request.getParameter("testselect");
    String fromdate= request.getParameter("fromdate");
    String todate= request.getParameter("todate");
    --storing in bean
    sptb.setTxtname(txtname);
    sptb.setTestselect(testselect);
    sptb.setTxtname(fromdate);
    sptb.setTestselect(todate);
    ---database conn...resultset values retrieved on "fromdate" and "to date" basis
    out.println("<table><tr><td>testeno</td><td></testename></td><td>fromdate</td></tr></td>");
    while(rs.next())
    out.println(rs.getString(3);
    %>
    output
    ====
    input screen
    1 fromdate
    1 todate
    1 selectbox
    1 contains
    1 button
    -> after clicking on button ajax response displayed below is (with out page refresh)
    1 table gets displayed on "FROM DATE" AND "TO DATE" BASIS
    with pagination

    Michael,
    Thanks a lot for the reply.
    In the case you have mentioned, how does application has to know the user is 'moving away'[clicking on other role] from the application.
    Thanks in advance,
    Regards,
    Ganga

  • Cannot open/stat device

    Good day to all.
    I'm trying to install Solaris 10 (11/06) on my pentium D box. I have 1 SATA hdd (primary master) and 1 DVD-RW drive. The hdd have 2 primary partitions - 1st - win-xp, ntfs, 2nd - for Solaris OS and 1 logical partition. During installation process I have an error - installboot failed - failed to install boot block.
    After that I boot in single user shell disagreed to mount found solaris partition on /a and entered command - /sbin/installgrub stage1 stage2 /dev/dsk/c1d0s0 and got an error - cannot open/stat device /dev/dsk/c1d0s2
    I don't understand why installgrub trying to use c1d0s2 instead of c1d0s0?
    By the way, mount /dev/dsk/c1d0s0 /a works fine.
    Pls help!

    Hi,
    I have a disk with 2 partitions. 1st partition I installed solaris2 filesystem/slices. 2nd partition I created via fdisk from within solaris.
    I assigned 2nd partition to a zpool. Creating the zpool trashed my MBR, and I could no longer boot Solaris off the hard drive.
    booting into singleuser mode off the install cd, solaris detected the 1st partition, and mounted it at /a. Running installgrub gave me the same error message.
    Trick I tried:
    Copy stage1 and stage2 files off /a/boot/grub into /tmp.
    unmount /a.
    re-run installgrub
    violla installgrub has no problem writing to device. The MBR was restored! Horray!

  • Re: PLS-00455: cursor 'CUR_1' cannot be used in dynamic SQL OPEN statement

    create or replace package cognos_pk as /* Creates Package Header*/
    TYPE project_type IS record( /* A record declaration is used to */
    c1 NUMBER /* provide a definition of a record */
    ); /* that can be used by other variables*/
    TYPE project_type1 IS REF CURSOR  return project_type; /* Variable declaration */
    procedure conosg_sp (result1  out project_type1); /* SP declaration */
    end;
    CREATE OR REPLACE PACKAGE BODY cognos_pk AS /* Name of package body must be same as header */
    PROCEDURE conosg_sp(result1  OUT project_type1) IS
    countrow  number;
    BEGIN
    FOR X IN (SELECT TABLE_NAME
    FROM USER_TAB_COLUMNS
    WHERE COLUMN_NAME='PROC_STAT_CODE' AND TABLE_NAME LIKE 'INPT%')
    LOOP
    execute immediate 'select count(*)   from '||X.TABLE_NAME ||' WHERE PROC_STAT_CODE &lt;&gt;10 ' into countrow;
    --result1 := X.TABLE_NAME|| ROW_CNT;
    -- dbms_output.put_line(result1 );
    OPEN result1 for countrow;
    END loop;
    END;
    end;
    /This is my requirement ...
    I want to count the table starting with Inpt and and proc stat _code =10 which is the column name in all the table.
    i wan to return the count and the table name to be used in my cognos report.
    Edited by: BluShadow on 10-May-2013 09:22
    added {noformat}{noformat} tags around the code/data for readability (no accounting for OP's lack of formatting)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    1005181 wrote:
    create or replace package cognos_pk as /* Creates Package Header*/
    TYPE project_type IS record( /* A record declaration is used to */
    c1 NUMBER /* provide a definition of a record */
    ); /* that can be used by other variables*/
    TYPE project_type1 IS REF CURSOR  return project_type; /* Variable declaration */
    procedure conosg_sp (result1  out project_type1); /* SP declaration */
    end;
    CREATE OR REPLACE PACKAGE BODY cognos_pk AS /* Name of package body must be same as header */
    PROCEDURE conosg_sp(result1  OUT project_type1) IS
    countrow  number;
    BEGIN
    FOR X IN (SELECT TABLE_NAME
    FROM USER_TAB_COLUMNS
    WHERE COLUMN_NAME='PROC_STAT_CODE' AND TABLE_NAME LIKE 'INPT%')
    LOOP
    execute immediate 'select count(*)   from '||X.TABLE_NAME ||' WHERE PROC_STAT_CODE &lt;&gt;10 ' into countrow;
    --result1 := X.TABLE_NAME|| ROW_CNT;
    -- dbms_output.put_line(result1 );
    OPEN result1 for countrow;
    END loop;
    END;
    end;
    /This is my requirement ...
    I want to count the table starting with Inpt and and proc stat _code =10 which is the column name in all the table.
    i wan to return the count and the table name to be used in my cognos report.The execute immediate statement you have, is doing the actual count and returning the count into the variable "countrow".
    The subsequent OPEN statement for the ref cursor is trying to open a cursor, and is expecting an SQL query to do that, but you are passing it your numeric value instead.
    All you need to open a ref cursor is:
    e.g.
    OPEN result1 for 'select count(*) from '||x.table_name||' where proc_stat_code != 10';However, your code is so seriously flawed in many ways.
    a) you don't need to declare a type of "REF CURSOR" yourself. Oracle provides a type called "SYS_REFCURSOR" that you can use already.
    b) Your procedure is supplying a single ref cursor as an OUT variable, yet it tries to loop through multiple tables and re-use the same ref cursor over and over. That's not going to work. You can only pass one thing out in your OUT parameter.
    I don't know how congos expects it's results, but I assume a ref cursor is acceptable to it, so what you're actually looking for is to pass back a single ref cursor that is based on a query that can give the results for all your tables in one go.
    There are various queries that can be used to count records on multiple tables e.g.
    (ref. Laurent Schneider's blog: http://laurentschneider.com/wordpress/2007/04/how-do-i-store-the-counts-of-all-tables.html )
    SQL> select
      2    table_name,
      3    to_number(
      4      extractvalue(
      5        xmltype(
      6 dbms_xmlgen.getxml('select count(*) c from '||table_name))
      7        ,'/ROWSET/ROW/C')) count
      8  from user_tables
      9 where iot_type != 'IOT_OVERFLOW'
    10 or    iot_type is null;
    TABLE_NAME                      COUNT
    DEPT                                4
    EMP                                14
    BONUS                               0
    SALGRADE                            5You could therefore open your refcursor using a single query based on the above (adapting it for your own needs and restrictions).

  • PLS-00455: cursor 'CUR_1' cannot be used in dynamic SQL OPEN statement

    create or replace function f_my_test_func
    return refcur_pkg.refcur_t1
    is
    cur_1  refcur_pkg.refcur_t1;
    begin
    open cur_1
    for
    'select * from dept';
    return cur_1;
    exception
    when others
    then
    insert into ddl_log (SQLTEXT)
    values
    ('fucntion error'); 
    end;

    I would suggest that cur_1 refcur_pkg.refcur_t1 is a stongly typed ref cursor i.e. it has RETURN dept%ROWTYPE or something similar in the declaration. You can't use strongly typed ref cursors with dynamic SQL in this way. The declaration should be weakly typed or just use sys_refcursor.
    DTYLER_APP@pssdev2> DECLARE
      2
      3      TYPE t_Strong   IS REF CURSOR RETURN dual%ROWTYPE;
      4
      5      lc_Strong       t_Strong;
      6
      7  BEGIN
      8
      9      OPEN lc_Strong FOR
    10      'SELECT * FROM dual';
    11
    12  END;
    13  /
        OPEN lc_Strong FOR
    ERROR at line 9:
    ORA-06550: line 9, column 10:
    PLS-00455: cursor 'LC_STRONG' cannot be used in dynamic SQL OPEN statement
    ORA-06550: line 9, column 5:
    PL/SQL: Statement ignored
    DTYLER_APP@pssdev2>
    DTYLER_APP@pssdev2> DECLARE
      2
      3      TYPE t_Weak   IS REF CURSOR;
      4
      5      lc_Weak       t_Weak;
      6
      7  BEGIN
      8
      9      OPEN lc_Weak FOR
    10      'SELECT * FROM dual';
    11
    12  END;
    13  /
    PL/SQL procedure successfully completed.
    DTYLER_APP@pssdev2> DECLARE
      2
      3      lc_Weak       sys_refcursor;
      4
      5  BEGIN
      6
      7      OPEN lc_Weak FOR
      8      'SELECT * FROM dual';
      9
    10  END;
    11  /
    PL/SQL procedure successfully completed.
    DTYLER_APP@pssdev2>HTH
    David

  • I downloaded Photoshop cc trial, program opens, states program has a problem and closes right away. how can I get it to work?

    I downloaded Photoshop cc trial, program opens, states program has a problem and closes right away. how can I get it to work?
    I tried uninstalling and installing again same problem

    Moving this discussion to the Photoshop General Discussion forum.

  • After validation want to state maintain of h:outputText /

    Hi,
    I have some fields with validation,
    after validation want to state maintain of <h:outputText />
    <h:outputText id="form_title" value="#{viewCDBean.form_title}"/>
    <h:outputText id="output1" value="Title"/><h:inputTextarea id="cd_title" value="#{viewCDBean.cd_title}" rows="2" cols="40" required="true"></h:inputTextarea><h:message for="cd_title" style="color:red"/>

    Add a h:inputHidden component which saves the h:outputText value for the next request.

  • ADF JSF data binding: why state maintained between requests?

    Dear All,
    i want to know when and how the state of jsf can be maintain automatically by
    adf model.
    i have 2 pages, pageA.jspx and pageB.jspx. in pageA.jspx show some data in
    datatable (bound to methodIterator), when it go to pageB.jspx from pageA.jspx
    and then back to pageA.jspx, the state of the pageA.jspx seems can be stored
    by adf somewhere else.
    i.e. (pageA.jspx -> pageB.jspx -> pageA.jspx)
    ****all the backing beans are request scope.
    according to the adf dev guide, only the the page binding data for the current page will maintain automatically, then why when pageA.jspx's state is stored ?
    do adf store the state in session?? when can i rely on this nature to avoid reload
    pageA.jspx's data?? or how can i clear the state of pageA.jspx (blank page) (return from pageB.jspx)??
    the adf developer guide seems with little information about the page/binding data
    management..where can i found more information about this??
    thank you
    lsp

    Hi,
    i am using EJB + JSF + adf model.
    in this case its the iterator that survives the page navigationdo you mean that all iterator(method/variable..etc) can survive between page navigation??
    You can decide to refresh the iterator on each page load or re-execute the query if
    you don't want this.i want to 'clear' the iterator's data, but not to re-execute/refresh it to get data
    (as this will cause the underlying methodAction be executed once more)..i just want, say
    to display a 'blank' page, say blank pageA.jspx.
    IS THERE ANY REFENENCE document that describe the detail behavior..
    1. when state maintain?
    e.g. case 1 pageA->pageB->pageA->pageB (pageB's state maintained?)
    e.g. case 2 pageA->pageB->pageC->pageA (pageA's state maintained?)
    2. how do the state maintained??
    the iterators are stored in the session or store in the request (e.g. serialized in
    hidden input..etc)? will it lead to large memory usage in server side (until session
    end)?
    i can't find information about the state managementin
    the adf developer guide (not adf bc)..
    could you please point out where can i found these info??
    thank you.
    lsp
    Message was edited by:
    lsp
    Message was edited by:
    lsp
    Message was edited by:
    lsp

  • What's wrong in this OPEN statement?

    hey
    I have declared reference cursor as
    TYPE L_CurType IS REF CURSOR;
    mm_cursor L_CurType;
    sSql as varchar2(2000);
    I have written all sql statement in sSql
    sSql:='Select......';
    Now i am trying to open the cursor i am getting invalid sql statement;
    what's wrong in it?
    OPEN mm_cursor for sSql;

    There is nothing wrong with the OPEN statement; the error is most likely in the SQL select statement stored in the string.
    Show us the entire select statement.

  • I am unable to open any form. Any form/file I open states "not responding" This is adobe reader.

    I am unable to open any form. Any form/file I open states "not responding" This is adobe reader.

    Online and downloaded to my computer. There is no difference.
    browser is google but I also tried internet exployer...thats not the problem...your program is
    i just downloaded the most recent version..10.1...or whatever it is.
    i found this online:...how do I find the Adobe Readers X's 3d and multimedia settings...what tab do I click on..
    1) khwajakhurram I have tried your suggestion to uncheck the default "Enable hardware rendering for legacy video cards" setting and it seems to work!
    What is surprising is that Adobe Reader X's 3D & Multimedia settings report that the alternative preferred renderer modes are either software or DirectX9 .....on a Vista machine with DirectX11.
    The video card on this machine is definitely not legacy but a recent quality Nvidia produced card. That is also the case on the other machines with the issue I have reported.
    2) http://kb2.adobe.com/cps/860/cpsid_86063.html mentions that "certain configurations of anti-virus software that have not yet white-listed AcroRd32.exe" are "Unsupported configurations for Reader running in Protected Mode". Therefore I have also excluded AcroRd32.exe from virus scanning.
    I am now able to use both Protected Mode and Advanced Security without issue.
    I will experiment with various versions of this in the next few days and see whether both or just one of these remedies are needed.
    Update: I have found that performance is vastly improved by changing from the default preferred renderer mode of DirectX9 to the alternative Software setting.

  • Is there any way to know how much time swing client is on open state?

    Is there any way to know how much time swing client is on open state? My requirement is to show a message some time after the swing client open i.e., 4-5 hours.

    You could also consider using javax.swing.Timer and java.awt.event.ActionListener (or javax.swing.Action) which takes care of running the actionPerformed code on the EDT.
    db

  • Spry Collapsible Menus open state

    I am a bit stuck. I have the collapsible Menu widget in a PHP
    page which is included in all the other pages. When I go from
    one page
    to another the include is reloaded and the menu returns to
    it's default
    state. What I really want is for the menus to be collapsed
    when the user
    first enters the site and then to remember and restore it's
    current open
    or closed state when moving between pages. I looked through
    the info
    above and it suggests to me that it can be done but I have
    not been able
    to get it so far, any examples/suggestions would be great.
    Thanks

    its becouse your browser cant store JAVASCRIPT / AJAX states
    in the HISTORY.
    thats why everytime u refresh the page. or go back to it, its
    on its default set state.
    There are some hacks for it. like "really simple history" @
    http://code.google.com/p/reallysimplehistory.
    I have also knocked on this problem. And i hope SPRY is gonna
    build there own BOOKmark and history controller. by using the
    URLparm and the new spryDOM.
    I hope that awnsers your question.

  • Can you default a detailed navigation folder to an "open" state?

    We have a workset containing iViews, and the detailed navigation on the left displays the iViews within a folder as we would like.  However, the folder defaults to being closed, thus making the user click twice to arrive at an iView inside.  Is there a way to default that folder to being open?

    Hi Kris,
    Its is not possible to have a folder expanded by default when you have all other parallel folders are closed.
    Either you can expand only the root folder on DLN or expand all the folders. Expanding all the folder option would need DLN .par customization.
    Set the below settings to open launched folder:
    Go to Your current Framework Page -> Desktop inner page -> Open Detailed Navigation iView and set the property ->  Open Folder when Launched as yes.
    Initial State of Navigation Panel option shall expand/close the entire DLN.
    Ram

  • I tunes will not open states serious error

    Itunes will not open. States serious error. Have removed program and reinstalled with the same error being stated. What can be done to make this prpgram operational on my pc?

    For your QuickTime resintall problem, here's what worked for other users; perhaps it will work for you (I've never had this problem so I can't say for sure):
    1) Uninstall QuickTime from the Add/Remove Programs control panel. If you have difficulties, try Microsoft's Installer Cleanup Utility.
    2) Clean up the Windows registry with http://www.ccleaner.com/ (freeware)
    3) Restart your system.
    4) Delete the QuickTime folder
    5) Reinstall QT from the standalone installer.
    Hope this helps.

  • Want to state maintain of h:selectOneMenu

    Hi,
    i have some filter option with <h:selectOneMenu>
    when i add some thing to with selected value from <h:selectOneMenu> ,*want to come with the same value after adding* .
    Edited by: My_Problems on Jun 17, 2008 9:23 AM

    Hi,
    <h:outputText id="order1" value="Filter on cd/dvd type"/>   <h:selectOneMenu id="mymenu1" >
                        <f:selectItem itemValue="" id="val1" itemLabel=""/>
                        <f:selectItem itemValue="1" id="val2" itemLabel="*Licence*"/>
                        <f:selectItem itemValue="0" id="val3" itemLabel="Open source"/>
                   </h:selectOneMenu>
    I have filter option in main view page
    1-Licence
    2-Open source
    suppose i filter with Licence get all result with Licence cd/dvd type
    after that i add a new cd/dvd ,after adding when i came back to the main view page i want to same selected state of
    <h:selectOneMenu > that was Licence,

Maybe you are looking for