Problem rendering a dynamically populated tree in a postback

I'll try and keep this as simple as possible...
On page1 I have a table with a button column. When the user presses one of the buttons, the ID for that row is saved in a variable in the session bean, then navigates to page2.
In the init() function of page2 I generate a new tree object using parent/child data retrieved from a database using the ID saved in the session bean. Then I use setTree1(newTree); to apply the data to the component on the page.
The first time a user presses a button on page1, page2 is displayed with the correct data in the tree. If the user navigates back to page1 and presses a different button, page2 is displayed with the tree data from the initial button that was pressed.
I have a number of static text components on page2. The values are updated in the same function that the tree is generated, and all of these get updated correctly in the postback.
Still with me?!
I understand that in the first stage of the lifecycle if the page request is an initial request the the JSF implementation creates an empty view and advances to the render response phase. - eg the first time a button is pressed page2 is shown with the correct tree.
If the page request is a postback a view for this page already exists and the JSF implementation restores the saved view. - eg the second time a button is pressed page2 is shown with the tree data from the first button press.
So my question to you JSF gurus...
Is there some way to make sure that getTree1() is called somewhere in the postback to update the values in the tree, and render the changes on the page.
...or can I make every request to page2 an initial request so that the view isn't saved?
I hope I've been clear on what I'm trying to do here. I've been banging my head against my desk for afew days tryin to figure this out! Thanks in advance for any help
Olly

