Search:

How To Implement Changes in Code

Overview: This walkthrough shows how to use Implement Changes in Code to update the necessary code in forms and pages to handle Field Level and Data Security.

This step is always part of the initial install of Field Level and Data Security. However, if a new table is later added to Source Table Setups, or if an object has been imported which has overwritten the code in certain forms and/or pages, the FL code must be re-implemented.

Note: The steps can be done in either client. However, the automatic export/import of objects is available only in NAV 2009 SP1 and R2, and only in the Classic Client. Therefore, in NAV 2009 it is easier to execute this step from the Classic Client, because the Implement Changes in Code function does the export, code changes and import of objects automatically.

The manual method for other NAV versions and for RTC will be explained below as well.

A partner/developer license is required for this process due to the export/import of objects in text format.

NAV 2009 SP1 and R2 only, Classic Client method

1) It may be a good idea to first verify your Source Table Setups. If anything needs to be added, this would be a good time to do so.



2) In the Easy Security company, go to Field Level and Data Security Setup. Enter a new file name in Source Code File name. The process will export the necessary objects to this file, implement the code changes in the "-out" file which defaults into the Output File Name, and then it will automatically import those changes.



3) Select Functions, Implement Changes in Code



4) Answer Yes when prompted to import objects



5) The modified objects now need to be compiled. In Object Designer filter on object types Form, Page and Codeunit (F|P|C). Filter on Compiled = No, Date = today. Select all objects and compile.







Note: In pre-2009 versions of NAV, you will use Classic Client but with the manual method described below. Use the "Implement Changes in Code (No Export of Objects)" option under the Advanced menu.



RTC manual method

1) It may be a good idea to first verify your Source Table Setups. If anything needs to be added, this would be a good time to do so.



2) In the Easy Security company, go to Easy Security/Setup/Field Level and Data Security Setup. Source Code File Name should contain the name of a text file containing tables, forms and pages exported from object designer. The file may contain ALL tables, forms and pages, or it may contain only modified objects. The Output File Name is defaulted from Source File Name and a "-out" suffix is added. This is the file where the code changes will be written.

3) Click Functions and click Implement Changes in Code (No Export of Objects)



5) The output file will now need to be imported. In Object Designer select File/Import and enter the Output File Name specified earlier.

6) The modified objects now need to be compiled. In Object Designer filter on object types Form, Page and Codeunit (F|P|C). Filter on Compiled = No, Date = today. Select all objects and compile.







For additional information, please see the following document.
How To develop when Field Level, Actions and Data Security code has been added



Like   Don't Like

© 2024 Mergetool.com. All rights reserved.



Related resources

Download software from Mergetool.com