Recent content by KrisM

  1. K

    Add and read CDATA into and from a XML file

    A simple example of adding CDATA into an xml document: define variable h1 as handle. define variable h2 as handle. define variable h3 as handle. define variable cdata as longchar. cdata = "<?xml version='1.0' encoding='UTF-8'?><request> <Transaction>...
  2. K

    adecomm/_oscpath.p

    Hi, Where can i find source code for adecomm/_oscpath.p (OpenEdge 11.7) ? I need to find out if this program is different from using os-create-dir().
  3. K

    Answered Query performance

    My suggestion that does not need an extra variable: do i = num-entries(listOfStuff) to 1 by -1: ... end.
  4. K

    How long has this been wrong?

    Which is now the AY key.
  5. K

    Progress.Lang.Object GetEntity

    I am only guessing what is needed here. I suppose Matheus has a variable of type Progress.Lang.Object and wants to assign it to a variable of type IHttpResponse. This does not work: define variable vFrom AS Progress.Lang.Object. define variable vTo as IHttpResponse. vTo = vFrom. You need to...
  6. K

    Querying Progress Audit data

    for each _aud-audit-data no-lock where _aud-audit-data._event-context begins ("PUB.Debtor" + chr(6)): ... This simple query is not working as expected, because it also returns results for PUB.DebtorInvoice. I could rewrite it like this, but this is an unindexed query, so it...
  7. K

    Question Deleting a dynamic dataset

    I know. "It works in my environment" is equally non-confidence inspiring.
  8. K

    Question Deleting a dynamic dataset

    Thanks for the input. Changing interfaces is not an option, but adding the destructor in the demo class looks like a working solution.
  9. K

    Question Deleting a dynamic dataset

    Suppose i have a demo method that returns a dynamic dataset and that may or may not return an exception. block-level on error undo, throw. class democlass: method public void demomethod (output dataset-handle dshDEMO): define variable doException as logical init yes...
  10. K

    Difference between publisher and subscriber in progress 4gl with example?

    Knowledgebase has sample code. https://knowledgebase.progress.com/articles/Article/P20233
  11. K

    Question Ways to merge PDF and text to print as one job

    There are tools to convert PDF to DOCX (like Convert PDF to DOCX Online ) so you can insert your text.
  12. K

    Resolved TIME function

    If your code is running on the server and not on the client, then for me it is obvious it is also using server time as local time. :) Anyway to change the server timezone, use property session:timezone.
  13. K

    Speedup For Each Code

    You could start with giving us some info on which indexes are defined on the database tables that you access in your code.
  14. K

    Using PRESELECT EACH

    Another thing that is bothering me in this code : for each customer no-lock: custNum = custNum + 10000. end. should be for each customer no-lock: customer.custNum = customer.custNum + 10000. end.
  15. K

    Resolved Listing all the procedure type handle

    Program-name() does not give you a handle. You need def var procHandle as handle. procHandle = this-procedure. do while procHandle <> ?: message "running" procHandle:file-name view-as alert-box. procHandle = procHandle:instantiating-procedure. end.
Top