I see a code made by Microsoft and try to adapt to my Page Action.
IF ISSERVICETIER THEN
FileName := RBMgt.EnvironFileName('','xml');
IF FileName = '' THEN
ERROR(Text1110001);
TempFileName := FileName + '.tmp';
OutputFile.TEXTMODE(TRUE);
OutputFile.WRITEMODE(TRUE);
IF NOT ISSERVICETIER THEN OutputFile.QUERYREPLACE(TRUE);
OutputFile.CREATE(TempFileName);
OutputFile.CREATEOUTSTREAM(OutputStream);
[i][b]xmlport.SetIDFilter("DocNo");
xmlport.SETDESTINATION(OutputStream);
xmlport.EXPORT;[/b][/i]
OutputFile.CLOSE;
IF ISSERVICETIER THEN BEGIN
ToFile := Text1110005;
DOWNLOAD(TempFileName,Text000,'',Text001,ToFile);
MESSAGE(Text1110000,ToFile);
END ELSE
MESSAGE(Text1110000,FileName);
CurrPage.CLOSE;
CheckANDModifyFile(TempFileName,FileName);
when the code reach this lines, the RTC client shuts down
xmlport.SETDESTINATION(OutputStream);
xmlport.EXPORT;
Message: The server net.[url=tcp://localhost:7046/DynamicsNAV/Service]tcp://localhost:7046/DynamicsNAV/Service[/url] is either unavailable of your connection has been lost. Do you want to attempt to reconnect?
Comments
Here is a sample link
http://dynamicsuser.net/forums/t/31192.aspx
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
when the code reach this lines, the RTC client shuts down
xmlport.SETDESTINATION(OutputStream);
xmlport.EXPORT;
Message: The server net.[url=tcp://localhost:7046/DynamicsNAV/Service]tcp://localhost:7046/DynamicsNAV/Service[/url] is either unavailable of your connection has been lost. Do you want to attempt to reconnect?
Can you help me?