![]() |
#1 |
Участник
|
Have you ever had the need to replace some values from a list of values? For example, you need to change the Postal/Zip Code for a number of your customers. Most of the time you would need to write a codeunit or report to accomplish that or even have the customer update each entry by hand. What if you needed to do the same with your vendors? That would require either modifying the previous codeunit/report or possibly just creating a new object to handle this or again having the customer update each entry by hand.
Here is another option – a Replace page that you can add to any page with just a few lines of code. ![]() Fig 1. Replace Page Field Descriptions:
How to implement the page: If you import the attached object text file and follow these steps you will be able to add this to almost any page (at least where it makes sense). For this example I will be updating the Customer List (Page 22). 1. Import and compile the attached object “Replace NAV2013.txt”. 2. Design the Customer Page (21). 3. Add a global variable named Replace and point it to Page 50050 (or whatever you may have changed it to prior to import) ![]() 4. Create a new action. ![]() 5. Go to the OnAction trigger for your new action and add the following code … ![]() 6. Compile your object and you should be ready to use it. How it works:
These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use. Источник: http://feedproxy.google.com/~r/Micro...-nav-2013.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|