setVariable
| session.setVariable( String identifier, Object value ) |
| Description |
| Designates that value should be saved for the duration of the session, and can be accessed using the getVariable method using identifier. Note that the dataSet and dataRecord objects can be stored in session variables, and later accessed using a RemoteScrapingSession (see the links at the bottom of the Running screen-scraper as a server page for more details on this). |
 |
| Example |
// Sets the session variable "CITY_CODE" with the value found // in the first dataRecord (at index 0) pointed to by the // identifier "CITY_CODE". session.setVariable( "CITY_CODE", dataSet.get( 0, "CITY_CODE" ) ); |
|
|
Recent comments
1 hour 5 min ago
1 hour 12 min ago
3 hours 18 min ago
22 hours 43 min ago
23 hours 29 sec ago
23 hours 49 min ago
23 hours 57 min ago
1 day 6 min ago
1 day 17 min ago
2 days 20 hours ago