Been doing Mumps/Caché technology for around 40 years. Started with DSM11 on PDP, then moved to Datatree (a fine product) and them Migrated to Caché when they took over DataTree.
Over the years I have used
- Plain Mumps
- MDM from Hoskyns
- SAT Developer
- My own telnet framework
- CSP
- ZEN for the last 11 years
Along the way I picked up Delphi and Visual Basic and Microsoft Access.
My philosophy has always been to use as few tools environments as possible and concentrate my intellectual efforts on designing, implementing and delivering bespoke business applications.
One of the great things about Mumps was the few commands, functions and syntax you needed to know. The quantity of tools/frameworks/development environments currently available is awesome and fearful.
Thanks for reading
Peter
Hi David
I think this is a feature(?) of the way Javascript and the upload work in any browser - running JS or an upload blocks any UI updating
so it's not possible to do easily or at all - I think
Peter
Hi Davidson
Please note $zf(-1 is now depreciated as of the most recent releases/patches of Caché
The replacement is $zf(100 - but stressing this will only work on the most recent patches
Peter
Hi All
There is another (hidden and undocumented) method
At the top of the class
Include %sqlmgrUtil
And then you have access to a useful macro $$parseString
I find this useful when I need to do some transforms on the csv data rather than just suck the raw data into a class
Code snippit
set oStream =##class(%Library.FileCharacterStream).%New()
set sc =oStream.LinkToFile("somefile.csv")
if sc'=$$$OK break
do oStream.Rewind()
set xDelim=",", xQuote=""""
while 'oStream.AtEnd()
set xLine=oStream.ReadLine(10000)
set xLine=$zstrip(xLine, ">wp")
set x1=$$parseString(xLine, xDelim, xQuote, .arr)
///you now have the individual cells from the csv in the array "arr"
///and you can process/transform them individually
}
Look in %sqlmgrUtil.inc for the definition
Peter