Thursday, 21 March 2013

Dealing with multienums with SugarCRM

Greetings!

SugarCRM comes with a very handful function to convert multi enum values from ^value_1^,^value_2^,^value_3^,^value_4^ into an array.


$aField = unencodeMultienum($fieldValue);
var_dump($aField);



will give you an array.

In the same manner the reverse is possible. Give an array of values which will be converted into a string which SugarCRM understands.


encodeMultienumValue($arr);


Hope this helps.

Feel free to leave comments.

No comments:

Post a Comment

Urdhva Tech Pvt. Ltd. Powered by Blogger.

Urdhva Tech

My Photo
SugarCRM Consultants Contact us at contact@urdhva-tech.com Skype : urdhvatech

Search This Blog

Loading...

Stay connected Socially

     

Total Pageviews

Popular Posts