Call Function in MainForm from out of the subform

tompynationtompynation Member Posts: 398
Is it possible to call a Function in Your main form on a button press in the subform?

Answers

  • kinekine Member Posts: 12,562
    Your subform has buttons?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    edited 2008-08-05
    Do you make it right, it works too!
  • garakgarak Member Posts: 3,263
    kine, its customized :))
    But normaly, all buttons on mainform and function in subform are called from mainform like CurrForm.Subform.Form.MyFunction().
    Do you make it right, it works too!
  • kinekine Member Posts: 12,562
    garak wrote:
    kine, its customized :))

    I understand that... but just wanted to know why using this "non-standard" format of the form and if this cannot be solved though moving the button from subform to the form and call the subform function from there and have access to the main form too... ;-)

    I am doing small research why non-standard things are used in most cases...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    in some cases, the developer are new in NAV and doesn't know how the "standard" do this .....
    Do you make it right, it works too!
  • kinekine Member Posts: 12,562
    May be it is time to tell them how... ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    We do it ;-)
    Do you make it right, it works too!
  • tompynationtompynation Member Posts: 398
    i moved the button to the main form... my problems are solved now
  • garakgarak Member Posts: 3,263
    =D>
    You are welcome. Plrese write [solved] before your subject (first post)

    Regards
    Do you make it right, it works too!
Sign In or Register to comment.