Important message for new users. Due to increased number of spammers registering and infesting my forum with spam I have decided that ALL new users must be approved by me. So when you register you cannot post until I have verified your account. NOTE: New requirement. You must provide a reason for wanting to join the forum. If no valid reason or reason is not written in english I will not approve your account. NOTE! If you are using a challenge/response system on your email that require action from sender then you will NEVER receive the required activation emails from the forum unless YOU yourself add the forums administration email address to you whitelist. I will NOT do the action for you. If you use a throw-away email account to register your account will be deleted without warning. Thanks for understanding and I appologize for the inconvenience and possible delay this means.
Post tips and tricks for Java Scripting here, also post sample scripts.
I want to get results from a query after a certain date. Example: var sql="sysmodtime>=\""+record.startdate+"\""; Result: Print("SQL= "+sql);...
Have anybody succesfully run us.launch.external.NEW from javascript ? Do you want to share your js code ?
A field need the value "1 00:00:00" to specify one day but I cannot remember how to set that properly from javascript. When i try fhFilename = "1...
Hi, I don't understand what's going wrong. I need to resolve specific Incidents. For that I want to use a JS and call it later from FC. After some...
Hi, I would like to know if there is a way to check if all the required fields (which are under validations tab in format control) are populated...
Can we get host name from client machine using Java script or any other way? I know we can get client machine IP address using simple line of...
Can anybody tell me how this normal expression is done in javascript $negdatestamp='01/01/2200 01:00:00' - tod() so it returns a date in...
Hi, i have a problem while reading fields out of some tables with JavaScript. Example: // ... var dbcomplex = fileformatctrl.db_complex; ...
Hello, I have a problem to count number of record from a doSelect Example: var Enregistrementnsrequete = new SCFile("nsrequete");...
Does anybody have an efficient way of counting records which does not involve counting each record one by one ?
Hello, I want to know how I can send POST-Data with doHTTPRequest. I already tried different formats for the POST-Field: ...
Hey all, I have a little puzzle i need some help with. We have a table we keep in our Dev environment (ServiceManager 7.2) which tells us what...
If anyone has experience working with the error object, I'd like to know how you use it to build your own error handler. I have an error handler, but...
I have a situation where I want to be able to create queries that display all tickets opened by any member of assignment group ABC between June 1,...
I've coding this in several different ways and it seems I always get the JS date format converted to JS format when I reference record.<some date...
Hi guys, I've been crawling older forum posts but did not find a hint :-( I'm trying to call approval.approve from JavaScript (initiated by an...
HI can anyone help here please. I need to write some JS code to subtract 5 days away from a date field. If you try and do it the usual SM code way...
Hi All, I want to learn creating dynamic form, What I know is it is used for displaying xml data. And for this Java Script is used. But have no...
Hi Experts, I need a javascript to store all change ticket numbers in an arrayed variable that are related to a particular CI and then use that...
Hi, Does anyone know of a function, method or process that would perform an inverted writeAttachmentToFile via JS preferably? This JS function...
Hello I need to add a attachment from the old system do HPSM. The attachment are not in database so I thought to use the javaScript to do this. I...
Experts :D, I am working on a requirement in which I have to create an interaction if a location record is not present in locationDemo table. So...
How to call script.execute from a javascript. var rteReturnValue = new SCDatum(); var rteNames = new SCDatum(); var rteValues = new SCDatum();...
Hi, I have a function which returns multiple arrays after sorting (basically sorting 3 arrays based on the 1st array and the other 2 arrays...
Version - SC6.2.7.4, thick client only (no web client installed) Hello, We have a process that requires our users to ctrl+c from a web page and...
Parameter resource should be <filename:recordid> function isLockedByOperator(resource,operator) { var locks = system.functions.locks();...
Parameter resource should be <filename:recordid> function unlock(resource) { var rteReturnValue = new SCDatum(); var rteNames = new...
Parameter resource should be <filename:recordid> function lock(resource) { var rteReturnValue = new SCDatum(); var rteNames = new...
Have been working on a lot of javascripts for SM now. Realized we can do lots of things with it.... I have another question. I have referenced...
Here is a small function to execute a link from a javascript. function executeLinkline(fileRecord, fieldName, linkName) { var strRc = new...
There are currently 1 users browsing this forum. (0 members & 1 guests)
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules