FORUMS

c360 Forums
 Home        Members    Calendar    Who's On

Welcome Guest ( Login | Register )
      



Icon of custom entityExpand / Collapse
Message
Posted 11/8/2006 8:01:08 AMPost #825
 

c360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expert
Ever wanted to use the icon of a (custom) entity in an action on the c360 grid after you changed the custom icon () using the crm customization page?

Use the following code for a full url path to the icon:

String iconPath = String.Format("{0}/_imgs/icon.aspx?objectTypeCode={1}&iconType=DBGridIcon&inProduction=1&cache=1", c360.Toolkit.Util.CRMUrl, ObjectTypeCode);

Provide in the code the ObjectTypeCode of the (custom) entity you want.

Posted 11/8/2006 9:57:25 AMPost #826
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
This is awesome! Thanks for sharing. In fact, we have several controls that always display the standard icon for custom entities instead of the custom one and this is something that I want to improve in the next release. When we implement this improvement, all our controls will respect and display the custom icon.

 

Posted 11/8/2006 10:16:24 AMPost #828
 

c360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expert
Jeremie Desautels (11/8/2006)
This is awesome! Thanks for sharing. ...

  No thanks.

FYI just found out that if you use the ObjectTypeCode a non-customizable entity in the url (above) you will get the   in stead of the icon of the non-customizable entity....

Posted 1/5/2007 4:42:45 PMPost #1000
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
I may be a little slow or stupid on this subject, but can you supply an example of returning this resultset from the datagrid page to the grid page to show the "custom" icon.

Cheers

Posted 1/8/2007 6:09:34 AMPost #1003
 

c360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expert
rouses (1/5/2007)
I may be a little slow or stupid on this subject, but can you supply an example of returning this resultset from the datagrid page to the grid page to show the "custom" icon.

Cheers


Slow? Stupid?...never...not asking is stupid...

I have attached some sample code in a zip.


        String myCustomEntityName = "your custom entity name";

...put your custom entity name in the code matching the quote above...

Also check the comments in the code.
Specifically look at the added "icon" column and the code adding the result node for the "icon" in the GridData page.

I realise the code in the sample is somewhat beyond the c360 toolkit novice user level, this primarily because I tried to "override" the ViewSelector features...
Which did not succeed because changing the view alters the columns added manually using the layoutxml of the savedquery and the custom entity metadata...

But I still hope it will give you an idea on how to do this and that it can be done...

My conclusion: It is probably way easier to wait until the "custom entity icon" feature is implemented in the grid...
 

  Post Attachments 
CustomIconInGrid.zip (162 views, 2.26 KB)

Posted 1/8/2007 6:22:50 AMPost #1004
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Thanks for that I can now see that I was in fact looking in the wrong direction! My excuse, well it was late on Friday etc.

Seriously thank you for the help, that has worked and I can now progress with a small release before Jan 22nd (Next Toolkit release?) and the users will not be confused etc..

Posted 1/23/2007 5:12:54 AMPost #1053
 

c360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expert
Jeremie Desautels (11/8/2006)
This is awesome! Thanks for sharing. In fact, we have several controls that always display the standard icon for custom entities instead of the custom one and this is something that I want to improve in the next release. When we implement this improvement, all our controls will respect and display the custom icon.


...do not see the custom icons in Console 3.0.8
Guess it did not get on top of the new feature list...
Posted 2/25/2007 10:44:07 PMPost #1221
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
This has been reported as defect number DE1035 and is being worked on for release 3.0.9

I have identified the following areas our the SDK that need to handle custom icons for custom entities:

  • The "Create New" button on the grid displays the icon of the current entity next to the word "New".
  • The grid displays the entity's icon on the left-most column is the "DisplayEntityIcon" is set to true
  • The list control displays the entity icon when adding items and specifying the entity type code
  • The popup window of the Lookup control displays the entity icon in the grid's left-most column
  • The text box of the Lookup control displays the entity icon of the item selected by the user

If anybody notices any other areas of the SDK that I have missed, please let me know ASAP.

Thank you 

 

« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: kanika.jackson, Ken Champion

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 6:38am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 1.234. 12 queries. Compression Enabled.