Search results

  1. Stefan

    RequestBuilder Assistance

    The HttpHeaderBuilder is registering headers named Authorization with the AuthorizationHeaderBuilder class, which invokes the AuthorizationHeader class which contains the check on the value. You may be able to override this registry entry with the DefaultHeaderBuilder, but I have no experience...
  2. Stefan

    RequestBuilder Assistance

    Your error is originating from the AuthorizationHeader class. In the cases I have come across, the authorization header has always been a combination of the type of authorization followed by the value, for example: Bearer <sometoken> Which is reinforced by the specification at Authorization...
  3. Stefan

    How to replace entire occurence of a character.

    Will only replace the first occurrence.
  4. Stefan

    Resolved Static or Dynamic

    You have a hammer and a screwdriver in your toolbox - use whichever is appropriate for the job at hand.
  5. Stefan

    Resolved Static or Dynamic

    Dynamic code is slower than static code, throws run-time errors instead of compile-time errors and can easily leak memory if you are not cleaning up after yourself. But, it does allow you to execute actions dynamically so you can have one class / procedure / function performing similar on for...
  6. Stefan

    How to replace entire occurence of a character.

    Feel free to call something this simple, totally buggy. :-) Updated, thanks.
  7. Stefan

    How to replace entire occurence of a character.

    Please use code tags for code. Instead of looping through entries yourself, let the replace function do the work: function myReplace returns character ( i_csource as char, i_cfrom as char, i_cto as char ): def var cresult as char no-undo. def var csep as char no-undo...
  8. Stefan

    How to remove duplicate values in a string

    A temp-table named unique without a unique index and some find firsts... <shudders>
  9. Stefan

    Import XML into Database Table - XML Has Some Multiple Values Per Field

    As mentioned in one of your references, you need an extent. the.xml: <row> <one>foo</one> <one>bar</one> </row> the.p: define temp-table ttrows serialize-name 'row' field one as char extent 2 . temp-table ttrows:read-xml( "file", "the.xml", ?, ?, ? ). define buffer burow for...
  10. Stefan

    Trouble getting soap call right

    What's surprising me is that what they expect contains an undeclared namespace'. You can get quite far with abusively massaging a dataset to give you what you need, in this case you can use: DEFINE TEMP-TABLE OrderRows NO-UNDO XML-NODE-NAME "OrderRows" FIELD Order_recid AS RECID...
  11. Stefan

    Trouble getting soap call right

    What does your dataset look like? It looks like the soapenc namespace declaration is missing. Googling soapenc pops up: wsimport "Cannot resolve the name..."
  12. Stefan

    How do I/can I export data like parts into an Excel document?

    Coding in a browser again... ** Unable to understand after -- "export whatever". (247) ** Item must be expression, SPACE phrase, or SKIP phrase. (406)
  13. Stefan

    Create a table using a variable?

    Import works on a static buffer handle. There is no import method for a dynamic buffer handle. If the site where you need to run the load has a compile license available, then you can use run time compile time or whatever they are called arguments {1}. Depending on how large your datasets are...
  14. Stefan

    Question Min and Max Date range that we can enter to progress DB

    Be aware that while date limits allow a very large range of dates. They are not really correct before the calendar was standardized . See for example: def var dt as date initial 9/3/1752. message iso-date( dt ) skip iso-date( add-interval( dt, 1, "day" ) ) skip iso-date( dt + 1 )...
  15. Stefan

    Question Min and Max Date range that we can enter to progress DB

    https://documentation.progress.com/output/ua/OpenEdge_latest/index.html#page/dmadm/data-types-and-values.html When you enter a two digit date, the century assigned depends on your century year offset startup parameter or session attribute - OpenEdge 11.7 Documentation
  16. Stefan

    Unable to unescape unicode unescape character in string

    u20ac is the euro symbol € - hardly an emoji... but your codepage will need to support it. If it is the 'default' iso8859-1 then you are out of luck, since iso8859-1 does not contain the euro symbol (as you will see if when you adjust my abl dojo snippet which is running in an iso8859-1 session)
  17. Stefan

    Unable to unescape unicode unescape character in string

    Instead of pasting image crap into a word document, you could have made a more reasonable effort, see snippet in ABL Dojo: https://abldojo.services.progress.com/?shareId=5fabf4b746c59e53a5501086 The problem seems to be that db40 is not a valid unicode character - see U+DB40 (see Universal...
  18. Stefan

    BASE64-DECODE with Base64 Encoded Data from WebSpeed.

    Cecil's 1024 comment triggered some digging into src/web/method/cgiutils.i - and then it occurred to me that you mentioned you are passing the data in as query params which may be a problem if your query param is longer than 1024 - see What is the maximum possible length of a query string?
  19. Stefan

    BASE64-DECODE with Base64 Encoded Data from WebSpeed.

    Something like below: do on error undo, throw: lcRawData = get-value("fi_data"). mDecoded = base64-decode( lcRawData ). catch e as progress.lang.error: def var cfile as char no-undo. cfile = session:temp-directory + guid + ".b64". copy-lob from lcRawData to file...
  20. Stefan

    BASE64-DECODE with Base64 Encoded Data from WebSpeed.

    Catch your errors and dump the contents of invalid inputs to a file so that you have something tangible to work with. You seem to be jumping through quite a few hoops. You can post json directly to WebSpeed - see OpenEdge 11.7 Documentation Everything can be converted to base64 - that's the...
Top