Posted: Wed Jun 18, 2008 2:26 am Post subject: ATTACH/DETACH NOT WORKING
Master
Joined: 03 Jun 2002 Posts: 227
Hi All,
I have the following code:
Quote:
CREATE FIELD OutputRoot.XML.ListedProductStatusMessage;
DECLARE REF REFERENCE TO Environment.Product[CHGDFLDCNT];
SET OutputRoot.XML.(XML.XmlDecl) = '';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XML.(XML.XmlDecl).(XML."Encoding") = 'UTF-8';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Standalone) = 'no';
DETACH REF;
ATTACH REF TO OutputRoot.XML.Product[CHGDFLDCNT] AS LASTCHILD;
This code is throwing exception as below:
Can not attach message from a different message group.
Can someone please tell me waht could be the problem.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum