SALES HEADER FORM FIELDS NON EDITABLE

guptavarunmcaguptavarunmca Member Posts: 95
DEAR ALL
I WANT TO MAKE MY SALES HEADER FORM NON EDITABLE
BUT I NEED POSTING DATE AND DOCUMENT NO. EDITABLE.
IS THERE ANY POSSIBILITY TO DO THIS THROUGH CODES.
With Best Regards:
VARUN K. GUPTA

Comments

  • KYDutchieKYDutchie Member Posts: 345
    Yes, you can. But the question is why?

    You can do it on the onaftergetrecord trigger and do something like:
    IF "your condition"=TRUE then BEGIN
    CURRFORM."Sell-to Customer No.".EDITABLE(FALSE);
    <all other fields>
    ..
    ..
    END ELSE BEGIN
    CURRFORM."Sell-to Customer No.".EDITABLE(TRUE);
    <all other fields>
    ..
    ..
    END;

    But why are you doing this? Are there certain users that cannot change a Sales Order?
    Then it might be easier to revoke their right to change the table through the security settings.

    Also if it is only a certain group of people then I would revoke them access to the regular Sales Header Form.
    I would create a copy of the Sales Header form and then set all the fields to non editable and make that new form available to the restricted users.
    Doing it through code is just a lot of coding, since there are quite a few fields on the Sales Header.

    Hope this helps,

    Regards,

    Willy
    Fostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.
  • vijay_gvijay_g Member Posts: 884
    Can you explain it in detail exactly what you want to do?
  • ssinglassingla Member Posts: 2,973
    DEAR ALL
    I WANT TO MAKE MY SALES HEADER FORM NON EDITABLE
    BUT I NEED POSTING DATE AND DOCUMENT NO. EDITABLE.
    IS THERE ANY POSSIBILITY TO DO THIS THROUGH CODES.

    Don't use capital letters while posting. It amounts to shouting....
    CA Sandeep Singla
    http://ssdynamics.co.in
  • SavatageSavatage Member Posts: 7,142
    Set the form to non-editable & on the fields you want to change

    OnActivate()
    CurrForm.EDITABLE(TRUE);
    OnDeactivate()
    CurrForm.EDITABLE(FALSE);
  • Yogi1983Yogi1983 Member Posts: 22
    Take a look at 2-Controlware's Field Security module. With this module you can secure fields and sets of records. Ask your partner about it or use Google.
Sign In or Register to comment.