Assign form fields to object members.

Hello all,
I have the following code to assign values from object memebes to Swing Combo boxes. How do assign the values of JComboBoxes back to birdata members withou going through each Combo box individually or without wrting event for each combo boxes? I want to put it in a loop so it takes care of all combo boxes.
Thanks for your reply.
-Hitesh
private javax.swing.JComboBox jComboBoxfieldsarray[] = new javax.swing.JComboBox[3];
private String comboboxfieldstrarray[] = new String[3];
bir birdata = new birdata();
jComboBoxfieldsarray[0] =jComboBox_surf_rtg_cd;
jComboBoxfieldsarray[1] =jComboBox_expjt_rtg_cd;
jComboBoxfieldsarray[2] =jComboBox_othjt_rtg_cd;
comboboxfieldstrarray[0] =birdata.surf_rtg_cd;
comboboxfieldstrarray[1] =birdata.expjt_rtg_cd;
comboboxfieldstrarray[2] =birdata.othjt_rtg_cd;
//Assign values of birdata members to JComboBoxes
for ( int i = 0; i< jComboBoxfieldsarray.length; i++ ){
setjCombobox( jComboBoxfieldsarray, comboboxfieldstrarray[i]);

You're assuming that each event listener can only handle one combo box, which is the case if you're using anonymous inner classes
combobox.addItemListener(new ItemListener()
   public void itemStateChanged(...) yada, yada, yada
}But there is no reason why you can't create a concrete inner class whose constructor would take in an index to your array and store it to a private data member of the inner class. When the listener method is called, the source of the event is the combo box, so you can cast it to JComboBox and get the value of the selected item. The index you stored can then be used to save the value selected the way you want to. Then, just...
  combobox.addItemListener(new MyListener(1));

Similar Messages

  • Assign form field value

    Gurus:
    Given a value in form field one, I want to assign a value to form field two (same form). How can I accomplish this?
    Thanks in advance!
    kc

    Ken,
    You can set the the value on the server side from any event hadlers by calling p_session.set_value() function. For an example please see Portal FAQ: http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm
    Thanks,
    Dmitry

  • Exception in adding a form field to object form programmatically

    Hi,
    when i am calling trying to add a field to an object form with following method call
    addFormField(objFormKey, latest_version, field_name, "CheckBox", "boolean", 1, order, "", "N", false);
    this should add a check box field in the mentioned object form with label as per field_name.
    but this method call is giving following exception
    ERROR [XELLERATE.DATABASE] ALTER TABLE UD_TRADEWOR ADD (UD_TRADEWOR_CCU VARCHAR2 (1) NULL)
    java.sql.SQLException: ORA-02089: COMMIT is not allowed in a subordinate session
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
         at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:957)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1170)
         at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1623)
         at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1588)
         at org.jboss.resource.adapter.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:161)
         at com.thortech.xl.util.JDBCUtils.executeUpdate(Unknown Source)
         at com.thortech.xl.dataaccess.tcDataBase.writeStatement(Unknown Source)
         at com.thortech.xl.dataobj.tcDataBase.writeStatement(Unknown Source)
         at com.thortech.xl.client.events.tcSDCBaseEvent.createColumns(Unknown Source)
         at com.thortech.xl.client.events.tcSDCAddColumns.implementation(Unknown Source)
         at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.eventPreInsert(Unknown Source)
         at com.thortech.xl.dataobj.tcSDC.eventPreInsert(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
         at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.addFormField(Unknown Source)
         at com.thortech.xl.ejb.beans.tcFormDefinitionOperationsSession.addFormField(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
         at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
         at org.jboss.ejb.Container.invoke(Container.java:873)
         at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
         at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
         at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
         at $Proxy616.addFormField(Unknown Source)
         at Thor.API.Operations.tcFormDefinitionOperationsClient.addFormField(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor496.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy784.addFormField(Unknown Source)
         at com.wachovia.oim.scheduler.ObjectFormUpdate.objectFormUpdate(ObjectFormUpdate.java:356)
         at com.wachovia.oim.scheduler.ObjectFormUpdate.execute(ObjectFormUpdate.java:48)
         at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:178)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:477)
    2008-06-25 02:52:36,032 ERROR [XELLERATE.DATABASE] Class/Method: tcDataBase/writeStatement encounter some problems: ORA-02089: COMMIT is not allowed in a subordinate session
    java.sql.SQLException: ORA-02089: COMMIT is not allowed in a subordinate session
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
         at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:957)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1170)
         at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1623)
         at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1588)
         at org.jboss.resource.adapter.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:161)
         at com.thortech.xl.util.JDBCUtils.executeUpdate(Unknown Source)
         at com.thortech.xl.dataaccess.tcDataBase.writeStatement(Unknown Source)
         at com.thortech.xl.dataobj.tcDataBase.writeStatement(Unknown Source)
         at com.thortech.xl.client.events.tcSDCBaseEvent.createColumns(Unknown Source)
         at com.thortech.xl.client.events.tcSDCAddColumns.implementation(Unknown Source)
         at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.eventPreInsert(Unknown Source)
         at com.thortech.xl.dataobj.tcSDC.eventPreInsert(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
         at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.addFormField(Unknown Source)
         at com.thortech.xl.ejb.beans.tcFormDefinitionOperationsSession.addFormField(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
         at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
         at org.jboss.ejb.Container.invoke(Container.java:873)
         at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
         at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
         at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
         at $Proxy616.addFormField(Unknown Source)
         at Thor.API.Operations.tcFormDefinitionOperationsClient.addFormField(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor496.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy784.addFormField(Unknown Source)
         at com.wachovia.oim.scheduler.ObjectFormUpdate.objectFormUpdate(ObjectFormUpdate.java:356)
         at com.wachovia.oim.scheduler.ObjectFormUpdate.execute(ObjectFormUpdate.java:48)
         at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:178)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:477)
    2008-06-25 02:52:36,500 ERROR [XELLERATE.ADAPTERS] Event: Adding Columns to SDC. has encountered an error.
    2008-06-25 02:52:36,500 ERROR [XELLERATE.SERVER] Class/Method: tcDataObj/runEvent Error :EVT Fatal Rejection Occured
    2008-06-25 02:52:36,500 ERROR [XELLERATE.APIS] Class/Method: tcFormDefinitionOperationsBean/addFormField encounter some problems: maoErrors:Error Adding Column.
    2008-06-25 02:52:36,531 ERROR [XELLERATE.SERVER] Class/Method: tcSDC/validateSdcName Error : SDK invalid column name
    2008-06-25 02:52:36,531 ERROR [XELLERATE.APIS] Class/Method: tcFormDefinitionOperationsBean/addFormField encounter some problems: maoErrors:Invalid database column name
    Thanks in advance.

    Theres a patch that solves this problem. Search in metalink for the exact patch number..
    I applied the patch and it works just fine.

  • Automatically Assign Form Fields To Session

    I have a couple of forms and I want to be able to move backwards and forwards between them while keeping the information there. The following is one of the forms:
    <%
    if ((String) session.getAttribute("FirstName") == null || request.getParameter("FirstName") != session.getAttribute("FirstName"))
      session.setAttribute("FirstName", request.getParameter("FirstName"));
    if ((String) session.getAttribute("MiddleInitial") == null || request.getParameter("MiddleInitial") != session.getAttribute("MiddleInitial"))
      session.setAttribute("MiddleInitial", request.getParameter("MiddleInitial"));
    if ((String) session.getAttribute("LastName") == null || request.getParameter("LastName") != session.getAttribute("LastName"))
      session.setAttribute("LastName", request.getParameter("LastName"));
    if ((String) session.getAttribute("PhoneNumber") == null || request.getParameter("PhoneNumber") != session.getAttribute("PhoneNumber"))
      session.setAttribute("PhoneNumber", request.getParameter("PhoneNumber"));
    if ((String) session.getAttribute("Site") == null || request.getParameter("Site") != session.getAttribute("Site"))
      session.setAttribute("Site", request.getParameter("Site"));
    if ((String) session.getAttribute("Department") == null || request.getParameter("Department") != session.getAttribute("Department"))
      session.setAttribute("Department", request.getParameter("Department"));
    if ((String) session.getAttribute("Position") == null || request.getParameter("Position") != session.getAttribute("Position"))
      session.setAttribute("Position", request.getParameter("Position"));
    String sFirstName = (String) session.getAttribute("FirstName");
    String sMiddleInitial = (String) session.getAttribute("MiddleInitial");
    String sLastName = (String) session.getAttribute("LastName");
    String sPhoneNumber = (String) session.getAttribute("PhoneNumber");
    String sSite = (String) session.getAttribute("Site");
    String sDepartment =(String) session.getAttribute("Department");
    String sPosition = (String) session.getAttribute("Position");
    if (sFirstName == null)
      sFirstName = "";
    if (sMiddleInitial == null)
      sMiddleInitial = "";
    if (sLastName == null)
      sLastName = "";
    if (sPhoneNumber == null)
      sPhoneNumber = "";
    if (sSite == null)
      sSite = "";
    if (sDepartment == null)
      sDepartment = "";
    if (sPosition == null)
      sPosition = "";
    %>
    <form name="frmUserDetails" action="UserDetails.jsp" method="POST">
      <table class="BodyPosition" cellpadding="0" width="400" border="0" cellspacing="2">
        <tr>
          <td class="HeaderRow" colspan="2" width="591">
            <p class="Normal">USER DETAILS</p>
          </td>
        </tr>
        <tr>
          <td width="100">
            <p class="Normal">First Name:</p>
          </td>
          <td width="300">
            <p class="Normal">
              <input type="text" class="TextBox20" name="FirstName" value="<%= sFirstName %>" maxlength="100" size="20">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Middle Initial:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="TextBox1" name="MiddleInitial" value="<%= sMiddleInitial %>" maxlength="1" size="1">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Last Name:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="TextBox20" name="LastName" value="<%= sLastName %>" maxlength="100" size="20">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Phone Number:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="TextBox20" name="PhoneNumber" value="<%= sPhoneNumber %>" maxlength="20" size="20">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Site:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="TextBox20" name="Site" value="<%= sSite %>" maxlength="10" size="10">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Department:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="textBox20" name="Department" value="<%= sDepartment %>" maxlength="200" size="20">
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p class="Normal">Position:</p>
          </td>
          <td>
            <p class="Normal">
              <input type="text" class="TextBox20" name="Position" value="<%= sPosition %>" maxlength="200" size="20">
            </p>
          </td>
        </tr>
      </table>
    <input type="Submit">
    </form>Now I was wondering if there would be a way to automate the code up the top:
    if ((String) session.getAttribute("FirstName") == null || request.getParameter("FirstName") != session.getAttribute("FirstName"))
      session.setAttribute("FirstName", request.getParameter("FirstName"));
    if ((String) session.getAttribute("MiddleInitial") == null || request.getParameter("MiddleInitial") != session.getAttribute("MiddleInitial"))
      session.setAttribute("MiddleInitial", request.getParameter("MiddleInitial"));
    if ((String) session.getAttribute("LastName") == null || request.getParameter("LastName") != session.getAttribute("LastName"))
      session.setAttribute("LastName", request.getParameter("LastName"));
    if ((String) session.getAttribute("PhoneNumber") == null || request.getParameter("PhoneNumber") != session.getAttribute("PhoneNumber"))
      session.setAttribute("PhoneNumber", request.getParameter("PhoneNumber"));
    if ((String) session.getAttribute("Site") == null || request.getParameter("Site") != session.getAttribute("Site"))
      session.setAttribute("Site", request.getParameter("Site"));
    if ((String) session.getAttribute("Department") == null || request.getParameter("Department") != session.getAttribute("Department"))
      session.setAttribute("Department", request.getParameter("Department"));
    if ((String) session.getAttribute("Position") == null || request.getParameter("Position") != session.getAttribute("Position"))
      session.setAttribute("Position", request.getParameter("Position"));
    }So it is done automatically. The I thought this could be done is by getting all the fields on the form and putting them in an array and then doing a loop. But I don't know how I can get all the fields off the form. I am guessing you can get the fields from the query string but I don't know how to get the right info out of it.
    Could someone help plz.

    not yet, there seems to be an error, trying to figure it out.
    java.lang.IllegalArgumentException
         at javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:138)
         at org.apache.jsp.Loop$jsp._jspService(Loop$jsp.java:55)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
         at java.lang.Thread.run(Thread.java:536)

  • Do InDesign table fields convert to form fields for interactive PDFs?

    Does InDesign CC recognize table fields as form fields when creating fillable form PDFs - or do I have to create individual text fields on top of the InDesign table and assign form field text field characteristic in the buttons and forms menu?

    I don't believe InDesign itself will apply any form of automated recognition to table cells...BUT...Acrobat's form field recognition certainly picks up empty table cells and assigns them as text-input fields.
    See this page: http://www.eformsfactory.com/mobile-desktop-forms-with-form-field-recognition-in-adobe-acr obat/

  • Assigning a form field to a variable in XSL in rtf template

    Hi,
    I have this code:
    <?xdoxslt:set_variable($_XDOCTX, 'x', 0)?>
    <?if:_-Basic._Total_Jobs_=''?>0<?end if?>
    <?xdoxslt:set_variable($_XDOCTX, 'x', -Basic_._Total_Jobs_ )?>
    <?xdoxslt:get_variable($_XDOCTX, 'x')?>
    This code is supposed to be initialising a variable and a form field if it's null, and
    then assigning the form field value to the variable. But I am not getting
    any value from the get_variable function.
    Any ideas?
    Thanks,
    - Jenny

    I figured it out. The bind variable substitution works as designed. It was just my head that wasn't working right.

  • Autopopulating PER_ALL_people_f column fields(related to people DFF) depending on Job title change in assignment form.

    Autopopulating PER_ALL_people_f column fields(related to people DFF) depending on Job title change in assignment form.

    Can you check these -
    http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CDYQFjAB&url=http%3A%2F%2Foracle.anilpassi.com%2Ff…
    Forms personalization for DFF

  • Restrict requester/approvers from  viewing/editing an object form field

    Dear All,
    We implemented 5 levels of approval workflow. The requirements is to configure the following permission on OIM:
    1. Requester is only able to view,insert dan modify 5 field out of 10 field on object form. The other 5 fields he can not view/insert/modify.
    2. The 1st until the 4th approvers can view only the 5 field the requester can view,insert and modify
    3. The last (5th) approver can view only the 5 field the requester can view,insert and modify but able to view/insert/edit the other 5 field that the requester and other approvers can not view.
    Any body know how to enable this configuration on OIM? basically this is to set the Object form field level permission.
    Your response is highly appreciated.
    Thank you

    You could have the final request process auto provision the final object and populate just the process form with the listed values as you pass them from one object form to another.
    You could use the API's to cancel each request as it gets approved which triggers the next resource object to be provisioned and populate the object form. Then the final approval would get completed and you could map those values to the process form for the final object. Then the user would only have one resource object on their profile. You could also limit which objects were viewable when the request was made by making them available to the organization as a generic object, then set it to system so it would be displayed in the list of availabel resources.
    -Kevin

  • How to store a link to  an object in a form field

    Hi All,
    I desparately need to find a way to store a link to a portlet in
    a form filed such that click on the link will bring up the
    relevent component.
    Any help highly appreciated.

    Could you pls explain what you are trying to do? You can store
    links in the form field directly. If you want to make them links
    then use href.

  • Incremental number assigned to adobe form field upon opening form

    I have a form posted on the web that clients fill out and submit when they hire a new employee.
    Is there a way to have a number populate in a field incrementally that does not repeat.  For instance if the form is opened by user 1, it gets Form 1, then later user 2 gets Form 2.  The number would not repeat.
    .  Any thought?

    Form fields can't directly-communicate with a webserver except during the submit process, so you can't use the same counter tools that websites use. There are some options to allow PDF forms to pull data from remote servers (using Flash) when the document opens, but again it will require some code on the server to send the correct information, and creates problems if the person filling in the form is offline at the time (or denies the network connection dialog). Using a timestamp field solves the problem of your users being offline, but it's only going to give you a pseudo-unique code (there's a tiny chance two forms could get the same value if they were opened at the same time) and of course the value you get is huge - not the sort of thing you'd want as an employee number.
    Setting up something in PHP or ASP to run the type of XFDF/FDF workflow I show in the video isn't difficult, and the code will run on any web host which supports those languages. You don't need a special type of server.

  • Mapping a parameter to the form field (OIM 11g)

    Hello, people!
    How can I get an information from a created form field?
    In more details: I have to assign a manual creating of a resource to a concrete group of users. So I made a form that contains a field named "Admin Group", made a process for this form that contains a manual task "manual create user", in assignment tab of this task I'm using a task assignment adapter. This adapter has one input parameter - Group name using what I want to find a group key. So the problem is in mapping this parameter. I expected to find my "Admin Group" field and map to it, but i didn't find that. How can I get information from this field?
    Regards
    Anton Litvin

    I think you have created Object Form. Are you seeing Object Data while mapping.
    Create one process form. Populate Process Form Field using Data Flow under Process Definition.
    While mapping you'll see Process data to map with your Admin Group.
    Sorry don't know how they have handled in OIM 11g... Above is for 10g.

  • FIINT transaction : Account  requires an assignment to a CO object.

    This is related to FINT transaction in FI . After executing and clicking on "process forms for all interest items"  getting message
    Account  requires an assignment to a CO object.
    Also the Gl code account displaying is incorrect .
    Please suggest.

    Hi,
    Use transaction code: KA02: enter G/L account(Cost element) and in default acct assinmt TAB,assign the Cost Center and save.
    Now try ur transaction.
    OR
    Check the field status of the account  in FS00. If this account requires CO object as mandatory then check whether a cost element is created or not , this error normally occurs when CO object is mandatory but relevant cost element is not created.
    Example: CO object may be cost center, cost element, WBS element
    OR
    Use t.code OKB9 and assign G/L account to cost object with ur company code and save.
    For more check the link
    http://www.sap-img.com/financial/requires-an-assignment-to-a-co-object.htm
    Regards,
    Biju K

  • Dynamic assign in field symbols

    dynamic assign in field symbols

    Hi,
    DYNAMIC ASSIGN:
    If you do not know the name of the field that you want to assign to the field symbol when you write a program, you can use a dynamic ASSIGN statement:
    ASSIGN (<f>) TO <FS>.
    This statement assigns the field whose name is contained in the field <f> to the field symbol <FS>. You cannot use offset and length in a dynamic ASSIGN.
    At runtime, the system searches for the corresponding data object in the following order:
    If the ASSIGN statement is in a procedure, the system searches first in its local data.
    If it cannot find the object in the local data (or if the ASSIGN statement is not in a procedure), it then looks in the local data of the program.
    If the field does not exist in the global data of the program, the system looks in the table work areas declared with the TABLES statement in the main program of the current program group. A program group consists of a main program and all of the programs that are loaded into the same internal session as a result of other program calls.
    If the search is successful and a field can be assigned to the field symbol, SY-SUBRC is set to 0. Otherwise, it is set to 4, and the field symbol remains unchanged. For security reasons, you should always check the value of SY-SUBRC after a dynamic ASSIGN to prevent the field symbol pointing to the wrong area.
    Searching for the field in this way slows down the program. You should therefore only use the dynamic ASSIGN statement when absolutely necessary. If you know when you create the program that you want to assign a table work area to the field symbol, you can also use the following variant of the dynamic ASSIGN statement:
    ASSIGN TABLE FIELD (<f>) TO <FS>.
    The system then only searches within the table work areas in the main program of the current program group for the data object that is to be assigned to the field symbol. This addition is forbidden in ABAP Objects, since the latter does not support table work areas.
    Suppose we have three programs. The main program:
    REPORT demo_field_symbols_dynami_as_1.
    TABLES sbook.
    sbook-fldate = sy-datum.
    PERFORM form1 IN PROGRAM demo_form1.
    The other two programs are:
    REPORT demo_form1.
    FORM form1.
      PERFORM form2 IN PROGRAM demo_form2.
    ENDFORM.
    and
    REPORT demo_form2.
    FORM form2.
      DATA name(20) TYPE c VALUE 'SBOOK-FLDATE'.
    FIELD-SYMBOLS <fs> TYPE ANY.
      ASSIGN (name) TO <fs>.
      IF sy-subrc EQ 0.
        WRITE / <fs>.
    ENDIF.
    ENDFORM.
    The output looks something like this:
    02.06.1998
    The program group in the internal session now consists of the programs DEMO, MYFORMS1 and MYFORMS2. The field symbol <FS> is defined in MYFORMS2. After the dynamic ASSIGN statement, it points to the component FLDATE of the table work area SBOOK declared in the main program DEMO.
    REPORT demo_field_symbols_dynami_as_2 .
    TABLES sbook.
    DATA: name1(20) TYPE c VALUE 'SBOOK-FLDATE',
          name2(20) TYPE c VALUE 'NAME1'.
    FIELD-SYMBOLS <fs> TYPE ANY.
    ASSIGN TABLE FIELD (name1) TO <fs>.
    WRITE: / 'SY-SUBRC:', sy-subrc.
    ASSIGN TABLE FIELD (name2) TO <fs>.
    WRITE: / 'SY-SUBRC:', sy-subrc.
    The output is:
    SY-SUBRC:      0
    SY-SUBRC:      4
    In the first ASSIGN statement, the system finds the component FLDATE of the table work area SBOOK and SY-SUBRC is set to 0. In the second ASSIGN statement, the system does not find the field NAME1 because it is declared by the DATA statement and not by the TABLES statement. In this case, SY-SUBRC is set to 4.
    Reference: http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb38d5358411d1829f0000e829fbfe/content.htm
    reward points if helpful.
    Regards,
    Ramya

  • Using javascript to save a pdf to a different directory and generating a new filename based on form fields in the document.

    I have built the following script in an attempt to create a submit button that will automatically save the document in a different directory on my computer. It will also use the form field data "customer" and "date" to generate the filename. I printed out the variable myPath and it looks like it printed the correct string. I keep getting the following error:
    TypeError: redeclaration of const path
    any help would be much appreciated.
    var customer = this.getField("Customer").value;
    var date = this.getField("Date").value;
    var path = "C:/Users/awilliams/My Documents/Test/"
      var reg = date.match(/(\d+)\/(\d+)\/(\d+)/);
    var myPath= "C:/Users/awilliams/My Documents/Test/" + customer + "_" + reg[1] + "." + reg[2] + "." +
    reg[3] + ".pdf";
    this.saveAs(myPath);

    "path" is a keyword within a PDF you should not use keywords as a name for any other object as a general rule.
    Have you checked the PDF Reference to see how to create a file path name within a PDF,  3.10.1 File Specification Strings page 118?
    Did you carefully read the Acrobat JavaScript Reference for the saveAs method?
    The notes following the description:
    Note: This method can only be executed during a batch or console event. See Privileged versus non-privileged context for details. The event object contains a discussion of JavaScript events.
    (Adobe Reader S): This method is available in Adobe Reader for documents that have Save usage rights.
    How to Save a PDF with Acrobat JavaScript

  • How can we assign system fields like sy-datum, sy-uzeit to the ztable field

    hi experts,
    i have created one ztable inthis one it has some fields like date changed , time changed... in this table when the user enters the data it automatically updates time and date... for this where i have to assign those fields and code pls....

    Hi Gopal,
    Make use of the events in Table maintenance generator,
    Generate a Table maintenance genrator and in TMG make use of the events
    Link to create the events
    http://www.goodpeople.co.in/jobseeker/JobDetailPage.aspx?postjobid=43001
    select the table maintenance event maintenance dialog as 05
    in the event between form and endform write the following code
    field1 = sy-uname.
    field2 = sy-uzeit
    field3 = sy-datum.
    regards
    prasanth

