Quantcast
Channel: Microsoft Dynamics GP
Viewing all articles
Browse latest Browse all 38722

Forum Post: RE: How to deal with scroll-bar windows when using macros?

$
0
0
Hi Jason, Once you reach the bottom of the visible rows, you need to keep adding the data to the last row. For example, in the Item Transaction entry window, 5 rows are visible by default. After the 5th row, all of the subsequent rows are still the 5th row. So, to make this work, you need to add the ScrollByLine down scrollwin 'IV_Transaction_Scroll' after the 5th line. Every line you add after the 5th line is still the 5th line. I wrote a macro for SOP line items where there are 8 rows visible. Notice how everything after the 8th line is still considered line 8. The only difference is the ScrollByLine down command. CheckActiveWin dictionary 'default' form 'SOP_Entry' window 'SOP_Entry' ClickHit field 'SOP Type' item 4 # 'Invoice' MoveTo field 'Document ID' MoveTo field 'SOP Number' MoveTo field 'Customer Number' TypeTo field 'Customer Number' , 'AARONFIT0001' MoveTo field 'Customer Name' MoveTo field 'Primary Shipto Address Code' MoveTo field 'Document Date' MoveTo field 'Batch Number' TypeTo field 'Batch Number' , 'AUG31' MoveTo field 'Location Code' MoveTo field 'Customer PO Number' MoveTo field 'Currency ID' TransLinePrepare scrollwin 'Line_Scroll' # MoveTo line 1 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 1 scrollwin 'Line_Scroll' field 'Item Number' , '128 SDRAM' MoveTo line 1 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 1 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 1 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' # MoveTo line 2 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 2 scrollwin 'Line_Scroll' field 'Item Number' , '1-A3261A' MoveTo line 2 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 2 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 2 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' # MoveTo line 3 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 3 scrollwin 'Line_Scroll' field 'Item Number' , '128 SDRAM' MoveTo line 3 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 3 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 3 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' # MoveTo line 4 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 4 scrollwin 'Line_Scroll' field 'Item Number' , '128 SDRAM' MoveTo line 4 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 4 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 4 scrollwin 'Line_Scroll' field '(L) Extended Price' # TransLinePrepare scrollwin 'Line_Scroll' MoveTo line 5 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 5 scrollwin 'Line_Scroll' field 'Item Number' , '1-A3261A' MoveTo line 5 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 5 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 5 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' # MoveTo line 6 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 6 scrollwin 'Line_Scroll' field 'Item Number' , '128 SDRAM' MoveTo line 6 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 6 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 6 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' # MoveTo line 7 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 7 scrollwin 'Line_Scroll' field 'Item Number' , '1-A3261A' MoveTo line 7 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 7 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 7 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' # MoveTo line 8 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 8 scrollwin 'Line_Scroll' field 'Item Number' , '128 SDRAM' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' ScrollByLine down scrollwin 'Line_Scroll' # MoveTo line 8 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 8 scrollwin 'Line_Scroll' field 'Item Number' , '1-A3261A' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' ScrollByLine down scrollwin 'Line_Scroll' # MoveTo line 8 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 8 scrollwin 'Line_Scroll' field 'Item Number' , '128 SDRAM' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' ScrollByLine down scrollwin 'Line_Scroll' # MoveTo line 8 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 8 scrollwin 'Line_Scroll' field 'Item Number' , '1-A3261A' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' ScrollByLine down scrollwin 'Line_Scroll' # MoveTo line 8 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 8 scrollwin 'Line_Scroll' field 'Item Number' , '128 SDRAM' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' ScrollByLine down scrollwin 'Line_Scroll' # MoveTo line 8 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 8 scrollwin 'Line_Scroll' field 'Item Number' , '1-A3261A' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' ScrollByLine down scrollwin 'Line_Scroll' # MoveTo line 8 scrollwin 'Line_Scroll' field 'Item Number' TypeTo line 8 scrollwin 'Line_Scroll' field 'Item Number' , '128 SDRAM' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Dropship' # 'FALSE' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Unit Price' MoveTo line 8 scrollwin 'Line_Scroll' field '(L) Extended Price' TransLinePrepare scrollwin 'Line_Scroll' ScrollByLine down scrollwin 'Line_Scroll' Kind regards, Leslie

Viewing all articles
Browse latest Browse all 38722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>