Hi all,
I am trying to customize the MyContactsDashlet on my home page. I am not having any luck.
Here's what I'm going for: I have a custom field in Contacts called Status (AKA contact_status_c). It has three possible values, and I want the dashlet to only display Contacts whose status is "Awaiting Action".
In modules/Contacts/Dashlets/MyContactsDashlet/MyContactsDashlet.data.php , I added this line to the "Search Field" array at the top of the file:
And when I try to view the homepage I get this error:Code:'contact_status_c'=> array('default' => 'Awaiting Action'),
I'm not sure why it's looking for SugarWidgetFieldrelate.php, or why it thinks its class in that case is 'relate'.Code:Warning: LayoutManager::require_once(include/generic/SugarWidgets/SugarWidgetFieldrelate.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/ucds/code/include/generic/LayoutManager.php on line 251
On a whim, I take out the "Awaiting Action" so that it says
Now the homepage loads, but when I go to the MyContacts dashlet edit screen, it saysCode:'contact_status_c'=> array('default' => ''),
Anyway, since it's a custom field, I thought maybe it could help if I gave the field a table name to go with it. (Don't look at me like that -- this exact thing has worked in sugar before!)Code:"There was an error handling this request!"
Now if I try to edit the dashlet, the normal edit screen shows up. But in the place of a nice selection box where I can choose to filter by status, I getCode:'contacts_cstm.contact_status_c'=> array('default' => ''),
I've read the dashlet wiki, and I have no idea what this "Not Implemented" business is, or why it would be so hard to add in a filter-able field to a dashlet. I have searched the forums and found a few other posts where this same issue was related, but never solved (or even really explored). Developers, experts, anyone?Code:-- Not Implemented --
Thanks
Eileen
P.S.! If the code reads:
Then I get a whole different error on the homepage. Like so:Code:'contacts_cstm.contact_status_c'=> array('default' => 'Awaiting Action'),
Code:Fatal error: Call to undefined method SugarWidgetField::queryFilterStarts_With() in /var/www/ucds/code/include/Dashlets/DashletGeneric.php on line 261


LinkBack URL
About LinkBacks




Reply With Quote
Does anyone have any ideas?


Bookmarks