Productive Computing, Inc. Support Forum

Plug-ins => FM Books Connector => Topic started by: Daniel on November 03, 2015, 04:55:34 AM

Title: Unable to parse Response
Post by: Daniel on November 03, 2015, 04:55:34 AM
I'm trying to get an EditSequence with

PCQB_RsGetFirstFieldValue ( "EditSequence" )

but nothing is returned.

Attached is my PCQB_SGetXML ( "Response" )

Any suggestions?
Title: Re: Unable to parse Response
Post by: Paul Dacanay on November 04, 2015, 02:42:45 PM
For an example of how to get the EditSequence, see the script within the PCQB_Demo demo file:
"Get Customer Edit Sequence__ExistingSession"

Note how the script has an "IncludeRetElement" call (see screen shot).


Thanks for using our plug-in!
Title: Re: Unable to parse Response
Post by: Daniel on November 04, 2015, 06:24:23 PM
Thanks Paul.

That was it.
Title: Re: Unable to parse Response
Post by: Geoffrey Gerhard on November 05, 2015, 08:59:13 AM
Can you elaborate? I would expect PCQB_RsGetFirstFieldValue ( "EditSequence" ) to return the value, given that it was contained in the original Response. Why was it necessary to include it as a RetElement in your Request? Doing so filters out all elements of the Response that were not among the RetElements of the Request.

Geoffrey Gerhard
Creative Solutions Incorporated
14000 Creekside Drive
Matthews, NC  28105
704) 814-6852