Open form with different active options from Navigation Pane

sunctsunct Member Posts: 72
Hi,

I have doubt regarding opening a form from navigation pane.

I want to run a Form from 2 different areas - Sales & Marketing -> Sales and Purchase -> Planning.

If the Form is opened from Sales & Marketing, the Type field should be set as Customer and customer related info has to be displayed.

If the Form is opened from Purchase, Type should be filtered to Vendor.

That means, the filter should be applied randomly when opening the form.

Is it possible?

Pls Help.

thanks
Regards,
Sunil

Comments

  • MallyMally Member Posts: 128
    Dear concern
    For this u have to create to forms and set filters on Onopen form trigger of both forms and put them on different-2 Navigation pane.
  • DenSterDenSter Member Posts: 8,304
    Filters are defined in the form properties, you don't need any code for that.
  • chengalasettyvsraochengalasettyvsrao Member Posts: 711
    DenSter wrote:
    Filters are defined in the form properties, you don't need any code for that.


    but you need to create two forms and define the filters and that forms to Navigation pane.
  • krikikriki Member, Moderator Posts: 9,110
    DenSter wrote:
    Filters are defined in the form properties, you don't need any code for that.


    but you need to create two forms and define the filters and that forms to Navigation pane.
    Actually it is better to create 2 codeunits that set the correct filters and then call the form. This way you only need to maintain 1 form.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • DenSterDenSter Member Posts: 8,304
    DenSter wrote:
    Filters are defined in the form properties, you don't need any code for that.
    but you need to create two forms and define the filters and that forms to Navigation pane.
    If you are going to create two forms, there is absolutely NO reason to write any code in the OnOpen trigger to set filters. In that case it is better to define the filters in the form properties.
  • garakgarak Member Posts: 3,263
    take a look to the "send to Shortcut" / "send to Desctop" option. this created URL you can embed in the Menusiute if you open the MS 90 in Textmode.
    Do you make it right, it works too!
Sign In or Register to comment.