Jump to content

Otl - Disable When Not Working With String Parameter


doc

Recommended Posts

I have a button on my otl that I want disabled when renderType(a string parameter) is set to "random"

I 've tried the following:

{ renderType random }

{ renderType "random" }

but neither seem to work. Any idea what I'm doing wrong.

Link to comment
Share on other sites

I betcha the parameter that you are trying to grab is really an int type with a menu where you are attempting to use Tokens but alas, it won't work.

If that's the case, then you need to use the numeric index in to the menu of choices starting at zero.

If the source parm was a real String Type, then you have a typo. Best to change the type to string if you want to index by the Token string.

The confusing thing with Type: int parms and their Menu lists is that it allows you to use string names for the Token. The tokens are not used. Even if you use integers that are not consecutive (trying to be clevar :) ) it won't work. The abolute index from top to bottom starting at 0 is what is used.

Link to comment
Share on other sites

Hey Jeff,

I was actually using a string menu parameter, but it didn't seem to work.

Anyways I used a int menu paramter instead and that works just dandy.

If I get a chance I'll put a bug file together and send it to sesi.

luca

Link to comment
Share on other sites

  • 2 weeks later...
Hey Jeff,

I was actually using a string menu parameter, but it didn't seem to work.

Anyways I used a int menu paramter instead and that works just dandy.

If I get a chance I'll put a bug file together and send it to sesi.

luca

hey luca,

are you using the label or the token for your disable?

if your using the token, than i'm surprised it doesn't work, b/c i was using something like this recently.

here's sample hip which uses a menu string parameter to disable a toggle.

good luck,

jeff h.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...