Author |
Message
|
sharathn |
Posted: Wed Apr 27, 2011 7:01 am Post subject: DECLARE outrefDR REFERENCE TO |
|
|
Newbie
Joined: 27 Apr 2011 Posts: 2
|
DECLARE outrefDR REFERENCE TO OutputRoot.XMLNSC.Data_Record is not creating child automatically. I have to use CREATE LASTCHILD OF to create a child and pass the data. Do any one have any idea why the declare statement is not creating child.
Thanks in advance
Sharat
Version: 7.0.0.1
Build id: 7.0.0.1-20100630_0750 |
|
Back to top |
|
 |
kimbert |
Posted: Wed Apr 27, 2011 7:14 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
What made you expect that it would auto-create the target of the reference? Are you getting confused between SET and DECLARE?
Either way, please do not post again until you have read the infocenter pages for SET and DECLARE. |
|
Back to top |
|
 |
sharathn |
Posted: Wed Apr 27, 2011 8:08 am Post subject: |
|
|
Newbie
Joined: 27 Apr 2011 Posts: 2
|
Sorry for not being clear in question.
DECLARE outref REFERENCE TO OutputRoot.XMLNSC;
DECLARE outrefDR REFERENCE TO outref.Data_Record;
SET outrefDR = '123';
Gave me OutputRoot
Properties 123 |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Apr 27, 2011 8:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
And please indicate what your reading of the Infocenter pages on SET and DECLARE indicates in relation to this problem.
You have already been told everything you need to know about this problem, so please demonstrate that you have read the necessary documentation and that your issue is not as simple as it appears. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Apr 27, 2011 10:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20763 Location: LI,NY
|
sharathn wrote: |
Sorry for not being clear in question.
DECLARE outref REFERENCE TO OutputRoot.XMLNSC;
DECLARE outrefDR REFERENCE TO outref.Data_Record;
SET outrefDR = '123';
Gave me OutputRoot
Properties 123 |
What is the value of LASTMOVE(outrefDR) before doing the SET?
What happens when you reference a non existing leaf?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|