Forums

MainDemo sample app, XAF 8.1.6, hitting the Enter key with the insertion point in a text entry box causes a crash with error 1007

Last post 8/11/2008 10:55 AM by Marc Greiner [DX-Squad]. 13 replies.
Sort Posts: Previous Next
  • Adam Leffert

    MainDemo sample app, XAF 8.1.6, hitting the Enter key with the insertion point in a text entry box causes a crash with error 1007

    7/22/2008 7:09 AM
    • Top 75 Contributor
    • Joined on 7/17/2007
    • Posts 360

    All,

    I've gone back and forth with DevExpress support on this issue, and it sounds like they've said what they're going to say.

    I'd like to submit this issue to the community.

    Does anyone out there know how to stop this problem from happening?

    I can't deliver or even demo an app that crashes when the user hits the Enter key with the insertion point in a text box.

    I've included my Q&A with support below.

    Thanks very much in advance,

    Adam

    Created by Adam Leffert at 7/18/2008 10:37:28 AM

    Hitting the enter key in a new contact record in MainDemo web app crashes with an error 1007.

    Reviewed by Developer Express Team at 7/18/2008 6:22:07 PM

    Reproduced by Developer Express Team at 7/18/2008 9:08:10 PM

    Processed (By Design) by Developer Express Team at 7/21/2008 1:55:56 AM

    Hi Adam,

    Thank you for the report and your comments. We appreciate it greatly.
    This is the default behavior of the browser. After the Enter key is pressed it searches for the first button on a page and then "presses" it. In this instance, the button's XAF action is executed. But, this action is disabled and the error you received occurs as expected.
    You can see this default behavior by creating and testing a non-XAF application that will contain a simple page with a button.

    Thanks,
    Dennis

    Reactivated by Adam Leffert at 7/21/2008 6:24:55 AM

    I love your products, and your support is usually outstanding, but this is a non-answer.

    All you've done is describe the bug in different words.

    Hitting the Enter key to save and close a record is one of the most basic actions a Web user can take. It's not as if the user is doing some unusual thing that I can tell him not to do.

    I can't tell my users not to hit the Enter key. I need to demo my work in XAF and later, I need to deliver the application to the users.

    If I understand your response correctly, the crash is not caused by misuse of XAF, so I don't yet know how to use XAF so that it doesn't crash when users hit Enter.

    Please tell me how to use XAF to create app's that don't crash when users hit the Enter key.

    I am working very hard on an app based on XAF and look forward to creating many more. I've bought one full subscription, convinced one person who will also definitely buy one, and will keep going from there.

    Thanks in advance,

    Adam

    Processed (By Design) by Developer Express Team at 7/22/2008 3:27:11 AM

    Hi Adam,

    Thank you for your feedback.
    We see the problem but this is not a problem of XAF. This is a default behavior of browsers for other ASP.NET applications as well.
    >>
    Hitting the Enter key to save and close a record is one of the most basic actions a Web user can take.
    <<
    We consider that hitting Enter could take place if you want to activate some focused control on a page, for instance a button to press it, etc. There are a lot of other examples. But, this is not the matter.
    I wanted to say that hitting the Enter key always and everywhere doesn't make sense, especially if you click on a page layout (how this error occurs).

    >>
    Please tell me how to use XAF to create app's that don't crash when users hit the Enter key.
    <<
    The only way is writing a custom script for the page that will catch the Enter key, perhaps against of some conditions. We have no ready sample for this, because this is not a problem with our product. You need to create this script yourself as well as to determine the conditions of when to allow or when to prevent the key press.

    Please do not hesitate to contact us in case of any problem. We are always happy to help you.

    Thanks,
    Dennis

    Filed under: , ,
  • Oliver Sturm (DevExpress)

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with theinsertion point in a text entry box causes a crash with error 1007

    7/22/2008 7:36 AM
    • Top 25 Contributor
    • Joined on 3/6/2006
    • Posts 1,821
    Hi Adam,

    My apologies for your trouble. I have read your issue description and I
    agree with you that we should do something to prevent this from
    happening. I'll need to wait for some info from the team about possible
    solutions and I'll let you know what we find.
    --
    Regards,
    Oliver Sturm
    Developer Express Inc.
    MVP C#
  • Adam Leffert

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with theinsertion point in a text entry box causes a crash with error 1007

    7/22/2008 7:41 AM
    • Top 75 Contributor
    • Joined on 7/17/2007
    • Posts 360

    Thanks!!


    Adam

  • Evgeniy Meyke

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with the insertion point in a text entry box causes a crash with error 1007

    7/22/2008 7:44 AM
    • Top 100 Contributor
    • Joined on 5/4/2007
    • Posts 244

    In my case, when user hits "enter" he is taken to login screen - very frustrating since it happens (most often) in the middle  or in the end of data entry.

    Evgeniy

  • drew..

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with the insertion point in a text entry box causes a crash with error 1007

    7/22/2008 10:40 AM
    • Top 25 Contributor
    • Joined on 5/7/2007
    • Peachland, BC Canada
    • Posts 1,242

    firstly: "Hitting the Enter key to save and close a record is one of the most basic actions a Web user can take"    ... i would suggest this is perhaps true within your sphere, but not part of a bigger default behaviour, at least in my arena. On the web, i and my clients look explicitly for the Submit/Save type button.

    secondly: something i have thought about from time to time: xaf can benefit on the web side from following the example of some of the bigger player's methods: if a web form is in a dirty state and there is a possibility of losing data, the entire state is saved temporarily and a warning is issued. If the client signals to continue with the effort, the state is maintained, else it is lost. This is critical on multi-tabbed data entry screens with multiple required fields. It is almost making me rethink the tabbed concept because of the out-of-sight--out-of-mind idea.

    finally: it isn't often we catch young Dennis saying funny things, and here i jest a bit but: "In this instance, the button's XAF action is executed. But, this action is disabled and the error you received occurs as expected." Many eyebrows were raised at this statement i bet, likely including Dennis'   (hint: why raise an action on a disabled item? Surprise)    drew..

  • Adam Leffert

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with the insertion point in a text entry box causes a crash with error 1007

    7/22/2008 10:54 AM
    • Top 75 Contributor
    • Joined on 7/17/2007
    • Posts 360

    Drew,

    > i would suggest this is perhaps true within your sphere, but not part of a bigger default behaviour, at least in my arena. On the web, i and my clients look explicitly for the Submit/Save type button.


    My experience with Web users is that most of what they do is automatic.

    I highly recommend Steve Krug's book "Don't Make Me Think" which makes this and many other useful points.

    To clarify, I would say that many users hit the Enter key without thinking, expecting the form to be saved.  If it isn't saved, they hit it a few more times.  If it still isn't saved, they go looking for a Submit button, and move on happily.

    Without getting sidetracked into a discussion of what constitutes thinking, I'm happy to split web users' actions into two groups: conscious and unconscious.  I don't think subtle distinctions are needed here.

    The Enter key hit is unconscious, so if the next screen they see is a web site crash, they are going to be very disappointed.

    Very few of them will think "I must have hit the Enter key while the focus was in a disabled item."

    Also, for the record, it was not.  In MainDemo, the insertion point can be in an enabled text edit area when hitting the Enter key crashes the app.

    Most of them will think "This web site sucks!"

    :)

    Adam

  • Robert Fuchs

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with the insertion point in a text entry box causes a crash with error 1007

    7/22/2008 11:48 AM
    • Top 25 Contributor
    • Joined on 5/4/2007
    • Tirol, Austria
    • Posts 2,456
    > Most of them will think "This web site sucks!"
     
    99.9% of the Web sites suck - so this is not a problem ;-)
     
    regards, Robert
     
  • drew..

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with the insertion point in a text entry box causes a crash with error 1007

    7/22/2008 12:34 PM
    • Top 25 Contributor
    • Joined on 5/7/2007
    • Peachland, BC Canada
    • Posts 1,242

    Robert Fuchs:
    > Most of them will think "This web site sucks!"

    99.9% of the Web sites suck - so this is not a problem ;-)
     
    regards, Robert
     

    Blanket statements like that are not very helpful, and don't carry much weight. Many many websites present models of efficiency, easy delivery, nice experiences and overall, they add to the volume of useful "things" in our lives.

    Adam: i think my point was missed, the action is wrong, and should not manifest itself, but the fact remains, at least in the web-world, an explicit action hooked to the Enter key is not a defaulted behaviour. Perhaps to my older dad who is not that experienced with the web way, but for most who use the web, it becomes very clear early on that you need to hit a button that does the trick you want the site to perform.

    back to real work.. Geeked drew..

  • Adam Leffert

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with the insertion point in a text entry box causes a crash with error 1007

    7/22/2008 1:16 PM
    • Top 75 Contributor
    • Joined on 7/17/2007
    • Posts 360

    I hear you.


    I think my point was missed too.

    If XAF creates a site that ignores the Enter key, that's fine with me.

    If XAF creates a site that crashes when the user hits the Enter key with the selection in an enabled edit text item of a form, that presents a big problem for me.

    Most important, DevExpress is working on it (thanks!) so joy all around.

    Adam

  • drew..

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with the insertion point in a text entry box causes a crash with error 1007

    7/22/2008 1:38 PM
    • Top 25 Contributor
    • Joined on 5/7/2007
    • Peachland, BC Canada
    • Posts 1,242

    good to hear they are working on it.. and no, i think we all agreed on your point, the behaviour was wrong! thanks for bringing it to our attentions.. drew..

  • Robert Fuchs

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with the insertion point in a text entry box causes a crash with error 1007

    7/22/2008 2:43 PM
    • Top 25 Contributor
    • Joined on 5/4/2007
    • Tirol, Austria
    • Posts 2,456
    > Blanket statements like that are not very helpful, and don't carry much weight.
     
    you obviously missed my smilie...
     
    Robert
     
  • Oliver Sturm (DevExpress)

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with theinsertionpoint in a text entry box causes a crash with error 1007

    7/24/2008 9:36 AM
    • Top 25 Contributor
    • Joined on 3/6/2006
    • Posts 1,821
    Adam Leffert wrote:
    > Thanks!!

    FYI, I've heard back from the team that a fix for this problem has been
    found.
    --
    Regards,
    Oliver Sturm
    Developer Express Inc.
    MVP C#
  • Adam Leffert

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with theinsertionpoint in a text entry box causes a crash with error 1007

    7/24/2008 9:48 AM
    • Top 75 Contributor
    • Joined on 7/17/2007
    • Posts 360

    Thanks!


    I'll be using and testing XAF 8.2 extensively as soon as it ships.

    Adam

  • Marc Greiner [DX-Squad]

    Re: MainDemo sample app, XAF 8.1.6, hitting the Enter key with theinsertion point in a text entry box causes a crash with error 1007

    8/11/2008 10:55 AM
    • Top 25 Contributor
    • Joined on 5/4/2007
    • France
    • Posts 1,189
    Hi Robert,

    I like your comment (and didn't see the smile...)
    Marc Greiner [DX-Squad]
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.