Want to get rid of Google Ads, click here.
+ Post New Thread
Page 1 of 5 1 2 3 ... LastLast
Threads 1 to 30 of 123

Forum: Java Script

Post tips and tricks for Java Scripting here, also post sample scripts.

  1. How to query after a certain date

    I want to get results from a query after a certain date. Example: var sql="sysmodtime>=\""+record.startdate+"\""; Result: Print("SQL= "+sql);...

    Started by BeSIDE, 2011-12-19 10:55
    date, javascript, js, query
    • Replies: 4
    • Views: 165
    1 Week Ago 14:00 Go to last post
  2. Running us.launch.external.NEW from JS

    Have anybody succesfully run us.launch.external.NEW from javascript ? Do you want to share your js code ?

    Started by tommy, 2011-01-20 19:04
    • Replies: 25
    • Views: 2,336
    2 Weeks Ago 15:13 Go to last post
  3. Setting a duration field in javascript

    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...

    Started by tommy, 3 Weeks Ago 09:16
    • Replies: 2
    • Views: 81
    3 Weeks Ago 20:48 Go to last post
  4. resolve incident using JS always fails with 'Unspecified error'

    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...

    Started by oliver, 2011-08-19 15:23
    • Replies: 18
    • Views: 896
    3 Weeks Ago 09:38 Go to last post
  5. can we call a format control validation in JS?

    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...

    Started by sandeep.dasy, 2011-03-02 21:37
    • Replies: 4
    • Views: 864
    3 Weeks Ago 15:59 Go to last post
  6. Get Client Machine Host Name

    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...

    Started by Soumajit, 4 Weeks Ago 06:35
    • Replies: 2
    • Views: 106
    4 Weeks Ago 12:11 Go to last post
  7. Subtract dates in javascript

    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...

    Started by tommy, 2006-09-07 19:23
    • Replies: 14
    • Views: 7,864
    2011-10-26 20:17 Go to last post
  8. How to access fields which names are reserved in JS

    Hi, i have a problem while reading fields out of some tables with JavaScript. Example: // ... var dbcomplex = fileformatctrl.db_complex; ...

    Started by jmüller, 2010-12-16 11:27
    • Replies: 3
    • Views: 451
    2011-10-18 17:03 Go to last post
  9. Number of doSelect

    Hello, I have a problem to count number of record from a doSelect Example: var Enregistrementnsrequete = new SCFile("nsrequete");...

    Started by rdellac, 2011-04-21 17:26
    • Replies: 2
    • Views: 544
    2011-10-13 11:08 Go to last post
  10. Count in javascript

    Does anybody have an efficient way of counting records which does not involve counting each record one by one ?

    Started by tommy, 2009-05-25 12:05
    count, javascript
    • Replies: 10
    • Views: 2,130
    2011-10-13 09:17 Go to last post
  11. Sending POST-Data with doHTTPRequest

    Hello, I want to know how I can send POST-Data with doHTTPRequest. I already tried different formats for the POST-Field: ...

    Started by MarMin, 2011-07-18 10:48
    dohttprequest, javascript, post
    • Replies: 1
    • Views: 448
    2011-10-13 08:03 Go to last post
  12. Question Building and Array of Arrays in Javascript

    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...

    Started by Lukus, 2011-10-12 08:54
    arrays, javascript
    • Replies: 4
    • Views: 181
    2011-10-13 07:29 Go to last post
  13. JavaScript Error Object

    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...

    Started by jschodde, 2011-08-29 23:27
    error, exception, handler, javascript, try...catch
    • Replies: 2
    • Views: 280
    2011-09-13 15:08 Go to last post
  14. Question Looking for method of determining tickets opened by members of an assignment group

    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,...

    Started by lvirden, 2011-07-19 17:14
    assignment group, hpsm, opened by, query, ticket
    • Replies: 4
    • Views: 601
    2011-09-01 19:35 Go to last post
  15. How do you pass a date field into eventin string?

    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...

    Started by palmer00, 2011-06-25 04:38
    • Replies: 3
    • Views: 520
    2011-07-04 16:24 Go to last post
  16. Calling approval.approve from JavaScript

    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...

    Started by sawmurai, 2011-06-14 14:20
    • Replies: 4
    • Views: 851
    2011-06-19 15:22 Go to last post
  17. Subtracting days from Date field

    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...

    Started by Nosnibor35, 2011-06-01 15:20
    date type, subtracting
    • Replies: 1
    • Views: 409
    2011-06-14 14:23 Go to last post
  18. Lightbulb Dynamic form!

    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...

    Started by abhijats, 2011-05-13 09:50
    dynamic form, java script, xml
    • Replies: 0
    • Views: 360
    2011-05-13 09:50 Go to last post
  19. Cool Need Javascript for storing all change ticket numbers.

    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...

    Started by abhijats, 2011-05-06 13:45
    change ticket, cm3r, device
    • Replies: 1
    • Views: 551
    2011-05-10 14:01 Go to last post
  20. Inverted version of writeAttachmentToFile

    Hi, Does anyone know of a function, method or process that would perform an inverted writeAttachmentToFile via JS preferably? This JS function...

    Started by Nosnibor35, 2011-04-07 12:57
    incompatibility, writeattachmenttofile
    • Replies: 0
    • Views: 290
    2011-04-07 12:57 Go to last post
  21. Add attachment do interaction

    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...

    Started by meton00, 2008-04-10 11:03
    • Replies: 5
    • Views: 1,708
    2011-03-23 16:03 Go to last post
  22. updating evtime and evfields field in eventin.

    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...

    Started by dev0085, 2011-01-12 13:57
    • Replies: 2
    • Views: 412
    2011-01-13 08:31 Go to last post
  23. Call script.execute from javascript

    How to call script.execute from a javascript. var rteReturnValue = new SCDatum(); var rteNames = new SCDatum(); var rteValues = new SCDatum();...

    Started by tommy, 2010-12-20 08:28
    • Replies: 0
    • Views: 507
    2010-12-20 08:28 Go to last post
  24. Unhappy How to access multiple arrays returned by a function

    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...

    Started by sandeep.dasy, 2010-12-13 16:41
    • Replies: 1
    • Views: 448
    2010-12-16 11:19 Go to last post
  25. Copy contents of clipboard and display on form

    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...

    Started by miketrit, 2010-12-13 21:57
    clipboard, copy, displayoption, javascript, paste
    • Replies: 2
    • Views: 391
    2010-12-14 04:20 Go to last post
  26. How to check if record is locked

    Parameter resource should be <filename:recordid> function isLockedByOperator(resource,operator) { var locks = system.functions.locks();...

    Started by tommy, 2010-12-08 12:47
    • Replies: 0
    • Views: 456
    2010-12-08 12:47 Go to last post
  27. How to unlock a record

    Parameter resource should be <filename:recordid> function unlock(resource) { var rteReturnValue = new SCDatum(); var rteNames = new...

    Started by tommy, 2010-12-08 12:44
    • Replies: 0
    • Views: 466
    2010-12-08 12:44 Go to last post
  28. How to lock a record

    Parameter resource should be <filename:recordid> function lock(resource) { var rteReturnValue = new SCDatum(); var rteNames = new...

    Started by tommy, 2010-12-08 12:43
    javascript, lock
    • Replies: 0
    • Views: 493
    2010-12-08 12:43 Go to last post
  29. update an array field in referrenced table

    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...

    Started by sandeep.dasy, 2010-10-07 18:00
    • Replies: 1
    • Views: 519
    2010-10-08 22:26 Go to last post
  30. How to execute link from javascript

    Here is a small function to execute a link from a javascript. function executeLinkline(fileRecord, fieldName, linkName) { var strRc = new...

    Started by tommy, 2010-10-07 23:18
    • Replies: 0
    • Views: 906
    2010-10-07 23:18 Go to last post

+ Post New Thread
Page 1 of 5 1 2 3 ... LastLast

Forum Information and Options

Users Browsing this Forum

There are currently 1 users browsing this forum. (0 members & 1 guests)

Thread Display Options

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.

Icon Legend

Contains unread posts
Contains unread posts
Contains no unread posts
Contains no unread posts
More than 5 replies or 50 views
Hot thread with unread posts
More than 5 replies or 50 views
Hot thread with no unread posts
Closed Thread
Thread is closed
Thread Contains a Message Written By You
You have posted in this thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts