Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Trigger Error

(0) ShareShare
ReportReport
Posted on by 1,502

I am using Trigger_RegisterFocusByName with my product id1234. But when I am using Microsoft original window, this trigger is still working and giving the error : Illegal field". Any idea why this trigger running on core GP as I have registered it with my product id. I am using GP 2010

*This post is locked for comments

  • Suggested answer
    soma Profile Picture
    24,410 on at
    RE: Trigger Error

    Based on my above suggestion, the below code is enough for Save Button trigger of Item Maintenance window.

    l_result = Trigger_RegisterFocus(anonymous( "'Save Button' of window IV_Item_Maintenance of form IV_Item_Maintenance"), TRIGGER_FOCUS_CHANGE, TRIGGER_AFTER_ORIGINAL, script test);

    if l_result <> SY_NOERR then

    warning "UPP Save Custom Reference Field GL Transaction Window.";

    end if;

    Hope this helps!!!

  • Suggested answer
    soma Profile Picture
    24,410 on at
    RE: Trigger Error

    The Item Maintenance window is standard GP window. It does not mean the Item Maintenance window is part of your product even this window is modified by your product. It always GP standard window. So, you must choose the modified window for Item Maintenance if your product installed in GP. Otherwise do not choose standard Item Maintenance window.

    Hope this helps!!!

  • Wajahat Ali Profile Picture
    1,502 on at
    RE: Trigger Error

    Yes ,IV_Item_Maintenance is part of my chunk. I have added this window because some fields have been added in this form. Once, alternate form is selected trigger are working fine. But when core GP form is selected ,still trigger working and give me an error of illegal fields.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Trigger Error

    Hi Wajahat,

    Soma is correct, Please use above trigger for the particular product dictionary window\form\field.

  • soma Profile Picture
    24,410 on at
    RE: Trigger Error

    Do you have the window IV_Item_Maintenance of form IV_Item_Maintenance in your product 1234? Because this is standard Dynamics GP window.

  • Wajahat Ali Profile Picture
    1,502 on at
    RE: Trigger Error

    It is not happening and even trigger is running with standard Microsoft Dynamics GP window. IN test script, I have just put warning message right now.

    l_result = Trigger_RegisterFocusByName(1234, "'Save Button' of window IV_Item_Maintenance of form IV_Item_Maintenance",

    TRIGGER_FOCUS_CHANGE, TRIGGER_AFTER_ORIGINAL, script test);

    if l_result <> SY_NOERR then

    warning "UPP Save Custom Reference Field GL Transaction Window.";

    end if;

  • soma Profile Picture
    24,410 on at
    RE: Trigger Error

    If you write a Trigger_RegisterFocusByName with your product id1234, it will work only for your product(1234) otherwise it wont work for standard Microsoft Dynamics GP window.

    Can you post your coding for the Trigger_RegisterFocusByName registration? also provide the detail for when you got this error message?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans