Method Community

 

Grid Selection - Not Generating Txt Change

Last post 09-18-2009 2:30 PM by Anonymous. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-18-2009 8:58 AM

    • Joe
    • Top 50 Contributor
    • Joined on 08-17-2009
    • Posts 97

    Grid Selection - Not Generating Txt Change

    Hi.

    I recently e-mailed a set of actions to Ryan that did not appear to be working.

    I've narrowed the problem down to not be in my actions themselves.

    The actions are set to take place during a text change in a given field.

    When making a selection to a "main grid" on a screen, all fields on the screen are populated with data from the corresponding table record. When the field values are changed this is in fact a Text Change.

    However, selections from the grid do not generate Text Change Events in the fields that they altar.

    --------

    There are hundreds of situations that conflicts could occur if the Text Change events occur when the user enters data but not when the grid-selection-system bypasses those actions.

    Suggestion1: If I were to do this, I would have the data entered and event ran in the same order as the screen tab-order settings, so the user always knows how things are happening, giving the user a way of debugging in a step-by-step fashion.

    Suggestion2: If for some reason running all events during grid-selection would cause internal conflicts with your programming/development. One work-around might be to allow the user to select specific fields and/or events/actions in those fields to run when a grid-selection is made.

    Thanks for your time. I can see this giving me continued trouble now and in the future, so please let me know as soon as possible if i've neglected something necessary to accomplish my task, or if there is a (fix / work-around)  in the making.

    ~Joe

  • 09-18-2009 9:07 AM In reply to

    • Joe
    • Top 50 Contributor
    • Joined on 08-17-2009
    • Posts 97

    Re: Grid Selection - Not Generating Txt Change

    Hey just wanted to stick with my general posting form and leave the route i took to test my assumption.

    ----------

    Testing:

    1) Added "Action->ShowMessage" before the last action "Assign Value to Action Result".

    2) "Action->ShowMessage"  displays "-- {MyActionResult} --".

    3) When user types in "7" into the text box, message correctly shows "-- 7 --".

    4) When user types in "8" into the text box, message correctly shows "--  --". 

    5) When using the grid - the message does not appear at all. Leaving me to assume the event was not ran.

    End Test.

    -------------


    Thanks again =).

    ~Joe

  • 09-18-2009 1:41 PM In reply to

    • Joe
    • Top 50 Contributor
    • Joined on 08-17-2009
    • Posts 97

    Re: Grid Selection - Not Generating Txt Change

    Double checked my actions when initiating a text-change from user typing in values.

    It works perfectly hiding/showing when the user types in the value.

    Its only when selecting from a grid, that the events dont get triggered in the field.

    ~Joe

  • 09-18-2009 2:30 PM In reply to

    Re: Grid Selection - Not Generating Txt Change

     Hey Joe,


    Try placing your actions on the select button, this way when you select the row on the grid and the txt changes, the select button then runs your actions to look for the new value.


    Also make sure that the default settings for the label are not set to hidden. If you want to hide the label before the user does anything, place an action on the "onscreenload" event.

     

Page 1 of 1 (4 items)