This topic is locked

Horizontal radio buttons and Search question

10/3/2007 7:00:19 AM
PHPRunner General questions
G
giles author

Hi,

A couple of quick questions on R4.1...

  1. How can I have radio buttons where the options appear horizontally rather than vertically. I have dozens of radio button a project. About 1/2 have to be vertical, the other half horizontal. Due to the number involved hand editing using visual editor is not a good option.

    e.g. Vertical radio button...

    () Option1

    ( ) Option2

    ( ) Option3
    Horizontal radio button (
    )Option1 ( )Option2 ( )Option3
  2. A question on search...

    I have a custom query that finds the name of the month in which a reservice will occur.
    Select MonthName(Date_Reservice) as MonthDue, ...... from services
    The query works fine and the list and edit pages display the info I want. However search does not work as needed. I have included the MonthDue field in the search but if I type the nmae of the month or click on one of the month options shown in the op-up box on the serach criteria then I get "no records found". Any explanation?
    GP.

J
Jane 10/4/2007

Hi,
to add horizontal and vertical radiobuttons edit BuildRadioControl function in the generated include/commonfunctions.php file.

We'll add horisontal and vertical radiobuttons to the next PHPRunner version.
Regarding the second question.

It's a well-known MySQL bug:

http://bugs.mysql.com/bug.php?id=14368
To fix it edit your query in the following way:

Select convert(MonthName(Date_Reservice) using latin1) as MonthDue, ...... from services

G
giles author 10/8/2007

Thanks Jane, will try those shortly...

D
drh 3/18/2008

Hi all,

I am running PHPR4.2 Build 353.

I have several radio button fields which I wish to make horizontal rather than vertical. According to this thread the vertical/horizontal radio button option is supposed to be in the next version. Does that mean version 4.2? I do not see an option for vertical or horizontal. I looked through the help pages and saw nothing. Am I missing something?
If it is not available yet, how do I make the buttons horizontal? The same way we did in PHPR3.1? Or is there a better way?
Thanks,

Dave

Alexey admin 3/19/2008

Hi,
the horizontal radio buttons are not implemented yet.

We'll add this feature into the one of the next versions of PHPRunner.
To add horizontal and vertical radiobuttons edit BuildRadioControlfunction in the generated include/commonfunctions.phpfile.

T
thesofa 11/13/2008

I still am unable to find horizontal radio buttons yet, what do I need to alter in the buildradiocontrol function to get them horizontal?

J
Jane 11/14/2008

Hi,
find and remove unnecessary
in the BuildRadioControl function.

T
thesofa 11/14/2008

Once again spot on, many thanks, Is there a place I can change in the source files to avoid having to change commonfunctions each time I build?

J
Jane 11/14/2008

Hi,
edit the same function in the C:/Program Files/PHPRunner5.0/source/include/commonfunctions.php file.