Options

RTC XMLPorts

RoelofRoelof Member Posts: 377
edited 2012-06-04 in NAV Three Tier
I'm trying to capture the filename AFTER the question how to save the file. I added some code to the OnPostXMLPort Trigger as of: SavedFileName := CurrXMLPort.Filename. Unfortunatley it's not working as expected. It will save the file as the new filename but 'SavedFileName' isn't updated correctly. Any ideas?

Also:
If I have the following code:
XMLFile.CREATE(FileName);
XMLFile.CREATEOUTSTREAM(UseOutStream);
DataXMLPort.SETDESTINATION(UseOutStream);
DataXMLPort.EXPORT;
XMLFile.CLOSE;

I have no option to run the Request form/page.
Any ideas?
Roelof de Jonghttp://www.wye.com

Comments

  • Options
    ufukufuk Member Posts: 514
    FileName returns the value you indicated in the FileName property of XMLPort. So you can't get this value dynamically.
    I think you have to write some code to return the path of the file saved. You can use methods including Common Dialog Management, UPLOAD function or CREATETEMPFILE etc...
    Ufuk Asci
    Pargesoft
Sign In or Register to comment.