How to Select an OptionButton in a Group

I created an Optimizer Rule which is triggerd by Change Value. In this rule I want to set an OptionButton in a Group as "Selected". But nothing happens. What did I miss? 

OptionButton op = OptionButton.GetFromUID(pVal.Form, "59");
op.Selected = true;
 
0

Comments

6 comments
  • Hallo Florian,

    versuch es mal in einem "rutsch" inkl. SwissAddon:
    SwissAddonFramework.UI.Components.OptionButton.GetFromUID(pVal.Form, "10002045").Selected = true;

    So mache ich das.

    Gruß Lothar

    0
    Comment actions Permalink
  • Hallo Lothar, 

    vielen Dank für deinen Tipp, so hatte ich es auch zuerst. Hab es sicherheitshalber auch gerade nochmal so probiert. Aber leider keine Veränderung. 

    Bei dir klappt das so? 

    Viele Grüße Florian

     

    0
    Comment actions Permalink
  • Hi Florian,

    ja ich setze damit den GP auf inaktiv.

    Was möchtest du aulösen?

    Gruß Lothar

    0
    Comment actions Permalink
  • Hi Lothar, 

    ich möchte eine Opportunity auf Status "Gewonnen" setzten. 

    VG Florian

    0
    Comment actions Permalink
  • Hi Florian,

    Springst du vorher in den Panelevel?
    pVal.Form.PaneLevel = 6

    Gruß

    0
    Comment actions Permalink
  • Hi Lothar, 

    das ist die Lösung meines Problems. Vielen Dank für deine nette Hilfe!

    Gruß Florian

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post