Plex 2E

Expand all | Collapse all

Create File in XML

Legacy User

Legacy UserDec 23, 2015 02:52 AM

  • 1.  Create File in XML

    Posted Dec 18, 2015 10:16 AM

    Good morning, we need create a file in xml, how can I do it?

     

     

     

     

     

     

    Good day,

    Rolando Flores.



  • 2.  Re: Create File in XML

    Posted Dec 18, 2015 10:38 AM

    more info needed.

     

    do you want to create on a client, do you want to create on a server, do you want to create in the DB etc

     

    What is your client what is your server what is db



  • 3.  Re: Create File in XML

    Posted Dec 18, 2015 11:00 AM

    Hello George, thanks for your answer.

    I am working with Plex 7.00 in Variant Backoffice and AS400, we need create a file XML on a client, similar a create rtf report.

    My db are in SQL Server and AS400, I am using windows7 and windows8.



  • 4.  Re: Create File in XML

    Posted Dec 18, 2015 11:27 AM

    The client is winc or c# or Java, guessing it is a desktop applicatio?



  • 5.  Re: Create File in XML

    Posted Dec 18, 2015 11:31 AM

    How big is the xml file.

     

    this determined how you will format the doc...small enough just to use  format message and parameters or adding line by line ?



  • 6.  Re: Create File in XML

    Posted Dec 18, 2015 11:37 AM

    The file xml is small. Is a accounting voucher.



  • 7.  Re: Create File in XML

    Posted Dec 18, 2015 11:34 AM

    The client is WinC.



  • 8.  Re: Create File in XML

    Posted Dec 19, 2015 04:13 AM

    see     StellaTools.Abstract.OBJECTS.PCFile.Create&Write._Sub     download from Downloads - Stella Tools (CA Plex Developer Tools)

     

    Use a message to format the XML content with parameters as it is a small file

     

    CreateFile.png



  • 9.  Re: Create File in XML

    Posted Dec 20, 2015 08:31 PM

    Hi George,

     

    Hope you are doing well.

     

    Just checking, if there is any work on Plex/Websydian ?

     

    I have over 10+ years of exp in CA:Plex , which includes 4 years using

    Websydian and majority of it on iSeries. and recent few years on MS SQL

    server..

     

    Thanks

    --

    Regards

    Ashfaq Ahmed

    +91-90368-47586

     

     

    On Sat, Dec 19, 2015 at 2:43 PM, GeorgeJeffcock <



  • 10.  Re: Create File in XML

    Posted Dec 21, 2015 02:34 AM

    Hi Ashfaq,

     

    Sorry same boat as you, I have been looking for the last 3 months as I have finished my assignment. Gave myself 3 months to find something in Plex, if something comes along in the coming years in Plex then great but as of 2016 I am forced to put my energies into building a new skill set and in all probability when I manage to carve out a new career it would be ill advised to go back to Plex...

     

    Good Luck.



  • 11.  Re: Create File in XML

    Posted Aug 16, 2017 11:03 AM

    Hi there George,

     

    What suggestions do you have for large XML files handled with PLEX on iSeries?

     

    I am working on development of an XML Pattern to generate Excel XML and the files will likely be very large. 

     

    Knowing there are limitations with formatting via Messages, what alternatives do you know of? Maybe using Labels or Source Code objects?

     

    I am defining my functions as RPGIV, in case this matters.

     

    Any tip is greatly appreciated,

     

    Lucio

    PLEX WORLD



  • 12.  Re: Create File in XML

    Posted Aug 16, 2017 01:14 PM

    The trick is to create a work table on the ibmi with only one column and build the xml file there as records per row. that is how I have done it before...let me look at some examples next week...sorry can't be any quicker as away from my 'Plex' PC



  • 13.  Re: Create File in XML

    Posted Aug 16, 2017 01:18 PM

    Thanks George for the prompt reply and idea, this certainly sounds like a good possibility.

     

    If you can get / share some examples that would be fantastic.


    Thanks again,

     

    Lucio

    PLEX WORLD



  • 14.  Re: Create File in XML

    Posted Dec 23, 2015 02:52 AM

    finally solved, Rolando?



  • 15.  Re: Create File in XML

    Posted Dec 23, 2015 11:19 AM

    Hello, sorry for the delay in answer, we had ISO 9001 audit and could not answer. I'll try the code and I inform you the results .

     

    Thanks George by the code.

     

    Good day.