Maybe I am not using the best method for this but am now at a loss. I create a dialog to show background events relating to a cell clicked. Each record is an event. It works fine except for the number of lines displayed.
For testing I included sample data in the example below. The %d directive should autosize but doesn't work here. The user needs to view the final event (last record) and the recent history above that. This one starts at the first record and doesn't resize - I need to either re-position to the last or display all.
In any desktop version, paste the below to IW and run it.
For testing I included sample data in the example below. The %d directive should autosize but doesn't work here. The user needs to view the final event (last record) and the recent history above that. This one starts at the first record and doesn't resize - I need to either re-position to the last or display all.
In any desktop version, paste the below to IW and run it.
Code:
DIM SHARED sl as C DIM SHARED varC_result as C auto_list_sl = table.external_record_content_get("cusord3_events","Time+\"|\"+Column+\"|\"+Columnstatus+\"|\"+Columncomment","",evflt) 'you haven't got the table for the line above, can populate the var by running block below to test auto_list_sl=<<%str% = 28/10/2014 08:58:31 57 am|proforma |Received OK |tryu iam 28/10/2014 11:07:18 67 am|proforma |Pending 1 | 28/10/2014 11:59:42 19 am|Costings |Rejected |Reject1 29/10/2014 01:13:24 42 pm|Fit Sample |REQST ACCEPT |ZiNJO reqsted a quote 4 29/10/2014 01:20:03 84 pm|Costings |RECVD REJECTE|ZiNJO got quote 4 not accepted BINGBONG is lower 29/10/2014 11:58:48 71 pm|Fabric |Weight Rejecte|too thin fabric 30/10/2014 11:19:27 59 am|Costings |Labels ACCEPT |yyy7543 30/10/2014 11:20:52 21 am|Costings |RECVD REJECTE|yyy7543rej 30/10/2014 03:05:38 11 pm|Fit Sample |2nd Rec/Hel|Checkselves here 01/11/2014 08:06:27 33 pm|Fit Sample |1stFit Rec/Fwd| 02/11/2014 03:42:21 74 pm|ETD |Ship APPROVE|Chang Zen 02/11/2014 03:43:08 30 pm|Costings |REQST waiting|wAN WI NFACTORY 02/11/2014 04:38:16 21 pm|Costings |RECVD waiting|MUNGMIN ZHI sent qte for large quantity 02/11/2014 04:39:49 46 pm|Costings |RECVD waiting|LUIS sent qte only for RED 02/11/2014 05:22:43 26 pm|Costings |RECVD waiting|Selvin Best so far 03/11/2014 02:37:23 81 pm|Fit Sample |2ndFit Forward|Biju consideration so far %str% linec=line_count(auto_list_sl) ' in case I can use this in the dlg string? Dim format as p Format.tab_stops="2,3,4,5" Format.font="Arial,9" Format.group_size=1 Format.number_rows=.t. 'Apply 'owner draw' formatting information to the list auto_list_sl = a5_owner_draw_list_fmt(auto_list_sl,Format) temp_count = w_count(auto_list_sl,crlf()) DELETE a_sl DIM a_sl[temp_count] as c a_sl.initialize(auto_list_sl) varC_result = ui_dlg_box("Alpha Five","| [%d;O={@@}%.140,5sl^#a_sl];")
Comment