API Questions on Kentico API.
Version 6.x > API > add Custom fields View modes: 
User avatar
Member
Member
mehrdadilchizadeh-yahoo - 1/15/2013 3:22:41 AM
   
add Custom fields
how add Custom fields in project managment?
SELECT        TOP (200) ClassID, ClassDisplayName, ClassName, ClassShowAsSystemTable
FROM CMS_Class
WHERE (ClassName LIKE 'PM.Project')

and then update the record in column ClassShowAsSystemTable to true. Now, login into the Site Manager and follow this documentation: devnet.kentico.com/docs/devguide/system_tables_overview.htm

User avatar
Member
Member
mehrdadilchizadeh-yahoo - 1/15/2013 3:57:53 AM
   
RE:add Custom fields
mehrdadilchizadeh-yahoo wrote: how add Custom fields in project managment?
SELECT        TOP (200) ClassID, ClassDisplayName, ClassName, ClassShowAsSystemTable
FROM CMS_Class
WHERE (ClassName LIKE 'PM.Project')
and then update the record in column ClassShowAsSystemTable to true. Now, login into the Site Manager and follow this documentation: devnet.kentico.com/docs/devguide/system_tables_overview.htm

IN MY CMSDESK I CAN SEE THE NEW Custom fields....PLZ HELP ME...

User avatar
Member
Member
vasiliy.ivanov1975-gmail - 1/15/2013 11:59:58 PM
   
RE:add Custom fields
Are you sure you really set the value in column ClassShowAsSystemTable to "true" in the appropriate record?

How did you updated the record?

User avatar
Member
Member
mehrdadilchizadeh-yahoo - 1/16/2013 12:46:03 AM
   
RE:add Custom fields
yes...

i see the table in tablesystem and i add new field... but i can see the custom fields in cmsdesk--->project

i finde list.xml and add this code:
<column source="email" caption="ایمیل" wrap="false" externalsourcename="email" />

and add this line code in list.ascx

protected object gridElem_OnExternalDataBound(object sender, string sourceName, object parameter)
{
DataRowView row = null;

switch (sourceName.ToLower())
{

case "email":
string email = ValidationHelper.GetString(((DataRowView)((GridViewRow)parameter).DataItem).Row["email"], "");
return HTMLHelper.HTMLEncode(email);

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/16/2013 6:56:17 AM
   
RE:add Custom fields
Hi,

What you need to do is to edit the UniGrid control as well, please see:

UniGrid documentations

Best regards,
Juraj Ondrus

User avatar
Member
Member
mehrdadilchizadeh-yahoo - 2/17/2013 5:23:02 AM
   
RE:add Custom fields
thank you