I have a problem modifying a sales Invoice Header record via the NAS.
I have a report with the following configuration
Report properties
Permissions : TableData Sales Invoice Header=rimd
Sales Invoice Header - OnAftergetrecord :
"Sales Invoice Header"."Bill-to Name" := '...';
IF "Sales Invoice Header".MODIFY THEN
MESSAGE('OK')
ELSE
ERROR('Shit');
When I run this report via the normal client (with the windows user that runs the NAS) I get OK
When I run it in the NAS I get Shit
I've a NAV 4.0 SP1 on a SQL 2000
Anyone any ID?
0
Comments
did you check your application log? It might give you more information about the reason why you are getting the error.
Regards,
Willy
So take out the MESSAGE and ERROR and try your process again.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
RIS Plus, LLC
MVP - Business Apps
Make sure you are using the customers license and not the Cronus License.
Regards,
Willy
NAS has only probs with Dialog and Confirm (he waiting for someone there press YES for him :-) )
To see why the NAS say ever "shit", change your source form
to
So, if there is an error (maybe a message like "A other user has changed this record after displaying ...") you can see this error in the EventLog of the Windows System.
If you use NAS >= 5 u can also use the function GetLastErrorText (C/AL Symbol Menu -> System -> Error Handling)
Regards
If you want that the NAS can MODIFY that table, you need to give permissions in the object that does it.
Each object has a property "permissions". In this you need to define that the object has permissions to MODIFY table "Sales Invoice Header".
The windows-login of the NAS needs a permission (a full permission or also indirect permission) to change table "Sales Invoice Header".
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!