diff controls on form opened from diff menu

sri.tech23sri.tech23 Member Posts: 41
can we have diff controls on a form if it is opened from 2 diff menus. eg if a form is opened from menu 1 then the no field on it is editable and if it opened from menu 2 then the same field is un editable

Comments

  • garakgarak Member Posts: 3,263
    Do you mean if the form is called from the Menu Panel on the lleft side or when the form is called from a Menu Button?
    Do you make it right, it works too!
  • sri.tech23sri.tech23 Member Posts: 41
    I mean from the panels on the side. for eg...the customer form opened from Sales & Marketing menu should hav diff controls from the customer form opened from the Financial management menu
  • MBergerMBerger Member Posts: 413
    In the old ( 3.70 and earlier ) menu that would be easy, because you had the ability to write code on menuoptions. If you want to do the same now, you'd have to write a codeunit per menuoption, where in the OnRun trigger, you pass a parameter to the form ( so it can set fields accordingly ) when you open it.
  • sri.tech23sri.tech23 Member Posts: 41
    can u please elaborate with an eg....
  • ritesh.singhritesh.singh Member Posts: 123
    sri.tech23 wrote:
    I mean from the panels on the side. for eg...the customer form opened from Sales & Marketing menu should hav diff controls from the customer form opened from the Financial management menu

    If the no. of forms/object not too high you can create different form altogether with the desired settings...
    for example create a new form (copying the customer card) "Customer card for Finance" change the setting and call it from the Financial Mgmt.
    Thanks,
    Ritesh K Singh
Sign In or Register to comment.