Search results

  1. G

    Question Decimal formatting

    The second one isn't a bug, if you define "correct" as "following the documentation": http://documentation.progress.com/output/OpenEdge112/oe112html/wwhelp/wwhimpl/js/html/wwhelp.htm#href=Reporting/Query%20Results%20for%20UNIX/17rpunxapc.51.5.html ' The < symbols must be balanced by an equal...
  2. G

    Question Using CREATE-LIKE without Indexes

    Could you use ADD-FIELDS-FROM instead (with an empty 'except' list) ?
  3. G

    Running openedge application from the web

    Total agreement about fixed length data. That whole SQL obsession with declaring lengths and screwing around with them constantly ... I'll never understand it. Well, I don't understand anything, really, about the endless series of pointless frustrations that is SQL, and how 99.99% of the...
  4. G

    Running openedge application from the web

    ... but in JS, you are syntactically prohibited from using upper-case keywords. That alone should put it on the top of your favorite languages list! I always thought Progress was the weird one for not being consistently case sensitive and that practically every other language was. I could be...
  5. G

    Running openedge application from the web

    If you're going to go to all the work of converting an old-style direct-DB-access OE application to AppServer, I wouldn't use Progress for the front-end UI. That's one of the sweet things about AppServer - you can use it with a Java, C# etc. client more-or-less, or at least arguably, as easily...
  6. G

    Question display/export all fields of a buffer handle

    You could do WRITE-XML() or WRITE-JSON on the buffer handle, use "LONGCHAR" as the target-type, then do something with the LONGCHAR, which will contain all the field names and data values. However "do something" will probably look a lot like using buffer-field(n), and, I believe the WRITE-*()...
  7. G

    Question How to check if a shared variable has been defined or not?

    This is not really the same thing, but you could RUN the program you are worried about NO-ERROR and then see if ERROR-STATUS:GET-NUMBER(1) equals '392' (the error# for a shared variable problem). Then you could run another program that contains DEFINE NEW GLOBAL SHARED, and then try the first...
  8. G

    -cpstream

    Can you or anyone clarify what -cpstream does? I think a value of X would mean that Progress will expect incoming data to be encoded as page X, and that it would convert from X to whatever it uses internally. Then, on output, the reverse. But based on experimentation I don't think that is true...
  9. G

    -cpstream

    1. 10.2b 2. JSON, created 'by hand' 3. There is no explicit encoding anywhere except where I experimentally added CODEPAGE-CONVERT into our JSON writer. 4. LONGCHAR is used throughout. 5. I don't know what fix-code paged means? Thanks for thinking about my issue, cheers.
  10. G

    -cpstream

    I'm having 'French problems' (again) and wondering if anyone can clarify what this parameter does (the documentation is vague). Here's my situation: 1. As I understand it (per jQuery's documentation), XmlHttpRequest always uses UTF-8, even if you explicitly set otherwise in ContentType. 2. Our...
  11. G

    Answered How to set HttpOnly using set-cookie ?

    I didn't write this, but this is from our code where we set cookies. I guess we decided to bypass Progress' function altogether in this case, though we certainly use their functions elsewhere. p_options can be set to various values, including 'HttpOnly'. /* Format the cookie */ ASSIGN v-cookie...
  12. G

    Question Opening an excel sheet using Progress code

    We use Apache POI for this - basically, you turn whatever you want to Excelify into XML, and hand it to POI, which gives you back an .XLS. It works OK, though it's unforgiving of slightly unusual data, and when it finds data it doesn't like, the error messages it gives back are even worse than...
  13. G

    Answered For each using only lookup = no index

    We have this problem in various forms in a few places, and I hate it. Sometimes there's no good solution. At least in your case there's only the one table (but let me guess, it has 200 million records in it). I think that INDEX in the WHERE will cause big problems (unless the criteria is met on...
  14. G

    Apply "Entry" Event

    That was probably a bad suggestion. I looked in the doc quickly (my apologies for not doing that in the first place) and while vague, it implies that it's read-only, eg. you can use it to find out where focus is, but not to set it. In any case, I believe TheMadDBA is, despite the misleading user...
  15. G

    Apply "Entry" Event

    Try looking at the FOCUS handle... I would have guessed that APPLY ENTRY would work, but my time with the Progress Win32 GUI ended a couple of years ago.
  16. G

    OO Principles

    Robert Martin 'Clean Code' = one of my favorite programming books. IIRC it was more about naming and comments than SOLID though. Martin Fowler is another interesting one, though he covers a huge range of business programming topics, OO technique is just a tiny part.
  17. G

    Adding Repeating information to HTML page

    Not sure if this helps, but FYI Apache has a thing called server-side includes that can be helpful. You have to setup some config in one of the many Apache config files, I forget the details but I'm sure you could find this easily online. I'm not sure how widely this feature is supported across...
  18. G

    Question JQuery Programing Help Needed

    I forgot to mention something important. You probably know jQuery has a large plugin community; it includes at least two table plugins, neither of which (AFAIK) deal with your issue directly, but if you are going to be doing serious work with tables in jQuery, you may want to consider them. I...
  19. G

    Question JQuery Programing Help Needed

    Unfortunately, I have probably spent 30% of my professional energy in the past few years dealing with this scenario in different forms. For the past couple of years I have been using jQuery + Progress almost exclusively ... however, we use it in quite a different way than what you are doing...
  20. G

    Question ChUI Automated Testing Tools?

    I have experimented with building a few Progress testing tools over the years, I'm working on one right now (in my spare time). It's difficult to get traction as the cost is high and the payoff is indeterminate. It's a big topic with many different approaches and ideas, which I'm happy to get...
Back
Top