I'm trying to develop a custom module inside ActiveCollab(4.0.11) for adding some extra fields while adding/editing projects. ActiveCollab itself has ability to add only 3 custom fields, but I need to add more fields(text,dropdown etc). I have gone through the documentation of creating modules and started working on it, but did not get much details. I have used "on_project_created" event to trigger my custom module to capture the Project form data(added the required custom fields in to ActiveCollab database tables tables and it started showing on project add/edit form automatically). Now I'm stuck with not knowing how to pass the posted values from Handler function to Controller.
Any help would be greatly appreciated.
activeCollab supports only three custom fields and there is no officially supported way to programatically add more fields. Exploiting internal API-s may work, but it is not recommended. These API-s may change or even disappear at any point, without prior notice.
Related
I am trying to create some dynamic forms using Piranha CMS. As far as I managed to learn it is not supported right now, so I'm looking for work arounds or alternatives.
What I want to do now is use the editor from the manager for other users. To be more precise: this is how the editor looks like inside my manager when I want to edit a page
I have a text input and a select, both are Fields and there are many more fields to be used.
I want the sys admin to create a page with a list of inputs like this, which right now are usable only by the admin. BUT make this list of inputs available for edit to other users as well. Is it possible?
I'm not sure how to extract this editor or behavior or even if it is possible. The problem is we really need the admin to be able to configure different form inputs for users as it is the main core of our functionality.
Any help/advice is highly appreciated, thank you!
The components in the management UI is not designed to be reused in the front-end application in any way. The edit models in the manager contains a lot of extra meta data since the UI is completely generic. If you want to build an edit UI in your front end application, and you're using MVC or Razor Pages, the simplest way is to.
Get the generic model instead of your strongly typed model, for example api.Pages.GetById(...) instead of api.Pages.GetById<T>(...).
Loop the available fields in your selected region (a region is an ExpandObject which can be casted to an IDictionary<string, object>).
Use the built in support in Razor by calling #Html.EditorFor(...) for the fields.
Using this approach you can easily create your own EditorTemplates for the different types of fields you use that will match the rendering in your client application.
Best regards
HÃ¥kan
Given a project and some issues in it, I want to create a new custom field and populate it for some issues.
I see that the editmeta api returns the list of fields that are already on the issue and can be edited (updated). But how do I edit the metadata itself?
(Motivation: we migrate from another tool and want to preserve some original data after the standard export/import is done)
You will need to add new custom field(s) Jira administration. You cannot add new fields on-the-fly using common "edit issue" method.
If you are admin of whole Jira system, you can add it by yourself. If not, you will need to ask your Jira admin to do it. The new field must be also added to proper issue screens so that the field is available for editing (either from UI or from REST API).
See more here: https://confluence.atlassian.com/adminjiracloud/create-a-custom-field-991923727.html
I am building a custom module for Sugar v.6.5.16. This module works with data of other modules so my module does not need database table, I do not want beens, not importable, I actually do not want anything. I have my own controller, own classes, etc and end of the story. It works. Now I want to create an installable package and NO, I DO NOT WANT TO MAKE A PACKAGE IN STUDIO. I have become quite frustrated because everyone suggests to create the package in studio where it is obbligatory to select a type(basic, company, etc) which will add data structure, bean, db table - which is really handsome but I do not want all that stuff. I actually made a test package with studio and I removed all bean info from manifest file and killed vardefs content and I managed to install it but then my module does not get listed in the "module=Administration&action=ConfigureTabs".
So, the question is what do i put where to be able to see my module listed?
Old post, but I think this page is really worth reading: http://alanstorm.com/sugar_crm_hello_world.
Excellent example of minimal module coding without studio and at the same time a very nice introduction to Sugar logic.
i Do agree with Rupesh shingh Create custom module fully in sugarcrm is not a good approach until and unless u understand the complete flow !
for understanding the flow you can go through this :-
1)understand controller,views and how it we can use it
Hello module
And try to complete 2-3 chapter of this book definitive guide by John Mertic
2)create costume module from studio and first try to do customization with edit and detail view
Flow how customize edit and details view
3)After this try to customize list view based on condition and try to customize additional details popup add where clause default listview try to create you own list view Add custom button in list view to overwrite the list view search
4)go through chapter 10 of definitive guide by John Mertic which shows how to create custom module with out creating package in studio ( manually ) !
I hope this will help !!!
please check link
http://techs.studyhorror.com/sugarcrm-manually-create-custom-modules-i-95
Create custom module in sugarcrm is not a good approach so avoid this process, as per understanding coding and logic for sugarcrm development practice is good to create module from custom code.
I have the need to add a licence field to the APIs published by the API manager.
It does not seems to be any extension point beyond the api.rxt file in the resource folder.
If I modify the file and run the application the carbon app correctly show the added field, but nor the publishe nor the store are able to get the field and there is no way to get it also with REST APIs since it calls a method of a class that (in later versions) outputted fields positionally.
Is it possible to add the field, without running the risk of crashing the API Manager?
Which is the correct way?
Thanks
This change cannot be done without modifying the code. When an API is created from the Publisher app, it gets stored in the registry. The api.txt you modified, only defines the structure of this stored artifact. It may add a new field to the artifact, but to correctly populate that field, you need to modify several methods in APIProviderHostObject and APIProviderImpl + several Jaggery scripts.
I have created a custom module that tracks callbacks pertaining to a specific account. I need to know how to build a dashlet that can pull that account information based on the foreign key given. Can someone help me understand how to modify a dashlet to reference data from another module?
Take a look at the dashlet definitions in modules/Home/dashlets folder. What kind on view you want to achieve will depend how to do it. I allways used custom html view that i populated with data using php. Another option is to use generate listview functions and query's to utilize the SugarCRM function.
There is no simple explanation here.