Maybe you are looking for

  • Since upgrading to firefox 26 I am receiving lots of popups

    Okay so I have been using Firefox as my main browser for years. I have little to NO problems with it except lately the shockwave problem. But that's not a big deal. My problem is with Firefox 26, I was notified of a update for it this morning and I u

  • Hard drive crashed and need to transer songs back into iTunes from my iPod

    Help! I'm a newbie to this site, so I don't know if this question has been asked before, so please forgive me if it's been posted 1,000 times! My hard drive crashed so I had to have everything reinstalled on my laptop. I've got iTunes back, but it wo

  • Anti-Aliased Fonts : FF2 vs IE7

    I could have sworn Firefox was the first to come out with font anti-aliasing, for smoother text detail... then IE7 came out and followed suit, opening the door to fonts smaller than 10px looking smooth (for copyright notices and the like). However, a

  • Charged for something I never received.

    I purchased credit for an app and although I was charged I never received my credit. Who do I contact for a refund? I've spoken to the people from the App and they said I must contact Apple directly. How do I contact apple? I cant seem to find any co

  • Help decoding logs

    Just received some logs for a 5508 WLC and need to make sense of them.  bsnAPCoverageProfileFailed: When Coverage Profile state changes from PASS to FAIL, notification will be sent with Dot3 MAC address of Airespace AP and slot ID of Airespace AP IF.