It's all about the answers!

Ask a question

create own xml/script file globally and how to access the data of that file.

Anurag Patel (21568) | asked Sep 20 '16, 1:26 a.m.
edited Sep 20 '16, 3:44 a.m. by Ralph Schoon (63.3k33646)
Hi All,

I am working in CCM project area. Currently I have created the Value set and applied on attributes of work items. Using this I am not able to make it as dependent on each other for multiple attributes. 
I have a data it excel file and want to upload it in single file and from there I will access in work item.
I tried with X Path expression but it won't work for me for due to miltiple dependency.

Is there any way to deploy my own xml/script file on server and from there I will access it into work item. Or access data in value set of attribute of work item.

One answer

permanent link
Ralph Schoon (63.3k33646) | answered Sep 20 '16, 3:43 a.m.
I have a hard time following your question.

You can't access any files (regardless their location) from the JavaScript Attribute Customization. I also don't think it is a good idea.

The attribute customization is run in a JavaScript interpreter and has access to the process specification. In the process specification underneath the attribute customization you can provide parameters for the provider. This has reasonable performance, considering that the provider might have to be called several times.

You can use the HTTP filtered value set if you want to access external data in a value provider. See for some options how to publish this data. You would basically use a web server such as Apache or, as an alternative, the app server using to host CLM. It has to be XML or a format that can be consumed in the http filtered value set provider.

Anurag Patel commented Sep 20 '16, 5:44 a.m.

Thanks Ralph for your reply.

My requirement is :
I have some attributes in work item and all are dependent on each other having many to many relationship. 
I was thinking to make a global file, put all the data into that file and access the data from there using a value set and according to requirement it will filter the data.

Can you suggest any solution above. I tried using x path but due to String List type of attribute I am facing some problem. Is there any other way to implement above functionality.


Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.