is their anyway I can populate values from two different columns in single drop down side by side eg. ave-avenue,st-street and so on where short forms are saved in one column and value in another column. Thanks in advance!
<g:select name="streettype" value="${addressInstance?.streettype}" from="${ParaCode.findAllByCodecat('50')}" noSelection="['':'-Select -']" optionKey="abbr" optionValue="value"/>
this is code ,where I am fetching value from ParaCode table , value(avenue) is displayed and abbr (ave)I am saving in address Instance instead of this I want to display abbr-value i.e. ave-avenue and save abbr(ave) at backend – squerys 10 mins ago
答案 0 :(得分:0)
我找到了解决方案,他们有很多解决方案,其中之一是使用闭包