Search results

  1. A

    How to know if a tab is enabled or not

    OK, I'm using 10.1A here and there's no ADM2 support for a getPageEnabled() type function. So, unless PSC have added something in newer versions, I guess you have to write one for yourself! New function in folder.w, getFolderEnabled. Returns logical, accepts one input parameter (page number...
  2. A

    How to know if a tab is enabled or not

    SmartObject folder.w or Microsoft TabStrip OCX?
  3. A

    sort string

    Even with a few hundred records, the TT solution won't be massively slow. But I don't know if it will be problematic for you - depends on where and how often it would be used in your system I suppose.
  4. A

    sort string

    If you need to sort the string itself, populate a temp-table with one record per entry and then read it back out using an index or BY phrase. If you only need to sort the combo-box, you can set the SORT attribute of the combo to TRUE any then use list-items in any order. You can only set this...
  5. A

    update a browse based on user input

    I don't think the poster is updating any records in the browse. I think they are changing the query criteria based on the fill-in screen-value, so they need to re-open the query. If that's the case, calling a refresh() won't help here.
  6. A

    update a browse based on user input

    When you drop a browse onto a container using AB, you get a query defined automatically with the same name as the browse. So, the easiest way of refreshing the browse is to re-open the query using the new date criteria. So, after some user event ("refresh" button, leave of the date field...
  7. A

    SDO bug? (jumps to last record)

    Wow. That sounds like a bug in the ADM to me. I think you're on the right lines with the record sets being involved, but even with a large record set and a small rowsToBatch, I can't reproduce it here! Maybe it's been introduced after 10.1A02? Regardless, you could report it to PSC as a...
  8. A

    SDO bug? (jumps to last record)

    Hi there! I'm using 10.1A02 here, so my results may vary, but this approach (rowidWhere followed by a fetchRowIdent) is working fine here. If the rowid returned by rowidWhere is for the last record in the dataset, then I would message out the value in cWhere to see what where clause is being...
  9. A

    How to interchange toggle-box position in runtime?

    Blimey, what a strange requirement... You can set the toggle-boxes to be "movable", allowing the user to drag them around. Then you're left with two problems: 1. When the user drops one (ahem), you will have to run around the widget-tree in the frame and re-order the 10 toggle-boxes based...
  10. A

    Table name as parameter

    Yeah, with extents you have to loop through them all. So this: DO i = 1 TO bh:NUM-FIELDS : PUT bh:BUFFER-FIELD(i):BUFFER-VALUE. END. becomes something like this: DEFINE VARIABLE hBuffer AS HANDLE NO-UNDO. DEFINE VARIABLE hField AS HANDLE NO-UNDO. DEFINE VARIABLE iField AS INTEGER...
  11. A

    Table name as parameter

    Cool. If you need a quick example of a dynamic query being built, I posted one on this thread a few days ago: http://www.progresstalk.com/showthread.php?t=114705
  12. A

    -l exceeded

    Best solution - remove all shared variables. They are evil, and should be done away with at the earliest opportunity. There are many alternatives to their use, for example a session-level super procedure with a temp-table, get and set functions. Rubbish solution one - increase -l to...
  13. A

    Table name as parameter

    This won't work - the include file is expanded out at compile time, and so you can't use includes to produce a flexible FOR EACH like this. FOR EACH is a static construct, and unless you want to compile-on-the-fly, you won't be able to achieve anything in this manner. You don't mention your...
  14. A

    Appending records to a dynamic query

    I'm not sure what mechanism you're using to get the first 1000 records into the temp-table. Perhaps you could post some of the code? If you have the buffer-handle and query-handle of the TT, there's not much you can do from there really. You need to have some idea of what query was used on...
  15. A

    Removing records from combo-box

    Sorry to have to tell you that it does in fact work. If you have a combo-box, cbTest: cbTest:LIST-ITEMS = "1,2,3". Then you have a button which does this: cbTest:DELETE("2"). Press the button, and the combo only has possible selections of "1" and "3". You asked how to remove a record...
  16. A

    Removing records from combo-box

    You can use the DELETE() method to remove a specific item from the list-items of a combo. Or you can re-build all the items by blasting the LIST-ITEMS or LIST-ITEM-PAIRS attribute with a new delimited list.
  17. A

    Column Search - Exclude Column

    I don't think so. I believe you have to have all the columns "searchable", or none. If you're looking for a visual cue for your users, some people add a little marker to the column label to show which ones are enabled for column-searching. Not a very elegant solution though.
  18. A

    Column Search - Exclude Column

    Hi there! In the START-SEARCH trigger, you can refer to the browse's CURRENT-COLUMN attribute to get the handle of the column the user just tried to sort on. So, if you wanted to exclude a column called "myColumn", you could do this: DEFINE VARIABLE hColumn AS HANDLE NO-UNDO...
  19. A

    unable to open file: errorno=2 (98)

    Sorry, but that's all I can think of! Perhaps you can add a -T to the icon, pathed to a valid temp-directory, and give the user access to this? This would then rule out the temp files being the culprit at least!
  20. A

    unable to open file: errorno=2 (98)

    Is your code generating a file? If so, make sure the user has write access to the target dir. If this is a progress-generated file (example, sort files), check the -T temp directory. You say that the user has write access to the working directory (the "start in" directory of your icon?), but...
Back
Top