[Date Prev] [Date Next] [Prev in Thread] [Next in Thread] [Date Index] [Thread Index]

Re: arslist Digest - 13 Apr 2017 to 17 Apr 2017 (#2017-75)



The thing is, why not use BMC Remedy's builtin functions for this. Unless I am missing something.


rocky


Martin "Rocky" Rockwell
AECOM
BMC Certified Developer
325-450-1297

On 4/17/2017 4:00 PM, arslist automatic digest system wrote:
There is 1 message totaling 110 lines in this issue.

Topics of the day:

   1. javascript syntax to set a Remedy field for timezone offset (help please!)

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

----------------------------------------------------------------------

Date:    Mon, 17 Apr 2017 11:01:00 -0500
From:    Lyndsay Reese <lyndsay.reese@GMAIL.COM>
Subject: Re: javascript syntax to set a Remedy field for timezone offset (help please!)

If anyone else is presented with this requirement, here is how to do it:
Add the following to the form view "Web Header Content":

</style>

<SCRIPT LANGUAGE = "JavaScript">

function getTimeOffset()

{

var d = new Date();

return (d.getTimezoneOffset());

}

</SCRIPT>


Then, create an Active Link with the following Run Process command line
(where "887470919" is your custom integer field ID):

javascript document.getElementById('arid_WIN_2_887470919').value =
getTimeOffset();


Flush cache and you're all set!

On Wed, Apr 12, 2017 at 11:16 AM, Lyndsay Reese <lyndsay.reese@gmail.com>
wrote:

Could someone please help me with syntax here? I am not familiar with
javascript at all, but I need to run this javascript to grab the timezone
offset: (new Date().getTimezoneOffset());

Here is the syntax I'm currently using in the Run Process of the Active
Link to put the value into a Remedy field (which results in the "Function
not supported (ARERR 9369) Error):
javascript:F(885580926).S(new Date().getTimezoneOffset());
It seems like the function SHOULD be supported, as they do something
similar with an active link in this OOB Active Link: RKM:KBI:SearchResults_
GetCurrChunk
Run Process command:
javascript:F(302258823).S(new IntegerType(F(302258813).mChunkPage));

Thank you in advance!
Lyndsay

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

------------------------------

End of arslist Digest - 13 Apr 2017 to 17 Apr 2017 (#2017-75)
*************************************************************


_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"