cancel
Showing results for 
Search instead for 
Did you mean: 

IDM internal Java script API document?

Former Member
0 Kudos

Hi Experts,

I am new to IDM and I saw IDM contains many internal java script APIs but I could not find any documentation.

I wonder where I could find the documentation for those APIs.

An example of the API, - uErrMsg (), uIS_nGetValues () ...

Best Regards

Jack Xiong

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jack,

in the Scipt Editor just press F1 and then in the index Tab search for the function you want to learn more about.

Its not that good then a java API, but it is quite a good documentation. For example here is the page for uSplitString:

uSplitString

Description:

Split a string on a given delimiter. Returns a Vector of String.

Note: In JavaScript there is a split method on strings, but this may be give different results depending on which type of string object you have. We recommend using the uSplitString function.

Syntax:

Java: Vector=uSplitString(String Input, String Delimiter [,String QuoteCharacter]);

Parameters:

Input

String to split.

Delimiter

String to use as delimiter. Default delimiter is u201D,u201D (comma).

QuoteCharacter

Optional.

Of QuoteCharacter is specified, Delimiter must be a single character.

Two quotes are treated as a single character.

Vector

A vector of String.

Note: This function is only available when using the Java runtime engine.

Example

Vector = uSplitString(u201DHello Worldu201D, u201D u201D);

/* vector will now contain to elements u201DHellou201D and u201DWorld!u201D */

BR,

Christoph

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for both of you. the problem is solved.

Former Member
0 Kudos

Hi

Here's the official page where you can see all (?) functions at once:

http://help.sap.com/saphelp_nwidmic72/en/using_functions/dse_internal_functions.htm

Or start here:

http://help.sap.com/saphelp_nwidmic72/en/dse.htm -> Standalone -> howto -> Internal functions

BR

Michael