Kids are awake - I will have to quit for now.

Let the wild rumpus begin!!!







When I am done - I will share it on github -- should be decent eventually.

So far:

-setup a Sinatra app
-setup a simple UI
-got arx file loading working
-found an arx file on my machine
-started a simple parser


A "START" at the parser
lots of things to improve :)


  def parse_arx(arx_file)
    @meta = Hash.new
    counter = 0
    file = File.new(arx_file,"r")
    while (line=file.gets)
      counter = counter + 1
      if (counter == 1) then
        @meta['schema'] = line
      end

      if (counter == 2) then
        @meta['fields'] = line
      end


    end
    
    return @meta  
    
  end
  

Here is the ARX I was playing with.


SCHEMA "AR System Currency Codes"
FIELDS "Active" "Assigned To(4)" "Code Description" "Create Date(3)" "Currency 
Code" "Last Modified By(5)" "Modified Date(6)" "Precision" "Request ID" 
"Status(7)" "Status-History" "Submitter(2)"
FLD-ID 1525 4 8 3 1521 5 6 1522 1 7 15 2
DTYPES ENUM CHAR CHAR TIME CHAR CHAR TIME INTEGER CHAR ENUM CHAR CHAR
DATA 0 "" "Testing Code" 1246312476 "XTS" "Demo" 1246312476 2 "000000000000090" 
0 "1246312476Demo" "Demo" 







-John

On Jul 23, 2011, at 7:26 AM, John Sundberg wrote:


Sounds like a great job for Ruby.


I will see if I can get it done before the kids wake up.
(Can you send me a small ARX file?)


-John


On Jul 23, 2011, at 6:53 AM, Mike Buck wrote:

**

It would be SO good to view ARX files, without having to import to the target 
form, in order see all the data.

Is anyone willing to share a utility, or build one to share, which will parse 
an ARX file and present it in an easy to digest form?

The data could be presented with column headers in notepad for example, or even 
better in Excel (similar to how a CSV file is presented).

This would be a really fantastic tool for code reviews and carry out 
pre-deployment checks.

I really do hope someone is able to help:)

Thanks very much
Mike
_attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_

--
John Sundberg

Kinetic Data, Inc.
"Building a Better Service Experience"
Recipient of:
WWRUG10 Best Customer Service/Support Award
WWRUG09 Innovator of the Year Award

[email protected]
651.556.0930  I  www.kineticdata.com










--
John Sundberg

Kinetic Data, Inc.
"Building a Better Service Experience"
Recipient of:
WWRUG10 Best Customer Service/Support Award
WWRUG09 Innovator of the Year Award

[email protected]
651.556.0930  I  www.kineticdata.com










_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"

Reply via email to