upto last weekend,I wrote my entire Application code in one .nb file.Because of this,it's very difficult for finding the specific code after some time,so
I divided single .nb file to different categories like,one .nb have only designing part,second .nb have only evaluation part and third .nb file have only Variable Initialization.
I divided like this.
initialization file
testing = Style["This is Tested by Infratab Pvt Ltd", Bold, 20, Red]
design.nb file
values = NotebookEvaluate[FileNameJoin[{NotebookDirectory[],"initialization.nb"}]];
button = Button["Ok", MessageDialog[values]]
evalution.nb file
DynamicModule[
{testCase1 = Null},
(
testCase1 NotebookEvaluate[FileNameJoin[{NotebookDirectory[],"design.nb"}]];
testCase1
),Initialization :> (NotebookEvaluate[FileNameJoin[{NotebookDirectory[],"design.nb"}]]
]
manually,If you can evaluate evalution.nb,it's working fine but after deploying into CDF file it's not working...
I tried with Initialization,Getfunction,still not get it..
can anyone help me?
Note:
I don't want to save that notebooks into Autoload folder,because If you can write code like that, every time user paste that files into his Autoload folder, it's very bad
evalution.nbperhapstestCase1=NotebookEvaluate[...? Anyway, tryManipulatewithSaveDefinitions->True. My next advice is to write the code in separate.mfiles instead of notebooks and perhaps write a proper package. – Ajasja Feb 11 at 10:21Manipulate.. – subbu Feb 11 at 10:28.mfile,which code was repeated.But this variable initialization,design,evaluation was not repeated so packages are not needed.. – subbu Feb 11 at 10:45