Alfresco creation of custom data model programmatically - alfresco

I have created a custom data model in Alfresco share. I want to apply values to that custom data programmatically.
Can any one suggest the proper way to do it?

You can create your custom control on FTL file and when you define your form in Alfresco share your set the URL of this control.

Related

Add custom form data to Drupal module without using CCK fields

Iam very new to Drupal 7 so bear with me. I have created a jQueryUI drag and drop interface with JQueryUI tabs. My problem is i cant find the correct hook to add this custom interface to the admin interface. Like so (mockup) http://onlinemedia.rmcad.edu/sandBox/screenshot/screen-shot.jpg
All the examples I find are using CCK fields. CCK fields are great but they dont have this kind of custom functionality I want or does it?
Any help would very much be appreciated.
J
cck is drupal 6, not 7. to add to the node creation form you could use hook_form_alter or hook_form_ID_alter.
Check the form api documentation to get an idea of how to add stuff to the form object in either of those hooks.
From your mockup I understand you intend to add this drag&drop interface to a content-type.
If that's the case, I'd recommend you to add the appropriate fields first. Those would help storing the data in Drupal way, once the node is saved.
Once you are satisfied with the fields collecting the data you need, create a module and use hook_form_FORM_ID_alter hook to integrate your "interface", the presentation layer by altering those fields.
If you don't want to add CCK/Field components to store your data how about you create your own database table and store your custom data in there?
This approach is a long one but I have used it to great effect on a very big and complex project.
You will need a custom module with an install script which contains the details of your custom database table.
Forgive me but I don't remember the hook for altering a node-edit-form but that is where you input the code which implement your drag-'n'-drop elements.
Then, you could save the settings altogether when the node-edit form is submitted but I think it's probably better to implement some AJAX to save the settings to your custom database table. So, when a component is dropped into it's final resting place, you use AJAX to save that information to the database.
When a user comes back to edit that page, you simply load your custom settings and apply them to the drag-'n'-drop features and their previous configuration(s) would be visible to them.
I do hope that makes sense and it helps you.

Dynamics AX: Filter out ItemGroup on Custom Form Lookup

On the form InventItemIdLookupPurchase, I need to display all Item Groups except Service.
Can I achieve this without writing a custom lookup?
No, you do need a custom lookup.

ASP.NET Dynamic Data - Custom Pages for derived types

I am able to create custom pages for a base type, but not for any of its derived types.
I have a Product class and derived types LightPipe and CardGuide. I created a custom page under CustomPages/Products/List.aspx. This work fine; Dynamic Data uses the custom page when displaying base Product entities.
However, when I create a custom page for LightPipe under CustomPages/LightPipes/List.aspx, Dynamic Data still uses the standard page template under PageTemplages/List.aspx rather than my custom template.
Is this a limitation of Dynamic Data?
Thank you for your time.
EDIT: Added clarification.

Drupal, rest server. How do i include custom fields in index view?

I am trying to set up a json api in Drupal 7 using services and rest_server.
So far i can get a list of Nodes at http://localhost/api/node.json
and view a specific node at http://example.com/api/node/{id}.json
Is it possible to customise the fields that are displayed in the index view ??(http://example.com/api/node.json)
Specifically i want to add one or two custom fields to my custom content type which need to appear in the index json when querying the api
This is possible, by adding the module "Services Views"
You can choose on the view all fields you need.
I just did by myself right now.
I hope that will help you or somebody :)
Jerome

How to create a custom form in drupal

I need help on how to create a 'custom form' using the same fields provided by cck.
Drupal gives you the ability to add fields to 'nodes' and how to theme their output. But I would like to be able to post a data from my own form (that pops-up) and sends data to the drupal database using the same drupal cck.
How do I access the specific form inputs to add data to my content types ? because the default form is kind of 'ugly' and loads on different page(without ajax).
Help would be much appreciated
There are several routes you could go down.
The easier option is to use the Webforms module. While this gives you similar fields to cck, they are not exactly the same, and if you have a module that implements a specific cck field type, it won't be available to webforms.
The second choice is to write your own module using the forms api. This can mean a lot of learning, add it takes time to get up to speed, but ultimately you have total control over how your form will look and behave. The forms api doesn't give you exactly the same fields, but all the tools are there to create them. Sometimes you need to hack open a module to find out haw a specific field is implemented.
A third option would be to use cck itself. You could create a content type and add the field types you want on your form. You would them give users permission to create but not view or edit the content type. The form submissions would them be nodes on your website. This would make me slightly nervous, so make sure all your permissions are correct!
The second part of your question: you can use a theme file to override the appearance of most forms and make them pretty.
James

Resources