Question
Societe Generale
IN
Last activity: 17 Jul 2017 9:58 EDT
How to use value group property in Parse XML
I could not parse the request XML into value group form in Clipboard.
Could any one help on this.
Below is the request i am sending. Please correct my request content if i am wrong.
<?xml version="1.0"?>
<!--Generated by Ascential Software Corporation, DataStage - XMLOutput stage - Fri Aug 21 19:21:55 2015 -->
<defns:Request xmlns:defns="http://www.example.org/Model">
<defns:ValueGroup defns:ID="A">ValueGroup1</defns:ValueGroup>
<defns:ValueGroup defns:ID="B">ValueGroup2</defns:ValueGroup>
<defns:ValueGroup defns:ID="C">ValueGroup3</defnsValueGroup>
</defns:Request>
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Which version of PRPC you are using? In 7.1, Value List and Value Group property types are deprecated as they are not operable in data transforms. Instead, it is suggested to use Page List and Page Group property types (of page class SingleValue-<Type>).
In this case, mapping can be achieved by configuring Parse XML rule with Page Group property of SingleValue-Text page class and denoting ID node as group subscript.
Societe Generale
IN
Thanks for your response Sekhar,
Current PRPC version is 7.1.6.
I will try your suggestion.
Could you please provide me any reference document how to configure the page group property in parse xml and the way request should be. Thanks in advance.
See if it is helpful : https://pdn.pega.com/forums/integration/how-parse-xml-and-map-value-pagegroup-v6
Page Group property mapping configuration in Parse XML rule is akin to a Page List property mapping configuration. Additionally, you can choose any one of the child nodes as group subscript.
Societe Generale
IN
Realized that Page List property of page class SingleValue-<Type> is direct substitute for Value List. But in case of Value Group we need Page Group property with page class extending SingleValue-<Type> class. This extension class holds a place holder property for subscript.
Below are the working configuration details for the sample XML shared :
Realized that Page List property of page class SingleValue-<Type> is direct substitute for Value List. But in case of Value Group we need Page Group property with page class extending SingleValue-<Type> class. This extension class holds a place holder property for subscript.
Below are the working configuration details for the sample XML shared :
Marked ID attribute node as Group Subscript and below is the mapping results:
Societe Generale
IN
Thanks for your time Chandra,
Without extending the SingleValue-<Type> class also it is working. The problem is with the request xml which i am sending.
<defns:AttributePageGroup defns:ID="A">
I'm glad that it worked after unqualifying the ID attribute for namespace, without extending SingleValue-<Type> class.
Coforge DPA Australia Pty Ltd
AU
Hi, I am not able to set values into pyWorkParty page group by using ParseXML. It creating multiple pages with incorrect subscripts. Please refer attached parse xml screenshots and response of it. Please help in this.
Pegasystems Inc.
US
@Sreeniki you seem to be posting this reply to multiple posts (I saw it at https://pdn.pega.com/community/product-support/question/how-parse-xml-and-map-value-pagegroup-v6).
If you are trying to get your question attended to, I suggest removing the comments and starting a new post with as much input, output, and configuration information as possible.
Pegasystems Inc.
IN
Hi,
@HOULJ- Rightly said, thank you for suggesting user to create a new thread which will attract better visibility for their queries.
@Sreeniki - click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
We have also sent you a private message opening up a communication channel in case you have any further questions.
Thanks!
Coforge DPA Australia Pty Ltd
AU
I created new post - https://collaborate.pega.com/question/how-parse-xml-and-map-page-group
Pegasystems Inc.
US
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.