Quit, Break, Skip in XMLPort

njhansennjhansen Member Posts: 36
This must be obvious, and I'm just missing it.

How does one call Quit, Break, or Skip in an XMLPort?

The docs clearly state that it is CurrReport.Quit for Reports, DataPorts, and XMLPorts, but the compiler won't seem to take that in an XMLPort (works fine in a report).

I found several references that indicated it should be CurrXMLPort.Quit, but that doesn't seem to work either.

I must be doing something very wrong; I just don't know what it is.

NAV 2009R2.

Text export of a very simple toy example that won't compile:


OBJECT XMLport 50001 test
{
OBJECT-PROPERTIES
{
Date=11/11/11;
Time=[ 7:56:40 PM];
Version List=;
}
PROPERTIES
{
OnInitXMLport=BEGIN
currxmlport.quit;
END;

}
ELEMENTS
{
{ [{E3DAD6F6-B1D2-4818-9817-E4A560E1D026}]; ;item ;Element ;Table ;
SourceTable=Table27 }

}
EVENTS
{
}
REQUESTPAGE
{
PROPERTIES
{
}
CONTROLS
{
}
}
CODE
{

BEGIN
END.
}
}

Answers

Sign In or Register to comment.