cancel
Showing results for 
Search instead for 
Did you mean: 

metadata with content type

sachinr_bhat
Champ in-the-making
Champ in-the-making
Hi all,

I have a set of documents: purchase invoices, sales invoices, bank statement, sales report. Each of these types of documents have different set of metadata. I am using jibe framework with alfresco.

Eg:
1)purchase invoice:
metadata: supplier code, date, extraref etc.
2)sales invoices:
matadata: customer code, transref, cost code etc.
3)sales report :tax code, tax amt, gross etc.

2 Requirements:
1)While uploading a file if i select doc-type as "purchase invoice" then i should save metadata related with it. How i should approach this problem?
2)While uploading a file if i select wrongly doc-type as "sales invoice", but while processing i will change to correct doc-type "sales report" then i should save metadata related with sales report. How i should approach this problem?

Thanks and Regards,
Sachin Bhat.
3 REPLIES 3

invictus9
Champ in-the-making
Champ in-the-making
When the document is uploaded and you select a type from the drop-down list of "Purchase Invoice" on the first screen, Alfresco will show you a second screen to allow you to fill in additional metadata.

You can't change a document from one type to another. You essentially have to copy it off the server, delete it and upload it, setting the right type as you do.

sachinr_bhat
Champ in-the-making
Champ in-the-making
Hi Invictus,

Thanks a lot for your quick reply invictus. As i came to know from google that i can change doc-type in the downward direction(parent->child) but not in upward direction in alfresco. Is it not right?

If any links related to node-service and content-service api usage examples it will be lot more helpful sir.

org.alfresco.service.cmr.repository.NodeService;
org.alfresco.service.cmr.repository.NodeService;

Thanks and Regards,
Sachin Bhat.

javidmasti
Champ in-the-making
Champ in-the-making
I also have the same problem