Search results

  1. S

    selection-list programmatically select all

    Hi, add button with this: ASSIGN SELECT-1:SCREEN-VALUE IN FRAME {&FRAME-NAME} = SELECT-1:LIST-ITEMS NO-ERROR. APPLY "VALUE-CHANGED":U TO SELECT-1. and mark multiple-selection in Property-Sheet of SELECT-1. Regards.
  2. S

    help needed with a data update routine

    Hi Thomas, accordingly, as the word implies (NO-VALIDATE) it is obvious that there is a risk of not applying some important validation.Usually I reply with an example without much explanation because my English is pretty bad. Regards. Sergio
  3. S

    Smartpanel - SmartBrowser & Smartviewer

    Put this code into b-customer.w . ON LEFT-MOUSE-DBLCLICK OF br_table IN FRAME F-Main DO: PUBLISH 'Doble-Click-CustomerBrowser'. END. Regards.
  4. S

    Smartpanel - SmartBrowser & Smartviewer

    I'm sorry, tonight I send the example again, but you have to do is define a trigger "LEFT-MOUSE-DBLCLICK" in b-customer.w to execute the PUBLISH "Doble-click-CustomerBrowser". After defining a SmartLink called "Doble-click-CustomerBrowser" between b-customer.w and the window that contains it...
  5. S

    help needed with a data update routine

    Hi, try this: disable triggers for load of poeh for each poeh where poeh.cono = # and poeh.pono = ##### and poeh.posuf = ## exclusive-lock: display poeh.pono poeh.posuf. update poeh.stagecd with no-validate. Regards.
  6. S

    Smartpanel - SmartBrowser & Smartviewer

    Re: SmartFolderl - SmartBrowser & Smartviewer Hello here I send an example, please review the SmartLinks, the location of the SmartObjects on each page and the procedure in the Window (Double-Click-CustomerBrowser). Regards.
  7. S

    Smartpanel - SmartBrowser & Smartviewer

    Hi, move the SmartPanel to page 0, so is available to all SmartObjects. Regards. PS SmartPanel or SmartFolder??
  8. S

    Extracting Table Data

    I agree with Tom and Greg about that you should upgrade, but perhaps this will serve. DEFINE VARIABLE c-Table AS CHAR FORMAT 'x(32)'. REPEAT: UPDATE c-Table. OUTPUT TO z-export.p NO-ECHO. /* ---------------------------------------------- */ PUT UNFORMATTED 'OUTPUT TO...
  9. S

    Updating date field via sql

    Hi, try it: SET PUB.orders.orderdate = DATE('01/02/2012') Regards.
  10. S

    connect db from a .p program

    Hi, You are connecting to the same DB with different logical name, try it: def var v-stk as char no-undo. /* v-stk = "db\dsCHK.db" . */ if not connected ("dsCHP") then connect /*value(v-stk)*/ VALUE("-pf db\pf_files\dsCHK.pf") . if not connected("dsCHP") then do: message "Cannot connect...
  11. S

    How to disable the Fill-in?

    I'm using version 9.1D07 to have look and feel of XP (it shows a box around the FILL-IN) had to apply the following, solution P46584: Create a file called prowin32.exe.manifest in the %DLC%/bin directory with the following content. <? xml version = "1.0" encoding = "UTF-8" standalone = "yes"?>...
  12. S

    How to disable the Fill-in?

    Excuse me, in procedure LOCAL-INTIALIZE. /*------------------------------------------------------------------------------ Purpose: Override standard ADM method Notes: ------------------------------------------------------------------------------*/ /* Code placed here will...
  13. S

    How to disable the Fill-in?

    Hi, if you are using ADM1, then try it, in the MAIN-BLOCK: /* *************************** Main Block *************************** */ /* Include custom Main Block code for SmartWindows. */ {src/adm/template/windowmn.i} DO WITH FRAME {&FRAME-NAME}: FILL-IN-1:SENSITIVE = FALSE. END...
  14. S

    How to disable the Fill-in?

    Excuse me, what Progress version are you using? You are using ADM1 or ADM2?
  15. S

    How to disable the Fill-in?

    Hi, maybe this example will serve. create local version of procedure InitializeObject. /*------------------------------------------------------------------------------ Purpose: Super Override Parameters: Notes...
  16. S

    IP-Address of the Database-Server from Client

    Hi, this code return the command line that started the current session. P18054 Why does the DBPARAM() function NOT return all the command line startup parameters? DEFINE VARIABLE chrCommandLine AS CHARACTER NO-UNDO FORMAT "X(128)". DEFINE VARIABLE ptrToString AS MEMPTR NO-UNDO...
  17. S

    Dynamic Buffer, No-Error

    In the example I sent, the only way to reproduce the error that occurs is to remove the NO-ERROR to FIND FIRST statement. DEFINE VARIABLE hBuf AS HANDLE. DEFINE VARIABLE lok AS LOGICAL. DEFINE VARIABLE iRec AS INTEGER. CREATE BUFFER hBuf FOR TABLE 'Customer'. DO TRANSACTION: FOR...
  18. S

    Dynamic Buffer, No-Error

    Try to check if the sintax is correct before FIND-FIRST and put a message after FIND-FIRST hBuf:AVAILABLE and hBuf:LOCKED.FIRST. MESSAGE "WHERE ":U + h_bf_arclientvd:BUFFER-FIELD("no_client":U):NAME + " = ":U + QUOTER(v_cd_client) + "AND ":U +...
  19. S

    Dynamic Buffer, No-Error

    hI, When you use a FIND EXCLUSIVE-LOCK, you must enclose within a transaction block.Try the following code attached to Sports2000, uncomment the block DO TRANSACTION. DEFINE VARIABLE hBuf AS HANDLE. DEFINE VARIABLE lok AS LOGICAL. CREATE BUFFER hBuf FOR TABLE 'Customer'. FOR EACH Order...
  20. S

    Dynamic Buffer, No-Error

    Hi, please post a snippet of code causing the error. Regards
Back
Top