Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Custom table View modes: 
User avatar
Member
Member
nabraham-tibus - 1/18/2012 6:20:08 AM
   
Custom table
Hi

I want to create a custom table through Kentico, Can I change the primary field name through kentico. (in kentico ity shows as ItemID, I want to change it.)

If I change the fiels name in SQL datbase, the new name is not showing in kentico cms.

Thanks, Nibu

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/18/2012 7:04:31 AM
   
RE:Custom table
Hello,

Regrettably, it is not possible. As you can see in our documentation, the primary key name cannot be changed:

http://devnet.kentico.com/docs/devguide/index.html?creating_custom_tables.htm

Best regards,
Jan Hermann

User avatar
Member
Member
nabraham-tibus - 1/18/2012 7:27:07 AM
   
RE:Custom table
Thanks Jan Hermann

User avatar
Member
Member
nabraham-tibus - 1/18/2012 7:41:23 AM
   
RE:Custom table
Hi Jan Hermann

Thanks for the Info. How can I import the date to the kentico custom table ? Is there any method in kentico.

Thanks, Nibu

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/18/2012 9:46:09 AM
   
RE:Custom table
Hello,

Of course, please follow the link below to our documentation:

http://devnet.kentico.com/docs/devguide/index.html?custom_tables_api_examples_managing_custom_table_data.htm

Best regards,
Jan Hermann

User avatar
Member
Member
luyolo.mhlauli-nmmu.ac - 1/23/2012 3:10:16 AM
   
RE:Custom table
I have an asp.net calendar control. When you click on a date it passes the date(string format) to another page which has a custom table form web part . The custom table form web part has two fields( date and description ). How can I get the date in the querystring inside the date field using code when the custom table form web part loads.

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/23/2012 6:35:56 AM
   
RE:Custom table
Hello,

We have no such a web part called custom table form web part, so that would be your custom one and you can use our API to get the value from your parameter in a query string like this:
CMS.GlobalHelper.QueryHelper.GetString("param", "no parameter");

(where "param" is a name of a query string and "no parameter" is a default returned string, when the param is missing in url)

Best regards,
Jan Hermann