Alexander Neuber wrote:
> The original global:
> ^BL({Site},{Type of Invoice},{Year},Number})={InvoiceSymbol}
> _$c(96)_{InvoiceDate}_$c(96)_{CustomerId}_$c(96)_{CurrencyId} ...
>
> The mapping:
> <Data name="CompanyId">
> <RetrievalCode>Set {CompanyId}=
> {L1}_"||"_(+$p($g(^BL({L1},{L2},{L3},{L4})),$C(96),3))
> </RetrievalCode>
> </Data>
That doesn't appear to match up.
Piece 3 is {CustomerId} not {CompanyId}.
> <Data name="CurrencyId">
> <RetrievalCode>Set {CurrencyId}=
> {L1}_"||"_$p($g(^BL({L1},{L2},{L3},{L4})),$C(96),4)
> </RetrievalCode>
> </Data>
> <Data name="FileNumberId">
> <RetrievalCode>Set {FileNumberId}=
> {L1}_"||"_$p({L6},".",1)_"||"_(+$p({L6},".",2))
> </Data>
>
> For all Id's I have to add the Site {L1} information.
> When I save it, I need it without the Site.
Where is your mapping for that?
Perhaps we can put $P({L1},"||",2,9) in there.