Creation of new module

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/26/2009 6:32:17 AM
Gravatar
Total Posts 2

Creation of new module

Hi,

Can someone provide some guide on how to use the codesmith generators to create a module that retrieves, update, insert and delete data from the database and display data in a data grid?

I have created the database table and run the following generators:

mp_UI-starter-ModuleControlGenerator.cst - Create empty module

mp_MySQL_DataLayerGenerator.cst - Generate data layer

mp_BusinessClassStubber.cst - Generate business layer

mp_Table_ToGridView-IListBinding.cst - Generate data grid inside module

Had managed to install the module into MojoPortal and got the grid displayed but no data is being populated..

Can someone advise me here?

 

Thanks


 

 

3/26/2009 6:51:02 AM
Gravatar
Total Posts 18439

Re: Creation of new module

It does not produce a completed result it just produces helpful starter code, you have to finish it and to do that you have to understand the code it does generate. Like if it has a method for BindGrid, you have to call that method in PageLoad. If you are using in place editing or any postback you need t wrap the call to BindGrid inside if(!Page.IsPsotback) and you have to do your own implementation for events. 

Hope it helps,

Joe

3/27/2009 12:33:29 AM
Gravatar
Total Posts 2

Re: Creation of new module

Thanks a million Joe,

Will start cracking on it...

You must sign in to post in the forums. This thread is closed to new posts.