I m getting an error,when try to create a automation variable..
Any solution ??
Some code:
IF ISCLEAR(XMLDocIn) THEN
CREATE(XMLDocIn,TRUE,TRUE);
MESSAGE('3');
IF ISCLEAR(RootNode) THEN
CREATE(RootNode,TRUE,TRUE);
RootNode := XMLDocIn.documentElement;
IF FindNodes(RootNode, 's:Body/GenerateWayBillResponse/GenerateWayBillResult',
PointtoHeaderCaption) THEN BEGIN
PointtoHeaderCaption.reset;
PointtoHeaderContent := PointtoHeaderCaption.nextNode;
WHILE NOT ISCLEAR(PointtoHeaderContent) DO BEGIN
WITH LocAPIrequest DO BEGIN
IF FindNode(PointtoHeaderContent,'a:AWBNo',ReturnNode) THEN
IF ReturnNode.text <> '' THEN
AWBNo:=ReturnNode.text ELSE AWBNo:='';
IF FindNode(PointtoHeaderContent,'a:IsError',ReturnNode) THEN
IF ReturnNode.text <> '' THEN
IsErrorInWayBillGen:=ConvertToBoolean(ReturnNode.text);
RootCode is a automation variable of
'Microsoft XML, v3.0'.IXMLDOMNode..
Answers
2. If 3-tier, use .NET instead of automation
From 2016 onwards there's no Automatin variable.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
But 2013R2 ..Should i use DotNet Variable??
So 2013 ->
Always focus on .NET Variable.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/