How to Add Radio Buttons or Select Lists to Templates for Parameter Form?

(3 posts) (2 voices)
  1. cris, Member

    Hi, sorry for all of the basic questions. I am expanding my project and haven't kept up with all of the recent myDBR improvements.

    Can I add radio buttons or select lists to a template for a parameter form? They don't seem to 'pass through' from the Edit Report screen, and I don't see a way to tie the {#inLastName} type variables to an option group.

    Thank you,
    Cris

  2. myDBR Team, Key Master

    There is nothing special about radio buttons or select lists.

    Assume your radio button returns an integer value, and the select list returns a string. You then have the respective parameters in the report:


    inRadio int,
    inSelectList varchar(50)

    You then define the parameter queries (the options shown) for the parameters and assign those to the parameters in the 'Edit report' screen.

    You can refer to the parameters in the template as {#inRadio} and {#inSelectList}.

    The user-selected value will be passed to the report.

    --
    myDBR Team

  3. cris, Member

    Yes, that worked as expected with the simplified example. I must have had something breaking the process in my original report. I'll recheck the code. Thank you.


Reply

You must log in to post.