vippsupport.xerox.com    Forums  Hop To Forum Categories  - Xerox FF VI Suite Forum-  Hop To Forums  FF VI Suite (VIPP)    xml attribute column printing

Moderators: Carlo Sans, jbouche
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
I have two questions.
First one is how do I get only part of an attribute to print. The attribute is as follows
<DateOfService>2009-09-28T12:00:00</DateOfService>
I only want to print the date 2009-09-28.

Second question is I need to print data in a column. I can get the data to print in the column but it over prints the data.
The xml is like this:
Invoice invoice="01547757" order="">
<Line LineNumber="001">
<DateOfService>2009-06-26T12:00:00</DateOfService>
<Description>LIQUID STATIONARY OXYGEN</Description>
<OutstandingCharges>77.45</OutstandingCharges>
<InsurancePayments>0.00</InsurancePayments>
<PersonalPayments>0.00</PersonalPayments>
<Adjustments>0.00</Adjustments>
<PendingFromInsurance>61.96</PendingFromInsurance>
<BalanceDueByPatient>15.49</BalanceDueByPatient>

I need the <Description> to print in a column .
So far my code looks like this
BTA /Line^DateOfService {0 SVPOS MOVETO } { 245 MOVEH XMLVAL SH} ETA
BTA /Line^Description {300 SETCOLWIDTH SAVEPP } {490 SVPOS MOVETO XMLVAL SHj} ETA
BTA /Line^OutstandingCharges {975 SVPOS MOVETO} { XMLVAL SH } ETA
BTA /Line^InsurancePayments {1200 SVPOS MOVETO} { XMLVAL SHR} ETA
BTA /Line^PersonalPayments {1500 SVPOS MOVETO} { XMLVAL SHR} ETA
BTA /Line^Adjustments {1725 SVPOS MOVETO} { XMLVAL SHR} ETA
BTA /Line^PendingFromInsurance {1975 SVPOS MOVETO} { XMLVAL SHR} ETA
BTA /Line^BalanceDueByPatient {2200 SVPOS MOVETO} { XMLVAL SHR NL NL SAVEPP } ETA

Thanks in advance for any assistance

Lori
 
Posts: 10 | Registered: 01 November 2007Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
1. ^DateOfService 0 (T) GETINTV SH

2. Not sure what you are trying to achieve with SVPOS/SAVEPP. I would rather code something like:

BTA /Line
{}
{ 245 MOVEH ^DateOfService 0 (T) GETINTV SH
490 MOVEH 300 SETCOLWIDTH ^Description SHj
975 MOVEH ^OutstandingCharges SH
1200 MOVEH ^InsurancePayments SHr
1500 MOVEH ^PersonalPayments SHr
1725 MOVEH ^Adjustments SHr
1975 MOVEH ^PendingFromInsurance SHr
2200 MOVEH ^BalanceDueByPatient SHr
NL NL
}
ETA
 
Posts: 1768 | Location: Switzerland | Registered: 04 May 2001Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
quote:
BTA /Line
{}
{ 245 MOVEH ^DateOfService 0 (T) GETINTV SH
490 MOVEH 300 SETCOLWIDTH ^Description SHj
975 MOVEH ^OutstandingCharges SH
1200 MOVEH ^InsurancePayments SHr
1500 MOVEH ^PersonalPayments SHr
1725 MOVEH ^Adjustments SHr
1975 MOVEH ^PendingFromInsurance SHr
2200 MOVEH ^BalanceDueByPatient SHr
NL NL
}
ETA



Thanks for the coding
I will send you a vpc of the project and you will see that the Description is still overprinting.

Thanks
Lori
 
Posts: 10 | Registered: 01 November 2007Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Yes, what you need here is fit-in-width not justification:
490 MOVEH ^Description 300 100 SHmf
If the compression is too much an alternative is to use SHP to wrap the text on several lines:
490 MOVEH ^Description 300 0 SHp
Place it as the last line if you want all other items on the same line.
 
Posts: 1768 | Location: Switzerland | Registered: 04 May 2001Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

    vippsupport.xerox.com    Forums  Hop To Forum Categories  - Xerox FF VI Suite Forum-  Hop To Forums  FF VI Suite (VIPP)    xml attribute column printing