Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10496 > unrolled thread
| Started by | Jennifer <ptewari786@gmail.com> |
|---|---|
| First post | 2012-06-15 19:28 +0000 |
| Last post | 2012-06-15 19:28 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
how can I change the CDF which imports the data and uses it , without execution of code Jennifer <ptewari786@gmail.com> - 2012-06-15 19:28 +0000
| From | Jennifer <ptewari786@gmail.com> |
|---|---|
| Date | 2012-06-15 19:28 +0000 |
| Subject | how can I change the CDF which imports the data and uses it , without execution of code |
| Message-ID | <jrg2ca$sh5$1@smc.vnet.net> |
I am making an application which first imports the data from the excel file and then uses it in the deployment of cdf. But is it possible to change the data of the excel file and see its according cdf without executing the code in the notebook?
I have imported y1 and y2 from an excel file .Here is the code.
CDFDeploy[
ToFileName["C:\\Users\\murali\\Desktop","demo2thomson.cdf"],
{DynamicModule[{y =
Import["C:\\Users\\murali\\Desktop\\demo.xlsx"], y1 = y[[1, 1]], y2 = y[[1, 2]], q1, q2},
Panel@Column[{Spacer[70] Text[
Style["iPhone and iPad quarterly sales- units, million", Bold,
18]], Column[{Spacer[70],
Text[Style["Click on/off:", Bold, 14]], q1 = True; q2 = True;
Row[{Labeled[
Button[" ", q1 = ! q1, Background -> Blue,
Appearance -> "Frameless"], "iPhone", {Right}],
Spacer[19],
Labeled[Button[" ", q2 = ! q2, Background -> Orange,
Appearance -> "Frameless"], "iPad", {Right}]}],
Column[{Dynamic@
BarChart[
Table[{If[q1, y1[[i]], 0], If[q2, y2[[i]], 0]}, {i, 1, 22,
1}], BarSpacing -> 0.8, ChartStyle -> {Blue, Orange},
ImageSize -> {600, 280},
GridLines -> {None, Automatic}]}]}]}]]}]
I dont want the end user to go to the code and execute again and again, if he wants to change some of the values of y1 and y2.
Is it possible that he can change value and see the difference in the CDF itself. Please help.
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web