Getting Partial Data From Fields on a Screen

This is the knowledgebase for Genie, all resolved support and product questions are located here. Please search this forum before posting any new support and technical questions.
Locked
Profound Logic
Site Admin
Posts: 252
Joined: Fri Dec 14, 2007 1:09 pm
Contact:

Getting Partial Data From Fields on a Screen

Post by Profound Logic »

Q:
How do I get partial data from fields on the screen.

A:
The get() function gets a value from the screen using an id. But if you wanted get partial data simply attach the appropriate JavaScript function to the end of the expression. For example:

Script: get(“D_5_2”).substr(0, 5)

Strings are 0-based in JavaScript. So, substr(0,5) grabs 5 characters starting with the first character (character 0). You can, of course, use any of the other JavaScript function as well to massage and format the data as you wish.
Locked

Who is online

Users browsing this forum: No registered users and 1 guest