ERROR - Sorry, this action is not available for the online version of the app

navisionerinnavisionerin Member Posts: 161
Hello nav experts, i am getting the following when executing this code
My guess is saveasword or download to file dont work but wont able to find ti for ages now.. any ideas?

IF CONFIRM('Preview all records?') THEN BEGIN
...some code....
IF table2.FIND('-') THEN REPEAT
_servertempFileName := _FileMgt.ServerTempFileName('DOCX')
_clienttempFileName := _FileMgt.ClientTempFileName('DOCX');
table3.SETRANGE(ID,table2.ID);
REPORT.SAVEASWORD(table2."Report 1",_servertempFileName,table2);
_FileMgt.DownloadToFile(_servertempFileName, _clienttempFileName);
_FileMgt.DeleteServerFile(_servertempFileName);
HYPERLINK(_clienttempFileName);
UNTIL table2.NEXT = 0;

table2.SETRANGE(Template", TRUE);
IF table2.FIND('-') THEN REPEAT
_servertempFileName := _FileMgt.ServerTempFileName('DOCX');
_clienttempFileName := _FileMgt.ClientTempFileName('DOCX');
table3.SETRANGE(ID,table2.ID);
REPORT.SAVEASWORD(table2."Fitax Report 2",_servertempFileName,table2);
_FileMgt.DownloadToFile(_servertempFileName, _clienttempFileName);
_FileMgt.DeleteServerFile(_servertempFileName);
HYPERLINK(_clienttempFileName);
UNTIL table2.NEXT = 0;
MESSAGE('Complete.');
END ELSE BEGIN
ERROR('Cancelled.');

yk6qdeml7bqi.png

Answers

Sign In or Register to comment.