Site Search:
Sign in | Join | Help

LineScroll Focus Event

Last post 03-26-2007 7:07 AM by Steve Gray. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-26-2007 7:06 AM

    LineScroll Focus Event

    Sirs:

    I need to run some business logic if a user lowers a price in the Sop Transaction Entry window, I am having trouble with the form event structure.

     

    The issue is recording the 'before' price, so that in the Validate event I can compare the 'before' and 'after' price to see if it has been lowered.

     

    For existing lines, I am able to record the 'before' price in the LineEnterAfterOriginal event. But for new lines, that fires too soon. They enter an item number, the price field populates, they tab to it and lower the price. My 'before' at this point is $0, that's the value when they have entered the line. I tried using Dynamics.Forms.SopEntry.SopEntry.LineScroll.UnitPrice.Change

    but that causes a really weird effect if I reference Dynamics.Forms.SopEntry.SopEntry.LineScroll.UnitPrice.Value in the event handler. The effect is that the first line in the scrolling grid does not show up, it is mostly blank. I can send screen shots, if you'd like.

     

    I tried using

    Dynamics.Forms.SopEntry.SopEntry.LineScroll.UnitPrice.EnterBeforeOriginal

    and

    Dynamics.Forms.SopEntry.SopEntry.LineScroll.UnitPrice.EnterAfterOriginal

     

    Neither of these events fire at all.

     

    So:

    1. What's wrong with the 'change' event? If I can get that working, I'll be OK.

    2. Why don't the 'enter' events fire? If I can get them working, I might be OK.

    3. Any other way to solve the problem? I need to set an order hold if the price is lowered on a NEW item.

     

     

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • 216.64.79.2
  • 03-26-2007 7:07 AM In reply to

    Re: LineScroll Focus Event

    Steve,  Actually, the field that you have is the wrong one.  If you look at the scrolling window in Modifier, the Unit Price field is actually '(L) Unit Price'.  In VS Tools that will show up as LocalUnitPrice.  You want your events on that field.  The 'Unit Price' field is a hidden field off the window, that's why it's acting strange.  Dave MBS Dev Support

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • 216.64.79.2
Page 1 of 1 (2 items)