Multiple Set() attributes for onClick behavior

Multiple Set() attributes for onClick behavior

Postby DavidBoulder » Thu Mar 04, 2010 9:18 pm

I don't think this can be done, but thought I would ask if I could attach multiple behaviors to an onClick behavior. In my case when the user clicks I want to add an extra row and column. Or a row on one click, and then a column on the next click.

I think I could get this to work if I created a statement looking for odd vs. even, and then took different action based on that. But I also still want to user to be able to manually set the rows and columns. If I use a formula for the number of rows and columns, do I give up the ability for the user to manually override and choose their own value?

OK, it looks like they can manually override. but then the formula is lost. I guess not too bad. They can have the click interactivity at first, but once they manually change, then it wont' work on this instance, unless they re-load (which would loose other data)
0
--

David Goldwasser
OpenStudio Developer
National Renewable Energy Laboratory
User avatar
DavidBoulder 
 

Re: Multiple Set() attributes for onClick behavior

Postby remus » Thu Mar 04, 2010 9:37 pm

just seperate the Set() attributes with a semicolon, so it'll looking sometihng like this: Set(); Set(); Set()
0

remus 
 

Re: Multiple Set() attributes for onClick behavior

Postby DavidBoulder » Thu Mar 04, 2010 10:24 pm

Thanks, just what I was looking for. I had tried with a space but not a semicolon.

Much easier than the hoops I was jumping through.
0
--

David Goldwasser
OpenStudio Developer
National Renewable Energy Laboratory
User avatar
DavidBoulder 
 

Re: Multiple Set() attributes for onClick behavior

Postby bthomas3 » Thu Dec 07, 2017 2:04 pm

Are there any similar uses for the ";" that we may not know?
0

bthomas3 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Dynamic Components

Who is online

Users browsing this forum: No registered users and 4 guests

Visit our sponsors: