Search results

  1. davidvilla

    C0000005 ACCESS_VIOLATION when invoking a web service request

    The progress GUI window crashes when invoking an soap web service request. When I traced the logs it has "C0000005 ACCESS_VIOLATION" exception. Any idea why this is caused? But when I access the same web services from soapui or from a python program it works fine. I am not sure if progress...
  2. davidvilla

    How to identify if a cursor event will leave the fill-in??

    How to identify whether a cursor-right or cursor-left event will leave the current field and move to the next field in the tab-order? I want to block navigating from one field to another using cursor-right/cursor-left, but still be able to navigate within the field. CHUI OE11.2 Unix
  3. davidvilla

    Answered Logical To String Conversion With Format Using Buffer-field

    Hi, I am trying to dynamically convert a logical value to string with a specific format. It works fine, but the TRUE value is not getting displayed properly. See example below. define variable httOutData as handle no-undo. define variable bhttOutData as handle no-undo. create...
  4. davidvilla

    Buffer-value Assignment Error (630)

    Hi All, I am getting a error (630) when assigning a buffer-value for a temp-table field which is defined like the source table. But, when I assigne the value to a static variable, I am not getting the error. Below is the code snippet. define temp-table ttdata fields cphnnbr like...
  5. davidvilla

    Question Change Width Of A Static Browse

    I am defining a static browse, adding columns and setting the query to it dynamically based on user selection - sort of hybrid. I can update the title of the browse dynamically, but I am not able to update the width of this static browse. I understand that once the browse is realized, I cannot...
  6. davidvilla

    Connect Db After Instantiating A Class

    I am trying to connect a DB after a class is initiated and try to access it. But I am not able to. This is what I trying: prog1.p: --> connect mydb1 --> call prog2.p prog2.p: --> uses class mycls1 --> object for class mycls1 mycls1: --> access mydb1 (as it is already connected in...
  7. davidvilla

    Question For Each With Rowid In Where Clasue

    I was wondering, if Progress treats a FOR EACH with ROWID in the WHERE clause not as a block. The sample code here is for illustration only. Don't ask me why I used FOR EACH with ROWID even though it is only one record. run pProc1. message "three" view-as alert-box. procedure pProc1...
  8. davidvilla

    Question Find An Element In An Array

    Hi, Is there any function like LOOKUP or INDEX or ENTRY to find an element by value within an array? I know we can loop through the array elements and compare it with the desired value. But I was looking for an inbuilt function to achieve this.
  9. davidvilla

    Question Display Stmt Requires A Frame

    Hi, I am trying to use a display statement for a fill-in variable attribute. define variable mychar as char no-undo. disp mychar:name mychar:type But this gives me error - Could not find mychar in a frame. Try qualifying the reference with an IN FRAME phrase. (3566). So, i used a frame and...
  10. davidvilla

    Question Dynamic-invoke A Static Function

    I am using 11.1 version of Progress and writing a oo code. I have a class with few methods defined as static and is querying a table. When I tried to invoke the methods dynamically using DYNAMIC-INVOKE, i got the error "Static methods, property accessors, and constructors may only reference...
  11. davidvilla

    Question display/export all fields of a buffer handle

    How to export or display all the fields in a buffer handle without using buffer-field(n) or buffer-field("fldName")? My program will get the table name as input, create a buffer handle for it, and using a query handle will loop through the records and display them.
  12. davidvilla

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

    How to check if a shared variable has been defined or not?
  13. davidvilla

    Answered How to find the length/size of a record in a table?

    How to find the length/size of a record in a table? I guess the maximum length size of a record is 32k. How can I findout what is current size of the record?
  14. davidvilla

    Question Dynamic Field Handle for array fields

    Hi I am trying to set fields dynamically in a table with array fields. I am not sure, how to represent an element of the array field when setting the field handle. Here is my example. define temp-table tt1 fields fld1 as int extent 3. define variable bh-tt1 as handle no-undo. define variable...
  15. davidvilla

    Question OE Developer Studio - How to surround with do-end?

    Hi guys, does anyone here know how to surround a block of code with a DO - END in OE developer studio(i am using 11.2). I can see options to surround with try.... catch block. Or, is there an option to automatically give an END whenever I type DO:??
  16. davidvilla

    Resolved BREAK BY a function's return value

    Hi, I am trying to break a query by a return value from a function. The results are good, except that i am not able to use a last-of or first-of. It gives me a error -** BREAK keyword or BY phrase missing for aggregate expression. (574). for each mytable where mytable.field1 = true break by...
  17. davidvilla

    Hide/Show columns in CHUI browse

    I am working in CHUI using 10.1c. How do I hide or show columns in a browse based on a condition? I tried the VISIBLE property of browse column, but it is not working in CHUI. Any ideas or suggestions?
  18. davidvilla

    Display a browse row in 2 lines

    Hi, I am using 10.1c. I need to display a list of records using a browse without horizontal scrolling. The problem is that I have more fields that are not fitting within the frame width. So, I have to display the record in 2 lines. Is there a way I can achieve it with a browse? I can do it as...
  19. davidvilla

    wait for the last async response

    Hi, I have a async web service call and a internal procedure to process the response. DO i = 1 TO 500: RUN <WSmethod> IN <WebService> ASYNCHRONOUS SET hProc EVENT-PROCEDURE "pExportResponse" (INPUT Ip1, OUTPUT Op1) NO-ERROR. PROCESS EVENTS. END. WAIT-FOR PROCEDURE-COMPLETE OF hProc...
  20. davidvilla

    web service using a socket

    How do I call a web service using a socket conn? I am using 10.1c on unix machine and the web service in a linux machine
Top