| Bookshelf Home | Contents | Index | PDF | ![]() |
|
Siebel Self-Service Application Developer's Guide > Customizing Menus for Siebel Self-Service Applications > Using the Condition Property to Hide Detail Nodes in List-Detail Pages
If there are no results shown in the Orders node (a search returns no rows) the Order Details and Line Details nodes must not be shown. The condition property is used to accomplish this result. The following example shows the sample code for the Orders, Order Details, and Line Details nodes in faces-config-base-menu.xml: <managed-bean-name>m3_OrderStatus_Orders</managed-bean-name> <managed-bean-class>oracle.apps.ss.base.view.util.MenuItem</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> <property-name>label</property-name> <property-name>fileName</property-name> <value>/faces/ss/base/order/Orders.jspx</value> <managed-bean-name>m3_OrderStatus_OrderDetails</managed-bean-name> <managed-bean-class>oracle.apps.ss.base.view.util.MenuItem</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> <property-name>label</property-name> <property-name>fileName</property-name> <value>/faces/ss/base/order/OrderDetails.jspx</value> <property-name>condition</property-name> <value>orderBean.isOrderDetailsShown</value> <managed-bean-name>m3_OrderStatus_LineDetails</managed-bean-name> <managed-bean-class>oracle.apps.ss.base.view.util.MenuItem</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> <property-name>label</property-name> <property-name>fileName</property-name> <value>/faces/ss/base/order/LineDetails.jspx</value> <property-name>condition</property-name> <value>orderBean.isLineDetailsShown</value> NOTE: The The Java code for orderBean will be similar to the following example: boolean lineDetailsNode = false; boolean orderDetailsNode = false; public void setLineDetailsShown(boolean lineDetailsShown) { this.lineDetailsShown = lineDetailsShown; public boolean isLineDetailsShown() { // Check whether one or more results are in the View Object. If yes return true; else return false. HttpServletRequest httpRequest = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); BindingContext ctx = DCUtil.getBindingContext(httpRequest); DCDataControl dc = ctx.findDataControl("SessionAMDataControl"); SessionAMImpl sessionAM = (SessionAMImpl) dc.getDataProvider(); OrderAMImpl ordersAM = (OrderAMImpl)sessionAM.getOrderAM(); ordersVOImpl orderVO = (ordersVOImpl)ordersAM.getordersVO1(); if (orderVO.getFetchedRowCount() != 0) { public void setOrderDetailsShown(boolean orderDetailsShown) { this.orderDetailsShown = orderDetailsShown; public boolean isOrderDetailsShown() { // Check whether one or more results are in the View Object. If yes return true; else return false. HttpServletRequest httpRequest = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); BindingContext ctx = DCUtil.getBindingContext(httpRequest); DCDataControl dc = ctx.findDataControl("SessionAMDataControl"); SessionAMImpl sessionAM = (SessionAMImpl) dc.getDataProvider(); OrderAMImpl ordersAM = (OrderAMImpl)sessionAM.getOrderAM(); ordersVOImpl orderVO = (ordersVOImpl)ordersAM.getordersVO1(); |
![]() |
![]() |
| Siebel Self-Service Application Developer's Guide | Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |