Clarity

  • 1.  How can I use internal ID in a calculated attribute

    Posted Mar 16, 2017 06:14 PM

    I should like to create a calculated attribute which would be the URL of the edit properties page of an object instance.

    The "calculation" would be concat the constant part of the URL and the internal ID of the object instance.

    When I try to build this the internal ID is not available. Basically only the attributes displayed to the user are available.

     

    Selecting an attribute to the calculation will insert what is in the brackets

    If I select eg code and replace that in the calculation with ID it validates OK, but when trying to save it says the calculation is not valid.

     

    Is there a way to get the URL calculated with the internal ID?



  • 2.  Re: How can I use internal ID in a calculated attribute

    Posted Mar 16, 2017 09:13 PM

    Hi

     

    I dont think this is possible. Why dont you create an URL field which gets populated using GEL?



  • 3.  Re: How can I use internal ID in a calculated attribute

    Posted Mar 17, 2017 04:38 AM

    Can you explain "why" you want the attribute to contain this URL - if you put a normal "link" (to the properties page) on an attribute then that URL is there (but hidden in the code). If you "export" then you still get the URL.



  • 4.  Re: How can I use internal ID in a calculated attribute

    Posted Mar 17, 2017 08:49 AM

    Sorry to hear that Aurora_Gaimon 

    With gel it has to be a process. That I think has more overhead than the hidden overhead of a calculated attribute.

    Though either one will be done only once for each instance as the internal ID doesnot change..

    With a process in order to be supported you would have to XOG in the value which makes more overhead.

     

    Dave_3.0 
    What I was eventually after was to get a link in the Organizer notification that works.

    I have this process step which should send notification to the assignee and have a link to the new object instance properties.

     

    That sends the notification

     

    but the problem is that the link ain't a link.

    If you access the action item through the link that is provided you get

     

    which has a link to the properties of the new instance.

    The users protest to this two step operation and even more so if the object in question is actually labelled Action.

    To avoid that I am trying to build a link which would take the user from the Organizer Notification to the object instance properties. A calculated attribute for the link URL was one workaround I thought of.

     

    In an earlier thread it was suggested the it is not possible to create Organizer notifications with gel. That would been my first choice.



  • 5.  Re: How can I use internal ID in a calculated attribute

    Posted Mar 17, 2017 09:21 AM

    OK, it was just that you said "URL of the edit properties page" and that isn't as complex as your actual use-case!

     

    Can you put HTML markup into the "Action Item Description" at all - i.e. around that ${thisDummysub.code} so that it is displayed is a link?

    EDIT : sorry, that wouldn't help would it as its the code not the id. Oops, I'll shut up now. 



  • 6.  Re: How can I use internal ID in a calculated attribute

    Posted Mar 17, 2017 11:02 AM

    The reason why the users are after that is the messages or notifications they get with email. What you get into the organizer looks like this as an email.

    In the email the Click Here works and takes you to the edit properties page of the object instance.

    You can also see the difficulty in explaining how this works in CA PPM when the custom object is called Action.

    My memory did not serve me correctly. What I was thinking earlier was generating the URL in a process step with a gel script and then passing that to the step which creates and sends the notification. Apparently that is no can do.

    Gel Script Return Values to Clarity Process Module 

    Another thread which touches this is

    https://communities.ca.com/message/241823470?commentID=241823470#comment-241823470 

    My notifications are like the the automatic notifications for a user being added, but being a custom object they really are not and thus the possibility to modify the message does not apply.

     

    A supported way were to create the notification with a gel script and then XOG in the notification.

    Looking at the sample notification_write.xml that allows to create the content with a script but that does not contain recipient so to who would that go?



  • 7.  Re: How can I use internal ID in a calculated attribute

    Posted Mar 17, 2017 05:38 PM

    The documentation says

    Read and Write XML Files

    The following XML files are included:

    • notification_read.xml. Use this file to export notification templates from CA PPM.
    • notification_write.xml. Use this file to import notification templates that were previously exported from CA PPM.

     

    So that is only for templates and not for individual items.