Search results

  1. O

    Question Output page numbers in text file

    It may be due to not having HEADER in the FORM definition or the displaying of the frame is in the wrong place. If you run this against the Sports2000 database you will see page numbers and hopefully it points you in the right direction: FORM HEADER SKIP(1) "openord-site...
  2. O

    Question What is the most efficient algorithm for reversing a character string

    Cringer's solution is a nice one. The best I could come up with is this: DEFINE VARIABLE vCount AS INTEGER NO-UNDO. DEFINE VARIABLE vResult AS CHARACTER NO-UNDO. DEFINE VARIABLE vText AS CHARACTER INITIAL "a2c-4e6-g8H" NO-UNDO. DO vCount = LENGTH(vText) TO 1 BY -1: vResult = vResult +...
  3. O

    OpenEdge GUI .NET - rowpostpaint

    I have not used a Datagridview so cannot really offer much help, but one thing that I wondered about is should Cells be a number? So try using the column number the field numero is in. So say it is column 3 the code is: message dgAcoes:Rows[e:RowIndex]:Cells[2]:Value:ToString() view-as alert-box.
  4. O

    OpenEdge GUI NET - "replace" for trigger

    In the okButton_Click method you are invoking an ABL event to a none ABL object which is not valid. I do not know how to do the same for a .NET object. The only thing I can instantly think of is set a keypress event and method for txtNumero and adjust the button method to send a return to the...
  5. O

    OpenEdge GUI NET - "replace" for trigger

    As Tom says, it is not easy to see from the code the actual problem. Just to be clear, is txtNumero an ABL fill-in or a .NET fill-in? If .NET then that could be the reason for the error. Try something along these lines: txtNumero:Focus(). System.Windows.Forms.SendKeys:Send("~{ENTER}"). This...
  6. O

    OpenEdge GUI for NET

    You can either set the method to be an extent or the best option is to make the method a VOID method instead: METHOD PUBLIC VOID CustomValue (OUTPUT oValor1 AS CHAR, OUTPUT oValor2 AS CHAR): oValor1 = "abc". oValor2 = "33". END METHOD. Then the calling code passes defined variables for the...
  7. O

    OpenEdge GUI for NET

    Yes, the sending of the input parameter is correct. No problem outputting a Temp Table, and there are a number of ways. The best option is to encapsulate the Temp Table into a single object and have access methods to work with the temp-table. This avoids passing the temp-table at all...
  8. O

    OpenEdge GUI for NET

    I normally call a dialog box using the examples I posted in my first post, and see that in teste2 you have done similar so that is okay. In teste1 you have the WAIT-FOR in the ShowModalDialog method and if you wanted values from that Dialog then this would be the workings: DEFINE VARIABLE...
  9. O

    OpenEdge GUI for NET

    I have never used DYNAMIC-NEW so do not know the reason. This article seems to confirm your problem: https://knowledgebase.progress.com/articles/Knowledge/P148058 As per the article, does DYNAMIC-INVOKE work instead: DYNAMIC-INVOKE(oForm, "CustomValue").
  10. O

    OpenEdge GUI for NET

    Previous post was incomplete. To obtain a parameter in the calling program two ideas: Pass the handle/object of the calling procedure/class either via the constructor or a method/property to the called class, and when accepted run the internal procedure/method from the called class: RUN...
  11. O

    OpenEdge GUI for NET

    One option is to invoke/record an OK acceptance and if accepted set the parameter then. Example 1: DEFINE VARIABLE oDialogResult AS System.Windows.Forms.DialogResult NO-UNDO. DEFINE VARIABLE oPrintDialog AS System.Windows.Forms.PrintDialog NO-UNDO. oPrintDialog = NEW...
  12. O

    "Simulate" Right-Mouse-Click Native | "Windows")

    I think I see the problem. Are you able to determine the fields/browses/etc. by walking the widget tree? If so, can you set the trigger doing something similar to?: DO WHILE hObject <> ?: IF hObject:TYPE = "BROWSE" THEN ON RIGHT-MOUSE-CLICK OF hObject PERSISTENT RUN whatever...
  13. O

    "Simulate" Right-Mouse-Click Native | "Windows")

    I am not sure but it could be the anywhere that is causing the problem. If you only set the trigger for the browse does that work?: ON RIGHT-MOUSE-CLICK OF BROWSE-1 IN FRAME DEFAULT-FRAME DO: ... END. If you have multiple browses or the browse is dynamic then set this trigger at run-time.
  14. O

    Answered Change Browse column format at runtime

    The problem is you are trying to change the format using a method that only works if there is at least one selected record/row in the browse: Try the solutions in the attached text files.
  15. O

    Answered Is it possible to trigger a popup-menu

    According to this article it is not possible: https://knowledgebase.progress.com/articles/Knowledge/P4242 From this site it looks to be possible by making API calls to obtain the position of the popup menu and then simulating the click: http://www.databaseforum.info/16/724304.aspx
  16. O

    Question C# to ABL again

    I have not used DocuWare and can only find a cut-down version available so cannot really offer much help. But one thought I had is do you have Progress Developer Studio and if so what does Class Browser say for DocuWare.Services.Http.DeserializedHttpResponse? It will hopefully give you the code...
  17. O

    Seeking great OpenEdge GUI development tutorial

    For GUI development in ABL there are two development options - AppBuilder and Visual Designer - but do not know if an actual tutorial exists for either. There is a bit of a tutorial for AppBuilder here - see the section called "Introducing the OpenEdge AppBuilder"...
  18. O

    I don't want window code rearranged

    I am not sure on this. Is the problem that you make an amendment using the AppBuilder and when saved the code for the frame definitions is in a different order? If so, then this does seem to happen and am not sure if it can be turned off. One solution I apply is in "List Objects" click each...
  19. O

    Does anyone have a Calendar (date-picker) example?

    JGress, you have asked follow up questions to this using the conversations option which I cannot answer as it has been closed. I am assuming that it has been closed because questions should be asked via the standard forum which is the way to do things. This allows others to give an input. Your...
  20. O

    Does anyone have a Calendar (date-picker) example?

    If you want another option there are the .NET controls although need to be on a more recent version of Progress. A very simple solution based on this posting - Question - Label Name in the button: DEFINE VARIABLE hWin AS HANDLE NO-UNDO. DEFINE VARIABLE MainForm AS Progress.Windows.Form NO-UNDO...
Back
Top