XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Daniel HuesmanSubject: Allow negative values in Telco D.0 B1Q ~ typeDV elements
Author: Daniel Huesman
Date: 13 Nov 2013 04:00 PM
Would anyone have suggestions on how to best do the above using the StylusStudio product?

Postnext
Ivan PedruzziSubject: Allow negative values in Telco D.0 B1Q ~ typeDV elements
Author: Ivan Pedruzzi
Date: 13 Nov 2013 04:08 PM
Hi Daniel,

Could you share an example of your Telco data?

If you don't want post here, use stylussupport@ivitechnologies.com

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
Daniel HuesmanSubject: Allow negative values in Telco D.0 B1Q ~ typeDV elements
Author: Daniel Huesman
Date: 13 Nov 2013 04:16 PM
Here's a snippet I'm allowed to share:

- <S050206>
<S05020601>07</S05020601>
<S05020602>-9.28</S05020602> <-- CHALLENGE
</S050206>


This is withing a B1Q payload:

<TELCO>
- <B1Q>

</B1Q>
</TELCO>

Postnext
Ivan PedruzziSubject: Allow negative values in Telco D.0 B1Q ~ typeDV elements
Author: Ivan Pedruzzi
Date: 13 Nov 2013 11:38 PM

Attached here you can find a SEF file (telco.sef), we have created using the Stylus Studio EDI to XML editor which overrides the DV definition.
Also the sample telco-D0-b1q.telco we used for testing.

To incorporate the sef file use the converter URL parameter user=<path to sef file>

Inside your XQuery code you can do

declare option ddtek:serialize "method=EDI,user=file:///c:/telco.sef";

Does it help?



Ivan Pedruzzi
Stylus Studio Team


Documenttelco-D0-b1q.zip

Postnext
Daniel HuesmanSubject: Allow negative values in Telco D.0 B1Q ~ typeDV elements
Author: Daniel Huesman
Date: 14 Nov 2013 07:31 AM
Ivan,

It looks as though you changed from the default to AN min 1 max 8. Is this all you did? The out of the box seems to be a sumeric restriction to referenced to a decimal base type. I've considered this, I just didnt know if it was the best way to handle. Thanks for the idea.

Postnext
Ivan PedruzziSubject: Allow negative values in Telco D.0 B1Q ~ typeDV elements
Author: Ivan Pedruzzi
Date: 14 Nov 2013 10:46 AM
Daniel,

We are investigating the issue further, please standby.

Type decimal it's supposed to accept negative values but it may require a peculiar character representation.

We will reply as soon as we have news.

Thanks for your help
Ivan Pedruzzi
Stylus Studio Team

Posttop
Daniel HuesmanSubject: Allow negative values in Telco D.0 B1Q ~ typeDV elements
Author: Daniel Huesman
Date: 14 Nov 2013 10:53 AM
Just to give you a heads up, while the SEF change was a very simple change, yes we're still having the same error when converting to EDI.

The report is:

[DDEE0012] ERROR Invalid character in numeric value "-9.28" (explicit decimal found in implicit numeric element) Dialect: TELCO Version: D.0 Message: B1Q Segment: S05 (segment 8) Position: S05020602 Repetition2: 2 Element: DV: Other Payer Amount Paid Value: "-9.28" In X12, the N0 to N9 types are "implicit" decimal types, meaning that the decimal itself is not in the data but is implied by the datatype. In this case, an explicit decimal was found. Consider changing the datatype to "r" for an explicit decimal type.

I've no idea what's meant by the "r" part of this message.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.