Hi,
you can make a form with two rows and on each of them add your parameter and rule (and change it's name to e.g. "Change x" and "Change y"), so it would look like:
<Parameter 1> <Rule 1>
<Parameter 2> <Rule 2>
Then each of the rules would look like:
Rule 1 (Let's say Parameter 1 is your "x". It dont need even need to be iProperty, it can be diameter or something, whatever you need to use it for...)
iProperties.Value("Custom", "Parameter 2") = iProperties.Value("Custom", "Parameter 1")/2
Rule 2
iProperties.Value("Custom", "Parameter 1") = iProperties.Value("Custom", "Parameter 2")*2
--------------------------------
You can even make it as global form so you can use it in other parts, but then u have to look for it in your system (It's located in your "Design data (styles...)"\iLogic\UI\ folder) and edit it as folowing (You would also need to save your rules in external files. In this example it is "C:\My Rules\Rule-1.iLogicVb"):
<UiElementSpec xsi:type="iLogicExternalRuleControlSpec">
<Name>Change x</Name>
<Font>
<FamilyName>Tahoma</FamilyName>
<Size>12</Size>
<Bold>true</Bold>
<Italic>false</Italic>
</Font>
<TextLocation>Left</TextLocation>
<Image>
<BitmapByteArray />
</Image>
<TextVisible>true</TextVisible>
<RuleName>Rule-1</RuleName>
<RuleButtonBehavior>RunRule</RuleButtonBehavior>
<Path>C:\My Rules\Rule-1.iLogicVb</Path>
</UiElementSpec>
May it be some use for you ! It's probably not the best solution, but it's the only that came on my mind at the moment.
Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods