Search results

  1. J

    Question "OUTPUT TO" -> path of location where the file needs to be saved is on a different server

    Hello I second @Cringer, and more if it is a lot of data: this will take some time and you could have a (even small) network outage in the middle. It would be more robust to generate it locally, then copy it over. If something fails later on, it will be easier to see where the problem is coming...
  2. J

    Question Question on progress procedure mode

    Hi Can't you stop the pstimer during the process? You stop it at the beginning of 1, then restart it at the end of 2. no?
  3. J

    Answered Performance issue with use of -cpinternal UTF-8 startup parameter

    Hi Does this help to do FIX-CODEPAGE ( EncodedData) = "ISO8859-1". before anything else? Base64 encoded fits in ISO8859-1 so this could work. Regards JC
  4. J

    Counting All Characters in a String

    Hi Hassam Try the LENGTH() function, it is what you are searching for. ++ JC
  5. J

    Answered Way of code

    Hello Are you going to use PASOE or Appserver classic? This would be the logical step to take, you would then be able to progressively migrate your business logic to the appserverand even reuse it from other places, like a web app. On the Appserver I use PLIPs (procedures librairies) and...
  6. J

    REST and WEB Transport

    Hi anonymous forum member REST transport is much more limited than WEB; you can only have text/json in the body of the web messages. It may be simpler to implement because it is less low level than WEB; but you can create your own REST web handler once and reuse it for all of your endpoints...
  7. J

    Longchar and substring

    Hi In the second substring you are tryiong to store 40.000 characters in the CHARACTER variable, hence the error. I believe you want to store only 20.000, from 20.001 to 40.000, if this is the case: assign lv_short = substring(lv_long,20001,20000). ++
  8. J

    Color Picker - OCX

    Thanks indeed :) Very interesting! Let me share my findings also: if you want to set / open the colour picker with a particular colour, do: DEFINE VARIABLE oColor AS System.Drawing.Color. oColor = System.Drawing.Color:fromArgb(255, 0, 0). /* R, G, B values */ colorDialog1:color = oColor...
  9. J

    PDFInclude Barcode Code 128

    There is no smiley for "blush" else I would use it :) Many thanks guys, and many thanks @davissix !
  10. J

    PDFInclude Barcode Code 128

    Hello Code 128 requires some coding, and you can choose between 3 tables A, B and C to output the most compact code possible (else the barcode might be too wide to scan correctly, or just fit where you intend to). Then you add the checksum, but this is the easy part ;) You must be able to find...
  11. J

    Answered Variable length encoding - 'C' code converted into ABL

    Glad it helped :) It was a nice little exercise to end the day :)
  12. J

    Answered Variable length encoding - 'C' code converted into ABL

    Something like that? DEFINE VARIABLE i AS INTEGER NO-UNDO. DEFINE VARIABLE iByte AS INTEGER NO-UNDO. DEFINE VARIABLE iEncodedByte AS INTEGER EXTENT 4 INITIAL -1 NO-UNDO. DEFINE VARIABLE iMultiplier AS INTEGER NO-UNDO. DEFINE VARIABLE iValue AS INTEGER INITIAL...
  13. J

    PDFINCLUDE

    Hi Thiago You are using a very old version of pdfInclude. The support for existent pdfs is not good is the old version, and has since been completely rewritten. The old version can load existent pdf files, but is not compatible with any possible pdf. In fact it is compatible with very few pdf...
  14. J

    How to convert Json Memptr to JsonObject

    Hello, As per Progress KB - What is the maximum size limit for the CLOB, BLOB and LONGCHAR data types? the limit for LONGCHAR is 1Gb, are you sure your JSON is larger than that? If this is the case then I'm not sure JSON is very adapted for what you are doing... Regards JC
  15. J

    barcode 128

    Hello Where do you want to put a code 128? On screen? Onto a pdf file? Other? The solution depends on your needs. Regards JC
  16. J

    ABL DatePicker

    Hello This is great! And would be worth a github repo :) ++ JC
  17. J

    Resolved Command to Write into a PDF Template

    Hello I would recommend pdfInclude (pdfInclude pdf generation framework for Progress OpenEdge), a framework developped in 4GL/ABL, available with the source, which enables all sorts of pdf manipulation. And compatible with Linux, Unix, Windows. Filling a template is among them. Regards JC
  18. J

    Does anyone have a Calendar (date-picker) example?

    If I'm not mistaken this is only a matter of translating the months, i.e. replace ["Ocak","Þubat","Mart","Nisan","Mayýs","Haziran","Temmuz","Aðustos","Eylül","Ekim","Kasým","Aralýk" ] by the months in your language, e.g. "January","February",etc. And for the rest AFAIK Turkey has the same...
  19. J

    Does anyone have a Calendar (date-picker) example?

    Are you looking for this? http://www.oehive.org/project/DatePicker
  20. J

    base64 HMAC Generation

    the 2 following lines give the same result: MyHashCode = MESSAGE-DIGEST("SHA-256", "Hello World", "simplesecret"). /* Returns a raw */ MyHashCode = MESSAGE-DIGEST("SHA-256", "Hello Worldsimplesecret"). /* Returns a raw */ i.e. el "hask key" is concatenated after the input text. MESSAGE-DIGEST...
Top