Hi,
here's the to-do list:
- create a dropdown in studio/module builder
- write custom code to override dropdown definition
- put custom code in the right php file
In my case, I
- created a dropdown to show data from db in Account's editview.
- wrote php code to run a simple sql query on a db table:
Code:
$myQuery = "select * from my_table";
$myResult=mssql_query($myQuery);
while ($myRow = mssql_fetch_array($myResult)) {
$myArray [] = $myRow['my_table_field'] ;
}
$GLOBALS['app_list_strings']['MyDropdown_list']= $myArray 3. put this custom code in <sugar-root>\custom\include\language\en_us.lang.php
Bookmarks