Welcome to WEAP's Website WEAP
WEAP is an initiative of the Stockholm Environment Institute.


About WEAP

Home
Why WEAP?
Features
What's New?
Sample Screens
Demonstration
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos (YouTube)

User Forum
Discussions
Members List
Edit Profile

Additional Support
Training
University Courses
Collaboration

About Us
SEI-US Water Resources Program
Please Contact Us

LEAP
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

Link WEAP and LEAP for combined Water-Energy planning.
Watch a video demo!
   

User Forum

All Topics | Topic "IsResultVariable API does not work for new variables"
Log in to post new messages or reply to existing messages.
 
Author Message
Mr. Mostafa Fard

Subject: IsResultVariable API does not work for new variables   
Posted: 7/2/2018 Viewed: 7812 times
Hi,
I am using JScript to get data from WEAP. IsResultVariable API works correctly for predefined variables of WEAP, but when I declare a new variable, it does not return the correct value. It always returns false (even though, I checked the <Result Variable> and specify a path for that in Create Variable's form).
Actually, the following code always returns false
WEAP.Branch("\Demand Sites\South City").Variables("NewVariable").IsResultVariable

Is it a bug? Or I should anything else?
Thanks
Topic "IsResultVariable API does not work for new variables"