Search results

  1. 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().
  2. 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...
  3. 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...
  4. K

    Concatenating strings in a clob column

    This is something that i discovered recently. Apparently concatenating strings into a clob column works differently in Openedge 11.6 and 11.7. This is an example to illustrate the issue. (I must use a longchar variable in the example because <clob> = <clob> + <string> does not compile.) DEFINE...
  5. K

    Resolved How to cancel a form close event ?

    I was hoping "return no-apply." would do this, but it does not. Included some sample code. Openedge version 11.7.2. Edit: never mind, in ooabl you do this with "e:Cancel = true." in the event handler.
  6. K

    Error Problem With Getclass() Function

    define output parameter ocx as character no-undo. define variable className as Progress.Lang.Class no-undo. ocx = "FAIL". className = Progress.Lang.Class:GetClass("class.does.not.exist") no-error. if valid-object(className) then ocx = "OK". else ocx = "notValid". When i run this code locally...
  7. K

    Problem In Reading A Text File

    Suppose I am using this code to read a text file : DEFINE VARIABLE inputLine AS CHARACTER NO-UNDO. DEFINE STREAM sin. input stream sin from T:/demo.txt. repeat: import stream sin unformatted inputLine. ... end. input stream sin close. Suppose the text file contains some text like ...
  8. K

    Using The To-rowid Function

    Do you think this code should raise a compilation error ? Currently you can compile it but it will not work when you run it. (Openedge 11.4) define variable cdemo as longchar no-undo. define variable rdemo as rowid no-undo. cdemo = "xx,0x00000000000048e7". /* random rowid */ rdemo = to-rowid...
  9. K

    Answered how to use static variables

    In my code i have a static variable, something like define protected static variable vcDemo as character init "<empty>" no-undo. I assign a value to this variable in the appserver startup procedure. I would expect i can use the value of this variable anywhere in my code any time. What i see is...
  10. K

    Question widget-pools

    When you have the name of a widget-pool, is it possible to get a list of dynamic objects created in this widget-pool ? When you have a handle to a dynamic object, is it possible to get the name of the widget-pool the object is created in ?
  11. K

    How to store a GUID in a Progress database ?

    Suppose I want to use GUID's (or UUID's) as primary index for a new database table. The GENERATE-UUID function returns a raw type value so my database column would be data type raw, if it were not that raw data type cannot be indexed. I could use base64-encode to convert my GUID to a string but...
  12. K

    need likes ?

    Apparently you need at least 3 likes to be able to insert web links into your posts on this forum, even for links to www. progress.com. What's up with this ? How do i get these likes ?
  13. K

    Reading text files - why is this still not solved ?

    Suppose you have a simple text file (read.txt) with this contents: A B C Important is that the last line is not terminated with a CR or LF character. Then you read this text file with a simple program: DEFINE VARIABLE filename AS CHARACTER NO-UNDO. DEFINE VARIABLE filetext AS CHARACTER...
  14. K

    how to use search on this forum

    Suppose i want to find threads on the server-connection-context attribute on the session system handle, how do i do this ? I search for "server-connection-context" but this does not work. Is it the hyphens that are causing an issue ? Is there a way around ? Another example: Suppose i want...
  15. K

    reading file owner on the file system

    We know that system-handle file-info allows you to read attributes of files on the operating system. Owner is not one of those attributes. Does anyone know a good way to read this attribute ?
  16. K

    dynamic objects

    Progress allows you to keep track of dynamically created objects. For example, for dynamic datasets (create dataset statement) you can use session:first-dataset + next-sibling. For dynamic queries (create query statement) you can use session:first-query + next-sibling. Does something similar...
  17. K

    JDBC connection fails

    I try to connect to a progress database from java, starting with this code from the documentation: Class.forName("com.ddtek.jdbc.openedge.OpenEdgeDriver"); I use %DLC%\java\openedge.jar (OpenEdge 10.2A02). This statement raises following error: Exception in thread "main"...
  18. K

    automated compiling

    As I understand it, the compile statement can only be used to compile a single file, not an entire folder. You can use 'run _comp.p.' to run the application compiler but this will only start the tool and not compile anything. Is there a way to pass parameters to the application compiler and make...
  19. K

    create client-principal and error 4438

    DEFINE VARIABLE hCPL AS HANDLE NO-UNDO. create client-principal hCPL. When compiling this code on unix and running on windows, you will get error (4438) Program was compiled under another incompatible display environment. Cannot run without recompile. Is there any way to avoid this...
  20. K

    running os-command no-wait on an appserver

    When I run an os-command no-wait on an appserver process, the appserver process spawns a new process and continues it' s work. When that work is finished, the appserver becomes available to accept new tasks. So far so good. However, when I try to stop this appserver (which has no active...
Top