How to avoid submitting form twice

How to avoid submitting form twice when this form use spry
validation.

The first step in your hanlder function would be to disable
the submit button.

Similar Messages

  • How to avoid submitting a page when tabular form rows are empty

    Hi,
    I have a master detail form in my application. There are 2 tables that are used Table A and Table B. Table A contains Ticket number and Table B refers to Table A through a foriegn key and Table B have columns like Date,Name, Age, ticket_id (that refers to the ticket_number of the Table A).
    This is how the application works:
    In a page there is a field for Ticket Number, once the user enters the Ticket Number and click Add Details, a tabular Form with 5 empty field appears... (Done through Page Process->Data Manipilation->Add Rows)
    This form contains fields Date, Name and Age. Once the user fills in all the details and click Submit button, the page is submitted. Whatever values that was entered is saved in Table B. Page Sucess message appears. This works fine.
    But once the Ticket Number is entered and Add Details is clicked, and without entering the values in the Tabular Form, if Submit button is clicked, there is no error showing up neither I see Page success message. But this should not be allowed. There should be some error showing up...
    Tabular Form Validations works only when user enters some values in the Tabular Form and click Submit. For the above scenario, where the form is untouched the validation doesnt work.
    How can I get this done? Any ideas?

    Hello Suzi,
    >> if (document.wwv_flow==null)
    The document.wwv_flow is an object representing the current form that was just rendered on your screen. As such, it can never be null.
    >> How to avoid submitting a page when tabular form rows are empty
    The correct way, especially for versions prior to APEX 4.0 is to use JavaScript, but for that, you need to know and understand how APEX generates your tabular form, HTML wise.
    To be very brief, APEX attached a unique ID to every updatable cell in the tabular form, using a certain pattern – each updatable column is getting a unique name (e.g. ‘f01’,’f02’ etc.) and the ID of a cell is a combination of this name with the serial row number the cell is on. For example, a cell on the third row in an updatable column called ‘f04’ will be given an ID of f04_0003. (More detailed explanation, with an example, can be found in my book).
    What you should do is to check these cells according to your validation policy (e.g. is all five row must be filled, is all the columns in a specific row must be filled, etc.).
    Regards,
    Arie.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • How to avoid the form's message situation

    hi all,
    i am using Forms [32 Bit] Version 6.0.8.24.1 (Production).
    i have base table block. So at the time of saving some process should happen, based on selected record.
    so i have written the procedure in key-commit trigger. But my problem is when user edit the data and close the form then the message pops up as usual(do you want..) if i give yes then the procedure is not firing.
    I got a feed back that that message(do you want to save the changes) situation itself i should avoid. How can i avoide that message situation.
    Forcing the user to save in pre-commit trigger is one option but my question is this situation can be avoided?
    Is this can be done?
    Please advise.
    Thanks..

    do i have to place my code in 'on-update' or 'pre-update' trigger?I mentioned ON-UPDATE (block-level)
    and one more question the checkbox is control item. so when i am selecting or deselecting the check box do i have to set the record status?Yes, you need to change the record status to change if check box is non-database item.
    but one more question i want ask. The process what i am doing should happen only when user saves the record. If i write it in the block level trigger if user doesnot save the recod and exists then also my process will fire?No.
    if i write my code in block level means.
    if for any record if any error means i have to stop the full process itself and nothing should happen. In other words if user process 4 record and in 5 record he is getting error means the four records also should not go into table. is this will happen if i move the code to block level trigger?Yes it will not continue and will not send any record in database.
    -Ammad

  • How  i distingue submitting forms

    Good Afternoon
    I am suffering has some days here trying to make a way to
    solv a problem that I am having with forms in the creation of a
    page where i will sell bikinis. The page will go to present to the
    user a bikini and the user will be able to select the part from
    above of the bikini (top) or the part of low (bottom) and still
    will go to choose the color, size and the amount from an selection
    list and i am stuck here in which way i will send these data for
    one another page where i will have a supply conference. To have an
    idea of what I am speaking . Have a look at in this link:
    http://www.catvi.com.br/ch_detalhespraia20.asp?nome_biquini=Biquini%20Calina
    I cant figure it out how i will filter this data sended by
    the correct user selection...
    Have a look in my code, im using the repeat region in the
    list/menus:
    <form name="add_produto" id="add_produto" method="post"
    action="addtocart.asp?ref_number=<%=(rsPresult.Fields.Item("ref_number").Value)%>"
    >
    <p> </p>
    <table width="770" border="0" cellpadding="0"
    cellspacing="0">
    <tr>
    <td colspan="2"
    valign="middle"><p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p></td>
    <td valign="top" >
    <%
    While ((Repeat2__numRows <> 0) AND (NOT rsPresult.EOF))
    %>
    <%
    ref_number = rsPresult.Fields.Item("ref_number").Value
    image = rsPresult.Fields.Item("image_path").Value
    nome = rsPresult.Fields.Item("nome_biquini").Value
    %>
    <%
    Dim rsCor__MMColParam
    rsCor__MMColParam = "1"
    if (ref_number <> "") then rsCor__MMColParam =
    ref_number
    %>
    <%
    Dim rsCor
    Dim rsCor_cmd
    Dim rsCor_numRows
    Set rsCor_cmd = Server.CreateObject ("ADODB.Command")
    rsCor_cmd.ActiveConnection = MM_catvi_STRING
    rsCor_cmd.CommandText = "SELECT DISTINCT Cores.Cor,
    Cores.Fotoscoresmaior, Cores.Fotothumbs, prod_biquinis.ID,
    prod_biquinis.nome_biquini, prod_biquinis.ref_number FROM Cores
    INNER JOIN prod_biquinis ON Cores.ID = prod_biquinis.ID WHERE
    ref_number LIKE ? ORDER BY Cor ASC"
    rsCor_cmd.Prepared = true
    rsCor_cmd.Parameters.Append
    rsCor_cmd.CreateParameter("param1", 200, 1, 255, rsCor__MMColParam)
    ' adVarChar
    Set rsCor = rsCor_cmd.Execute
    rsCor_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = -1
    Repeat1__index = 0
    rsCor_numRows = rsCor_numRows + Repeat1__numRows
    %><p align="left"><span class="style5">
    <span class="style65"><img src="catvi/images/flecha_.gif"
    width="8" height="13" /></span><span
    class="style56"><%=(rsPresult.Fields.Item("nome_produto").Value)%></span></span>
    <br />
    <span class="style32"><br />
    N&uacute;mero de refer&ecirc;ncia: 
    <%=(rsPresult.Fields.Item("ref_number").Value)%></span><br
    />
    <span
    class="style3"><%=(rsPresult.Fields.Item("descr_detalhada").Value)%></span><br
    />
    <br />
    <select name="menutamanho" class="style3"
    onmouseover="MM_showHideLayers('tamanhos','','show')"
    onmouseout="MM_showHideLayers('tamanhos','','hide')">
    <option value="0">Tamanhos</option>
    <option value="P">P</option>
    <option value="M">M</option>
    <option value="G">G</option>
    <option value="GG">GG</option>
    </select>
    <span class="style32"
    onmouseover="MM_showHideLayers('tamanhos','','show','tamanhos1','','hide')"
    onmouseout="MM_showHideLayers('tamanhos','','hide','tamanhos1','','hide')"> </span>
    <select name="corlist" class="style3"
    title="<%=(rsCor.Fields.Item("Cor").Value)%>">
    <option value="0">cor</option>
    <%
    While (NOT rsCor.EOF)
    %><option
    value="<%=(rsCor.Fields.Item("Cor").Value)%>"><%=(rsCor.Fields.Item("Cor").Value)%></opti on>
    <%
    rsCor.MoveNext()
    Wend
    If (rsCor.CursorType > 0) Then
    rsCor.MoveFirst
    Else
    rsCor.Requery
    End If
    %>
    </select>
    <select
    name="Qty<%=(rsPresult.Fields.Item("ref_number").Value)%>"
    size="1" class="style3"
    id="Qty<%=(rsPresult.Fields.Item("ref_number").Value)%>">
    <option value="0"
    selected="selected">Quantidade</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    </select>
    <br />
    <br />
    <%
    While ((Repeat1__numRows <> 0) AND (NOT rsCor.EOF))
    %>
    <%if
    Instr(Request.ServerVariables("HTTP_USER_AGENT"),"Opera") = 0
    Then%>
    .value)%>',168,0,148,0);MM_showHideLayers('fotocor','','show');return
    document.MM_returnValue"
    onmouseout="MM_showHideLayers('fotocor','','hide')"
    target=_new><img
    src="<%=(rsCor.Fields.Item("Fotothumbs").Value)%>"
    border="0">
    <%else%>
    .value)%>',145,0,124,0);MM_showHideLayers('fotocoropera','','show');return
    document.MM_returnValue"
    onmouseout="MM_showHideLayers('fotocoropera','','hide')"
    target=_new><img
    src="<%=(rsCor.Fields.Item("Fotothumbs").Value)%>"
    border="0">
    <%End If%>
    <%
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    rsCor.MoveNext()
    Wend
    %>
    </p>
    <p align="left" class="style3"> <span
    class="style54">  </span><span
    class="style31">Pre&ccedil;o :</span><%=
    FormatCurrency((rsPresult.Fields.Item("preco").Value), 2, -2, -2,
    -2) %></p>
    <%
    Repeat2__index=Repeat2__index+1
    Repeat2__numRows=Repeat2__numRows-1
    rsPresult.MoveNext()
    Wend
    %>
    <p>  Clique aqui para ver
    tamanho</p>
    <p class="style3"><img src="addtobag.gif"
    width="280" height="40" border="0" /></p>
    <p align="left" class="style3"><img
    src="/catvi/images/btn_indique.gif" alt="Indique esta
    p&aacute;gina para um amigo" width="247" height="40" border="0"
    /></p>
    <p align="left"
    class="style3"> </p></td>
    </tr>
    <tr>
    <td width="294" height="25"><div
    align="center"><span class="style3"><span
    class="style31">
    <td width="2"></td>
    <td></td>
    </tr>
    </table>
    </form>
    In the next page i was trying to filter the data using this
    recordset:
    <%
    Dim rsqtidade
    Dim rsqtidade_cmd
    Dim rsqtidade_numRows
    Set rsqtidade_cmd = Server.CreateObject ("ADODB.Command")
    rsqtidade_cmd.ActiveConnection = MM_catvi_STRING
    rsqtidade_cmd.CommandText = "SELECT ID, nome_biquini,
    nome_produto, ref_number, Estoque, Cor, Tamanho, ProductDetailID,
    peso_item, preco FROM QryEstoqueBiquini WHERE ref_number in ("
    & Request.Form("ref_number") & ") AND Tamanho LIKE '" &
    Request.Form("menutamanho") & "' AND Cor LIKE '" &
    Request.Form("corlist") & "'"
    rsqtidade_cmd.Prepared = true
    Set rsqtidade = rsqtidade_cmd.Execute
    rsqtidade_numRows = 0
    %>
    Unhappily give the error:
    ADODB.Field error '800a0bcd'
    Either BOF or EOF is True, or the current record has been
    deleted. Requested operation requires a current record.
    /addtocart.asp, line 32
    After some days trying something in sql i percept that this
    what im trying to do will no have a solution, So im asking here for
    help to give a way, I until I would obtain to make to function ce
    in the page of election of bikini I I used two separate
    formularios, but i falls in the problem of that if the user that to
    want to buy the complete bikini will have to buy from above part
    and later the part of low, would like to have a skill so that the
    user could decide what it wants to buy.
    and sorry by my english guy
    Hope in find a solution
    Cause in here Brazil no one forum here could help me, u are
    my last hope
    Ty
    No more
    Fábio

    Dear Aamir,
    Please copy TNSNAMES.ORA file from your Database Home/NETWORK/ADMIN directory and copy that in NETWORK/ADMIN directory where you installed Forms/Reports 6i. then you can connect to your server by using SID as host string like: system/manager@<SID example: ORCL>
    Regards,
    Reza

  • Avoid submitting form more than once

    I would like to display an error if the user clicks twice on a submit button (payment is involved). The project requirements say no javascript. Any easy way to implement this in java ?

    A few observations :
    1)The solution(s) proposed are both valid, but may not work at all if the access to the session is not synchronized.
    2)Even if you sync, the sync block only prevents the code from being executed by multiple threads within the same JVM, therefore your servlet might not operate properly if it's marked as distributed(Distributed servlets can run in multiple JVMs, so you're still exposed to race conditions), or if the servlet implements the now deprecated SingleThreadModel.
    3)Keeping the tokens in session scope works well for small applications with low load, that only run on one machine, which does not require distributed session state.
    4)It would be a better idea to use JSPs and custom tags, so you can re-use the solution quite easily in other apps.
    5) While being overkill in most regular-sized apps, the use of entity beans with exclusive locking would be appropriate in big sites...

  • How to avoid Oracle Form to perform commit action ?

    I have a question.
    The case is: After a user correct some data displayed in text items, he needs to click a button to update the record.
    However, the oracle form the commit the update action.
    I don't want to allow Oracle Form to perform commit UNTIL the user closes the oracle form.
    Is it possible to do so?
    If yes, I should use what kinds of Trigger to realize this.
    Thanks a lot.

    First of all I wanna give you advice that please must specify your forms version with complete precision say 10g 10.1.2.0.1 or if 6i.... then tell everyone what have you done regarding your requirements and what are your errors and problems...
    I dont want to allow Oracle Form to perform commit UNTIL the user closes the oracle formso simple is that make a button with label Exit , in WHEN-BUTTON-PRESS trigger write code
    exit_form(ask_commit);
    you can use NO_VALIDATE if you don't want your form to perform commit anyways. . .
    hope it works

  • How to avoid invoking listener twice

    Assuming there are two partitions, for each partition, we have added two listeners (same class). And in this case, if the object changed, the two listeners will be informed. This is not acceptable in our business scenarios. But if only one listener is added, if the partition is dead, the listener will not work too.
    How to deal with this?
    thanks in advance

    Hi Ramon
    If I understand you correctly, you want to have a highly available listener that executes once per map event. If that is your requirement, then your" listener processing" should be run within the grid if possible. There are a few ways to do this.
    One option is to use an EntryProcessor to perform all of the object mutations and subsequent processing on the object. This solution does not require a listener as your logic would be included in the entry processor. Be aware that this is a synchronous call and your client will block until the EntryProcessor returns.
    see http://download.oracle.com/docs/cd/E14526_01/coh.350/e14509/transactionslocks.htm#BEIJCGDF
    see section 5.3 here http://download.oracle.com/docs/cd/E14526_01/coh.350/e14527/datachanges.htm
    As a second option, you can register a backing map listener that will execute in the JVM of the partition that owns the object. In other words, if you perform a put operation, the backing map listener will get invoke at the server as part of the put operation. This is considered an "advanced operation".
    see http://wiki.tangosol.com/display/COH35UG/Deliver+events+for+changes+as+they+occur#Delivereventsforchangesastheyoccur-Advanced%3ABackingMapEvents
    Both of these solutions have restrictions on making reentrant calls. See http://wiki.tangosol.com/display/COH35UG/Constraints+on+Re-entrant+Calls
    Paul

  • How can avoid the  problem of Parameter Prompting when I submitting ?

    I am developing web application in visual studio 2008 in csharp.How can avoid the issue or problem of  Parameter Prompting when I send parameters programaticaly or dyanmicaly?  I am sending the values from .net web form to crystal report but it is still asking for parameters. so when i submit second time that is when the reports is being genereated. How can i solve this problem. Please help. The code Iam using is below.
       1. using System; 
       2. using System.Collections; 
       3. using System.Configuration; 
       4. using System.Data; 
       5. using System.Linq; 
       6. using System.Web; 
       7. using System.Web.Security; 
       8. using System.Web.UI; 
       9. using System.Web.UI.HtmlControls; 
      10. using System.Web.UI.WebControls; 
      11. using System.Web.UI.WebControls.WebParts; 
      12. using System.Xml.Linq; 
      13. using System.Data.OleDb; 
      14. using System.Data.OracleClient; 
      15. using CrystalDecisions.Shared; 
      16. using CrystalDecisions.CrystalReports.Engine; 
      17. using CrystalDecisions.Web; 
      18.  
      19.  
      20. public partial class OracleReport : System.Web.UI.Page 
      21. { 
      22.     CrystalReportViewer crViewer = new CrystalReportViewer(); 
      23.     //CrystalReportSource crsource = new CrystalReportSource(); 
      24.     int nItemId; 
      25.  
      26.     protected void Page_Load(object sender, EventArgs e) 
      27.     { 
      28.         //Database Connection 
      29.         ConnectionInfo ConnInfo = new ConnectionInfo(); 
      30.         { 
      31.             ConnInfo.ServerName = "127.0.0.1"; 
      32.             ConnInfo.DatabaseName = "Xcodf"; 
      33.             ConnInfo.UserID = "HR777"; 
      34.             ConnInfo.Password = "zghshshs"; 
      35.         } 
      36.         // For Each  Logon  parameters 
      37.         foreach (TableLogOnInfo cnInfo in this.CrystalReportViewer1.LogOnInfo) 
      38.         { 
      39.             cnInfo.ConnectionInfo = ConnInfo; 
      40.  
      41.         } 
      42.  
      43.  
      44.  
      45.  
      46.  
      47.  
      48.         //Declaring varibles 
      49.          nItemId = int.Parse(Request.QueryString.Get("ItemId")); 
      50.         //string strStartDate = Request.QueryString.Get("StartDate"); 
      51.         //int nItemId = 20; 
      52.         string strStartDate = "23-JUL-2010"; 
      53.  
      54.         // object declration 
      55.         CrystalDecisions.CrystalReports.Engine.Database crDatabase; 
      56.         CrystalDecisions.CrystalReports.Engine.Table crTable; 
      57.  
      58.  
      59.         TableLogOnInfo dbConn = new TableLogOnInfo(); 
      60.  
      61.         // new report document object 
      62.         ReportDocument oRpt = new ReportDocument(); 
      63.  
      64.         // loading the ItemReport in report document 
      65.         oRpt.Load("C:
    Inetpub
    wwwroot
    cryreport
    CrystalReport1.rpt"); 
      66.  
      67.         // getting the database, the table and the LogOnInfo object which holds login onformation 
      68.         crDatabase = oRpt.Database; 
      69.  
      70.         // getting the table in an object array of one item 
      71.         object[] arrTables = new object[1]; 
      72.         crDatabase.Tables.CopyTo(arrTables, 0); 
      73.  
      74.         // assigning the first item of array to crTable by downcasting the object to Table 
      75.         crTable = (CrystalDecisions.CrystalReports.Engine.Table)arrTables[0]; 
      76.  
      77.         dbConn = crTable.LogOnInfo; 
      78.  
      79.         // setting values 
      80.         dbConn.ConnectionInfo.DatabaseName = "Xcodf"; 
      81.         dbConn.ConnectionInfo.ServerName = "127.0.0.1"; 
      82.         dbConn.ConnectionInfo.UserID = "HR777"; 
      83.         dbConn.ConnectionInfo.Password = "zghshshs"; 
      84.  
      85.         // applying login info to the table object 
      86.         crTable.ApplyLogOnInfo(dbConn); 
      87.  
      88.  
      89.  
      90.  
      91.  
      92.  
      93.         crViewer.RefreshReport(); 
      94.          
      95.                 // defining report source 
      96.         crViewer.ReportSource = oRpt; 
      97.         //CrystalReportSource1.Report = oRpt; 
      98.          
      99.         // so uptill now we have created everything 
    100.         // what remains is to pass parameters to our report, so it 
    101.         // shows only selected records. so calling a method to set 
    102.         // those parameters. 
    103.      setReportParameters();  
    104.     } 
    105.  
    106.     private void setReportParameters() 
    107.     { 
    108.       
    109.         // all the parameter fields will be added to this collection 
    110.         ParameterFields paramFields = new ParameterFields(); 
    111.          //ParameterFieldDefinitions ParaLocationContainer = new ParameterFieldDefinitions(); 
    112.        //ParameterFieldDefinition ParaLocation = new ParameterFieldDefinition(); 
    113.         
    114.         // the parameter fields to be sent to the report 
    115.         ParameterField pfItemId = new ParameterField(); 
    116.         //ParameterField pfStartDate = new ParameterField(); 
    117.         //ParameterField pfEndDate = new ParameterField(); 
    118.  
    119.         // setting the name of parameter fields with wich they will be recieved in report 
    120.        
    121.         pfItemId.ParameterFieldName = "RegionID"; 
    122.  
    123.         //pfStartDate.ParameterFieldName = "StartDate"; 
    124.         //pfEndDate.ParameterFieldName = "EndDate"; 
    125.  
    126.         // the above declared parameter fields accept values as discrete objects 
    127.         // so declaring discrete objects 
    128.         ParameterDiscreteValue dcItemId = new ParameterDiscreteValue(); 
    129.         //ParameterDiscreteValue dcStartDate = new ParameterDiscreteValue(); 
    130.         //ParameterDiscreteValue dcEndDate = new ParameterDiscreteValue(); 
    131.  
    132.         // setting the values of discrete objects 
    133.          
    134.  
    135.           dcItemId.Value = nItemId; 
    136.          
    137.         //dcStartDate.Value = DateTime.Parse(strStartDate); 
    138.         //dcEndDate.Value = DateTime.Parse(strEndDate); 
    139.          
    140.         // now adding these discrete values to parameters 
    141.           //paramField.HasCurrentValue = true; 
    142.  
    143.        
    144.  
    145.           //pfItemId.CurrentValues.Clear(); 
    146.          int valueIDD = int.Parse(Request.QueryString.Get("ItemId").ToString()); 
    147.           pfItemId.Name = valueIDD.ToString();  
    148.            
    149.         pfItemId.CurrentValues.Add(dcItemId); 
    150.         //ParaLocation.ApplyCurrentValues; 
    151.         pfItemId.HasCurrentValue = true; 
    152.         
    153.         //pfStartDate.CurrentValues.Add(dcStartDate); 
    154.         //pfEndDate.CurrentValues.Add(dcEndDate); 
    155.  
    156.         // now adding all these parameter fields to the parameter collection 
    157.         paramFields.Add(pfItemId); 
    158.          
    159.         //paramFields.Add(pfStartDate); 
    160.         //paramFields.Add(pfEndDate); 
    161.         ///////////////////// 
    162.         //Formula from Crystal 
    163.        //crViewer.SelectionFormula = "{COUNTRIES.REGION_ID} = " + int.Parse(Request.QueryString.Get("ItemId")) + ""; 
    164.         crViewer.RefreshReport(); 
    165.         // finally add the parameter collection to the crystal report viewer 
    166.         crViewer.ParameterFieldInfo = paramFields; 
    167.         
    168.          
    169.      
    170.     } 
    171. }

    Keep your post to under 1200 characters, else you loose the formatting. (you can do two posts if need be).
    Re. parameters. First, make sure yo have SP 1 for CR 10.5:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Next, see the following:
    [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    CR Dev help file:
    http://msdn2.microsoft.com/en-us/library/bb126227.aspx
    Samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • How to avoid printing a balnk page at the end in the Adobe form output

    Hello Experts,
        Can anyone please let me know as how to avoid/delete the blank page at the end of adobe form output.
    I have a master page with header n footer and a body page seperate.
    For ex.. I have 3 line items and i want each line item to be displayed in the new page. I am able to get this functionality . I have set the settings in the paginationb tab of the subform as
    "after " Go to Next content Area" " but an extra page is getting printed at the end. 3 + 1 extra pages total. I want to avoid this blank page. I have checked the Allow page break with in content box but it is still not working.
    Can someone guide me as how to solve this problem.
    Any help is appreciated. Thanks in advance.
    Regards,
    Mahesh

    hey mahesh,
    this normally happens because of triggering a new page manually, what u would have done is that you would be checking for the new line item and when this condition is satisfied , you are triggering a new page , the reason for the last blank page is that the condition gets satisfied ( beacuse the line item number changes from the last line item no to  initial or space).
    This can be handled by doing the following
    By knowing the number of line items by the following stmt.
    describe table itab lines v_lines.
    Now you have the value in v_lines.
    use a counter in ur form and keep it increasing it by 1  ( say v_sno ) ie v_sno = v_sno + 1 in the loop of ur internal table.
    ONLY WHEN V_LINES IS LESS THAN OR EQUAL TO V_SNO , TRIGGER THE NEW PAGE
    this should be along with the condition which u have already put, ie when ever line item no changes
    when both these conditions are satisfied , then only the new page will be triggered.
    Hope it helps,
    Reward if useful,
    Regards,
    KP.

  • How to avoid error while install oracle developer suite10g(forms & reports)

    hi dear all in recent times i am trying to install oracle developer suite 10g to learn forms and reports in my lap having windows 7 ultimate version ,32 bit,2.56 GB of ram .I downloaded two files ds_windows_x86_101202_disk1 and ds_window_x86_101202_disk2 and i downloaded Oracle universal Installer but i am unable to complete installation process ,When i click on complete(1.11gb) version which include forms,reports,xml,j developer I am facing this type of error message
    "Install has encountered an error while attempting to verify your virtual settings.please verify that the sum of the initial sizes of the paging files is at least 256 mb"
    Could any one help how to avoid this type of error message ? or else is there any other way to download Oracle forms and reports version

    Ok, Oracle Developer Suite (ODS) 10g (Forms/Reports) was not designed for Windows 7. In order to the ODS you must follow these steps for the installation to be successful.
    1. You must set the Virtual Memory (VM) size. The Oracle installer can not read Windows Managed VM. See the Microsoft article Change the size of virtual memory for more information on setting the VM size.
    2. The Oracle Installer does not recognize the internal version number of Windows 7, so you have to set the compatibility mode on the Setup.exe to Windows XP. Right-Click the SETUP.EXE and select properties. Then click the Compatibility Tab and in the Compatibility Mode area set this to "Run this program in compatibility mode" and select "Windows XP SP3".
    3. You must run the ODS setup.exe as the Administrator. Right-click the setup.exe and select "Run as Administrator".
    Having done these three steps, your installation should be successful.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to avoid clear data in the block in a form

    Hi All
    I am using Oracle form 10g and db 10g.
    My form i have a list item in my main canvas. It has a value of (EXPENSE,AMOUNT,SUPPLIER,ACCOUNT).
    The user used to select the list item one by one and used to enter values in the each canvas assigned to the Item(expense,amount,supplier,account) and go for a save.
    For instance when the user enter the value in expense ,amount and supplier and again back when the user navigate back to amount the entered value get cleared.
    how to avoid the data get cleared.
    Thanks & regards
    Srikkanth

    you can use EXECUTE_QUERY built-in to populate the data when that canvas or block instance. If it need at block level write this at When New Block Instance. if it a tab page then you can write when tab page change. If need where condition, add block level where condition.

  • How to avoid overlapping of Table on another table in Adobe Form

    Hi Experts ,
                  Can anyone tell me how to do this scenario,When I am inserting 3 flowable tables in Adobe form ,issue is one form is overlapping over another, All the internal tables has 10 records minimum. Requirement is after one table is printed Next table should be start printing without overlapping on next further table... Please let me know How to avoid overlapping of table on another table.Advance thanks.
    Thanks & Regards
    Sandesh

    Hi Sandesh.
    Put your table in subform. (one for each)
    And than add one more subform and include all 3 table's subforms in single subforms.
    All subforms should be flowed.
    With Regards,
    JP

  • How to avoid form resizing

    Hi, i've done an xml form and i want to know how to avoid form resizing(in xml).
    This is te form definition:
    <form AutoManaged="0" BorderStyle="0" FormType="2000060004" ObjectType="" SupportedModes="0" appformnumber="2000060004" client_height="375" client_width="500" color="0" default_button="" height="400" left="259" pane="0" title="Variables" top="107" type="0" uid="FrmSelVar" visible="1" width="520">
    Does anyone knows the answer? Thanks!

    Hi Miguel Angel,
    Have a look at the BorderStyle property in the help file.
    I think fbs_Fixed (4) value is what you are looking for.
    Regards,
    Ibai Peñ

  • How to send submited information on the form created in flash catalyst to an email??

    Hi,
    i have created a contact form in flash catalyst including submit button and i need this information to be emailed, when people press the submit button.
    does anyone here have the idea what should i do and what is the easiest way????
    please help me on this...

    Hi Faryar,
    Emailing a form requires some special setup on your web server. The actual sending of the email is done on the server-side. The SWF you create in Catalyst sends a request to your server, which then sends the email. Unfortunately, you have to be prepared to learn some server-side coding to get this to work.
    Here are some resources to help you get started:
    - A tutorial on making web forms: http://www.javascript-coder.com/html-form/how-to-make-a-form.phtml . Note that you'll be doing the actual form UI in Catalyst, instead of HTML (so you can skip those parts).
    - Using the Flex Form control to sending email using PHP on the server: http://cookbooks.adobe.com/post_Submitting_a_Flex_form_using_PHP-8523.html . Note that you're not using the Form control, but this demonstrates how to write the PHP code.
    - A good discussion of this topic. http://www.actionscript.org/forums/showthread.php3?t=181049
    - One cheesy way of doing this without a server is to create a mailto link with the email body pulled from the form. When the user clicks the link, his email client will open up with the email pre-written, but he will still have to send it. I don't really recommend this method as many users don't have mailto configured on their machines. If you do want to do it, you just need to construct a mailto link dynamically from the form contents. Add a "Go to URL" interaction in Catalyst, import the project to builder, and then change the URL to something like this:
    "mailto:[email protected]?subject=Form Submission&body=" + firstNameTextInput.text + ", " + lastNameTextInput.text".
    -Adam

  • How to avoid printing a page if does not contain data in smart forms

    deat all,
    here is urgent requirement for me .
    i have 3 pagelayouts in smartforms.
    if there is no data in page 2 how to avoid it from printing(the second page should not come in even if it contains hedings and logo)

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

Maybe you are looking for