I have 4 fields in the list. The two bolded fields are numeric.
def_list #shipperD2 type(*working) entrys(*max) fields(#SHNAME #ShAcco001 #shAlphaCD #shCntl001)
Here is the call to the server function:
#mLoadShippersInv.execute(#usr #ShipperD2)
Here is the definition of the SF.
srvRoutine mLoadShippersInv Session(*REQUIRED)
field_map for(*input) field(#usr)
list_map for(*output) list(#shipperD2)
...
In the server function, at the end of the mLoadShippersInv , I do this to confirm the list is populated:
selectList #shipperD2
#SYS_APPLN.TraceMessageText(('Select shCntl001 &1 shAcco001 &2 shName &3').substitute(#shCntl001.asString #shAcco001.asString #shname))
endSelect
Here are the first two records of the log file from green screen:
510 Select shCntl001 0 shAcco001 1 shName XYZ Company
510 Select shCntl001 50113 shAcco001 50113 shName Arts Company
Here I log to console in the RP for the Drop Down
evtRoutine (#mLoadShippersInv.Completed)
selectlist #shipperD2
#dropDown.Items.Add( #shAcco001.asString #shName)
#MySystemManager.LogtoConsole Text(('ADD to dropdown &1-&2-&3-&4').Substitute( #SHNAME #ShAcco001.asstring #shAlphaCD #shCntl001.asString))
endSelect
My console shows the names (that I obscured for some reason), but no numbers
I have spent hours on this. I've tried changing the name of the list, removing the #dropdown.items.add and just read through the list. Nothing works.
I'll take any suggestions