Option value in report.

dharshandharshan Member Posts: 37
Hi,

I have a option field called Type and option strings are Approve,Rejected,applied.

and in report i have a request page and i have 3 radio button i need to check the value(ie) whether its enable or not.
how to check the value of that radio button?


IF "S D".Type="S D".Type::Present THEN
"S D".SETFILTER("S D".Type,'=%1',"S D".Type::Present);
and i want to know whether the above code works or there any change i need to make.

could any one help me?

Comments

  • garakgarak Member Posts: 3,263
    to check the value of the radiobuttons, checke the value of the variable that is the sourceexpr.
    case MyOptionVar of
      MyOptionVar::OptionOne:
        begin
        end;
      MyOptionVar::OptionTwo:
        begin
        end;
      MyOptionVar::OptionTen:
        begin
        end;
      else
        message('Option that is not in the case);
    end;
    

    thats are basics, so read also the Applications Designer Guide .pdf
    Do you make it right, it works too!
  • dharshandharshan Member Posts: 37
    thanks,

    but i am unable to filter the record..
    inside that begin
    im giving these filter.

    "S D".SETFILTER("S D".Type,'=%1',"S D".Type::Present);
    "S D".SETRANGE("S D".Type,"S D".Type::Present);

    and im giving this in on deactivate form trigger..
Sign In or Register to comment.