Make a field respond to onPush event, form editable=false?

BrannmarkBrannmark Member Posts: 9
Is it possible to make a field in a sub form respond to onpush event even if the subform has editable = false?

The form can not be changed over to editable true as then I will have loads of problems when filter is out of range...... This is by the way form id 7172...

Anyone have a suggestion?

Comments

  • matttraxmatttrax Member Posts: 2,309
    Maybe the OnActivate trigger? I didn't try or anything, but even if something is not editable it seems as though that trigger should fire.
  • jonsan21jonsan21 Member Posts: 118
    Hi,

    Not sure what you're trying to do here (F7172 is Sales Lines Subform)

    But the best way to do this is to make all the fields in-editable, left the fields that you want to play around with to be editable.

    my 2 cents,

    Rgds,

    Jon.
    Rgds,

    Jon.
  • DenSterDenSter Member Posts: 8,305
    A subform shows data. You can program a button on the main form to manipulate data, regardless of the editability of the controls on the subform. So to answer your question yes you can change data on the subform as a result of clicking a button on the main form. You will need to do Currform.UPDATE to make the form refresh though.
  • RuleRule Member Posts: 34
    It's very simple.

    On the field set the assistedit property on True.
    The you can put your code in the onAssistEdit trigger.

    Instead of pushing on the field the user just has to push on the onassistedit button in the field.

    I think this is the best solution four your problem
    Realisations are only limited by the borders of imagination
Sign In or Register to comment.