david....@gmail.com
unread,Jul 28, 2008, 1:10:43 PM7/28/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Rpad
Dear Rpad users,
I see in the fancyDojoWidgets.Rpad example, that it is possible to
dynamically create tabs. I am trying to use this functionnality to
compute and present an analysis splitted by a group factor on
different groups (one tab per group). As the computation takes time, I
would like to create a "launch" button on each tab, and the user can
launch the computation clicking on the button only for the groups he
is interrested in.
To summary, the tabs are created dynamiccaly after the user input his
data, then, the calculus are launched independtly in each tab by
clicking on a "launch button".
I modified the fancyDojoWidgets.Rpad to practice, but it does not
work. I would be glad to know your opinion or an advice about this
subject.
<pre dojoType="Rpad" rpadType="R">
lcalc<-FALSE
z<-0
print(lcalc)
print(z)
</pre>
<pre dojoType="Rpad" rpadType="R">
HTMLon()
H("div",id="mainTabSet", dojoType="TabContainer", style="width: 50%;
height: 10em;",
H("div", dojoType="ContentPane", label="Tab 1",
H(NULL,"if(lcalc==TRUE) {
x<-5
y<-10
z<-x+y
print(z)}
else { lcalc<-TRUE}"),
BR,
H("span", contenteditable="false",
H("input", onclick=
"javascript:rpad.calculateTree('Tab 1')", value="Calculate",
type= "button"))),
H("div", dojoType="ContentPane", label="Tab 2",
"here's another tab",
HTMLradio("AL", commonName = "myState", text = "Alabama"),
HTMLradio("WY", commonName = "myState", text = "Wyoming"),
HTMLradio("MT", commonName = "myState", text = "Montana")))
HTMLoff()
print(lcalc)
print(z)
</pre>
<pre dojoType="Rpad" rpadType="R">
print(lcalc)
print(z)
</pre>
Thanks in advance,
David Robelin