axapta - X++ loop through lines in grid control -


so idea assign icon window control in grid control of form (purchtable), depending on whether record has document attached it.

i use select statement check docuref if there match between refrecid , current recid.

so question is, how assign different icon each line? can't figure out :/

i'm guessing wrote display method similar method showdochandicon on table inventtestgroupmember. in case, need return icon resource number depending on data of current line. example lines contain enum field , enum has 3 values 1, 2 , 3 , values 1 , 2 want return icon 1 , value 3 want return icon 2.

btw, wrote check if there match between refrecid , recid. please consider checking refdataareaid , reftableid, since refrecid may not unique in table docuref.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -