Search results

  1. Stefan

    Weird formatting of integer values of LIST-ITEM-PAIRS combo-box

    The format determines how the values are formatted: def var hw as handle. create combo-box hw. assign hw:delimiter = '|' hw:list-item-pairs = 'one|1|two|2' . message hw:list-item-pairs view-as alert-box. hw:format = ' 9'. message hw:list-item-pairs view-as alert-box...
  2. Stefan

    Progress 12.2 Services and Explorer

    The OpenEdge Management Service provides the OpenEdge Explorer, ie the web based management service that you can normally reach at localhost:9090. While I have never had issues with the default 12.2 install, this knowledge base article does explain potential issues with the user account used to...
  3. Stefan

    4GL - Combobox in Frame

    You do not mention what version you are on, but since the newest LTS is 12.2 - there is a lot of documentation at Progress Documentation or to get started with .Net controls Progress Documentation
  4. Stefan

    4GL - Combobox in Frame

    The update statement stems from the previous century and does not really belong in any "modern" event-driven UI. I think the update statement was never updated to handle the combo box widget. With some extra attention you can coax it into doing something: DEF VAR belegStat as INT VIEW-AS...
  5. Stefan

    Question YAML/OpenAPI file generation.

    When going through the steps in the related document, after creating a business entity, the <project>/PASOEContent/static folder contains a <service>.json which looks like, but is not an OpenAPI json
  6. Stefan

    Question YAML/OpenAPI file generation.

    Our REST APIs are based on our entity definitions, we generate OpenAPI docs "manually" based on these definitions. We serve either the json file or present it in the Swagger editor. Tip: as starting point create an OpenAPI JSON doc. Transforming this to YAML (if you really need it) is trivial...
  7. Stefan

    How to determine if a procedure was passed a file to standard input when run via the command line

    And @TomBascom persevered... well done! and I was only one step away (GetStreamHandle above should have been GetStdHandle).
  8. Stefan

    OUTPUT STERAM WITH UNIQUE FILE NAME

    You must use value when you want to use a variable in output, see Progress Documentation - also look at iso-date( now ) - also do not rely on time but use a guid
  9. Stefan

    How to determine if a procedure was passed a file to standard input when run via the command line

    I tried all sorts, but am unable to catch the error. I tried seek( input ) - but the redirected input is special and returns unknown value. I tried fetching the command line with a Windows API call, but this returns the command line without the redirected input file. I tried using...
  10. Stefan

    Dynamic-Tables and static queries

    Yes, a dynamic temp-table can only be queried dynamically. A static temp-table can be queried statically or dynamically. You can also pass a dynamic temp-table as table-handle to a static receiver (I think). But why not just rename the temp-table and put it in its own namespace? define...
  11. Stefan

    Error HY000:[DataDirect][OpenEdge JDBC Driver][OpenEdge] Invalid date string (7497)

    I would guess that this is your convert function trying to cast some text string in date_time to a date. Your assumption that all records contain a value that can be cast to a date seems untrue. Further qualifying your select statement is resulting in a record with an invalid date not being part...
  12. Stefan

    Add new variable database extent and give previous var extent a fixed size

    Len is Dutch, I rest my case. ;)
  13. Stefan

    Add new variable database extent and give previous var extent a fixed size

    Good luck doing that with 11.2 and a workgroup database license ;-)
  14. Stefan

    Write to xml file

    And which part of my reply, which did update the XML using ABL, was unclear?
  15. Stefan

    Write to xml file

    This should get you started: define temp-table tt serialize-name 'keyboard' field ckey_label as char serialize-name 'key-label' xml-node-type 'attribute' field ckey_value as char serialize-name 'key-value' xml-node-type 'attribute' field special-lKey as char field cimage_up...
  16. Stefan

    open

    Since you are asking the question, probably. One solution is to use a dynamic query in which the query is simplified before the query is opened.
  17. Stefan

    Question How to add fields to a temp table by using its handle (it can be either temp-table:handle or temp-table:default-buffer-handle)

    Once the temp-table has been temp-table-prepared you can no longer modify it. You can copy-temp-table to a new temp-table and add your field to the copy.
  18. Stefan

    Error in document load

    The debugger will tell you exactly what line you are on and can show you what the values of all your variables are.
  19. Stefan

    ABL Time-based one-time password (TOTP)

    You just need to get rid of the intermediate variables b1 and b2 since b2 is always evaluated even when it's value is irrelevant based on b1. function bitOR returns integer (input X as integer, input Y as integer): define variable n as integer no-undo. define variable Z as integer...
  20. Stefan

    ABL Time-based one-time password (TOTP)

    Nice, you can win some performance (about 15%) by allowing your bitwise OR and AND functions to short-circuit.
Back
Top