Posted on 06-04-2013 08:10 PM
Just a quick one - is it possible to have a link in the result of an extension attribute? I've been playing around with a couple of ways but I can't get it to work.
Posted on 06-04-2013 08:54 PM
Doubt it. The result that gets returned is typically a string, integer or date value type, I don't think it supports any kind of html markup, so you're likely ending up with the markup showing up as text.
Just curious, but what is the use case here that you see or need? There may be some other approach you can take to get what you want.
Posted on 06-04-2013 09:34 PM
There's another thread that talks about using an extended attribute to retrieve warranty information, but it doesn't work in my case as I'm behind a proxy that requires NTLM auth (so, the jssclient is going to fail when doing recon). I was thinking of creating an extended attribute that pulled the serial number, and then formatted it into a link that takes you to the page itself. It would be useless for reporting or Smart Groups, but it would give me a one-click way of checking from the JSS.
Posted on 06-05-2013 07:22 AM
I see. Well, as I said, I really don't think you'll be able to get it to display a clickable link. The fields need to support some kind of markup and I'm fairly certain it does not, possibly for security reasons. For example, in older versions of the Casper Suite, the Self Service application used to support basic html, but it was removed to prevent the possibility of XSS (cross side scripting) attacks. It may be a similar reason the JSS web app fields don't support markup.
The best I think you can get would be to simply format the string that displays in the EA result as the full URL to the Mac's warranty page. It's a pain, but you should be able to double click it to highlight the full string, and copy and paste into a browser window.