Hi,
how hide the OpenFileDialog when run a XMLPort? I give the right path and filename to the currXMLport.FILENAME properties in the OnInitXMLport() trigger. Is there a way to solve this problem?
Hi,
how hide the OpenFileDialog when run a XMLPort? I give the right path and filename to the currXMLport.FILENAME properties in the OnInitXMLport() trigger. Is there a way to solve this problem?
Hi ,
IF you run it from another object eg. a report , it wont show up.
g
Hi,
I open the XML-Port in a codeunit with this line:
XMLPORT.RUN(50004, FALSE);
Here is the same problem.
Declare the XMLPort as a variable and refer to that.
here is an example :
OBJECT Report 51000 xmlt
{
OBJECT-PROPERTIES
{
Date=14.01.29;
Time=13:26:06;
Modified=Yes;
Version List=;
}
PROPERTIES
{
}
DATAITEMS
{
{ PROPERTIES
{
DataItemTable=Table2000000026;
DataItemTableView=WHERE(Number=CONST(1));
OnPostDataItem=BEGIN
f.CREATE(‘c:\temp\a.xml’);
f.CREATEOUTSTREAM(out);
IF recITEM.GET THEN
xmlP.SETTABLEVIEW(recITEM);
xmlP.SETDESTINATION(out);
xmlP.EXPORT ;
END;
}
SECTIONS
{
{ PROPERTIES
{
SectionType=Body;
SectionWidth=12000;
SectionHeight=846;
}
CONTROLS
{
}
}
}
}
}
REQUESTFORM
{
PROPERTIES
{
Width=9020;
Height=3410;
}
CONTROLS
{
}
}
REQUESTPAGE
{
PROPERTIES
{
}
CONTROLS
{
}
}
CODE
{
VAR
xmlP@1102910000 : XMLport 8002;
out@1102910001 : OutStream;
f@1102910002 : File;
recITEM@1102910003 : Record 27;
BEGIN
END.
}
RDLDATA
{
}
}
Hello,
thank you very much for your work. Worked great…