I set up a test where I use the Travel db and pass a person id from page 1 to page 2. I build a tree of that person's trips in Page 2. Every time I go to Page 2, I get the tree of trips for that person.
On page 2 I have a tree from which I have deleted all nodes. Its ID is displayTree.
Here are excerpts from my prerender code.
           // If nbrChildren is not 0 then we have our tree already
            int nbrChildren = displayTree.getChildCount();
            if (nbrChildren == 0) {
                // List of outer (person) nodes
                List outerChildren = displayTree.getChildren();
                // Erase previous contents
                outerChildren.clear();
                // List of inner (trip) nodes
                List innerChildren = null;
                // Execute the SQL query
< in my loop where I iterate through the query>
                            TreeNode personNode = new TreeNode();
                            personNode.setId("person" + newPersonId.toString());
                            personNode.setText(
                                    (String)tripDataProvider.getValue(
                                    "PERSON.NAME"));
                            // If the request bean passed a person id,
                            // expand that person's node
                            personNode.setExpanded(newPersonId.equals(thisPersonId));
                            outerChildren.add(personNode);
                            innerChildren = personNode.getChildren();
                        // Create a new trip node
                        TreeNode tripNode = new TreeNode();
                        tripNode.setId("trip" +
                                tripDataProvider.getValue("TRIP.TRIPID").toString());
                        tripNode.setText(
                                tripDataProvider.getValue("TRIP.DEPDATE").toString());
                        // Set "action" property to use for navigation
                        tripNode.setAction(
                                getApplication().createMethodBinding
                                ("#{Page1.tripNode_action}", null));
                        innerChildren.add(tripNode);

Similar Messages

  • Dynamic UIX tree

    Hi everybody, for the last couple of days i was trying to create a tree in UIX (with nodes and subnodes) based on dynamic data (not inline data defined in the UIX page) and i have found that the only way to do it(correct me if i'm wrong) is through java (not XML) and these are my main attempts:
    1)
    public class TreeTest1
    public static UINode getPage()
    HTMLWebBean div = new HTMLWebBean("div");
    TreeBean tree = new TreeBean();
    tree.setNodes(_getDataForTree());
    div.addIndexedChild(tree);
    BodyBean body = new BodyBean();
    body.addIndexedChild(div);
    return body;
    static private DataObjectList _getDataForTree()
    DataObject[] rows = new DataObject[5];
    for (int j = 0; j < rows.length; j++)
    DictionaryData row = new DictionaryData();
    row.put("key", "" + j);
    row.put("text", "" + j);
    rows[j] = row;
    return new ArrayDataSet(rows);
    when i run this i just get level-1 nodes without any control over them (i.e i can't set their properties like destination, expandabilty..etc)
    2) I have found this code here http://otn.oracle.com/jdeveloper/help/topic?inOHW=false&linkHelp=false&file=jar:file:/u01/webapps/OHW/ohw-app/jdeveloper/helpsets/jdeveloper/reference/reference.zip!/uix2-javadoc/oracle/cabo/ui/data/tree/SimpleTreeData.html but it is not mentioned how to add this DataModel to the tree.
    3) In the TreeBean API there are methods to add any IUNode to the tree (including another tree) and here's an example :
    public class TreeTest1
    public static UINode getPage()
    HTMLWebBean div = new HTMLWebBean("div");
    TreeBean tree = new TreeBean();
    tree.addIndexedChild(new TextNode("First tree node"));
    tree.addIndexedChild(new TextNode("Second tree node"));
    div.addIndexedChild(tree);
    BodyBean body = new BodyBean();
    body.addIndexedChild(div);
    return body;
    but the problem here is that the tree is not rendered, any other UINode is rendered perfectly.
    I would appreciate any help.

    Hi Houssen, I made a simple example. Try it.
    The uix file
    -------- BEGIN ----------
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <provider>
    <data name="Proxy">
    <method class="mypackage.Tree" method="getProxy" />
    </data>
    <data name="Nodes">
    <method class="mypackage.Tree" method="getTree" />
    </data>
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <pageLayout>
    <contents>
    <form name="menuForm" >
    <contents>
    <tree id="menuTree" formSubmitted="true"
    data:nodes="nodes@Nodes"
    data:proxy="proxy@Proxy" />
    </contents>
    </form>
    </contents>
    </pageLayout>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <event name="expand" >
    <method class="mypackage.Tree" method="handleExpand" />
    </event>
    </handlers>
    </page>
    -------- END ----------
    The java file
    -------- BEGIN ----------
    package mypackage;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.event.EventResult;
    import oracle.cabo.servlet.event.PageEvent;
    import oracle.cabo.servlet.ui.BajaRenderingContext;
    import oracle.cabo.ui.RenderingContext;
    import oracle.cabo.ui.UIConstants;
    import oracle.cabo.ui.data.DataObject;
    import oracle.cabo.ui.data.tree.ClientStateTreeDataProxy;
    import oracle.cabo.ui.data.tree.SimpleTreeData;
    public class Tree implements DataObject {
    private String submitURL = null;
    public Tree(String submitURL){
    this.submitURL = submitURL;
    public static DataObject getProxy(RenderingContext rc, String ns, String name) {
    return new Tree(null);
    public static EventResult handleExpand(BajaContext context,Page page,PageEvent event)
    throws Throwable
    String state = event.getParameter(UIConstants.STATE_PARAM);
    String node = event.getParameter(UIConstants.NODE_PARAM);
    String selection = event.getParameter(UIConstants.SELECTION_PARAM);
    EventResult result = new EventResult(page);
    Object proxy = new ClientStateTreeDataProxy(null, state, node, selection);
    result.setProperty("proxy", proxy);
    return result;
    public static DataObject getTree(RenderingContext rc, String ns, String name){
    SimpleTreeData parent = new SimpleTreeData();
    SimpleTreeData child = new SimpleTreeData();
    child.setText("1");
    child.setExpandable("collapsed");
    parent.addChild(child);
    child = new SimpleTreeData();
    child.setText("2");
    child.setExpandable("collapsed");
    SimpleTreeData child2 = new SimpleTreeData();
    child2.setText("2.1");
    child2.setExpandable("collapsed");
    child.addChild(child2);
    parent.addChild(child);
    return parent;
    public Object selectValue(RenderingContext rc, Object p1) {
    BajaContext bc = BajaRenderingContext.getBajaContext(rc);
    EventResult result = EventResult.getEventResult(bc);
    Object proxy = (result==null) ? null : result.getProperty("proxy");
    if (proxy==null) proxy = new ClientStateTreeDataProxy( submitURL, null, null, null);
    return proxy;
    -------- END ----------
    Hope this help
    Rafael

  • Dynamically populated parameter clears previously entered parameters

    Software: Crystal Reports XI with MS SQL Server 2008
    I've created a report that asks for three parameters, 2 dates, and a string which is dynamically populated. The report has two tables added in the database expert.
    The first table is a command object which passes the two date parameters to a stored procedure:
    exec sp_MyStoredProcedure {?startdate},{?enddate}
    The second table is a stored procedure object used to populate the string parameter {?_users}. The criteria for the string parameter are:
    Prompt with Description only: False
    Allow multiple values: True
    Allow discrete values: True
    Allow range values: False
    This stored procedure object requires no parameters, and was originally a view in the database, but it the same problem occurs whether i dynamically populate the string parameter options from either a view or a stored procedure. I'd like to go back to using a view, as i do not need to pass any kind of parameters to the stored procedure
    The string parameter is used for defining the record selection formula:
    IF {Command.user_name} in {?_users} THEN true ELSE false.
    The two tables are not linked in the database expert, but linking them does not seem to solve the problem I am having with this report, the problem being this:
    No matter which order I set the  parameters, it always first displays a form showing only the prompts for the date values. After entering these, it then shows a form prompting for the date values again (the previously selected date information now cleared), along with the list of users from which to select. On this 2nd form, the parameters are displayed in the order I set using the field explorer option presented when I right click on the Paramter Fields heading. After entering the date parameter values a 2nd time, and selecting the users from the  dynamically generated list, the report performs as intended.
    Edited by: Duraplex on Nov 12, 2010 6:26 PM
    Edited by: Duraplex on Nov 12, 2010 6:57 PM - After contacting the tech dept of my employer, they are applying a service pack update to my installation, I am hoping this resolves the issue. Will post an update as soon as I know more.
    Edited by: Duraplex on Nov 12, 2010 7:35 PM - After applying SP4 to my installation, the problem persists. I did note however that removing the string parameter and record selection formula, and then recreating them, does somewhat solve the issue temporarily - i still am presented with two forms, but the second form doesn't clear the previously entered date parameters. However,  once i save the report, and reload it, the problem manifests again and the date parameters are cleared when presented on the 2nd form. Has anyone else encountered a similar problem?
    Edited by: Duraplex on Nov 15, 2010 8:38 PM - Problem resolved by upgrading from Release 1 to Release 2.

    Hi,
    Once record status gets change for block you can not populate/repopulate the list item. Keep those list items as non-database item with different names and create different items as database orignal items. Than assign the values in WHEN-LIST-CHANGE trigger to the actual database items.
    -Ammad

  • Saving dynamically populated pdf forms

    We have forms developed in Live Cycle that are dynamically populated.
    We have extended these forms in Acrobat so that users may save them with the pre-populated data.
    Our issue is that the user must manipulate the form in some manner, such as changing a field, in order for it to be saved with the pre-populated data.
    Is there a way we can enable the user to simply open the form that has been dynamically populated and save it with this data simply by doing a "Save As"?
    Thanks in advance for any help offered~
    ~Chris

    > So, it appears that a server product is necessary to utilize and activate Reader Rights for users... Is this correct?
    No. Acrobat Pro 8 and 9 can activate certain rights, such as saving, which is what you said you did in your original post.
    Like I said earlier, the problem you're experiencing is odd, and may be related to the way the form was created in LiveCycle Designer or the way in which you are populating the form with data. If I were you, I would pose this question in a Designer-related forum. Include the details related to how the form is being dynamically populated. It would also be helpful to be able to look at a document in question.
    George

  • Date parameter values cleared when dynamically populating string parameter

    Software: Crystal Reports XI Release 1 with SP4, with MS SQL Server 2008
    I've created a report that asks for three parameters, 2 dates, and a string which is dynamically populated. The report has two tables added in the database expert.
    The first table in the database expert is a command object which passes the two date parameters to a stored procedure:
    exec sp_MyStoredProcedure {?startdate},{?enddate}
    The second table in the database expert is a stored procedure object used to populate the string parameter {?_users}. The criteria for the string parameter are:
    Prompt with Description only: False
    Allow multiple values: True
    Allow discrete values: True
    Allow range values: False
    This stored procedure object requires nothing to be passed, it was originally a view in the database, but the same problem occurs whether i dynamically populate the string parameter options from either a view or a stored procedure.
    The string parameter is used for defining the record selection formula:
    IF {Command.user_name} in {?_users} THEN true ELSE false.
    The two table objects are not linked in the database expert, but linking them does not seem to solve the problem I am having with this report, the problem being this:
    No matter which order I set the parameters, it always first displays a form showing only the prompts for the date values. After entering these, it then shows a form prompting for the date values again (the previously selected date information now cleared), along with the list of users from which to select. On this 2nd form, the parameters are displayed in the order I set using the field explorer option presented when I right click on the Paramter Fields heading. After entering the date parameter values a 2nd time, and selecting the users from the dynamically generated list, the report performs as intended. After subsequently running the report  (prompting for new parameter values by pressing F5),  it does not clear the date parameters on the 2nd form's appearance.
    What I need is to be able to enter in these values the first time around, without having the date parameters cleared. Am i going about this incorrectly, or is this a bug?

    What you are experiencing is not a bug... Passing a multi-valued parameter to a Command or SP is not supported in any version of CR prior to CR 2008.
    Your options are #1) Upgrade to CR 2008 or #2) Jump through the necessary hoops to make it work in CR XI
    Check out this link...[SQL Command Parameter - Multiple Value|Re: SQL Command Parameter - Multiple Value]
    It has some good examples a good step by step.
    HTH,
    Jason

  • Dynamically populating an XMLList

    How would i go about dynamically populating a specific node section with database values? See code below that is static. I'd like for example the Groups node to be populated with the names of groups in my database. I use Coldfusion as the server side language so I understand dataproviders but I cannot add a dataprovider in the node tag:
        <mx:XMLListCollection id="treeData">
            <mx:source>
          <mx:XMLList>
                  <node label="Items">
                      <node label="Open"/>
                      <node label="In Progress"/>
                      <node label="More Info"/>
                      <node label="Closed"/>
                  </node>
                  <node label="Categories">
                      <node label="Category 1"/>
                      <node label="Category 2"/>
                  </node>
                  <node label="Groups">
                      <node label="Group 1"/>
                      <node label="Group 2"/>
                      <node label="Group 3"/>
                  </node>           
                  <node label="Help"/>
          </mx:XMLList>
            </mx:source>
        </mx:XMLListCollection>

    oh, I'm really sorry for mistype, it should be like this:
    var groupsNode:XML = tree.descendants().(hasOwnProperty('@label') && @label == 'Groups')[0];

  • Problem in aligning dynamic UI with the static UI

    Hi All,
    I have problem in aligning dynamic UI with the static UI, I am using Matrix layout.
    Static fields are spread over 2 colums and 3 rows:
    lableA SPACE input field SPACESPACE lable B SPACE input field
    lableC SPACE dropdown SPACESPACElableD SPACE dropdown
    lableE SPACE dropdown SPACESPACElableF SPACE dropdown
    Now when a value is selected in C, than E becomes visible, and depending on the values selected in E, there are dynamic UI generated, i.e dynamic lables and depending on some validation it will be either a dropdowns or input fiels or both.
    at run time screen is like this:
    lableA SPACE input field SPACESPACE lable B SPACE input field
    lableC SPACE dropdown SPACESPACElableD SPACE dropdown
    lableE SPACE dropdown SPACESPACElableF SPACE dropdown
    dynaSPACEdropdown
    dynbSPACEinput field
    if I change my selection in E than layout looks like:
    lableA SPACE input field SPACESPACE lable B SPACE input field
    lableC SPACE dropdown SPACESPACElableD SPACE dropdown
    lableE SPACE dropdown SPACESPACElableF SPACE dropdown
    dynaSPACESPACEdropdown
    dynbSPACESPACEinput field
    Requirment: I need all the lables as well as dropdown/ input fiels in line with the static fields irrespective of my selection in E.
    Something like this:
    lableA SPACE input field SPACESPACE lable B SPACE input field
    lableC SPACE dropdown SPACESPACElableD SPACE dropdown
    lableE SPACE dropdown SPACESPACElableF SPACE dropdown
    dyna   SPACEdropdown
    dynbSPACESinput field
    dyncSPACESdropdown
    All this elements are in a group and that group has 2 transparent containers, 1 for static and for holding dynamic UI.
    I tried playing with the container properties, and also tried fixing width of dynamic UI but still the alignment issue is encountered.
    Can U guys plz give in ur valuable inputs as i need to fix this urgently.
    Regards,
    JJ

    Hi Armin,
    Can you please elaborate your solution ?, I do not have an idea of InvisibleElement & IWDView.resetView() ,
    If you can give me the exact pointer than it would be great and a good learning exp. for me.
    Thanks for the action assignment part, it worked.
    if (wdContext.nodeMaterialClass().size() > 0 && wdContext.currentContextElement().getActionMatCls()) {
         if (wdContext.currentMaterialClassElement().getMaterialClass_Description() != null || !wdContext.currentMaterialClassElement ().getMaterialClass_Description().equalsIgnoreCase(" ")) {
               IWDGroup Searchgroup = (IWDGroup) view.getElement("DynGroup");
    Searchgroup.destroyAllChildren();
    view.getContext().reset(false);
                                                      for (int i = 0; i < wdContext.nodeMaterialCharateristcs().size(); i++) {
                                  //this for label
         IWDLabel CharLabel = (IWDLabel) view.createElement(IWDLabel.class, "label" + i);
         CharLabel.setText(wdContext.nodeMaterialCharateristcs().getMaterialCharateristcsElementAt(i).getDescr_Char());
         CharLabel.setDesign(WDLabelDesign.EMPHASIZED);
         CharLabel.createLayoutData(MatrixHeadData.class);                              CharLabel.setWidth("154px");                              Searchgroup.addChild(CharLabel);
                 further there are conditions to create either dropdown or input field
    Can you please point where and how to apply your solution.
    Regards,
    JJ

  • Problem in using AdvanceDataGrid as tree with drag n drop functionality

    Hi All,
    I am using AdvancedDataGrid as tree for displaying my data. Within this ADG tree I have to enable drag n drop i.e. user can select one node and will able to drop that on another node within tree.
    Overwritten dragDrop handler event for ADG.
    Issues: Not getting target node on which I am dropping currently selected node.

    Please don’t use this forum for support questions, go use flexcoders or the Adobe forums instead.
    Matt
    On 2/10/09 11:21 PM, "rakess" <
    [email protected]> wrote:
    A new discussion was started by rakess in
    Developers --
      Problem in using AdvanceDataGrid as tree with drag n drop functionality
    Hi All,
    I am using AdvancedDataGrid as tree for displaying my data. Within this ADG tree I have to enable drag n drop i.e. user can select one node and will able to drop that on another node within tree.  
    Overwritten dragDrop handler event for ADG.
    Issues: Not getting target node on which I am dropping currently selected node.
    View/reply at Problem in using AdvanceDataGrid as tree with drag n drop functionality <
    http://www.adobeforums.com/webx?13@@.59b7e11c>
    Replies by email are OK.
    Use the unsubscribe <
    http://www.adobeforums.com/webx?280@@.59b7e11c!folder=.3c060fa3>  form to cancel your email subscription.

  • Dynamically populating form -

    I need to make a dynamically populating form - I cannot find the instruction - is there a video on adobe tv? Please help me - I am desperate. Thanks a lot! K_S_

    Hi..
    I think you can do it with ADF .When you click field1 in your form get the value to bean using serverListner.And create method in AMImpl to filter records from TableB by passing your field1 value.make sure to add client interface to this filter method(clientInterface in yourAM.xml) and add it to page using bindings to as methodAction.Then you can show filtered TableB using popoup.

  • My mac Mini has problem rendering images and video

    THE PROBLEM:
    My mac mini has problem rendering JPEG image. There are strips on the images. Other images such as GIF, PNG, TIFF, and BMP are displayed nicely.
    The images shown in the links below illustrate the problem:
    http://www.flickr.com/photos/terencewong/71481156/
    http://www.flickr.com/photos/terencewong/73360989/
    (Please note that this image is grabbed from my faulty Mac Mini and saved into TIFF. For uploading purpose, I converted it into JPEG on ANOTHER computer.)
    For movies, AVI can be playback without problem. But when it is converted to MPEG, it looks like an untunned TV channel.
    FIXES TRIED:
    I did erase and install 3 to 4 times using both the install disc and my Tiger Family Pack. All ended up with strips on the JPEG images and the generated MPEG movies.
    I've also tried to flash the firmware to 113-xxxxx-124 using ATI's october 2005 universal ROM update, however, the ROM Revision shown in System Profiler is still 113-xxxxx-116 no matter how many time I reboot the system.
    INVESTIGATION:
    Yesterday, I did some research and got to know that JPEG and MPEG are using DCT (Discrete Cosine Transform) for decompression. And the ATI Radeon 9200 chip provide such a transform on hardware basis, which free the CPU from doing something else. Feel free to point out my inaccuracy.
    HARDWARE SPECIFICATION:
    I bought the Mac Mini in the last Februray.
    The system Boot ROM version is: 4.8.9f1
    Display card is ATI Radeon 9200
    Chipset Model: ATY,RV280
    Revision ID: 0x0001
    ROM Revision: 113-xxxxx-116
    A POSSIBLE CONCLUSION:
    I suspect that it is this part of the chip (the DCT) that is faulty.
    Anyone know how to fix this problem?
    Many thanks!

    Assuming that your display is tightly connected, thus the problem is not caused by something as simple as that, the fact that a full erase and install has not removed the problem would, I think, point to this being a hardware issue, and given that everyone's mini (with the possible exception of some of the latest ones) has the same video chipset as yours, and do not suffer the problem that you appear to, it seems very likely that your mini has a fault which is in need of repair.
    If you have an Apple Store nearby, I would take it there to have it checked out - at the very least they should be able to replicate your problem using an in-store display, and if not, thusly suggest it's something external to the mini and concerning your display or something very unusual in the immediate environment of the mini. If you don't have an Apple Store in reach, I'd take the system to an Apple authorized service provider since at the present time it is under warranty.

  • Problem occured when create a tree table for master-detail view objects using SQL queries?

    I am programming a tree table for master-detail view objects using SQL queries and these 2 view objects are not simple singel tables queries, and 2 complex SQL are prepared for master and view objects. see below:
    1. Master View object (key attribute is SourceBlock and some varaible bindings are used for this view object.)
    SELECT  cntr_list.SOURCE_BLOCK,                   
            sum(                   
             case when cntr_list.cntr_size_q = '20'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr20 ,                   
            sum(                   
             case when cntr_list.cntr_size_q = '40'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr40 ,                   
             sum(                   
             case when cntr_list.cntr_size_q = '45'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr45                    
    FROM (       
        SELECT yb1.BLOCK_M as SOURCE_BLOCK,       
               scn.CNTR_SIZE_Q,        
               count(scn.CNTR_SIZE_Q) AS cntr_qty        
        FROM  SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2       
        WHERE       
        scm.cmr_n = scn.cmr_n             
        AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')                 
        OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))                 
        AND scm.shift_mode_c = :ShiftModeCode                           
        AND scm.end_terminal_c = :TerminalCode      
        AND scm.start_terminal_c = yb1.terminal_c                  
        AND scm.start_block_n = yb1.block_n                  
        AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n                  
        AND scm.end_terminal_c = yb2.terminal_c                  
        AND scm.end_block_n = yb2.block_n                  
        AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n           
        AND scn.status_c not in (1, 11)             
        AND scn.shift_type_c = 'V'             
        AND scn.source_c = 'S'       
        GROUP BY yb1.BLOCK_M, scn.CNTR_SIZE_Q       
    ) cntr_list       
    GROUP BY cntr_list.SOURCE_BLOCK
    2. Detail View object (key attributes are SourceBlock and EndBlock and same varaible bindings are used for this view object.)
    SELECT  cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK,                
            sum(                     
             case when cntr_list.cntr_size_q = '20'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr20 ,                     
            sum(                     
             case when cntr_list.cntr_size_q = '40'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr40 ,                     
             sum(                     
             case when cntr_list.cntr_size_q = '45'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr45                      
    FROM (         
        SELECT yb1.BLOCK_M as SOURCE_BLOCK,     
               yb2.BLOCK_M as END_BLOCK,  
               scn.CNTR_SIZE_Q,          
               count(scn.CNTR_SIZE_Q) AS cntr_qty          
        FROM  SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2         
        WHERE         
        scm.cmr_n = scn.cmr_n               
        AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')                   
        OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))                   
        AND scm.shift_mode_c = :ShiftModeCode                             
        AND scm.end_terminal_c = :TerminalCode        
        AND scm.start_terminal_c = yb1.terminal_c                    
        AND scm.start_block_n = yb1.block_n                    
        AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n                    
        AND scm.end_terminal_c = yb2.terminal_c                    
        AND scm.end_block_n = yb2.block_n                    
        AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n             
        AND scn.status_c not in (1, 11)               
        AND scn.shift_type_c = 'V'               
        AND scn.source_c = 'S'         
        GROUP BY yb1.BLOCK_M, yb2.BLOCK_M, scn.CNTR_SIZE_Q         
    ) cntr_list         
    GROUP BY cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK
    3. I create a view link to create master-detail relationship for these 2 view objects.
    masterview.SourceBlock (1)->detailview.SourceBlock (*).
    4. I create a tree table using these 2 view objects with master-detail relationship.
    When I set default value for variable bindings of these 2 view objects and the matching records exist, tree table can work well. I can expand the master row to display detail row in UI.
    But I need to pass in dymamic parameter value for variable bindings of these 2 view objects, tree table cannnot work again. when I expand the master row and no detail row are displayed in UI.
    I am sure that I pass in correct parameter value for master/detail view objects and matching records exist.
    Managed Bean:
            DCIteratorBinding dc = (DCIteratorBinding)evaluteEL("#{bindings.MasterView1Iterator}");
            ViewObject vo = dc.getViewObject();
            System.out.println("Before MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
            System.out.println("Before MasterView1Iterator ShiftModeCode="+ vo.ensureVariableManager().getVariableValue("ShiftModeCode"));
            vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
            vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
            vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
            vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
            vo.executeQuery();
            System.out.println("MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
            DCIteratorBinding dc1 = (DCIteratorBinding)evaluteEL("#{bindings.DetailView1Iterator}");
            ViewObject vo1 = dc1.getViewObject();
            System.out.println("Before DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
            System.out.println("Before DetailView1Iterator ShiftModeCode="+ vo1.ensureVariableManager().getVariableValue("ShiftModeCode"));
            vo1.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
            vo1.ensureVariableManager().setVariableValue("DateTo", dateTo);
            vo1.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
            vo1.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
            vo1.executeQuery();
            System.out.println("after DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
    5.  What's wrong in my implementation?  I don't have no problem to implement such a tree table if using simple master-detail tables view object, but now I have to use such 2 view objects using complex SQL for my requirement and variable bindings are necessary for detail view object although I also think a bit strange by myself.

    Hi Frank,
    Thank you and it can work.
    public void setLowHighSalaryRangeForDetailEmployeesAccessorViewObject(Number lowSalary,
                                                                              Number highSalary) {
            Row r = getCurrentRow();
            if (r != null) {
                RowSet rs = (RowSet)r.getAttribute("EmpView");
                if (rs != null) {
                    ViewObject accessorVO = rs.getViewObject();
                    accessorVO.setNamedWhereClauseParam("LowSalary", lowSalary);
                    accessorVO.setNamedWhereClauseParam("HighSalary", highSalary);
                executeQuery();
    but I have a quesiton in this way. in code snippet, it is first getting current row of current master VO to determine if update variables value of detail VO. in my case, current row is possibly null after executeQuery() of master VO and  I have to change current row manually like below.
    any idea?
                DCIteratorBinding dc = (DCIteratorBinding)ADFUtil.evaluateEL("#{bindings.SSForecastSourceBlockView1Iterator}");
                ViewObject vo = dc.getViewObject();           
                vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
                vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
                vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
                vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
                vo.executeQuery();
                vo.setCurrentRowAtRangeIndex(0);
                ((SSForecastSourceBlockViewImpl)vo).synchornizeAccessorVOVariableValues();

  • Having problems rendering

    Hello everyone:
    OK now I'm having problems rendering. I have about 6m:22sec of video that I need to render. But I get this Render Error:
    Insufficient disk space. Free up space with the Render Manager and Retry?
    There is no files in the Render Manager Section?
    What do I do. The project is on a 1 TB Western Digital Ext Hard Drive with plenty of HD space.
    Any help would be great.
    This is not my day
    Damon

    The project is on a 1 TB Western Digital Ext Hard Drive with plenty of HD space.
    Fine. But where are the Render files being written to and how much space is on that drive?
    Look at your Scratch Disks setting to find out.

  • Adding an override to enable a monitor for a dynamically populated group has no impact?

    Hello all,
    I have a monitor that I only want to target to a single computer group. The group is dynamically populated.
    My basic approach is that the monitor is disabled by default but enabled with an override for that group. However, the monitor does not appear to be running on those servers (or anywhere else). I was able to confirm this based on the results of running the
    "Show Running Rules and Monitors for this Health Service" task--the overridden monitor does not appear at all in the list of monitors running on the servers in that group.
    I have checked the Operations Manager event log on both the SCOM host and the machines in the group, and have not seen any errors. The monitor being overridden is a PowerShell script monitor, where for script logic issues I have seen that the event log will
    contain information on the error. Nothing appears anywhere to show that the monitor has been enabled for these servers.
    Is there a better way to determine why the monitors would not be running on the servers in the group?
    Thanks!

    Hey Gleb,
    I have validated that the group is being populated and that the monitor's target class matches the class of the group members.
    Checking today, it appears that the monitor has begun running on the members of the group... not sure why there was such a large delay before the monitor began executing on the servers. I still have the dreaded green circles in the health explorer, but have
    narrowed that down to a possible condition in my monitor's PowerShell script where the condition properties are not added to the PropertyBag before the script ends.
    Thanks!

  • A recursive, dynamic menu tree in ColdFusion

    Hi
    i want to made a recursive, dynamic menu tree in ColdFusion.
    i search on net menu example, following example
    EXEMPLE
    But there are no file for download. Any one have these files
    for simples.
    Regards !

    Did you try googling the author's name? If you had, you have
    found this:
    http://www.sitepoint.com/article/dynamic-menu-coldfusion
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "<< CFMX >>" <[email protected]>
    wrote in message
    news:f411qf$636$[email protected]..
    > Hi
    >
    > i want to made a recursive, dynamic menu tree in
    ColdFusion.
    >
    > i search on net menu example, following example
    >
    http://builder.com.com/5100-6371-5196767.html
    >
    > But there are no file for download. Any one have these
    files for simples.
    >
    > Regards !
    >
    >
    >

  • Dynamically populating List box

    Hello Everyone:
    I need to create a JSP with two combo boxes and submit button.
    Where the first combo box will be updated from database - which is simple.
    but depending on the selection of the first box the second box should be populated and should be able to make multiple selections in it.
    and in the same jsp page should be able to display the results, of what I added by submiting the previous form.
    Please can somebody help me witha sample.
    Thanks
    ASB

    Dear user,
    If you get any response for the asked question on Dynamically populating List box from anybody please forward the reply to the following e-mail id.
    [email protected]
    --SUBIR                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for