IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Help with leading zero's Options · View
furrelkt
Posted: Thursday, May 9, 2013 11:15:43 PM
Rank: Newbie

Joined: 5/3/2013
Posts: 4
Location: CA
Hello Guru's,

I need some help please. I need my xml to output leading zeros. I created a doc the shows what i am attempting to do. Please see doc for my issue.

Any help would be greatly appreciated!!! :-)

Sincerely,
Keri

File Attachment(s):
Altova Mapforce_help.doc (32kb) downloaded 354 time(s).


ultrabeet
Posted: Friday, May 10, 2013 7:48:22 AM
Rank: Advanced Member

Joined: 8/19/2012
Posts: 149
Location: Ireland
Hi Keri,

Have you tried this?


ultrabeet attached the following image(s):
capture.jpg

furrelkt
Posted: Friday, May 10, 2013 3:14:42 PM
Rank: Newbie

Joined: 5/3/2013
Posts: 4
Location: CA
ultrabeet wrote:
Hi Keri,

Have you tried this?


Hello ultrabeet,

Thank you for your reply. I am trying your suggestion. The Constants I am having trouble with.

please see attached docx

Thank you so much!!

File Attachment(s):
Altova Mapforce_ultrabeet.docx (50kb) downloaded 292 time(s).


ultrabeet
Posted: Saturday, May 11, 2013 9:38:03 PM
Rank: Advanced Member

Joined: 8/19/2012
Posts: 149
Location: Ireland
Hi furrelkt,

Maybe this will shed you some light... Though I think there is enough info in the help


ultrabeet attached the following image(s):
capture.png

furrelkt
Posted: Monday, May 13, 2013 2:20:44 PM
Rank: Newbie

Joined: 5/3/2013
Posts: 4
Location: CA
ultrabeet wrote:
Hi furrelkt,

Maybe this will shed you some light... Though I think there is enough info in the help


That is exactly what i have :-). However, it is still not formatting correctly.

The xls format is number coming in, and i have tried custom or I can make it a string (what do you suggest?).

For some reason this just isn't coming out correctly. Again, thank you for your help and suggestions.

File Attachment(s):
Altova Mapforce_help1.doc (83kb) downloaded 277 time(s).


vlad
Posted: Monday, May 13, 2013 3:01:08 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
You should have said initially that your target file is Excel.

As you can read in documentation, MapForce doesn't support formatting in Excel - things like bold, italic, number or date formatting - this all has to be done externally, not in MapForce. MapForce can only output data in Excel.

There is only one possibility to make number output formatted with leading zeros in Excel - if you define your output cells to be strings and not numbers. In this case the text will be taken as is. This means though that you cannot use such numbers in Excel calculation, so presentation will be fine, but it might be not what you are looking for.
furrelkt
Posted: Monday, May 13, 2013 3:14:14 PM
Rank: Newbie

Joined: 5/3/2013
Posts: 4
Location: CA
vlad wrote:
You should have said initially that your target file is Excel.

As you can read in documentation, MapForce doesn't support formatting in Excel - things like bold, italic, number or date formatting - this all has to be done externally, not in MapForce. MapForce can only output data in Excel.

There is only one possibility to make number output formatted with leading zeros in Excel - if you define your output cells to be strings and not numbers. In this case the text will be taken as is. This means though that you cannot use such numbers in Excel calculation, so presentation will be fine, but it might be not what you are looking for.


Actually in my doc, I did say that the source was xls. (Xls - 0003165) and a pic of the xls column :-)

Thank you for your reply. I did however try the format as string in xls. I get the same results. I will keep playing around with this.

Thank you so very much for the suggestion.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.