Hi
I have create the new button “NewCustomer” (Form to create customer with added functionality) and added this in the "CustTable" form by creating CustTable extension which points to menu item “CustomerquickCreate” (disabled in form extension). When user click New button, my menu item called perfectly but when user clicks "Alt+N" its calling old menu item “CustomerquickCreate”. Can any one suggest me how we can solve this.
Thank you in Advance !
*This post is locked for comments
Please close the thread by marking the reply (replies) forming the answer.
Hi,
We can set the "newRecordAction" property of the design by creating event for the "OnInitialized" method of the form.
[FormEventHandler(formStr(CustTable), FormEventType::Initialized)]
public static void CustTable_OnInitialized(xFormRun sender, FormEventArgs e)
{
sender.design(0).newRecordAction("NewButton");
}
Thank you
If you must use a custom button, you have to follow my answer. You have to choose whether you want give up your requirement or extensions.
Of course, there is a chance that your business requirement can be implemented by some technical solution that works with extensions, unlike your current design with adding a button. But I can't give you any advice until you explain what business requirement are you trying to implement.
Maybe you can keep the button in place and simply extend the form with form extensions or so.
Hi,
Thank you, CustTable extension Form design property "New Record Action" is disabled,so I cannot set the new button. so is there any other way we can achieve this.
Thank you
You would have to change New Record Action property of the form to point to your new button.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156