Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Fixing my code for a VBA in Dynamics

Posted on 2011-02-19
5
Medium Priority
?
401 Views
Last Modified: 2012-05-11
when should I update my code to save my custom field located on the RMAEntry update window. not in the grid but a field that is located on the top part of the window. and this field is saved in one of my custom table
0
Comment
Question by:taverny
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:Abdulmalek_Hamsho
ID: 34933862
SaveButton_BeforeChange event.
0
 

Author Comment

by:taverny
ID: 34933936
I thought about putting the code there but apprently we don't need to click the save button to save my information , I can use the next or previous record button and it will do the same things. so I will have to put my code in every different instence of every buttons
0
 
LVL 10

Expert Comment

by:Abdulmalek_Hamsho
ID: 34935125
You're right. Unfortunately, the form calls a Dexterity procedure called "SaveRecord" which saves the trx, and Dex procedures cannot be overloaded with Pre or Post events, so you need to track the user's clicks on the navigation buttons in the window footer, and the Save button. Not to forget the Close button also, which is the Window_BeforeClose event.
0
 
LVL 10

Accepted Solution

by:
Abdulmalek_Hamsho earned 2000 total points
ID: 34935142
Why don't you save the field once the user leaves the field Field_LostFocus?
0
 

Author Comment

by:taverny
ID: 34935231
Well in the way that's what I have right now , so maybe I should leave it this way , but write the proper code for the delete. my concern was for the delete option or the actually clear button which will clear the form. I guess I leave it there for now and we will see what is going on on the delete part.
Thanks
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part II
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question