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

Environmental News
Not acting like themselves: Antidepressants in environment alter crayf...
Expose crayfish to antidepressants, and they become more outgoing -- but that might not be such a positive thing for the...

Use of PFAS in cosmetics 'widespread,' new study finds
Many cosmetics sold in the United States and Canada likely contain high levels of per- and polyfluoroalkyl substances (P...

Baltic herring larvae appear earlier and grow faster due to climate ch...
Conditions during Baltic herring spawning may have cascading effects on the whole Baltic ecosystem.
Source: Science Daily
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: 3575 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"