API
Version 7.x > API > API Examples View modes: 
User avatar
Member
Member
positivepurchasing - 9/18/2012 9:34:24 AM
   
API Examples
Hi


In 'CMS Site Manager > Support > API Examples' there are green and blue buttons but I don't understand what they do or what I should do.

Please can someone tell me how to use this section or post a link to some documentation on how to use this section because I'm clueless!


Cheers
Paul

User avatar
Member
Member
kentico_edwardh - 9/18/2012 9:43:25 AM
   
RE:API Examples
Hello Paul,

Please see the following link for more information on how to use this section -

http://devnet.kentico.com/docs/devguide/api_examples_user_interface.htm

Best Regards,
Edward Hillard

User avatar
Member
Member
positivepurchasing - 9/18/2012 10:06:17 AM
   
RE:API Examples
Hi Edward

Thank you for your reply.

So when I click a button it actually runs the code and affects the database. I'm sorry but that seems a completely mental idea.

Why not just show the code?

Cheers
Paul

User avatar
Member
Member
kentico_edwardh - 9/18/2012 1:00:50 PM
   
RE:API Examples
Hello Paul,

You can display the code for any of the modules, by clicking the magnifying glass next to the green and blue buttons.

Best Regards,
Edward Hillard

User avatar
Member
Member
positivepurchasing - 9/19/2012 6:22:17 AM
   
RE:API Examples
Hi Edward


I see that clicking the magnifying glass in version 6 shows the code but not in version 7.


Cheers
Paul.

User avatar
Member
Member
kentico_edwardh - 9/19/2012 11:20:33 AM
   
RE:API Examples
Hello Paul,

Is there a particular API example you are trying to view? I am able to view the code by clicking on the magnifying glass in IE, Firefox and Chrome without any issues in version 7.0.

Best Regards,
Edward Hillard

User avatar
Member
Member
positivepurchasing - 9/20/2012 3:56:11 AM
   
RE:API Examples
Hi Edward

I'd like to know how to insert, update and select from the db using the Kentico API. Presently I query the db directly as the API is non intuitive and I can't find any tutorials.

Cheers
Paul

(I'm using win7, iis7.5, sql 2012, vs 2012, ie, ff. and the magnifying glass does not work)

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 9/20/2012 5:15:26 AM
   
RE:API Examples
Hi Paul,

If you are not getting through the API examples, please try to read the following Knowledge base article where you can find also the examples of code:
KB - Using the data layer API to query your Kentico database
or look at the SqlHelperClass Class in the Kentico CMS API Documentation.

I haven't noticed any problem with the magnifying glass in v7 testing on IE9 and FF15, win7.

Best regards,
Martin Danko