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 - Stylesheet client reports.

Shantha - Friday, February 8, 2013 1:57 AM:

Hi Team,

Im stuck with small issue in Reports,Actually i want to display first name of Item type "User" who is currently logged in while generating a report it should capture automatically. So in my MultiLevel BOM report in stylesheet i updated a Line next to "Generated on" new <td> i opened and my code like below code.

 <td colspan="2" style="font-family:helvetica;font-size:10pt;padding:2px;" align="left" uniqueID="ms__id81">by:              <script>
var b=top.aras.getLoginName(); document.write(b);
</script>

I getting the output as Generated on:8-02-2013 By:admin But i need only first name or keyed_name to come after "By"

How to achieve this.Can any one done this before.Plz help me.Thanks.

 

 

 



Eric Domke - Friday, February 15, 2013 8:09 AM:

Looking at the aras_object.js file in the folder {Server Install Directory}innovatorInnovatorClientjavascript, there appears to be a top.aras.getLoggedUserItem() function.  Perhaps you could do something like 

document.write(top.aras.getLoggedUserItem().getProperty("first_name", ""));

or

document.write(top.aras.getLoggedUserItem().getProperty("keyed_name", ""));

As a warning, I have not tested this code.