I am trying to create an item list from a history record that can be used in a display combo box. I am running into the problem of getting all the records in field "A" in a list. Any suggestions ?
So you have an HRC with 000.000.00.00 in field A? An HRC contains only text, so you should be able to loop through it & write the field A into an XML. Not sure how CVHISNAM will help you though. Or have I misunderstood something?
! SLCSTY (SRC=PART_LIST, TRU=RANGE, DEL=Y, TYP=HRC, STR=25*, MOD=MT, DSC=A)
! TXT/MSK for listing Field 'A' of HRC to a TXT
!!CVMSKTXT (TXT=HRC_Field_A, MSK=HRC_Field_A)
!EDTTXT HRC_Field_A
!CNVTXT (NAM=HRC_Field_A)
! strip out field 'A' of the HRC, this is part field, to be used for pulldown list
LISHRC (NAM=LDBHRC:RANGE, DEV=D1, MSK=HRC_Field_A, TXT=DLP_XXX_LIST)
RMVDUPLNS (NAM=DLP_XXX_LIST)
RPLSTR (NAM=DLP_XXX_LIST, FRM=Size, TO ='')
! EDTTXT DLP_ROTOR_LIST
! convert TXT listing to XML for use in DLP
CnvTxtToItemList (TXT=DLP_ROTOR_LIST, XML=ROTOR_LIST)