JSP InputSelect default value

I would like to preset a default value to be displayed by the input select control.
Thanks in advance
null

Step 1:
create a dynamic view object which returns the set of values for the list.
<jbo:CreateViewObject appid="<%= sPool %>" name="CgRefCodesView1" >
SELECT RV_LOW_VALUE AS RV_LOW_VALUE FROM CG_REF_CODES WHERE RV_DOMAIN = 'YESNO' ORDER BY 1 DESC
</jbo:CreateViewObject>
<jbo:DataSource id="DS_Lookup_Type1" appid="<%= sPool %>" viewobject="CgRefCodesView1" ></jbo:DataSource>
Step 2: Get the original value into a variable. And Declare HTML select input type.
By using rowset iterator every time compare the datasource value(declared in dynamic view object) with the original value. If matched say selected. please follow the code
below.If you find any problems I will explain
in detail.
<%
String myVar = (String) DS_Master.getRowSet().getCurrentRow().getAttribute("XenograftFlag");
%>
<SELECT name="XenograftFlag" >
<jbo:RowsetIterate datasource="DS_Lookup_Type1">
<%
myVar1 = (String) DS_Lookup_Type1.getRowSet().getCurrentRow().getAttribute("RV_LOW_VALUE");
try {
if (myVar.equals(myVar1)) {
%>
<OPTION SELECTED><jbo:ShowValue datasource="DS_Lookup_Type1" dataitem="RV_LOW_VALUE" />
<% }else { %>
<OPTION><jbo:ShowValue datasource="DS_Lookup_Type1" dataitem="RV_LOW_VALUE" />
<% }} catch(Exception e) {
%>
<OPTION><jbo:ShowValue datasource="DS_Lookup_Type1" dataitem="RV_LOW_VALUE" />
<% } %>
</jbo:RowsetIterate>
<%
try {
if (myVar.equals("")) {
%>
<OPTION SELECTED>
<% }else { %>
<OPTION>
<% }} catch(Exception e) {
%>
<OPTION SELECTED>
<% } %>
</SELECT>
See you...
null

