This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Accessing permissions

Urban_42 - Tuesday, July 3, 2012 4:49 AM:

Hi,

I have a problem accesing permission for a given CAD document, so far I have written this:

var innov = new Innovator();   //new Object

var cadId = this.getID();   // get ID of chosen doc

var cadItem = innov.getItemById("CAD",cadId);  //gets the Item

var allow = cadItem.getRelationships("Allowed Permission");  //find relationship

var perm = allow.getRelatedItem("Permission"); //get related item Permission

 

Can you recommend some suggestions please,

thanks, Urban



Brian - Wednesday, July 4, 2012 7:42 AM:

Hi Urban,

Does this give you an error? Say a "not a single item" error?

Or is there something else that isn't working the way you expect/want it to?

There really isn't enough information in this post to give useful help.

Cheers,

Brian.



Urban_42 - Wednesday, July 4, 2012 7:52 AM:

Hi,

I get the following error:

The method "open_vaulted_word" failed.aras_object: "-2146232828" : "Exception has been thrown by the target of an invocation."Client Side Error

 

What I am trying to do is access related_id of permission via allowed permission relationship. Hope this has cleared it up.

 

Thanks, Urban