We recommend switching to the latest versions of Edge, Firefox, Chrome or Safari. Using Internet Explorer will result in a loss of website functionality.
Our Support systems migrated on Saturday, May 21. We'll automatically forward you to the new location for this content.

Using Node Parameters to enable / disable nodes. Can only get Boolean to work

Comments

5 comments

  • Avatar
    Infogix Support
    Originally posted by: gmullin

    If you could have this in the Enabled property:

    "{{^EnableParam=^}}" == "1"

    The node would only be enabled if the parameter called EnableParam was set to 1.
    0
    Comment actions Permalink
  • Avatar
    Infogix Support
    Originally posted by: dglavastorm

    Thanks, that worked. How do I set a default though as its the first option that appears in the dropdown ?
    I can set the parameters in the "edit Choices" box, but there's no option I can find to set which is the default.

    Also does the "Mandatory" field effect anything ? I've never touched it so it's always on Default, but sometimes the text box says True and others say False and I can't work out what exactly it does or what dictates it's setting.
    0
    Comment actions Permalink
  • Avatar
    Infogix Support
    Originally posted by: stonysmith

    1) You can't set a default value for a dropdown. It will always begin with "(default)". You could place the node into a library, and pick a value from the list, which will then become the default when you use the node from the library, but to my knowledge you can't pick a default value for the dropdown. If you want to enforce that some selection is always picked, you can set the Validator to "Not Blank"

    2) Mandatory comes into play when building a BRX or LXA. Any node tagged as Manditory MUST be executable (can be satisified)(must have data coming into it) or the compiler will throw an error and not build the BRX/LXA
    0
    Comment actions Permalink
  • Avatar
    Infogix Support
    Originally posted by: dglavastorm

    ok, thanks again.
    0
    Comment actions Permalink
  • Avatar
    Infogix Support
    Originally posted by: gmullin

    I'm not sure if it's clear but also the = sign inside the parameter is giving it a value in the event that the parameter has not been set. The value below would be saying that if nobody set a value on EnableParam, then take it that the value is 1. You could do something like this so the node is enabled by default and somebody has to change the value of the parameter to disable it (or vice versa).

    "{{^EnableParam=1^}}" == "1"

    Also to point out since Stony mentioned about BRXs and LXAs - you can't enable and disable a parameter within a BRX by a run parameter. The node is either enabled or disabled when you compile the BRX/LXA.
    0
    Comment actions Permalink

Please sign in to leave a comment.