Form & Case problem

I have a form it submits a registration case then redirects to another page that has different form on it. This form is meant to create another case for a job application and it does so correctly if you navigate to that page by clicking the page link etc. But after the registration form redirect to the same page the form on this page submits the info to the same registration case not a new case like I want. I kind of get what it is doing but how do I stop this?
Any help appreciated.
Cheers Daniel

Hi
Jalil Cracker,
>>when user pres n then it must go to a form but error arises and not working good and threading is not respondin
Could you post the error information? And which line caused this error?
If you want to show Form1, you can use form.show() method
Form1 frm = new Form1();
frm.Show();
In addition, Cosmos is an acronym for C# Open Source Managed Operating System. This is not Microsoft product.If the issue is related to Cosmos, it would be out of our support. Thanks for your understanding. And you need raise an issue at Cosmos site.
Best regards,
kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Multi Block Form Navigation Problem

    Hiii
    i have got a multi block form the problem that am facing now is that when running the FORM and when am over one of the my canvases then if i tried to press any of :
    (Tab button,Down arrow ) the canvas changes to ANOTHER Datablock ...
    i dont know what is the problem ....
    ANY SUGGESTIONS
    OMD

    Make the datablock you want to show on top as the first block in the object navigator.
    HTH.
    Regards,
    Arun

  • Form locking problem

    act what user do closes the form abnormally,
    which makes hangging on.
    i use in many forms select clause with for update nowait.
    now either it is to be commit,or rollback then its session would be free.
    but abnormally coming out of form makess that session
    active and lock the record for 5-10 min.
    i want some trigger in which i can write exit_form(full_rollback); in abnormal coming out of form case.
    please help me

    I guess that the query takes quite some times and the users think that the Forms session is dead. Then they kill the Forms probably by closing the browser window.
    I would implement a "progress bar" so that the users sees that something is happening, that their program isn't dead, and that they approx. know when the waiting period is ending.
    You'll find an example of how to implement a progress bar in the Forms demos on otn.oracle.com.
    Regards,
    Martin Malmström

  • Forms installation problem - how do I create a new default Oracle home?

    I am new to Oracle so please forgive my utter ignorance. My impression of Oracle because of how an installation
    has to be done is taking a nosedive. I thought Microsoft was bad with all the re-booting but the explanation that I
    read in Anubhav Seth's post about installing Dev 6i before 8i and the suggestion (not a requirement) to format the
    harddisk and reinstall Windows just leaves me with my jaw hanging open. I'm having a little trouble swallowing that
    one.
    Here's my situation... I'm running 8i at home and I am using it for the Oracle courses that I am taking at a local
    university. So 8i with its SQL*Plus has been all I have needed to date. Now we have a project to do that involves forms.
    So I go to the OTN page for downloads and downloaded file 6irel2nt.exe which is 264 MB in size. This file, I assume,
    has forms in it -- what else I don't know because things are not explained all that well on the web site or I don't know
    where to look (which implies poor organization of the web pages).
    I run the 6irel2nt.exe file and end up with 11,128 new files on my computer. That's nice. I run the setup file and a step or
    two into it it complains that my 'Ora81' home is already being used and that I need to install it into another Oracle Home.
    Now I'm trying to find out how I create another Oracle Home. I perform a search in GOOGLE on "creat default Oracle
    home" and basically get nowhere. My $50+ "Oracle 8i A Beginner's Guide" from Oracle Press mentions Oracle Home
    on one page (pg. 170) but is completely useless in this case. My $184 worth of Oracle University manuals (which
    are really PowerPoint slides) is useless too. My next step will be to comb through the FAQs. All this because I cannot
    believe that I have to totally uninstall one product to get another to install and then reinstall the first one. That is INSANE!
    If I have gone way off track please feel free to blast me but if this is true then all I can say is that the folks at Oracle need
    a lesson in KISS (Keep It Simple Stupid)! Computers and computer software are supposed to make our lives simpler
    not complicate the holy hell out of them. I'll get off my soapbox now. Sorry about the whining.

    I ended up uninstalling 8i and then I installed Dev 6i (Forms) and then I reinstalled 8i. I had some problems
    installing Dev 6i because of this error "path.vrf(86): Unbound variable 'path_too_long_prompt'". Right after this error
    appears I get a dialog that states, "The Oracle Installer cannot update the system path variable to %new_path%
    because it is too long. Please restrict your system path to 127 characters and make sure D:\Oracle\OraWin95\bin
    is included in your path."
    The path D:\Oracle\OraWin95 was what I set up for this installation.
    What I did to work around this problem was this...
    (1) Go to Start - Accessories - System Tools - System Information.
    (2) Click on the Tools menu
    (3) Select System Configuration Utility
    (4) Select the Autoexec.bat tab
    (5) I added D:\Oracle\OraWin95\bin to my PATH variable and unchecked the checkbox next to one of the several
    lines that I have that build my PATH variable. (I have several PATH lines that simply add a path to the system
    variable %path%). After the installation is complete you can go back and turn back on the paths that you had disabled.
    After installing 8i I did have a problem connecting to the database. I got this error:
    Error: ORA-01034 Oracle not available
    I believe this happened because I had forgotten to turn back on some of my PATH information that I mentioned
    earlier. After checking one of my PATH variables and rebooting, this problem disappeared.
    When reinstalling 8i and when the installation asks for an SID and you enter the SID you had used in the original
    installation you may get a notice that says the SID already exists. I think this happens because the uninstall does not
    clean up the registry totally, so I entered a different one. Later on, after the installation has been completed and you
    are connecting to your database, you will be prompted to select an SID -- just make sure that you select the SID from
    the latest installation.
    I should've mentioned first that in preparing for this whole ridiculous exercise I created a directory under my Oracle
    directory that I was going to use as the new 'Oracle home.' So I guess that's all one has to do to create a new Oracle
    home -- just have another directory ready to install 'stuff' into.
    All in all, this a pretty asinine exercise. Oracle really needs to fix this mess. I honestly thought Microsoft was bad but
    this takes the cake. I wonder if SQL Server is this screwed up.

  • CASE problem

    The statement below has encountered a problem in forms.
    select (case when a.code >=b.code then a.code else b.code
         when a.code >=c.code then a.code else c.code end) test
    from (select max(y.code) code from table1 x) a
    (select max(z.code) code from table2 y) b
    (select max(z.code) code from table3 z) c
    where a.code= b.code(+)
    and a.code = c.code(+)
    I'm trying to get the maximum code from the 3 tables.
    Can anyone help me with this?

    Opps... this is the correct statements..
    select (case when a.code >=b.code then a.code else b.code
    when a.code >=c.code then a.code else c.code end) test
    from (select max(x.code) code from table1 x) a
    (select max(y.code) code from table2 y) b
    (select max(z.code) code from table3 z) c
    where a.code= b.code(+)
    and a.code = c.code(+)

  • Forms Refresh Problem on The Web??

    i have a form coded in 6i. in this form i have around 20 buttons one below another and each of the button has a stacked view associated with it. whenever i click on a button i am opening the relative stacked view on th content canvas and repositioning the rest of the bottons and views by moving them down.
    Now the problem is it works fine in client-server, but when i run it on the web, when i try to open any of the buttons the screen scrolls automatically to the top. I also noticed that if i wait for a few seconds(or sometimes minutes) the form takes me to the correct position. i think there is some refresh problem. i tried Syncronize also but to no use.
    i would appreciate If someone can help me out on this ASAP. (thanks for the patience in reading this long mail!!)

    Try to instal the latest version of Jinitiator. I have similar problems, but my case is not so bad. Jinitiator develops very quickly and as i have heard it works now fine.

  • REP-52007 Error and Web Parameter Form Format Problems

    I am attemting to get Oracle 9i reports working. I created a super simple report just for test purposes. I am using the following URL to call it directly from the browser:
    http://myserver.com:8008/reports/rwservlet?server=repapp&report=jtest_rep.rdf&userid=myuser/mypass@mydb&DESTYPE=cache&DESFORMAT=pdf&PARAMFORM=YES
    When it generates the parameter form page, the formatting of the section that has the paramters is terrible. Looking at the HTML generated, it is creating a large <table> that places the elements outside of the viewing area. I do not know how why it is doing this or how to fix it.
    If I actually do find the field and enter in the prameter and hit submit, I then get:
    REP-52007: Parameter form format error.
    java.lang.IllegalStateException: Response is already committed!     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.setContentType(EvermindHttpServletResponse.java:973)     at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:27)     at oracle.reports.rwclient.RWReportRunner.setContentType(RWReportRunner.java:261)     at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:135)     at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:95)     at oracle.reports.rwclient.RWClient.runReport(RWClient.java:1312)     at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1129)     at oracle.reports.rwclient.RWClient.doPost(RWClient.java:318)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    If I set paramform=no and pass in the parmater in the url string, then it skips the paramter form and runs fine accepting the input.
    Any idea what the solution is for these two errors?

    After more searching, I found out that the problem for both is an Oracle Bug posted on mealink. It has to do with using capital letters for the oracle default parameters. Once you make it lower case, it works.
    ex:
    http://myserver.com:8008/reports/rwservlet?server=repapp&report=myreport.rdf&userid=myid/mypass@mydb&destype=cache&desformat=pdf&paramform=yes

  • Adobe Form Formatting Problem

    Hi ,
    I am printing a Custom Adobe Form(ZPTRV_EXPENSE_FORM), which is a copy of standard form(PTRV_EXPENSE_FORM), through PR05. The problem here is in the subform for additional trip information, where the comments entered by the user are getting displayed, is not getting frmatted properly.
    for example.
    2.Had a joint meeting with Mr.ABC, Mr.PQR, Mr.XYZ.
    is getting displayed as
    2.Had a joint meeting with Mr.ABC, Mr.PQR, M       r.XYZ.
    I have not changed any property of the said text area.
    I found a SDN post which says it has been done in the interface. In this case, I am using a standard interface which does not
    have any code in code initialization or Form routine.
    Could you please guide me through.
    Regards,
    Sagar

    Hi Otto,
    First of all thanx for your prompt and kind reply. As I said the text hs been copied from MS Word. There are two boxes in the
    text, wierd characters as you pointed out. But there is a part of text which does not hav those characters, yet there is a space
    infact multiple spaces that appear in the preview.
    I tried typing the part of the text manually in the comments box without the spaces. Then too, some of my words are split into
    two or two words put togather.
    I have also checked changing the font, but that didnt help. And the binding of the text field is set to 'EDITOR'. But if you check
    the context, there is no element called 'EDITOR' not does the form interface have a parameter which passes the long text meant
    for comments . That was the reason I was asking, what are the possible ways we can populate data in a form.
    Regards,
    Sagar

  • Cocoon/FOP + form-name problem

    Experts,
    I have configured Tomcat/Cocoon to work with APEX instead of BI Publisher, as per Carl Backstrom's tutorial. Tomcat and Cocoon both work as expected. I am able to configure APEX with the correct URL, port, and Print Server Script, standard support, and so on.
    I am able to use FOP to process static XML files with no problems.
    If I understand how APEX works with Cocoon, it generates a Form POST to send an XML document to Cocoon for processing. Cocoon receives the posted form. Cocoon extracts the XML data based on the name of the posted form, and then transforms it into the specified format (PDF, RTF, HTML, etc.). In Carl's tutorial, Cocoon is configured in sitemap.xmap to expect form-name="xml".
    Question: When APEX executes the Form POST, what form name does it give the posted form? Is this configurable?
    Whenever I try running an APEX report through Cocoon/FOP, I get
    org.apache.cocoon.ProcessingException: Unknown request object encountered named xml : null.
    I have tried renaming form-name to wwv_flow, wwvFlowForm, XML, Xml, asdf,<null>, etc. Whatever I rename the form shows up as null.
    Examples:
    1. org.apache.cocoon.ProcessingException: Unknown request object encountered named wwv_flow : null.
    2. org.apache.cocoon.ProcessingException: Unknown request object encountered named wwvFlowForm : null.
    3. org.apache.cocoon.ProcessingException: Unknown request object encountered named asdf : null.
    4. org.apache.cocoon.ProcessingException: Unknown request object encountered named xml : null.
    Dan

    Hi Carl
    I use Tomcat and Cocoon as you described. For some reports PDF print is OK. One problem which i found was that, in my case, the language of the application produce also an error. I changed from German to English and everything was OK.
    "Application > Shared Components > Edit Globalization Attributes > Globalization" - Aplication primary language GERMAN. Once that i changed to english US my reports worked again OK.
    I have also an application where for one page PDF produced is OK but for another page in the same application i receive the same error:
    org.apache.cocoon.ProcessingException: Unknown request object encountered named xml : null.
    Maybe Region configuration is different?
    Best regards
    Adrian

  • Posted Form contents Problem

    I had this problem with 4.5.1 SP 5 and WebLogic told me it would be
    fixed in 5.1 SP 1 (I believe the issue number was 10214). I've just
    tried my simple test case again with 5.1 SP 3 on NT and it still fails.
    The problem is when text is posted from an HTML form to a servlet in
    WebLogic, WebLogic assumes the posted data is ALWAYS encoded in
    ISO-8859_1. So if your form posts Shift-JIS, WLS still incorrectly
    converts the text to unicode using the ISO8859 code page. The only
    work arround I can find is to take the bad JAVA unicode strings, get the
    bytes with the ISO8859 code page, and then create a new string using
    those bytes and the Shift-JIS code page. This is what the
    fixStringEncoding() method is doing below. This is unacceptable.
    How does the WebLogic server understand how to convert between IANA
    encodings and JAVA encodings when receiving a response? A browser will
    encode the form contents with the same encoding as the HTML page with
    the form is in. How does WLS know when it recieves the response to use
    SJIS (Java encoding) to convert Shift-JIS (IANA) encoded text to
    unicode? My test JSP page is included below. It's form that accepts
    Japanese text and posts it back to itself for display. If I don't "fix"
    the JAVA strings, the Japanese text comes out as garbage. BTW, I have
    verified that I'm using SP 3 correctly. Thanks.
    Kirk Everett
    <%@ page contentType="text/html; charset=Shift-JIS"%>
    <html>
    <head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=Shift-JIS">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    </head>
    <body>
    <form name="Dummy" action="dummySJIS.jsp" method="post">
    <table>
    <tr>
    <td align="right">DummyString:</td>
    <td><input type="text" name="dummy" size="30"
    maxlength="50"></td>
    </tr>
    </table>
    <input type="submit" value="submit">
    </form>
    <BR>
    DummyString with fixing= <%=
    fixStringEncoding(request.getParameter("dummy")) %>
    <BR>
    DummyString without fixing = <%= request.getParameter("dummy") %>
    <BR>
    Embedded (Shitf-JIS) Japanese --> ?X?V‚É?¬Œ÷‚µ‚Ü‚µ‚½?B
    </body>
    </html>
    <%!
    public String fixStringEncoding(String sourceString)
    String targetEncoding = "SJIS";
    String convertedString = null;
    if(sourceString != null)
    // get the array of bytes for the unicode string using the
    // 8859_1 code page
    try
    byte[] stringBytes = sourceString.getBytes("ISO8859_1");
    // now create a new string based of the array but do it
    // with the correct code page UTF8
    convertedString = new String(stringBytes, targetEncoding);
    catch(UnsupportedEncodingException uee)
    convertedString = "";
    return convertedString;
    %>

    The jsp directive does nothing to help the INPUT data handling. On the other hand, this is a html spec problem, not a weblogic one. RFC2070 has some recommendation on how to do i18n with HTML/HTTP, but neither Netscape nor IE supports it.
    --Ye
    Joseph Weinstein <[email protected]> wrote:
    Hi,
    The ideal approach is to employ the JSP directive for encoding.
    This is documented in the JSP spec. Also, if all your JSPs
    require the same encoding, there is an argument to our JSP
    servlet, to tell it what default charset encoding to use.
    Joe
    Kirk Everett wrote:
    I had this problem with 4.5.1 SP 5 and WebLogic told me it would be
    fixed in 5.1 SP 1 (I believe the issue number was 10214). I've just
    tried my simple test case again with 5.1 SP 3 on NT and it still fails.
    The problem is when text is posted from an HTML form to a servlet in
    WebLogic, WebLogic assumes the posted data is ALWAYS encoded in
    ISO-8859_1. So if your form posts Shift-JIS, WLS still incorrectly
    converts the text to unicode using the ISO8859 code page. The only
    work arround I can find is to take the bad JAVA unicode strings, get the
    bytes with the ISO8859 code page, and then create a new string using
    those bytes and the Shift-JIS code page. This is what the
    fixStringEncoding() method is doing below. This is unacceptable.
    How does the WebLogic server understand how to convert between IANA
    encodings and JAVA encodings when receiving a response? A browser will
    encode the form contents with the same encoding as the HTML page with
    the form is in. How does WLS know when it recieves the response to use
    SJIS (Java encoding) to convert Shift-JIS (IANA) encoded text to
    unicode? My test JSP page is included below. It's form that accepts
    Japanese text and posts it back to itself for display. If I don't "fix"
    the JAVA strings, the Japanese text comes out as garbage. BTW, I have
    verified that I'm using SP 3 correctly. Thanks.
    Kirk Everett
    <%@ page contentType="text/html; charset=Shift-JIS"%>
    <html>
    <head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=Shift-JIS">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    </head>
    <body>
    <form name="Dummy" action="dummySJIS.jsp" method="post">
    <table>
    <tr>
    <td align="right">DummyString:</td>
    <td><input type="text" name="dummy" size="30"
    maxlength="50"></td>
    </tr>
    </table>
    <input type="submit" value="submit">
    </form>
    <BR>
    DummyString with fixing= <%=
    fixStringEncoding(request.getParameter("dummy")) %>
    <BR>
    DummyString without fixing = <%= request.getParameter("dummy") %>
    <BR>
    Embedded (Shitf-JIS) Japanese --> ?X?V&#8218;É?¬&#338;÷&#8218;µ&#8218;Ü&#8218;µ&#8218;½?B
    </body>
    </html>
    <%!
    public String fixStringEncoding(String sourceString)
    String targetEncoding = "SJIS";
    String convertedString = null;
    if(sourceString != null)
    // get the array of bytes for the unicode string using the
    // 8859_1 code page
    try
    byte[] stringBytes = sourceString.getBytes("ISO8859_1");
    // now create a new string based of the array but do it
    // with the correct code page UTF8
    convertedString = new String(stringBytes, targetEncoding);
    catch(UnsupportedEncodingException uee)
    convertedString = "";
    return convertedString;
    %>--
    PS: Folks: BEA WebLogic is in S.F. with both entry and advanced positions for
    people who want to work with Java and E-Commerce infrastructure products. Send
    resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web Application Server
    Crossroads A-List Award: Rapid Application Development Tools for Java
    Intelligent Enterprise RealWare: Best Application Using a Component Architecture
    http://www.bea.com/press/awards_weblogic.html

  • FORMS - RUN PROBLEM

    Hello.
    I have deeloper 10g and i am working on my client machine XP SP2.
    My problem is when i run a form it works correctly for a while but after i ran some reports on it, it becomes something like locked and i have to close the application from the oracle application server explorer page because on the form nothing becomes available i just see a green page
    it gives no error to me.
    what can occur this because this is a problem that i am having since yesterday.

    If this is only happening on one client machine, then I don't see this as an app server problem, or a problem with the generated PDF. If it happens on another client, then I doubt it is client hardware problem. If it were an app server hardware problem, then I think you would see this problem manifest itself in other cases besides PDFs.
    See if you can get this to happen with PDF files generated from other sources (e.g., download some from the Internet) and try opening a closing them repeatedly). If the problem occurs, then I see this as a IE or Acrobat plug-in problem. If IE is hanging, you might want to check the Windows Event Log.
    40% is a little low. Maybe you can test if this is PDF size dependent.
    Message was edited by:
    Mark Roberts

  • Oracle Forms 9 Problem

    I am learning forms with Oracle 9i and have run into a problem.
    The following code runs just fine in a Save Button with a WHEN
    -BUTTON-PRESSED trigger that inserts a record from a stacked single
    record block (does not allow updates or deletes from it).
    DECLARE
    edit_alert alert;
    show boolean := false;
    message varchar2(150) := 'You Must Fill the Following Fields:';
    choice number;
    BEGIN
    IF :add_region.region_id IS NULL THEN
    show := true;
    message := message || CHR(10) || '----- Region Id';
    END IF;
    IF show = true THEN
    edit_alert := Find_Alert('EDIT');
    set_alert_property(edit_alert, ALERT_MESSAGE_TEXT, message);
    choice := show_alert(edit_alert);
    ELSE
    insert_record;
    commit;
    clear_block;
    go_block('regions');
    END IF;
    END;
    But when I try to use the following trigger on a Save button which is
    almost identical on a table canvas with a multi-line block that allows
    queries, updates and deletes...it basically skips the IF....IS NULL
    section because the show never turns true and the alert never fires so
    it automatically trys to update the record, but fails because of the
    null value. It works perfect if the item is not null and gets inserted.
    I figure that it has something to do with :regions.region_id within a
    multi-line block and the if statement not knowing the current record.
    I have searched and searched for a solution with no luck. Can anyone
    help?
    DECLARE
    edit_alert alert;
    show boolean := false;
    message varchar2(150) := 'You Must Fill the Following Fields:';
    choice number;
    BEGIN
    IF :regions.region_id IS NULL THEN
    show := true;
    message := message || CHR(10) || '----- Region Id';
    END IF;
    IF show = true THEN
    edit_alert := Find_Alert('EDIT');
    set_alert_property(edit_alert, ALERT_MESSAGE_TEXT, message);
    choice := show_alert(edit_alert);
    ELSE
    update_record;
    commit;
    END IF;
    END;
    I appreciate any time and help....
    Michael

    You say the forms don't work that waySteve said standard forms don't work that way. Your teacher may want to see working programs but (s)he might put more emphasis on your understanding of the forms environment, in which case using standard practices would be best. It's better to be standard in the real world too, although sometimes you really do just have to get something to work before a deadline.
    As an example of non-standard practices being bad, consider your idea of having validation/committing in a button. This is Ok as long as the user always presses the button but there are other ways to commit the data, such as closing the form, executing a query or navigating to a new record in a master block. That validation code will not run in those circumstances. Always use a when-validate-* trigger or the property pallette for validation.
    Your on-error trigger is also bad. Firstly, do you know why it is firing? Is it because there's a not-null restriction on the region_id item and a null value in the field? If it's firing for any other reason, such as because there is a duplicate record or the database has shut down, then the user will never know because you're overriding standard functionality. If it is firing because of the not-null restriction then a user who does put a value in there will not have their country_id checked at all.
    There may be other reasons as well but the on-error trigger is certainly firing because you're calling the update_record procedure in a button. That built-in is only allowed in an on-update trigger (it's annoying that forms will compile with errors like this but that's just the way it is). This will only cause it to fire once, so only the current record will be validated.
    Your foreign key integrity check is wrong. You're usingWHERE UPPER(country_id) = UPPER(:locations.country_id);so if I enter FranCe and FRANCE is on the database the program will not see a problem. That's Ok as long as throughout the system you refer to upper(country_id), but this will negate an index on that column so should be avoided. The standard method is to use an LOV and to set the item to 'Validate from List = true' (property pallette). Also, it's very rare to validate an item other than in its own when-validate-item trigger. The exception is paired items such as the start/end of a date range, where one date must precede the other and it's more user-friendly to validate both fields together.
    I can't see why the "if...is null" won't work in the WVR trigger, but if you use standard practices throughout the form and that is the only problem then you're much better off than now.
    For the path, use "get_form_property(<module_name>,file_name)" and strip off the <module_name>.fmx part. It seems you have a valid reason for not being standard here (using environment variables) so that's Ok ;-). Good luck with the assignment.

  • Forms navigation problem

    I have a display item that shows up on the screen when I hit the TAB key to navigate to the next item. However, when someone uses the mouse to click in the next items instead of using the TAB key, the text item does not display.
    The problem is, the text item should display whether the users hit tab or clicks in that field. Any suggestions on how I can achieve this functionality? It is causing the user problems.
    Thanks

    KEY... triggers were often used in character mode forms but in mouse enabled forms it is usually advisable to avoid them. In cases like this you should be considering the functionality based on where the navigation destination is, and not worry about what method was used to get there. WHEN-NEW-ITEM-INSTANCE is probably what you want here. WHEN-VALIDATE-ITEM should be used for validation and for preventing navigation when the item is invalid.

  • Pro forma invoice problems if billing plan is used

    Hello experts,
    i have a problem again with the billing plan.
    To problem now is the pro- forma for following case:
    A billing plan is used for the items in the sales order. only at the end when the delivery gets prepared at the end, the pro forma invoice will be created.
    The billing relevance for the item category is 'I' - with the billing plan type (a partial billing with % used).
    For the proforma the entire value should appear on the Pro forma finally when the manufactured modul passes the customs.
    I am struggling with the correct copy control settings.
    The already billed values do not appear on the PRO Forma - for the 'real bills' it is ok.While creating the pro forma the related message appears in the log.
    Which settings in copy control for the copy control (sales order --> billing type (pro forma) do I need to use if I need to have the entire sales order item value on the pro forma bill.
    all helpfull answers are highly appreciated.
    Thanks a lot in advance
    Kurt

    Hi Kurt,
    If you are using a billing plan say periodic billing plan; then i dont think you will have a delivery created against it. From the order / contract; it would be a billing document.
    If you are planning to use any of the billing plans; then invoices are bound to split based on invoicing dates and the settings of billing plan.
    If you are planning to pull all the parts for the purpose of customs then probably you can plant to develop a new output type that would print the details from the billing document (instead of Proforma from delivery). This new output type will be used for "N" number of billing documents against a sales order / contract in order to capture all the part numbers in it.  So if you have 3 parts in the order and 6 invoices, then the new output would get triggered 6 times and you will end up with 6 prints.
    Making changes to incorpoate billing plan related copy control settings would turn your development / configuration more complex.
    I hope i understood your question correctly.
    Hope this helps;
    Regards,
    Syed Nasir

  • Simple form validation problem

    hello,
    i would like to validate the user input and in the case of an invalid input show an error message and return form containing the values previously entered.
    this works fine using the code below.......but
    if i fill the email or any field with an eroneous value eg ERROR
    then delete the value and submit a blank value
    the previous value ERROR is submitted ????
    problem: how to ensure that the blank value is submitted instead of the value retained in the bean
    <jsp:useBean id="customer_data" scope="session" class="Logic.CustomerData" />
    <jsp:setProperty name="customer_data" property="*" />
    <input type=Text name="email" size=22
    value= <%= (customer_data.getEmail() != null) ? customer_data.getEmail() : "" %>
    >

    If a parameter is not present in the request (because the FORM parm is blank), then no coorresponding bean method will be called and the existing value will be retained. Either use request scope for your validation bean or call a reset method to clear the fields before invoking <jsp:setProperty.../>

Maybe you are looking for