Author Topic: Unable to parse Response  (Read 921 times)

Daniel

  • Member
  • *
  • Posts: 11
Unable to parse Response
« 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?

Paul Dacanay

  • Global Moderator
  • Member
  • *****
  • Posts: 47
Re: Unable to parse Response
« Reply #1 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!

Daniel

  • Member
  • *
  • Posts: 11
Re: Unable to parse Response
« Reply #2 on: November 04, 2015, 06:24:23 PM »
Thanks Paul.

That was it.

Geoffrey Gerhard

  • Guru
  • Member
  • ****
  • Posts: 468
Re: Unable to parse Response
« Reply #3 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