Search results

  1. PatrickTingen

    Powerful UI Design for the Maintenance of Parent/Child Dataset

    This is what chatgpt came up with:
  2. PatrickTingen

    Powerful UI Design for the Maintenance of Parent/Child Dataset

    I would love to see some screenshots if you have a more or less stable example...
  3. PatrickTingen

    Powerful UI Design for the Maintenance of Parent/Child Dataset

    You could combine functions in one button with an arrow on the right side of the button, giving the user a choice in copying just the top record or the whole collection, something along this lines: A second option would be to pop up a context menu with the separate options. I do this in...
  4. PatrickTingen

    Question OS-COMMAND and the quotes.

    Oof, that's a good question. This is probably done when something in production went wrong. Find the problem, find a solution, implement and go on and if it works, don't look back. If WinExec gives less overhead or is better in any way, I can replace it
  5. PatrickTingen

    Pass different datasets as parameter

    Yes! That works indeed. The below pulls the data over without errors, thanks @Stefan ! /* File : c:\temp\showData.p */ DEFINE TEMP-TABLE ttData FIELD cKey AS CHARACTER FIELD cValue AS CHARACTER. DEFINE DATASET dsData FOR ttData. DEFINE VARIABLE hDataSet AS HANDLE NO-UNDO. RUN...
  6. PatrickTingen

    Pass different datasets as parameter

    One addition: my "problem" is that I want to loosen the call to the server and make it possible to update the dataset in two steps. Since a lot of code is operation-critical I don't like the idea of changing that to dynamic handling of the dataset contents, so I'd like to keep a static dataset...
  7. PatrickTingen

    Pass different datasets as parameter

    In our codebase we have a dataset as a bridge between two different systems. Data is passed via an appserver call. When we want to add new fields or tables to the dataset, we need to change it on both sides in order to avoid errors like this: Changing both sides while business is running is...
  8. PatrickTingen

    Question OS-COMMAND and the quotes.

    Starting something via OS-COMMAND is a real pain. I used to generate a batch file and then start that, but now I use this: /*----------------------------------------------------------------------- File : startSession.p Desc : Start a new session PARAMETERS: - pcProgram : The startup...
  9. PatrickTingen

    The &MESSAGE preprocessor directive...

    I don't think it is possible. A workaround might be to use &IF and then do a normal MESSAGE VIEW-AS ALERT-BOX &IF DEFINED(UIB_IS_RUNNING) = 0 &THEN MESSAGE 'Hello world' VIEW-AS ALERT-BOX INFORMATION BUTTONS OK. &ENDIF
  10. PatrickTingen

    Effect of moving from 128 to 256 RPB

    Haha, every now and then its good to have a reality check. That was your 1st point on the list. Our db server indeed has enough memory to keep the complete db in memory. Our buffer hit ratio is constantly 100%, no matter what we do. Even during our data purge where we read the oldest records, we...
  11. PatrickTingen

    Effect of moving from 128 to 256 RPB

    I didn't even know the -csoutput flag existed at all, let alone that is supported in 11.7 :) I know, I have some scripts lying around that I created back in 2003 to replicate a database purely based on AI extents. It's not that hard to do and I mentioned it more than once, but "not needed"...
  12. PatrickTingen

    Effect of moving from 128 to 256 RPB

    Yes, see attached zip
  13. PatrickTingen

    Effect of moving from 128 to 256 RPB

    What we want to improve is "performance". Now since that is a wide term, we are not facing an actual problem, at least not that we know, but I am just wondering whether our configuration could be much better than what it is now. If we could speed up the application that would benefit our users...
  14. PatrickTingen

    Effect of moving from 128 to 256 RPB

    Thanks for all of your feedback. Today we ran the data purge during normal business hours. Because: why not, yolo! Our db server did not give a single f**k and users did not even notice the purge was running at all. Yes, the RPB column is the theoretical # records/block We might still do that...
  15. PatrickTingen

    Effect of moving from 128 to 256 RPB

    We are in the middle of a clean-up of old data in our database, deleting approximately 25-30% of the contents. I ran a tabanalys on the db and noticed that more than half of the tables have very small records, thus not filling up our 8k blocks. Here is a screenshot of some of our offenders...
  16. PatrickTingen

    Advent of Code 2025

    Also posted this on the Progress Discord server, so perhaps you already read it... Do you like coding? And a little challenge? And a little fun? If three times a yes, then Advent of Code is something for you. What is it In their own words: "Advent of Code is an Advent calendar of small...
  17. PatrickTingen

    Primary Unique DB Records

    But wait, there is another possibility. Perhaps even dirtier than the previous. If the field ShippingMethod is not mandatory (check it in that wonderful tool DataDigger :cool:), you could assign it the unknown value. Progress allows duplicate records when one or more of the fields in a unique...
  18. PatrickTingen

    Primary Unique DB Records

    No. This is impossible with your current index. Your index dictates that the combination of ShippingMethod and ConsignmentNumber must be unique. You state that the ShippingMethod is left blank in all cases, so that basically sets you back to the ConsignmentNumber to be the only unique value...
  19. PatrickTingen

    Spam

    A lot of the spam seems to come from user "Gacor", can't you just kick him/her out?
  20. PatrickTingen

    Primary Unique DB Records

    According to your screenshot there is only one unique index on your table, consisting of two fields: ShippingMethod and ConsignmentNumber. Yet, your FIND FIRST searches for a record with 3 fields: ArEntity, OrderNumber and ConsignmentNumber. There is your problem. Your unique index consists of...
Back
Top