You *should* be able to have your backend service return values as "display=value". TBH, I've not tried it personally but the internal mechanics should be the same.<br><br>I'd be interested in your feedback so we can schedule improvements if necessary.<br>
<br><div class="gmail_quote">On 13 December 2011 13:10, srinivasasanda <span dir="ltr"><<a href="mailto:srinivasasanda@gmail.com">srinivasasanda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I have a declarative model with a fact named Person with<br>
field*(country,state)*<br>
<br>
I have seen in guvnor documentation that<br>
'Board.type':['short','long','NN=MIn Mal']<br>
<br>
Min Mal will be displayed in GUI where as NN will be used backend<br>
<br>
In the sameway,I need to use country ids instead of countrynames in backend<br>
where countryname should displayed at GUI.How I can do this?please suggest<br>
me..<br>
'Person.country':(new com.sample.DropDownList()).loadCountriesList()-----<br>
<br>
Countries are succesfully loaded---US,UK,JAPAN....etc....in dropdown list<br>
Now I should use different IDs for these different countries in backend.<br>
<br>
In the above enumeration I should use different Ids for different countries<br>
in backend(rule)..How can I do this<br>
<br>
Please suggest me.Please How can I achieve<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3582244.html" target="_blank">http://drools.46999.n3.nabble.com/Store-a-Map-in-Country-Enumeration-tp3582244p3582244.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></span></blockquote></div><br>