THE WELCH COMPANY
440 Davis Court #1602
San Francisco, CA 94111-2496
415 781 5700


S U M M A R Y


DIARY: November 6, 2002 10:15 PM Wednesday; Rod Welch

Fix SDS setup new user from Group Manager.

1...Summary/Objective
2...04702 Calls New User Setup 0470211
3...0470230 Setup SDS Schedule Screen for New User
....Time Delay to Display User ID and Password Failing, Disconnected
4...0470211 New User Setup Failing

ACTION ITEMS.................. Click here to comment!

1...This feature will need improvement to search the entire list of

CONTACTS 

SUBJECTS
SDS v. 3.0 Initialization
F1 - New User setup
Password Protection
Enter Name & Password

0706 -    ..
0707 - Summary/Objective
0708 -
070801 - Follow up ref SDS 17 0000.
070802 -
070803 - Fixed several problems with the opertion that starts a new user...
070804 -
070805 -     1.  The name field should be empty, but it is not.
070806 -
070807 -     2.  The user ID and password should be displayed just before
070808 -         opening SDS, but they are not
070809 -
070810 -  [On 021110 notified Gary Johnson. ref SDS 18 0001
070811 -
070812 -
070813 -
070814 -
070815 -
070816 -  ..
0709 -
0710 -
0711 - Progress
0712 -
071201 - 04702  Calls New User Setup 0470211
071202 -
071203 -
071204 - Line 810, ref OF 1 Q36G, -label corpsds in 04702
071205 -
071206 -    @c:\sd\03\0470211 #50
071207 -    -goto havNam
071208 -
071209 -       Run new user setup when F1 is pressed in Group Manager, 047027
071210 -       (actually messages in this op).
071211 -
071212 -       Then go to the code that starts SDS.
071213 -
071214 -
071215 -  ..
071216 - Line 1160, ref OF 1 P47F, -label Exectv in 04702 about 100 lines below.
071217 -
071218 -    -if @1 < 0 @c:\sd\03\047023 #30
071219 -
071220 -       If this is a new user execute code in 047023 at line 30
071221 -
071222 -    top
071223 -
071224 -
071225 -  ..
071226 - 0470230  Setup SDS Schedule Screen for New User
071227 -
071228 -
071229 - Line 60, ref OF 3 W67N, 047023
071230 -
071231 -    Configure screen for new user; this is the screen that shows...
071232 -
071233 -
071234 -              S t a r t i n g      N e w     S c h e d u l e
071235 -
071236 -  ..
071237 - Line 80, ref OF 3 A49F, 047023
071238 -
071239 -    debug 100                  testing here
071240 -    setcolor 7 0
071241 -    setcolor 6 0
071242 -
071243 -       Temporarily turnning command line and cursor on, so we can
071244 -       follow the code.
071245 -
071246 -       Unplugged these temp settings after debug op completed.
071247 -
071248 -
071249 -     ..
071250 -    Time Delay to Display User ID and Password Failing, Disconnected
071251 -
071252 -
071253 - Line 110, ref OF 3 ED6J, 047023
071254 -
071255 -    debug 50
071256 -    tm 5000
071257 -    debug 100
071258 -
071259 -       This code should cause a delay that executes the next line of
071260 -       code with a delay.  The next line is Morris' time command that
071261 -       says to wait 3 seconds to execute the next command.
071262 -
071263 -       The code is not having desired effect, and may be related to the
071264 -       speed of the processor.  We have a Pentium IV 1.4 GHz and it is
071265 -       much faster, so the tm value needs to be greater.
071266 -       ..
071267 -       We may be able to achieve the same effect by using debug
071268 -       10 or debug 50 that slows the execution of commands all the way
071269 -       to debug 100.
071270 -
071271 -       None of this worked.  I set debug 99, tried setting tm 999999
071272 -       tried multiple lines of tm 30000, nothing seems to prevent the
071273 -       blanking op from executing immediately.
071274 -
071275 -       As a result, decided to abandon this feature of blanking the
071276 -       User ID and password after three (3) seconds
071277 -
071278 -
071279 -
071280 -  ..
071281 - Line 170, ref OF 3 OL7N, -label quit in 047023
071282 -
071283 -    e c:\sd\03\047027
071284 -    z 103 140
071285 -    l !
071286 -    of 82
071287 -
071288 -       This code executes when user decides to abort the New User
071289 -       setup.  It maintains the Group Manager by removing
071290 -       identification for the new user's name, password and User ID.
071291 -
071292 -       Open Group Manager file and zone the two fields for the User ID
071293 -       to find the line where the new user has been entered.   These
071294 -       fields are now off set in columns 103 and 125, so set zone
071295 -       sufficiently to get both.  Since the code has already
071296 -       established that the User ID is unique, the line where this
071297 -       search lands will be the correct line.
071298 -       ..
071299 -       Offset the file to the 1st password column so we can
071300 -       remove the password that corresponds to the User ID.
071301 -
071302 -
071303 -  ..
071304 - Line 180, ref OF 3 YT4J
071305 -
071306 -    loc_cur 3 1
071307 -    fr !
071308 -    setcur 1 0
071309 -    rel_cur 0 -5
071310 -    ins_text !      !
071311 -
071312 -       Put the cursor on the password field because the User ID field
071313 -       is to the right in column 103+  Use fr to jump the cursor to the
071314 -       end of the password string, and get the cursor position to
071315 -       establish which stack is being processed.
071316 -
071317 -       Backup up to the beginning of the field, and remove it.
071318 -
071319 -
071320 -
071321 -  ..
071322 - 0470211  New User Setup Failing
071323 -
071324 - Follow up ref SDS 17 549K.
071325 -
071326 - Line 70, ref OF 2 PD8M, -label crash in 0470211
071327 -
071328 -    Debug 100
071329 -
071330 -       Testing with debug to see what happens.
071331 -
071332 -  ..
071333 - Line 660, ref OF 2 0646, -label NewUsR in 0470211
071334 -
071335 - Enter to proceed after User name and password created.
071336 -
071337 -    Debug 100
071338 -
071339 -       Testing with debug to see what happens.
071340 -
071341 -       F2 Preview feature is broke.
071342 -
071343 -       Had same problem with timer feature that does not seem to work
071344 -       for faster computers, as occurred with 047023 op explained
071345 -       above. ref SDS 0 XD4M
071346 -
071347 -
071348 -  ..
071349 - Line 860, ref OF 2 8841, -label sID in 0470211
071350 -
071351 - Create default User ID
071352 -
071353 -
071354 -  ..
071355 - Line 1000, ref OF 2 2636, -label post_b in 0270211
071356 -
071357 - Enter has been pressed after user ID is assigned by the User, and
071358 - this should then display the User ID and password.
071359 -
071360 - Somewhere the User ID and password have to be entered in 047027 so
071361 - the Group Manager has this information.
071362 -
071363 -    debug 100                    tested here
071364 -    macro 851
071365 -
071366 -
071367 -  ..
071368 - Line 1150, ref OF 2 IL6L, -label Lagain in 0470211
071369 -
071370 -    errorcnt 0 0
071371 -    s #
071372 -    -if @0 > 0 -goto nxcol
071373 -
071374 -       Search for the Username and User ID in Group Manager file,
071375 -       which is called messages.
071376 -
071377 -  ..
071378 - Line 1410, ref OF 2 OY5O, -label newU in 0470211 about 20 lines below
071379 -
071380 -    z 103 133
071381 -
071382 -       Code is looking to see if the User ID has already been selected.
071383 -       Had to change the zone to accomodate changing some months ago
071384 -       that moved the User ID off the main screen, and put it in
071385 -       columns 103 to 133.  There are actually two lists.
071386 -
071387 -     ..
071388 -    errorcnt 0 0
071389 -    top
071390 -    s @
071391 -    -if @0 > 0 -goto New
071392 -
071393 -       Do search from the top, and if User ID is not already in the
071394 -       list, then set up SDS for the User ID selected by the User.
071395 -
071396 -       This feature will need improvement to search the entire list of
071397 -       Users to avoid duplication, otherwise one person's records will
071398 -       overwrite records published by another user.
071399 -
071400 -  ..
071401 - Line 1430, ref OF 2 TO4I, -label New in 0470211
071402 -
071403 -    of 0
071404 -    line 6
071405 -    loc_cur 3 12
071406 -    -if @48 = 100 loc_cur 0 52
071407 -
071408 -       Had to add of 0 because the code originally put the User ID on
071409 -       the main screen, but now it is off set so it is does not show
071410 -       on the main page.
071411 -
071412 -
071413 -
071414 -
071415 -
071416 -
071417 -
071418 -
071419 -
071420 -