No action when submit a form with a dropdownList

When I put the dropdownlist the code of the method button1_action() not run, if I delete the dropdownlist it run
public class Test extends AbstractPageBean {
    private HtmlForm form1 = new HtmlForm();
    public HtmlForm getForm1() {
        return form1;
    public void setForm1(HtmlForm hf) {
        this.form1 = hf;
    private HtmlOutputText outputText1 = new HtmlOutputText();
    public HtmlOutputText getOutputText1() {
        return outputText1;
    public void setOutputText1(HtmlOutputText hot) {
        this.outputText1 = hot;
    private HtmlCommandButton button1 = new HtmlCommandButton();
    public HtmlCommandButton getButton1() {
        return button1;
    public void setButton1(HtmlCommandButton hcb) {
        this.button1 = hcb;
    private HtmlSelectOneMenu dropdown1 = new HtmlSelectOneMenu();
    public HtmlSelectOneMenu getDropdown1() {
        return dropdown1;
    public void setDropdown1(HtmlSelectOneMenu hsom) {
        this.dropdown1 = hsom;
    private DefaultSelectItemsArray dropdown1DefaultItems = new DefaultSelectItemsArray();
    public DefaultSelectItemsArray getDropdown1DefaultItems() {
        return dropdown1DefaultItems;
    public void setDropdown1DefaultItems(DefaultSelectItemsArray dsia) {
        this.dropdown1DefaultItems = dsia;
    private UISelectItems dropdown1SelectItems = new UISelectItems();
    public UISelectItems getDropdown1SelectItems() {
        return dropdown1SelectItems;
    public void setDropdown1SelectItems(UISelectItems uisi) {
        this.dropdown1SelectItems = uisi;
    private JdbcRowSetXImpl usuariRowSet = new JdbcRowSetXImpl();
    public JdbcRowSetXImpl getUsuariRowSet() {
        return usuariRowSet;
    public void setUsuariRowSet(JdbcRowSetXImpl jrsxi) {
        this.usuariRowSet = jrsxi;
    private RowSetDataModel usuariModel = new RowSetDataModel();
    public RowSetDataModel getUsuariModel() {
        return usuariModel;
    public void setUsuariModel(RowSetDataModel rsdm) {
        this.usuariModel = rsdm;
     * This constructor contains Creator-managed initialization code.
     * Your initialization code can be placed at the end,
     * but, this code will be invoked only the first time the page is rendered,
     * and any properties set in the .jsp file will override settings here.
    public Test() {
        // Creator-managed initialization code
        try {
            usuariRowSet.setDataSourceName("java:comp/env/jdbc/DsFc");
            usuariRowSet.setCommand("SELECT * FROM dbo.Usuari");
            usuariModel.setWrappedData(usuariRowSet);
        catch ( Exception e) {
            log("Test Initialization Failure", e);
            throw new FacesException(e);
        // User provided initialization code
    public String button1_action() {
        this.outputText1.setValue("test");
        return null;
<?xml version="1.0"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
        <html>
            <head>
                <title>Test Title</title>
            </head>
            <body rave-layout="grid">
                <h:form binding="#{Test.form1}" id="form1">
                    <h:outputText binding="#{Test.outputText1}" id="outputText1" style="position: absolute; left: 144px; top: 192px"/>
                    <h:commandButton action="#{Test.button1_action}" binding="#{Test.button1}" id="button1" style="position: absolute; left: 192px; top: 192px" value="Submit"/>
                    <h:selectOneMenu binding="#{Test.dropdown1}" id="dropdown1" style="position: absolute; left: 144px; top: 264px; width: 168px; height: 23px" value="#{Test.usuariModel.rowData.login}">
                        <f:selectItems binding="#{Test.dropdown1SelectItems}" id="dropdown1SelectItems" value="#{Test.usuariModel.columnData.id_login}"/>
                    </h:selectOneMenu>
                </h:form>
            </body>
        </html>
    </f:view>
</jsp:root>

I''ve tried similar code in netbeans 3.6 whith JSF RI ans happens the same. When I put the drowpdownlist the event handler is not called.
What happen ?
Sorry for my poor English
import javax.faces.component.html.HtmlForm;
import javax.faces.component.html.HtmlCommandButton;
import javax.faces.component.html.HtmlOutputText;
import javax.faces.component.html.HtmlSelectOneMenu;
import javax.faces.component.UISelectItems;
import javax.faces.FacesException;
import javax.faces.model.SelectItem;
import java.util.List;
import java.util.ArrayList;
public class Page {
    private HtmlForm form = new HtmlForm();
    private HtmlCommandButton buttonSubmit = new HtmlCommandButton();
    private HtmlOutputText outputText = new HtmlOutputText();
    private HtmlSelectOneMenu dropdown = new HtmlSelectOneMenu();
    private UISelectItems selectItems = new UISelectItems();
    private List items = new ArrayList();
    int i = 0;
    public Page() {
        SelectItem it = new SelectItem(new Integer(1), "hola");
        this.items.add(it);
    public String button_action() {   // Not Called
        this.outputText.setValue(String.valueOf(i));
        i++;
        return null;
    public HtmlForm getForm() {
        return this.form;
    public void setForm(HtmlForm form) {
        this.form = form;
    public HtmlCommandButton getButtonSubmit() {
        return this.buttonSubmit;
    public void setButtonSubmit(HtmlCommandButton buttonSubmit) {
        this.buttonSubmit = buttonSubmit;
    public HtmlOutputText getOutputText() {
        return this.outputText;
    public void setOutputText(HtmlOutputText outputText) {
        this.outputText = outputText;
    public HtmlSelectOneMenu getDropdown() {
        return this.dropdown;
    public void setDropdown(HtmlSelectOneMenu dropdown) {
        this.dropdown = dropdown;
    public UISelectItems getSelectItems() {
        return this.selectItems;
    public void setSelectItems(UISelectItems selectItems) {
        this.selectItems = selectItems;
    public List getItems() {
        return this.items;
    public void setItems(List items) {
        this.items = items;
<?xml version="1.0"?>
<jsp:root version="1.2"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
        <html>
            <head>
                <title>Page1 Title</title>
            </head>
            <body rave-layout="grid">
                <h:form binding="#{Page.form}" id="form">
                    <h:outputText binding="#{Page.outputText}" id="outputText1" value = "" style="position: absolute; left: 120px; top: 384px"/>
                    <h:commandButton action="#{Page.button_action}" binding="#{Page.buttonSubmit}" id="button1"
                        style="position: absolute; left: 240px; top: 336px" value="Submit"/>
                    <h:selectOneMenu binding="#{Page.dropdown}" id="dropdown" style="position: absolute; left: 192px; top: 432px">
                        <f:selectItems binding="#{Page.selectItems}" id="dropdown1SelectItems" value="#{Page.items}"/>
                    </h:selectOneMenu>
                </h:form>
            </body>
        </html>
    </f:view>
</jsp:root>

Similar Messages

  • Test inside  the table is truncated when integrating Adobe forms with WD4A

    Hi All,
    I am facing issue in table when integrating adobe forms with web dynpro for ABAP.
    Whenever the pagination happens the text in the table row cells is truncated and it starts from next row in next page. Is there any properrty of table in Form builder which I can use to allow the test to go to the next page?
    Best Regards,
    Arti.

    Hi. You should place your question in "SAP Interactive Forms by Adobe" forum. You will get advice quicker there.

  • When I inherit Form with binding DataSet why then designer find mdb file in 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\'

    When I inherit Form with binding DataSet why then designer find mdb file in 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\' 
    Do I have to anything to change in my application settings or what I am doing wrong?
    When I inherit a plain Form with no binding DataSet then is all ok.

    I finally saw my longingly expected inherited window containing binding dataset.
    But only by way that I put mdb file right in to the this damn path.
    "c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Zdrojove Data\ISMS2003.mdb" 
    In addition mdb file shall be clear too of password.
    We have many windows in our application and we have to work strongly good with inheritance of Form Classes.
    But how I will explain to my Boss if he click on that inherited window and will see this break window?
    Though I will advice to my Boss that hi have to copy too that MDB files to this damn path,
    but the best way could be to find what I need to change that this inherited windows shows without copy this MDB files to
    'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\'
    When I check the settings for DataDirectory every paths looks good.
    Even if I set password for the mdb file I almost see only broken designer window.
    Only by copy this MDB file without his password to this path
    'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\'
     I can see this inherited window right. 

  • How to submit a form with checkboxes in a page flow?

    I'm having some trouble with a form that contains several checkboxes, and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean, can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

    I am new to this, but I think this may solve your problem:
    I am not sure if this is what you are looking for, but you can create a LinkedHashMap
    with the req key/value pairs in the page-calling action in the pageflow and then
    pass that via a getRequest().setAttribute("myCheckboxes",myCheckboxHashMap);
    You can then access it in code using the optionsDataSource portion of the netui:checkBoxGroup
    - ie
    <netui:checkBoxGroup dataSource="{actionForm.thisCheckbox}" optionsDataSource="{request.myCheckboxes}">
    Hope this helps!
    m
    "Craig Coffin" <craig+1268fbec@nfld-dot-com> wrote:
    I'm having some trouble with a form that contains several checkboxes,
    and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an
    XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give
    me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean,
    can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

  • Submit multiple forms with java

    Hello,
    I have a problem when I am submitting multiple forms with the javascript document.form1.submit();.
    I shall explain what my problem is. I have made a JSP that contains some forms. In the forms I post values to external sites. so the action from the forms are http://www.example.com/employee/login. I post my username and password to this external link so I have logged in. So I do this for 20 different sites. so 20 different actions in 20 different forms on one JSP.
    Now I have made one button that submit all of this forms. I do this with the javascript document.form1.submit();
    document.form2.submit();
    etc.
    But this is not consistent and I wan't a sollutions in Java so I am sure that all the forms wil execute. Because now he post only some forms and some not. So i want a solid sollution. Can anyone help me.
    Thanks in advance,
    Henk

    I had a similar situation a few years ago, where I needed to close sessions that my application had opened with different servers.
    The way I did it was with a secondary browser window, which my "primary" window would control. I had a JavaScript routine that would set the URL of the secondary window, loop with a timer and check the state of that window until the request had completed, then send the next URL, until I had "fired off" URLs to close all of my sessions.
    If this sounds like something you'd be interested in doing, let me know and I can post the code here.
    James W. Anderson
    The Coca-Cola Company

  • How to Submit Struts Form with JavaScript ...!!

    Hi All,
    I have a JSP page with java script and form as shown below. When I click the delete button, the javascript alerts the message "Delete method called" and also in next alert I am getting the form object but the form is not getting submitted and its giving javascript error "Object doesnt support this property or method". Any ideas why?
    My java sctipt method
    <script language="JavaScript">          
         function deleteBillingItem() {
                   alert("Delete method called");
              document.billingItemManagerForm.action="deleteBillingItem.do";
              alert("Form Object-->"+document.billingItemManagerForm);
              document.billingItemManagerForm.submit();
    </script>
    My JSP Code is
    Here I have two buttons one is Edit which of type Submit and other is Delete which is of type just button
    <body bgcolor="#ECF9FF">
              <br>
                   <div class="title" style="margin-top:75px;"><bean:message key="billingItem.editBillingItem"/></div>
              </br>
                   <div align="center">
                        <table width="75%" cellspacing="1" width="435px">                         
                             <logic:notPresent name="billingItems">
                                  <tr>
                                       <td width="30%" class="evencell" style="color:black"><b><bean:message key="billingItem.noRecordsFound"/></b></td>
                                  </tr>                              
                             </logic:notPresent>
                             <logic:present name="billingItems">
                                  <tr>
                                       <td width="30%" class="evencell" style="color:black"><b><bean:message key="billingItem.name"/>     </b></td>
                                       <td width="70%" class="evencell" style="color:black"><b><bean:message key="billingItem.description"/></b></td>
                                  </tr>
                                  <logic:iterate id="billingItemManagerForm" name="billingItems">
                                       <html:form action="/editBillingItem">
                                            <tr>
                                                 <td width="30%" class="oddcell">
                                                       <b><bean:write name="billingItemManagerForm" property="name"/></b>
                                                 </td>
                                                 <td width="60%" class="oddcell">
                                                       <b><bean:write name="billingItemManagerForm" property="businessDesc"/></b>
                                                 </td>
                                                 <td width="10%" class="oddcell">
                                                      <html:hidden name="billingItemManagerForm" property="billingItemId"/>
                                                      <html:submit style="cursor:pointer"> <bean:message key="button.edit"/> </html:submit>  
                                                      <html:button property="buttonDelete" style="cursor:pointer" onclick="deleteBillingItem()"><bean:message key='button.delete'/>  </html:button>
                                                 </td>
                                            </tr>
                                       </html:form>
                                  </logic:iterate>
                             </logic:present>
                        </table>
                   </div>
              <font color="red"> <html:errors/> </font>
         </body>
    </html:html>Please help...!!! Thanks

    I am already having a bean for this...but Im bit confused....let me show u the entire code...how im doing...!!!
    In DAO class
       public ArrayList getBillingItemList() {
            log.debug("Entering getBillingItemList...");
            String sql =  null;
              ArrayList billingItemList = null;
              EntityTransaction tx = null;
            try {
                   billingItemList = new ArrayList();
                   em = emfForSettleEntry.createEntityManager();
                   tx = em.getTransaction();
                   tx.begin();
                sql = "select * from BillingItem"; //this table has id, name, description
                   billingItemList = (ArrayList)em.createNativeQuery(sql, BillingItem.class).getResultList(); //here the BillingItem is entity bean
                   tx.commit();
            } catch (RuntimeException e) {
                log.fatal("Fatal Error Occurred - Please contact Administrator:"+ commonUtils.getStackTraceAsString(e));
                return null;
            } catch(Exception e) {
                log.fatal("Fatal Error Occurred - Please contact Administrator:"+ commonUtils.getStackTraceAsString(e));
                   return null;
            } finally {
                em.close();
            log.debug("Exiting getBillingItemList...");
            return billingItemList;
    In my servlet
    if (request.getServletPath().equalsIgnoreCase("/editBillingItem")) {
         billingItemList = billingItemManagerFacade.getBillingItemList(); //facade calls dao method
         if (billingItemList.size() > 0) {
              session.setAttribute("billingItems", billingItemList);
         getServletConfig().getServletContext().
                             getRequestDispatcher("/BillingItemList.jsp").forward(request, response);
    and finally my jsp
    <html:html>
         <head>
              <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
              <title><bean:message key="billingItem.editBillingItem"/></title>
              <link rel="stylesheet" type="text/css" href="css/isoprofilerstyle.css">
              <script type="text/javascript" src="scripts/scrollableTable.js"></script>
              <script language="JavaScript">          
                   function deleteBillingItem() {
                        document.billingItemManagerForm.action="deleteBillingItem.do";
                        alert("Form Object-->"+document.billingItemManagerForm);
                        document.billingItemManagerForm.submit();
              </script>
         </head>
        <body bgcolor="#ECF9FF">
              <br>
                   <div class="title" style="margin-top:75px;"><bean:message key="billingItem.editBillingItem"/></div>
              </br>
                   <div align="center">
                        <table width="75%" cellspacing="1" width="435px">                         
                             <logic:notPresent name="billingItems">
                                  <tr>
                                       <td width="30%" class="evencell" style="color:black"><b><bean:message key="billingItem.noRecordsFound"/></b></td>
                                  </tr>                              
                             </logic:notPresent>
                             <logic:present name="billingItems">
                                  <tr>
                                       <td width="30%" class="evencell" style="color:black"><b><bean:message key="billingItem.name"/>     </b></td>
                                       <td width="70%" class="evencell" style="color:black"><b><bean:message key="billingItem.description"/></b></td>
                                  </tr>
                                  <logic:iterate id="billingItemManagerForm" name="billingItems">
                                       <html:form action="/editBillingItem">
                                            <tr>
                                                 <td width="30%" class="oddcell">
                                                       <b><bean:write name="billingItemManagerForm" property="name"/></b>
                                                 </td>
                                                 <td width="60%" class="oddcell">
                                                       <b><bean:write name="billingItemManagerForm" property="businessDesc"/></b>
                                                 </td>
                                                 <td width="10%" class="oddcell">
                                                      <html:hidden name="billingItemManagerForm" property="billingItemId"/>
                                                      <html:submit style="cursor:pointer"> <bean:message key="button.edit"/> </html:submit>  
                                                      <html:button property="buttonDelete" style="cursor:pointer" onclick="deleteBillingItem()"><bean:message key='button.delete'/>  </html:button>
                                                 </td>
                                            </tr>
                                       </html:form>
                                  </logic:iterate>
                             </logic:present>
                        </table>
                   </div>
              <font color="red"> <html:errors/> </font>
         </body>
    </html:html>
    Please let me know where and what changes I need to make...???

  • Is Acrobat Attachments possible when submit pdf form as XDP

    I need to attach documents in my pdf form using acrobat attachment functionality (not the workspace atachments). It works fine when submit form as PDF but fails when submit form as XDP. I need to add some data to form data(process ID using SetValue) before assigning to 2nd user. For this, I think, XDP submission is best. But Using PDF submission I am not able to modify the data in between the process using SetValue.
    Is it possible to send attachments while submitting form as XDP ?? OR how else I can achieve this ??
    Please Help.
    Thanks.
    Abhinav

    Is there a simple way (I don't know javascript) to get all fields/values in the email body?
    This can be done with JS, and it's not too complicated, but you can't generate an email from Reader without any attachments (well, actually you can, but then the amount of data you can put in it is very limited), it has to have either the entire PDF, or a file with the form data, attached to it.

  • FRM-18108 Error when opening a form with subclassed objects

    Dear Group,
    I have 2 forms in Oracle Forms 6i. One of the forms contains an object group. The other form contains the object that I subclassed it to.
    When I open the form that contains the subclassed object group, I get the FRM-18108 error.
    If I open the form with the original object group, then open the subclassed form, there is no error.
    Does this mean I must always open the original form in order to work on the one with the subclassed object group?
    I hope there is an simple solution to what is something I am missing in my Oracle Forms setup.
    Thank you in advance.
    Emad

    Hi Duncan.
    Your suggestion worked.
    Thank you for the fast response!
    Truly,
    Emad

  • Problem when creating a Form with Launch Task Form Wizard

    Hi all,
    I'm using jdeveloper 11.1.1.6 over Windows 7 64bits for my BPM project.
    I'm a new with BPM and i have a problem when trying to create a task's Form with the "Launch Task Form Wizard". I'm trying to create my Form based on a custom template, i already have imported the template as a library, now after i have selected the template i follow the wizard and i reach the wizard's rowX-columnX where i should choose the field i want in my form, but the problem is that i don't see any fields in that part of the wizard, the window is empty :(
    I have created a business object based on a XSD, then i created a process data object based on the previous created business object and finally i used this data object as a parameter to the human task.
    What could be my problem ?? :( :(
    Regards
    Carlos

    I have also faced this issue few times. There could be a namespace issue / schema issue. Please check if you are able to see task:task in the schema section anywhere in the .task file you created. If that is not shown, the fields will not appear while creating human task form.
    Thanks
    Ashwini

  • Issue when submit my form

    Hi all,
    I have OAF page that contains a form to save Employee Data.
    This form has an MessageLovInputBean and MessageStyledTextBean, to enter or display manager full name.
    In processRequest i have done this code:
    OASwitcherBean managerSwthr= (OASwitcherBean)oAWebBean.findChildRecursive("ManagerNameSwitcher");
    managerSwthr.setDefaultCase("ManagerName");
    OAMessageLovInputBean managerName = (OAMessageLovInputBean)oAWebBean.findChildRecursive("ManagerName");
    managerName.setValue(oAPageContext, rs.getString("instance_number"));
    And when a try to submit my form have git this issue:
    "Row 1 Error - Please enter a value in the Manager field"
    Thank you for helping me.

    The error is the following:
    {fieldName} : Error during model data update
    Into the event, the oldValue is set to null, same has if it was the first time that the value changes.

  • Scrollbars problem when running a form with Sun Java instead of Jinitiator

    Hi All;
    Our forms are configured to run with the Sun Java instead of
    Jinitiator; functionality wise everything works fine, but when running
    the forms on the web there are 2 extra scrollbars
    (one vertical and one horizontal) in addition of the browser scrollbar.
    Note: This is does not happen when running the same form with Jinitiator (same configurations)
    Anyone encountered this situation or has an idea how to to get ride of the extra scrollbars ???
    Thanks.

    Thanks for your replay.
    I was able to make all forms working without scrollbars when running form developer at the desktop (windows os) without scrollbars
    but when I run them at the application server (Linux Red Hat 3 Enterprise), scrollbars are still there.
    I tried your suggestion but did not help
    here is the formsweb configuration
    [jdk15]
    baseHTML=base.htm
    jpi_classid=clsid:CAFEEFAC-0015-0000-FFFF-ABCDEFFEDCBA
    jpi_codebase=http://server_name:port/forms/jinitiator/jre15012.exe#Version=1,5,0,12
    jpi_mimetype=application/x-java-applet;jpi-version=1.5.0_12
    jpi_download_page=http://server_name:port/forms/jinitiator/jdk_download.htm
    baseHTMLJInitiator=basejpi_with_disableMDIScrollbars_param.htm
    archive=frmall.jar
    separateFrame=False
    splashScreen=no
    background=no
    width=975
    height=575
    form=xxxxx.fmx
    lookandfeel=Generic
    logo=no
    otherparams=useSDI=yes
    The window get maximized at when-new-form-instance.
    Does it has to do with the canvas or window height and width at the design time????
    Thanks.

  • Intermittent APPCRASH when opening a form with CrystalReportViewer

    We have an application that, as part of the functionality, allows users to generate and preview a report. It uses CR for VS 2010. The report preview dialog is a Windows Form that includes a CrystalReportViewer.
    This functionality works, most of the time, but we are observing intermittent APPCRASH/Stackhash crashes when this form is opened of this nature:
    Problem signature:
      Problem Event Name:  APPCRASH
      Application Name:      ****
      Application Version:    ****
      Application Timestamp:           4dd40fa4
      Fault Module Name:    StackHash_7698
      Fault Module Version:  6.1.7600.16385
      Fault Module Timestamp:         4a5be02b
      Exception Code:         c0000374
      Exception Offset:        00000000000c6cd2
      OS Version:    6.1.7600.2.0.0.256.48
      Locale ID:       1033
      Additional Information 1:          7698
      Additional Information 2:          7698c42b9ee8da1ebad3b3c9521cacfd
      Additional Information 3:          ad41
      Additional Information 4:          ad418ba72161d4cd11d7688fd368f113
    This crash occurs intermittently. We have an automated script that tests the GUI and it may run for 5 minutes or several hours before encountering this error, with a handful, to tens, perhaps over a hundred report generated successfully.
    As we understand it, the error code c0000374 means:
    // MessageId: STATUS_HEAP_CORRUPTION
    // MessageText:
    // A heap has been corrupted.
    CR is not the only part of our application that uses unmanaged memory, but this crash consistently happens when opening the dialog with a CR component in it (which renders a report).
    I realize I've left out a lot of potential information, but will add more upon request. This problem is causing us quite some headaches and I just wanted to see if anyone else has experienced something similar.
    Any ideas?

    Hello Zamir.
    Many thanks for the great answers (I wish I could post this thread as an example to all ).
    Same to you. Debugging issues like this is never fun, but I know from experience that clarity from both sides helps us get to a resolution
    Let's start with SP1. You may already be using it. Check the version of the crpe32.dll (C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64). It should be 13.0.1.220, if it is, we're on SP1. If it is not, understanding your concerns, going to SP1 will still be the DE thing to do. E.g.; I will not do any testing unless you are on SP1 (sounds bad I know, but just laying the cards on the table - face up )...
    I checked both my development machine and a production system that I have access to in-house (which is able to reproduce the problem via a script). Luckily for me, both are at version 13.0.1.220.
    The fact that you are not able to reproduce the issue on your development system my actually be quite encouraging and perhaps a starting place for us (given the SP1 conundrum). It will be interesting to compare the dlls (both Crystal and database client). Normally the Modules utility is very useful for comparing dlls loading on a computer that works and one that does not. As this is a 64 bit app, it will be a bit trickier. Modules works really well on 32 bit apps. On 64 bit apps it does not save the log. You can still see it, but not save it. Anyhow, I am attaching a 64 bit version of Modules. You will have to check the versions of the CR DLLs and database client DLLs by looking at the logs and writing the info down
    I'm having a bit of trouble with the Modules utility. I launched it and when I get it to generate a list, I cannot see the process for our application in the list. It is running and appears in the task manager, but it is not listed under the list of processes, nor do I see any of it's loaded DLLs. Any ideas?
    Re. apps compiled as "Any CPU". These should work - as long as only the correct "bitness" CR runtime is deployed. E.g.; On a 64 bit OS, do not deploy both a 32 bit and a 64 bit runtime. This may cause issues. My recommendation in the previous post was a rather blanket recommendation that quickly eliminates all kinds of confusions for many people.
    Thanks for the clarification. I am going to stick with 'Any CPU' because I know that we only deploy the x64 runtime and if I switch to explicit x64 compilation, Visual Studio reports some false-positive warnings that I'd rather not have (it's a bug in Visual Studio).
    Re. the database - SQL Server CE v3.5 SP2, OLE DB. Make absolutely sure the db client is the same on the problem computer as it is on your development computer. Use Modules for that. If htere is a later SP, apply that. I can not overstate the importance of this.
    As above, I could not use modules, but I did confirm the DLL versions in their respective Program Files location on both machines and they were the same (3.5.8080.0).
    It will be important for these users to let us have screen shots of the issue as they get it. I realize this may be an inconvenience to the customer, but what is essentially a hearsay evidence from what is typically a non technical user is always something to take with a grain of salt.
    I just talked to one of our field engineers and he has seen screenshots to confirm it is the same issue as the one we can reproduce in-house.
    One thing to be absolutely sure of is that you are using .Close and .Dispose on the report objects as the user is done with them.
    We do, in general, make these calls and recently have gone through our code for memory leak possibilities, so this was recently checked for by developers.
    One other possible source of issues; printer drivers. Specifically printer drivers not designed for the particular OS. Ensure that the printer driver(s) used by the customer on that WIN 7 are designed for WIN 7 - even if they are only viewing and or exporting. CR has a large dependency on printer drivers.
    We use the Samsung CLP-320 and the driver package it installs are "Win 2000/XP/2003/Vista/2008/Win 7(32,64bit)", so I assume the correct version gets installed on our Win 7 x64 system.

  • Rearrange pages when printing adobe form with multiple master pages

    Hello!
    Good day to you all.
    I have an issue in regards with printing my adobe form with multiple Master pages. I have 4 master pages:
    1st master page: a
    2nd master page: b
    3rd master page: c
    4th master page: d
    all with different headers and footers all having the same contents (items). I don't have issue with one page content (it just prints 4 pages with different headers and footers). The issue comes out once the items exceed 1 page.
    What happens is that the preview/print shows (example: 3-page item)
    a1-a2-a3-b1-b2-b3-c1-c2-c3-d1-d2-d3.
    What i need is to print these such that all 1st pages of the 4 master page to be printed first, then all the 2nd pages, then all 3rd pages. Please see below:
    a1-b1-c1-d1-a2-b2-c2-d2-a3-b3-c3-d3
    This is because we will be using carbonless copy paper during printing and it's possible that it would be printed on batch jobs. Please suggest ways to do this.
    Thanks a lot in advance!
    Best Regards,
    abap_peer_dangs

    Hi,
    Is that requirement of multiple pages as groups only at the time of print or at print preview also...?
    Can you have a Print button on this screen or you should be using the Abobe toolbar's Print button..?
    Well if this on a click of a button in the form and the requirement is only at the time of print and not on print prieview I can have a JS script which does this...
    Let me know if this suffice, I can try with a local file and send you the script.
    @ Chris: I didn't understand what do you mean by reported, I was eager to hear and learn a solution from you may be a new approach which I am not aware of ...?
    Cheers,
    Sai.

  • Using JavaScript to submit a form with multiple submit buttons

    I am a newbie to JavaScript, so hopefully someone can answer
    this for me.
    On my user registration form, I have two buttons that submit
    the form, 'check_availability' (to check if the username is
    available) and 'register'. In my PHP script, I check which button
    was pushed by checking which POST value is set,
    $_POST['check_availability'] or $_POST['register'].
    If I set the 'register' button to a JavaScript function that
    validates the form and then submits it, how do I get my PHP script
    to think 'register' was pushed?

    Sorry I used my old captcha script there.
    [php]
    <?
    session_start();
    if(isset($_POST['button_name'])){
    //DO SOMETHING HERE
    } else {
    //Add the page data
    ?>
    [/php]
    "east99" <[email protected]> wrote in
    message
    news:fepqr8$2mr$[email protected]..
    > Firstly name your buttons then use this script:
    >
    > [php]
    > <?
    > session_start();
    > if(isset($_POST['button_name'])){
    > if ($_POST['vercode'] != $_SESSION['vercode'] OR
    $_SESSION['vercode']=='')
    > {
    > // echo '<strong>Error
    Message</strong><br>';
    > $error = '<strong><font
    color="#FF0000">Error
    > Message</font></strong><br>';
    > } else {
    >
    > //Add the page data
    >
    > }
    > ?>
    > [/php]
    >
    >
    >
    > "AngryCloud" <[email protected]> wrote
    in message
    > news:fecu6r$cl5$[email protected]..
    >>I am a newbie to JavaScript, so hopefully someone can
    answer this for me.
    >>
    >> On my user registration form, I have two buttons
    that submit the form,
    >> 'check_availability' (to check if the username is
    available) and
    >> 'register'. In
    >> my PHP script, I check which button was pushed by
    checking which POST
    >> value is
    >> set, $_POST['check_availability'] or
    $_POST['register'].
    >>
    >> If I set the 'register' button to a JavaScript
    function that validates
    >> the
    >> form and then submits it, how do I get my PHP script
    to think 'register'
    >> was
    >> pushed?
    >>
    >
    >

  • Wrong values submitted when submitting a form with javascript

    Hi guys, I know this aint a struts forum, but I did not know where else to go. So here goes..
    I have the following code in my jsp
    <logic:iterate id="ex" name="myForm" property="users">
    <html:multibox property="deleteUsers">
    <bean:write name="ex" property="userId"/>
    </html:multibox>
    </logic:iterate>
    I have about 10 users of which 5 have already been marked for deletion from another action. So basically, the above tag renders 10 rows with a checkbox in the beginning to select users to delete. Also 5 of them have been checked already, I mean when the form is loaded. So checkboxes 1, 4, 5, 8, 10 have already been checked. Now I have a link on which goes like this
    Select None. On this I call a javascript which does the following
    function uncheckAll() {
    for (i = 0; i < 10; i++) {
    document.myForm.deleteUsers.checked = false;
    This unchecks all my checkboxes.
    Now comes the problem. I am submitting the form using a javascript which is invoked on clicking on the submit link using document.myForm.submit(); The problem is the deleteUsers property in myForm still retains the old values. If the checkboxes are unchecked no values should be submitted for this and the deleteUsers array should be empty. Can anyone help me out on this.
    Thanks.

    Checkboxes only submit a value when they are "on"
    They submit nothing if they are not selected.
    The problem comes - do you interpret no checkbox values as "clear all values" or "leave the values alone"? Struts assumes the latter.
    Your form is probably being kept in session?
    Try implementing the reset() method of your action form and set its property to be equivalent to no checkboxes selected.

Maybe you are looking for

  • SQL 2012 and later will fail to publish a database for any tables with a default constraint that references a user defined function.

    Script will create database, 3 database objects and publish.  The error is due to the generation script to create the conflict tables that is not stripping out default constraints that reference a UDF.  As you can see below, the failure is on the gen

  • Material number numeric only

    Hi team, I have customized the material type ,(ROH) to 1001;my requirement is material should be only numericals like 11000250,,,,,its asking for alpha numeric,so plz help to come out of this issues,,,, In T-code- mmnr (i have given external numberin

  • IPad mini  iMessage problems

    I updated the software on my brand new iPad mini and now I do not receive iMessages anymore

  • Authorizations in cProjects 4.0 and cFolders

    Hi all, We implemented cProjects 4.0 using EP 7.0. I have used the standard SAP deleivered roles for cprojects in backend system for cprojects and cfolders (Ex: SAP_CPR* and SAP_CFX*). I would like to control on 'project type' as there are two region

  • Adobe illustrator  or photoshop

    I have a sign business.  I use the ultra flex vinyl cutter.  I need to use fancier fonts with flourishes and was going to get the AI.  But I also need to take my stencils and vectorize them to be able to cut in my vinyl program. I need to be able to