S
sridhartv25@gmail.com
Guest
Hello all especially Andrew,
I want to know a way for creating fields which are similar,except
the change in the name and the prompt.
For ex:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
procedure(example()
r1 = hiCreateRadioField(
?name 'r1
?prompt "1)abc: "
?value "yes"
?choices list("yes" "no")
)
r2 = hiCreateRadioField(
?name 'r2
?prompt "2)def: "
?value "yes"
?choices list("yes" "no")
)
r3 = hiCreateRadioField(
?name 'r3
?prompt "3)ghi: "
?value "yes"
?choices list("yes" "no")
)
r4 = hiCreateRadioField(
?name 'r4
?prompt "4)jkl: "
?value "yes"
?choices list("yes" "no")
)
r5 = hiCreateRadioField(
?name 'r5
?prompt "5)mno: "
?value "yes"
?choices list("yes" "no")
)
r6 = hiCreateRadioField(
?name 'r6
?prompt "6)pqr: "
?value "yes"
?choices list("yes" "no")
)
exampleform=hiCreateAppForm(?name gensym('exampleform)
?formTitle "Example form"
?fields list(r1 r2 r3 r4 r5 r6)
)
hiDisplayForm(exampleform)
)
example()
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
In the above example instead of creating 6 different fields , How
can I create a single radio field
and pass the names (r1 to r6) and also the corresponding prompts to
that field , given that the names and the fields are stored in the
variables.
Eagerly waiting for the replies,
Regards,
Sridhar.
I want to know a way for creating fields which are similar,except
the change in the name and the prompt.
For ex:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
procedure(example()
r1 = hiCreateRadioField(
?name 'r1
?prompt "1)abc: "
?value "yes"
?choices list("yes" "no")
)
r2 = hiCreateRadioField(
?name 'r2
?prompt "2)def: "
?value "yes"
?choices list("yes" "no")
)
r3 = hiCreateRadioField(
?name 'r3
?prompt "3)ghi: "
?value "yes"
?choices list("yes" "no")
)
r4 = hiCreateRadioField(
?name 'r4
?prompt "4)jkl: "
?value "yes"
?choices list("yes" "no")
)
r5 = hiCreateRadioField(
?name 'r5
?prompt "5)mno: "
?value "yes"
?choices list("yes" "no")
)
r6 = hiCreateRadioField(
?name 'r6
?prompt "6)pqr: "
?value "yes"
?choices list("yes" "no")
)
exampleform=hiCreateAppForm(?name gensym('exampleform)
?formTitle "Example form"
?fields list(r1 r2 r3 r4 r5 r6)
)
hiDisplayForm(exampleform)
)
example()
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
In the above example instead of creating 6 different fields , How
can I create a single radio field
and pass the names (r1 to r6) and also the corresponding prompts to
that field , given that the names and the fields are stored in the
variables.
Eagerly waiting for the replies,
Regards,
Sridhar.