Similar Messages

  • JSP: Focus on textfield after default value

    Hi all
    i have a JSP/Struts Web Application. When i start it i would like to put the focus on the textfield but after the default value that is written in the textfield. At the moment the focus is alreday put on the textfield, but it's before the default value not after it.
    Somebody has an idea?
    Thanks a lot
    Angela

    JSP can't make the browser do what the browser can't do.

  • How to set a default value to a field in *_BrowEdit.jsp?

    I know that we can use:
    <jbo:AttributeIterate id="def" datasource="<%=dsName%>">
    <jbo:RenderValue datasource="<%=dsName%>"/><br>
    </jbo:AttributeIterate>
    to accept value .
    And now ,I want to set a default value to a filed.
    How to do?

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • How to put a default value in a dropdown item (charasteristic selection)

    Hello all,
    Does someone know how to put a default value inside a dropdown item bided to a 0FISCYEAR charasteristic selection ?
    For instance, I would like that only values for the year "2007" would be displayed at the execution of the web template (containing 1 analysis) in the browser.
    Best regards,
    Mickael

    error code with selection variable in the drop down item, in a template containing a navigation pane :
    com.sap.ip.bi.webapplications.runtime.controller.MessageException: Error while generating HTML at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2150) at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:931) at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:873) at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:324) at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:21) at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209) at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215) at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753) at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240) at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522) at java.security.AccessController.doPrivileged(Native Method) at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)Caused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while generating HTML at com.sap.ip.bi.webapplications.ui.items.UiItem.render(UiItem.java:380) at com.sap.ip.bi.webapplications.runtime.rendering.impl.ContainerNode.render(ContainerNode.java:62) at com.sap.ip.bi.webapplications.runtime.rendering.impl.PageAssemblerRenderingRoot.processRendering(PageAssemblerRenderingRoot.java:50) at com.sap.ip.bi.webapplications.runtime.impl.Page.processRenderingRootNode(Page.java:2735) at com.sap.ip.bi.webapplications.runtime.impl.Page.processRendering(Page.java:2478) at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:2432) at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2054) ... 36 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.ip.bi.webapplications.ui.framework.base.impl.BICompositeManager.renderRoot(BICompositeManager.java:83) at com.sap.ip.bi.webapplications.ui.items.UiItem.render(UiItem.java:376) ... 42 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.advancedcontrols.tabstrip.impl.AcTabStrip.iterateOverChildren(AcTabStrip.java:74) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.advancedcontrols.generic.impl.AcGeneric.renderComposite(AcGeneric.java:150) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 47 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:62) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.advancedcontrols.generic.impl.AcGeneric.renderComposite(AcGeneric.java:150) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.tc.ur2.renderer.ie6.TabStripRenderer.renderTabStripItemContentFragment(TabStripRenderer.java:1889) at com.sap.tc.ur2.renderer.ie6.TabStripRenderer.renderTabStripFragment(TabStripRenderer.java:858) at com.sap.tc.ur2.renderer.ie6.TabStripRenderer.render(TabStripRenderer.java:69) at com.sap.ip.bi.webapplications.ui.unifiedrendering.RenderManager.render(RenderManager.java:183) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:59) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 52 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 62 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:62) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.advancedcontrols.generic.impl.AcGeneric.renderComposite(AcGeneric.java:150) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.tc.ur2.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:254) at com.sap.tc.ur2.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:210) at com.sap.tc.ur2.renderer.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:49) at com.sap.ip.bi.webapplications.ui.unifiedrendering.RenderManager.render(RenderManager.java:183) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:59) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 66 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 76 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.advancedcontrols.tabstrip.impl.AcTabStrip.iterateOverChildren(AcTabStrip.java:74) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.advancedcontrols.generic.impl.AcGeneric.renderComposite(AcGeneric.java:150) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 80 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:62) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.advancedcontrols.generic.impl.AcGeneric.renderComposite(AcGeneric.java:150) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.tc.ur2.renderer.ie6.TabStripRenderer.renderTabStripItemContentFragment(TabStripRenderer.java:1889) at com.sap.tc.ur2.renderer.ie6.TabStripRenderer.renderTabStripFragment(TabStripRenderer.java:858) at com.sap.tc.ur2.renderer.ie6.TabStripRenderer.render(TabStripRenderer.java:69) at com.sap.ip.bi.webapplications.ui.unifiedrendering.RenderManager.render(RenderManager.java:183) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:59) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 85 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 95 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.advancedcontrols.tabstrip.impl.AcTabStrip.iterateOverChildren(AcTabStrip.java:74) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.advancedcontrols.generic.impl.AcGeneric.renderComposite(AcGeneric.java:150) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 99 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:62) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.advancedcontrols.generic.impl.AcGeneric.renderComposite(AcGeneric.java:150) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.tc.ur2.renderer.ie6.TabStripRenderer.renderTabStripItemContentFragment(TabStripRenderer.java:1889) at com.sap.tc.ur2.renderer.ie6.TabStripRenderer.renderTabStripFragment(TabStripRenderer.java:858) at com.sap.tc.ur2.renderer.ie6.TabStripRenderer.render(TabStripRenderer.java:69) at com.sap.ip.bi.webapplications.ui.unifiedrendering.RenderManager.render(RenderManager.java:183) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:59) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 104 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 114 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:62) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.advancedcontrols.generic.impl.AcGeneric.renderComposite(AcGeneric.java:150) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.tc.ur2.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:254) at com.sap.tc.ur2.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:210) at com.sap.tc.ur2.renderer.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:49) at com.sap.ip.bi.webapplications.ui.unifiedrendering.RenderManager.render(RenderManager.java:183) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:59) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 118 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 128 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.items.navigation.control.AcQueryNavigation.iterateOverChildren(AcQueryNavigation.java:126) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.advancedcontrols.generic.impl.AcGeneric.renderComposite(AcGeneric.java:150) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 132 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.advancedcontrols.tree.impl.AcTreeView.iterateOverChildren(AcTreeView.java:100) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.advancedcontrols.generic.impl.AcGeneric.renderComposite(AcGeneric.java:150) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.tc.ur2.renderer.ie6.GroupRenderer.renderGroupFragment(GroupRenderer.java:1184) at com.sap.tc.ur2.renderer.ie6.GroupRenderer.render(GroupRenderer.java:74) at com.sap.ip.bi.webapplications.ui.unifiedrendering.RenderManager.render(RenderManager.java:183) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:59) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 137 moreCaused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while processing UR tree at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:36) at com.sap.ip.bi.webapplications.ui.advancedcontrols.dragdrop.impl.DragDropContainer.iterateOverChildren(DragDropContainer.java:362) at com.sap.ip.bi.webapplications.ui.framework.base.impl.Composite.renderComposite(Composite.java:135) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:55) at com.sap.tc.ur2.renderer.ie6.TreeRenderer.renderTreeNodeFragment(TreeRenderer.java:2223) at com.sap.tc.ur2.renderer.ie6.TreeRenderer.renderTreeNodeFragment(TreeRenderer.java:2338) at com.sap.tc.ur2.renderer.ie6.TreeRenderer.renderTreeNodeFragment(TreeRenderer.java:2338) at com.sap.tc.ur2.renderer.ie6.TreeRenderer.renderTreeFragment(TreeRenderer.java:704) at com.sap.tc.ur2.renderer.ie6.TreeRenderer.render(TreeRenderer.java:69) at com.sap.ip.bi.webapplications.ui.unifiedrendering.RenderManager.render(RenderManager.java:183) at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.render(ExtendedRenderManager.java:59) at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeRenderer.process(CompositeRenderer.java:34) ... 146 moreCaused by: java.lang.NullPointerException

  • Error giving a default value to a date column in the attribute settings.

    When im giving a default value to a date column in the attribute settings i get this error when im running my jsp page (bc4j web application):
    Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value: 31-dic-2099
    How can i fix that?
    Thank u

    The default date format for oracle.sql.DATE which oracle.jbo.domain.Date extends is "YYYY-MM-DD"

  • Field 'record_EMP_ID' doesn't have a default value

    I solved org.hibernate.TransientObjectException by adding "@OneToMany(fetch=FetchType.EAGER, cascade=CascadeType.ALL)"
    But this time values can't be inserted to DB.
    OS : Windows 7
    JDK : JDK 1.6
    JBoss : JBoss 5.1.0.GA
    DB : MySQL 5.5
    Error is "Field 'record_EMP_ID' doesn't have a default value"
    - Members.java
    @Entity
    @Table(name = "family")
    public class Members implements Serializable {
    @Id
    @Column(name = "EMP_ID")
    private String id ;
    @Column(name = "EMP_Passwd")
    private String passwd ;
    @Column(name = "EMP_Name")
    private String name ;
    @OneToMany(fetch=FetchType.EAGER, cascade=CascadeType.ALL)
    @JoinTable(name="info", joinColumns = {@JoinColumn(name = "EMP_Name")})
    private Collection<Records> record = new ArrayList();
    ....getter and setter
    - Records.java
    @Entity
    @Table(name = "info")
    public class Records implements Serializable {
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name = "EMP_ID")
    private int i;
    @Column(name = "EMP_Name")
    private String name;
    @Column(name = "EMP_Bank_Account")
    private String account;
    @Column(name = "EMP_Hobby")
    private String hobby;
    @Column(name = "EMP_Phone")
    private int phone;
    ...getter and setter method
    in jsp file I invoke EntityManager.persist
    Context ctx = new InitialContext();
    IMappingTestPort port = (IMappingTestPort) ctx.lookup("MappingTestBean/remote");
    Records r = new Records();
    r.setName("aaa");
    r.setAccount("111-2222");
    r.setHobby("bbb");
    r.setPhone(021112222);
    Members m = new Members();
    m.setId("aupres");
    m.setPasswd("aaa");
    m.setName("ccc");
    m.getRecord().add(r);
    port.setFamilyMember(m); // This EntityManager.persist method
    But it failed.
    In console
    20:21:29,233 INFO [STDOUT] Hibernate: insert into family (EMP_Name, EMP_Passwd, EMP_ID) values (?, ?, ?)
    20:21:29,268 INFO [STDOUT] Hibernate: insert into info (EMP_Bank_Account, EMP_Hobby, EMP_Name, EMP_Phone) values (?, ?, ?, ?)
    20:21:29,288 WARN [JDBCExceptionReporter] SQL Error: 1364, SQLState: HY000
    20:21:29,288 ERROR [JDBCExceptionReporter] Field 'record_EMP_ID' doesn't have a default value
    record_EMP_ID is automatically generated by hibernate
    Pls help!

    An update: 
    New virtual machines created after the integration is in place is visible in Virtual Machine Health Dashboard. No other dashboards seems to contain any data.

  • How to set a default values on fields

    Hi !
    using Jdeveloper:11.1.1.4.0
    ADF Business Components     11.1.1.59.23
    Jsp page
    I want to set a default Date value in the field (in search form) How to do this ? Img priview [http://tinypic.com/r/zjhuf9/6]
    The default value need to be one week older that today priview Default value: 07.08.2012 (14.08.2012:Today)
    and a user cannot change that value
    I am newbie in ADF and Java so some usefull links can be posted to
    ID

    Hi,
    Adding default value for the attribute would work for the new rows that are created. If you want to have that in the search field, you need to set the default value for the bind variable which you are using in your View Criteria. The blog i've posted serves exact same usecase as yours.
    -Arun

  • Combobox - set default value; get selected value

    Hi!
    I have a combobox (h:selectOneMenu) in my application. I put the values in it from a java bean. I would like to set the default value of combo box, but I don't know how.
    And I would like to know which value is selected, but I don't know as well.
    Please help mt to find the solution of these 2 problems!
    Thanks!
    rfalir
    ******************************* JSP ***************************
    <h:selectOneMenu id="type" binding="#{myComboBoxValuesBean.myBindingValuesForType}">
    <f:selectItems value="#{myComboBoxValuesBean.valuesForType}"/>
    </h:selectOneMenu>
    ***********************************bean***********************************
    package bean;
    import java.util.HashMap;
    import java.util.Map;
    import javax.faces.component.html.HtmlSelectOneMenu;
    public class ComboBoxValuesBean {
         HtmlSelectOneMenu myBindingValuesForType;
         Map valuesForType;
         // ************************** getter **************************
         public HtmlSelectOneMenu getMyBindingValuesForType() {
              return myBindingValuesForType;
         public Map getValuesForType() {
              if (valuesForType == null) {
                   initValuesForType();
              return valuesForType;
         // ************************** setter **************************
         public void setMyBindingValuesForType(HtmlSelectOneMenu myBindingValuesForType) {
              this.myBindingValuesForType = myBindingValuesForType;
         public void setValuesForType(Map valuesForType) {
              this.valuesForType = valuesForType;
         // ************************** others **************************
         private void initValuesForType() {
              valuesForType = new HashMap();
              valuesForType.put("Karakter","C");
              valuesForType.put("Sz�m","N");
              valuesForType.put("D�tum","D");
    }

    h:selectOneMenu works as following:
    JSF<h:selectOneMenu value="#{myBean.selectedItem}">
        <f:selectItems value="#{myBean.selectItems}" />
    </h:selectOneMenu>MyBeanprivate String selectedItem;
    public String getSelectedItem() {
        if (selectedItem == null) {
            selectedItem = "key2"; // default value;
        return selectedItem;
    public void setSelectedItem(String selectedItem) {
        this.selectedItem = selectedItem;
    public List getSelectItems() {
        List selectItems = new ArrayList();
        selectItems.add(new SelectItem("key1", "value1");
        selectItems.add(new SelectItem("key2", "value2");
        selectItems.add(new SelectItem("key3", "value3");
        return selectItems;
    }

  • Executewithparams default values

    hi
    i'm having trouble using the executewithparamenter operation and was hoping for a little help.
    I'm trying to make a page with a bar graph on it. I created a view object with a query that has two bind variables, start_date and end_date. I dragged that on top of a jsp page. Then i dragged over the executewithparams operation onto the same page and dropped it as an ADF Parameter Form.
    If i set the 'value type' for the start_date and end_date bind variables as 'literal' and set the 'value' to dates (ex. 2009-04-15), then the page works the way i want to. When i run it, the page displays a graph with bars for between start_date and end_date. If i change start_date and end_date, then press the executewithparams button, the graph updates as i expected to bars with the new start_date and end_date.
    Now, what i really want is for the start_date to default to the current date less 7 days, and end_date to default to the current date. So i switched the value type of my bind variables from 'literal' to 'expression' and entered adf.currentDate -7 for start_date and adf.currentDate for end_date.
    When i run the page, the graph displays okay. But when I change the start_date and end_date and hit the executewithparams button, the graph doesn't update the way i expect it to.
    so the page doesn't seem to be behaving the same way if i set the value type of my bind variables to 'expression' as opposed to 'literal'.
    can anyone point me in the right direction?
    thanks

    thanks for the reply.
    yes, i did define those bind variables in the view object.
    basically, what i want is to display a graph, initially showing values for the past week, which i'd like to do by setting start_date and end_date to the current date -7 and current date.
    so on my page, i have that graph, and below it is the executeWithParams form (ADF parameter form). If i change the dates and hit the executeWithParams button, the graph should update.
    My problem is, it seems to work if I set the value type to literal. However, if I set it to literal, then when the page starts, it won't be the current date -7 to current date. It will only be whatever literal values I set the default to, for instance, '2009-04-01' to '2009-04-07'. That doesn't quite work for me since then the graph will always start with those dates.
    If i set the value type to 'expression' and use adf.currentDate -7 and adf.currentDate, the page starts with the graph showing what I expect. However, if I then try to change the dates and hit the button, the graph doesn't seem to take the new values.
    Now why would the behavior of the page be different when i use the 'expression' as the value type of the bind variable as opposed to 'literal' as the value type? Another way to say it is, why should the page behave differently if the default value of my bind variable is adf.currentDate as opposed to '2009-04-01'?
    or am i merely misunderstanding the use of 'executeWithParams'?

  • Email Activity Default value - OWB 10.1

    Is there any way I can set a Specific value as defult value for Email Activity parameter for example SMTP_SERVER has 'LOCALHOST' as default value but I want to change it 'S012EX04' . so that I need not change the parameter value when I add an email activity in process flow.
    Thank you,

    Hi Peter
    Create a manage bean class with this methods:
    private oracle.jbo.domain.Date appCurrentDate;
    private Date dateDefaultFrom;
    private Date dateDefaultTo;
    private Date initDate() {
    java.util.Calendar c = Calendar.getInstance();
    java.util.Date utilDate = c.getTime();
    Timestamp st = new Timestamp(utilDate.getTime());
    return new Date(st);
    public Date getAppCurrentDate() {
    appCurrentDate = initDate();
    return appCurrentDate;
    public Date getDateDefaultFrom() {
    if(dateDefaultFrom== null) {
    dateDefaultFrom= initDate(0, 0, 0);
    return dateDefaultFrom;
    return dateDefaultFrom;
    public Date getDateDefaultTo() {
    if(dateDefaultTo== null) {
    dateDefaultTo= initDate(23, 59, 59);
    return dateDefaultTo;
    return dateDefaultTo;
    private Date initDate(int hora, int min, int seg) {
    java.util.Calendar c = Calendar.getInstance();
    c.set(Calendar.HOUR_OF_DAY, hora);
    c.set(Calendar.MINUTE, min);
    c.set(Calendar.SECOND, seg);
    java.util.Date utilDate = c.getTime();
    Timestamp st = new Timestamp(utilDate.getTime());
    return new Date(st);
    Then in the jsp/jspx page definition set the defaultValue to the selectInputDate var:
    DefaultValue="${myBeanClass.dateDefaultFrom.value}"
    And
    DefaultValue="${myBeanClass.dateDefaultTo.value}"
    Good Luck.

  • Netui:textbox default value

    Hi,
    I am trying to use the following code as per the sample given in the help doc. But everything is working fine except the defaultValue attribute. I want to dynamically create 5 textboxes with defaultValue and use form bean while submitting the same. The code is as follows,
    <netui-data:repeater dataSource="{actionForm.test}">
    <netui:textBox defaultValue="123" dataSource="{actionForm.test}" />
    </netui-data:repeater>
    Here test is the array in the form. Instead of default value, I am getting the array reference value as the default value like [Ljava.lang.String;@18d551d is displayed. Anyone could help me out.
    Please Reply immediately.
    Thanks,
    Bala.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    hi,
    I just used {container.item} as datasource and solved
    the error. Anyway thanks for ur response.
    Thanks and Regards,
    Bala.I had a similar problem and this fixed it, thanks.
    But, now I have a different problem.
    If I initialize the array in my form and then display the jsp, the array is displayed with individual textboxes as desired.
    But, when I submit the form I get an index out of bounds exception.
    I'm assuming that it is trying to set the submitted values back into the array which has been reset to a zero length array, and this is causing the exception.
    The workshop automatically put this code in my Form when I added the array member (myList):
    public String[] getMyList()
    // For data binding to be able to post data back, complex types and
    // arrays must be initialized to be non-null.
    if(this.myList== null || this.myList.length == 0)
    this.myList= new String[1];
    return this.myList;
    The getMyList() method appears to be called for every textbox that gets submitted (each array element).
    How do I know how many elements to make my array in getMyList() since the length could vary?
    Jeff

  • TCP Fusion tcp_fusion_rcv_unread_min default value

    I do like the TCP Fusion feature and that the tcp_fusion_rcv_unread_min is a tunable we can set. However, I'm thinking that tcp_fusion_rcv_unread_min's default value should change from '8' to '0' to better support existing applications (http://www.sun.com/software/solaris/guarantee.jsp).
    When this tunable is > 1, a flow control check based on packet count is added on the sender side. I believe this is something new that most existing applications would not be aware of and coded to handle. It is in addition to the byte count check that one normally expects from TCP.
    The packet count check created problems for our exiting applications until we localized it and then disabled check by setting the tunable to zero.
    If a default value of '8' is better or best, then why ? I haven't found an explanation of that choice.
    What do you think ?
    Thanks,
    Fran Horan
    JHU/APL

    I do like the TCP Fusion feature and that the tcp_fusion_rcv_unread_min is a tunable we can set. However, I'm thinking that tcp_fusion_rcv_unread_min's default value should change from '8' to '0' to better support existing applications (http://www.sun.com/software/solaris/guarantee.jsp).
    When this tunable is > 1, a flow control check based on packet count is added on the sender side. I believe this is something new that most existing applications would not be aware of and coded to handle. It is in addition to the byte count check that one normally expects from TCP.
    The packet count check created problems for our exiting applications until we localized it and then disabled check by setting the tunable to zero.
    If a default value of '8' is better or best, then why ? I haven't found an explanation of that choice.
    What do you think ?
    Thanks,
    Fran Horan
    JHU/APL

  • Default Value is not getting displayed in SUN ONE Ldap

    Hello,
    I have created an attribute in slapd.user_at.conf and it is associated in slapd.user_oc.conf.
    The attribute default value is given through SUN ONE Console. But, In our application the default value is not getting displayed.
    We need the default value to run our applicatin. Can anyone help me for this issue
    Regards,
    K. Senthil Kumar

    Hi anandkumar,
    I belive this issue can be resolved by changing the  Query proprties for the perticular field.
    Kindly check the Field proerties in query designer and ensure that Text is enabled ather than Key.
    __Field property check up:__Go to query designer->click onn the field-> Right hand side in properties click on display tab-> select Text in drop down menu of Display as tab.
    FURTHER CHECK UP: check the master data avaiulability for the perticular info object, if masterdata is not available, do the text data for txt data availability in report level.
    Hope this helps you!!
    Best Regards,
    Maruthi

  • How to load a default value in to a column when using sql loader

    Im trying to load from a flat file using sql loader.
    for 1 column i need to update using a default value
    how to go about this?

    Hi!
    try this code --
    LOAD DATA
       INFILE 'sample.dat'
       REPLACE
       INTO TABLE emp
       empno   POSITION(01:04) INTEGER EXTERNAL NULLIF empno=BLANKS,
       ename   POSITION(06:15)  CHAR,
       job         POSITION(17:25)  CHAR,
       mgr       POSITION(27:30)  INTEGER EXTERNAL NULLIF mgr=BLANKS,
       sal        POSITION(32:39)  DECIMAL EXTERNAL NULLIF sal=BLANKS,
       comm   POSITION(41:48)  DECIMAL EXTERNAL DEFAULTIF comm = 100,
       deptno  POSITION(50:51)  INTEGER EXTERNAL NULLIF deptno=BLANKS,
       hiredate POSITION(52:62) CONSTANT SYSDATE
      )-hope this will solve ur purpose.
    Regards.
    Satyaki De.

  • Assigning a default value to a field

    Hello Everyone,
           Could you please tell me how to assign a default value to a field in a transparent table, so that while creating an entry even if we don't enter the value, a default value will be assigned.
    Thanks,
    Anbu.

    Like this
    DATA: BEGIN OF itab OCCURS 0,
            field1 TYPE c VALUE 'X'
            field2 TYPE c,
          END OF itab.
    append itab.
    append itab.
    You will have by default X set in both rows for field1.
    Regards
    Marcin
    PS: Ooops I just noticed you meant transparent table but I wrote about internal one. As long as you maintain that table using maintenance view you can use event 05 - When Creating a New Entry and set fixed value for a field there. So whenever you create new entry it will receive that value.
    Edited by: Marcin Pciak on Jun 23, 2010 8:57 AM

Maybe you are looking for

  • HP 8 1401 connecting to tv or monitor

    Can you connect HP 8 1401 tablet via adapter (Micro USB to HDMI or VGA) to monitor or tv?

  • Isight camera with skype

    I want to use skype. I see my family on their pc but they cannot see me. I have a MacBook with built in camera. I assume it is isight but it does not show up on the search. Skype says it should work. Are there some settings I need to use? I chat want

  • What happened to my library?  HELP!!!!!!!

    Yesterday my iTunes was working fine. Today, when I try to play a song the exclamation point pops up next to it and it wants me to locate the song on my computer. I upgraded to 7.1.1 and now every song, all 3627 of them have that icon next to them. E

  • E1200 - Had a weak signal and slow speed

    Pros: Price, nice sleek shiny box, kind of worked when new. Good as a paperweight in a light breeze. Cons: Not really a good doorstop - too light. Died at 35 days of ownership. Won't let me in to the web interface to make some changes. When working i

  • Drop one datafile

    Hi, I have 5 datafile in one tablespace. If i want to drop perticular one datafile from the tablespace can you please suggest me some command to do this activity. Thank You