Produced by Araxis Merge on 9/27/2017 9:44:47 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | adk\adk\product\production\demo_files\feature_forms | F414.js | Wed Jun 7 14:02:28 2017 UTC |
| 2 | adk\adk\product\production\demo_files\feature_forms | F414.js | Tue Sep 26 13:01:41 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 1044 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | define([ | |
| 2 | 'backb one', | |
| 3 | 'mario nette', | |
| 4 | 'jquer y', | |
| 5 | 'handl ebars' | |
| 6 | ], functio n(Backbone , Marionet te, $, Han dlebars) { | |
| 7 | ||
| 8 | //==== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== ===== | |
| 9 | // PLE ASE DO NOT COPY AND PASTE THIS FULL FILE . PLEASE J UST USE AS A REFEREN CE AND COP Y PARTS TH AT ARE NEE DED | |
| 10 | // for more info rmation on how to la yout this form for y our applet please ch eckout the following link: | |
| 11 | // http:// IP /documenta tion/#/adk /conventio ns#Writeba ck | |
| 12 | //==== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== ===== | |
| 13 | ||
| 14 | var F4 14 = { | |
| 15 | // DO NOT US E CREATE F ORM FUNCTI ON --- THI S IS FOR D EMO PURPOS ES ONLY!!! | |
| 16 | cr eateForm: function() { | |
| 17 | // ***** ********** ********** ********** ********** ** STATIC COLLECTION ********* ********** ********** ********** * | |
| 18 | // NOTE: PICKLIST IS ONLY FO R THIS DEM O EXAMPLE | |
| 19 | var yesN oPick = ne w Backbone .Collectio n([{ | |
| 20 | name : '001', | |
| 21 | labe l: 'Servic e Connecte d Conditio n', | |
| 22 | }, { | |
| 23 | name : '002', | |
| 24 | labe l: 'Agent Orange', | |
| 25 | }, { | |
| 26 | name : '003', | |
| 27 | labe l: 'Radiat ion', | |
| 28 | }]); | |
| 29 | ||
| 30 | var pick List1 = ne w Backbone .Collectio n([{ | |
| 31 | valu e: 'Option 1', | |
| 32 | labe l: 'Option 1' | |
| 33 | }, { | |
| 34 | valu e: 'Option 2', | |
| 35 | labe l: 'Option 2' | |
| 36 | }, { | |
| 37 | valu e: 'Option 3', | |
| 38 | labe l: 'Option 3' | |
| 39 | }, { | |
| 40 | valu e: 'Option 4', | |
| 41 | labe l: 'Option 4' | |
| 42 | }, { | |
| 43 | valu e: 'Option 5', | |
| 44 | labe l: 'Option 5' | |
| 45 | }, { | |
| 46 | valu e: 'Allerg ic Headach e', | |
| 47 | labe l: 'Allerg ic Headach e' | |
| 48 | }]); | |
| 49 | // ***** ********** ********** ********** ********** ** END OF STATIC PIC KLISTS *** ********** ********** ********** * | |
| 50 | ||
| 51 | // ***** ********** ********** ********** ********** ** CONTAIN ERS ****** ********** ********** ********** ********** * | |
| 52 | // Okay to copy an d paste th is !!!!!!! !! BUT ENS URE TO REP LACE STATI C OPTIONS/ DATA WITH REAL DATA !!!!!!! | |
| 53 | var warn ingContain er = { | |
| 54 | cont rol: "cont ainer", | |
| 55 | extr aClasses: ["row"], | |
| 56 | item s: [{ | |
| 57 | control: " alertBanne r", | |
| 58 | extraClass es: ["col- md-12", "b ottom-marg in-no"], | |
| 59 | name: "ale rtMessage" , | |
| 60 | type: "war ning", | |
| 61 | dismissibl e: true, | |
| 62 | title: "Wa rning", | |
| 63 | icon: "fa- warning" | |
| 64 | }, { | |
| 65 | control: " checkbox", | |
| 66 | extraClass es: ["col- md-12", "a ll-margin- no"], | |
| 67 | hidden: tr ue, | |
| 68 | name: "req uestNewTer m", | |
| 69 | label: "Re quest New Term" | |
| 70 | }] | |
| 71 | }; | |
| 72 | ||
| 73 | var sele ctProblemC ontainer = { | |
| 74 | cont rol: "cont ainer", | |
| 75 | extr aClasses: ["col-md-5 "], | |
| 76 | item s: [{ | |
| 77 | control: " typeahead" , | |
| 78 | id: "selec tProblemTy peahead", | |
| 79 | name: "sel ectProblem Typeahead" , | |
| 80 | label: "Se lect a Pro blem", | |
| 81 | srOnlyLabe l: false, | |
| 82 | placeholde r: "Search for avail able probl ems...", | |
| 83 | pickList: pickList1, | |
| 84 | required: true | |
| 85 | }] | |
| 86 | }; | |
| 87 | var stat usContaine r = { | |
| 88 | cont rol: "cont ainer", | |
| 89 | extr aClasses: ["col-md-3 "], | |
| 90 | item s: [{ | |
| 91 | control: " radio", | |
| 92 | required: true, | |
| 93 | name: "sta tusRadioVa lue", | |
| 94 | label: "St atus", | |
| 95 | options: [ { | |
| 96 | label: "Active", | |
| 97 | value: "sr-opt1" | |
| 98 | }, { | |
| 99 | label: "Inactive ", | |
| 100 | value: "sr-opt2" | |
| 101 | }] | |
| 102 | }] | |
| 103 | }; | |
| 104 | ||
| 105 | var imme diacyConta iner = { | |
| 106 | cont rol: "cont ainer", | |
| 107 | extr aClasses: ["col-md-3 "], | |
| 108 | item s: [{ | |
| 109 | control: " radio", | |
| 110 | required: true, | |
| 111 | name: "imm ediacyRadi oValue", | |
| 112 | label: "Im mediacy", | |
| 113 | options: [ { | |
| 114 | label: "Acute", | |
| 115 | value: "ir-opt1" | |
| 116 | }, { | |
| 117 | label: "Cronic", | |
| 118 | value: "ir-opt2" | |
| 119 | }, { | |
| 120 | label: "Unknown" , | |
| 121 | value: "ir-opt3" | |
| 122 | }] | |
| 123 | }] | |
| 124 | }; | |
| 125 | ||
| 126 | var clea rSpacer = { | |
| 127 | cont rol: "cont ainer", | |
| 128 | extr aClasses: ["col-md-1 2", "clear "], | |
| 129 | item s: [{ | |
| 130 | control: " spacer" | |
| 131 | }] | |
| 132 | }; | |
| 133 | ||
| 134 | var onse tDateConta iner = { | |
| 135 | cont rol: "cont ainer", | |
| 136 | extr aClasses: ["col-xs-2 "], | |
| 137 | item s: [{ | |
| 138 | control: " datepicker ", | |
| 139 | name: "ons et-date", | |
| 140 | label: "On set Date" | |
| 141 | }] | |
| 142 | }; | |
| 143 | ||
| 144 | var clin icContaine r = { | |
| 145 | cont rol: "cont ainer", | |
| 146 | extr aClasses: ["col-xs-5 "], | |
| 147 | item s: [{ | |
| 148 | control: " input", | |
| 149 | name: "cli nic", | |
| 150 | label: "Cl inic" | |
| 151 | }] | |
| 152 | }; | |
| 153 | ||
| 154 | var resP roviderCon tainer = { | |
| 155 | cont rol: "cont ainer", | |
| 156 | extr aClasses: ["col-md-5 "], | |
| 157 | item s: [{ | |
| 158 | control: " input", | |
| 159 | name: "res -provider" , | |
| 160 | label: "Re s Provider *" | |
| 161 | }] | |
| 162 | }; | |
| 163 | ||
| 164 | var trea tmentFacto rsContaine r = { | |
| 165 | cont rol: "cont ainer", | |
| 166 | extr aClasses: ["col-md-6 "], | |
| 167 | item s: [{ | |
| 168 | control: " container" , | |
| 169 | extraClass es: ["well ", "top-ma rgin-md"], | |
| 170 | items: [{ | |
| 171 | contro l: "fields et", | |
| 172 | legend : "Visit R elated To" , | |
| 173 | items: [{ | |
| 174 | co ntrol: "ra dio", | |
| 175 | ex traClasses : ["top-ma rgin-xs", "bottom-bo rder-grey- light"], | |
| 176 | na me: "servi ceConnecte dCondition ", | |
| 177 | la bel: "Serv ice Connec ted Condit ion", | |
| 178 | ti tle: "Serv ice Connec ted Condit ion", | |
| 179 | op tions: [{ | |
| 180 | label: " Yes", | |
| 181 | value: ' true' | |
| 182 | }, { | |
| 183 | label: " No", | |
| 184 | value: ' false' | |
| 185 | }] | |
| 186 | }, { | |
| 187 | co ntrol: "ra dio", | |
| 188 | ex traClasses : ["bottom -border-gr ey-light"] , | |
| 189 | na me: "comba tVet", | |
| 190 | la bel: "Comb at Vet (Co mbat Relat ed)", | |
| 191 | ti tle: "Comb at Vet (Co mbat Relat ed)", | |
| 192 | op tions: [{ | |
| 193 | label: " Yes", | |
| 194 | value: ' true' | |
| 195 | }, { | |
| 196 | label: " No", | |
| 197 | value: ' false' | |
| 198 | }] | |
| 199 | }, { | |
| 200 | co ntrol: "ra dio", | |
| 201 | ex traClasses : ["bottom -border-gr ey-light"] , | |
| 202 | na me: "agent Orange", | |
| 203 | la bel: "Agen t Orange E xposure", | |
| 204 | ti tle: "Agen t Orange E xposure", | |
| 205 | op tions: [{ | |
| 206 | label: " Yes", | |
| 207 | value: ' true' | |
| 208 | }, { | |
| 209 | label: " No", | |
| 210 | value: ' false' | |
| 211 | }] | |
| 212 | }, { | |
| 213 | co ntrol: "ra dio", | |
| 214 | ex traClasses : ["bottom -border-gr ey-light"] , | |
| 215 | na me: "ioniz ingRadiati onExposure ", | |
| 216 | la bel: "Ioni zing Radia tion Expos ure", | |
| 217 | ti tle: "Ioni zing Radia tion Expos ure", | |
| 218 | op tions: [{ | |
| 219 | label: " Yes", | |
| 220 | value: ' true' | |
| 221 | }, { | |
| 222 | label: " No", | |
| 223 | value: ' false' | |
| 224 | }] | |
| 225 | }, { | |
| 226 | co ntrol: "ra dio", | |
| 227 | ex traClasses : ["bottom -border-gr ey-light"] , | |
| 228 | na me: "south westAsiaCo nditions", | |
| 229 | la bel: "Sout hwest Asia Condition s", | |
| 230 | ti tle: "Sout hwest Asia Condition s", | |
| 231 | op tions: [{ | |
| 232 | label: " Yes", | |
| 233 | value: ' true' | |
| 234 | }, { | |
| 235 | label: " No", | |
| 236 | value: ' false' | |
| 237 | }] | |
| 238 | }, { | |
| 239 | co ntrol: "ra dio", | |
| 240 | ex traClasses : ["bottom -border-gr ey-light"] , | |
| 241 | na me: "shipb oardHazard ", | |
| 242 | la bel: "Ship board Haza rd and Def ense", | |
| 243 | ti tle: "Ship board Haza rd and Def ense", | |
| 244 | op tions: [{ | |
| 245 | label: " Yes", | |
| 246 | value: ' true' | |
| 247 | }, { | |
| 248 | label: " No", | |
| 249 | value: ' false' | |
| 250 | }] | |
| 251 | }, { | |
| 252 | co ntrol: "ra dio", | |
| 253 | ex traClasses : ["bottom -border-gr ey-light"] , | |
| 254 | na me: "milit arySexualT rauma", | |
| 255 | la bel: "Mili tary Sexua l Trauma", | |
| 256 | ti tle: "Mili tary Sexua l Trauma", | |
| 257 | op tions: [{ | |
| 258 | label: " Yes", | |
| 259 | value: ' true' | |
| 260 | }, { | |
| 261 | label: " No", | |
| 262 | value: ' false' | |
| 263 | }] | |
| 264 | }] | |
| 265 | }] | |
| 266 | }] | |
| 267 | }; | |
| 268 | ||
| 269 | var anno tationsCon tainer = { | |
| 270 | cont rol: "cont ainer", | |
| 271 | extr aClasses: ["col-md-6 "], | |
| 272 | item s: [{ | |
| 273 | control: " container" , | |
| 274 | extraClass es: ["well ", "top-ma rgin-md"], | |
| 275 | items: [{ | |
| 276 | contro l: "fields et", | |
| 277 | legend : "Annotat ions", | |
| 278 | items: [{ | |
| 279 | co ntrol: "co mmentBox", | |
| 280 | na me: "comme ntCollecti on", | |
| 281 | co llection: new Backbo ne.Collect ion([{ | |
| 282 | commentS tring: "Th e patient is lorem i psum dolor sit amet. Lorem ips um dolor s it amet, c onsectetur adipiscin g elit, se d do eiusm od tempor incididunt ut labore et dolore magna ali qua.", | |
| 283 | author: { | |
| 284 | name : "Vehu, F ive", | |
| 285 | duz: { | |
| 286 | "9E7A": "1 0000000255 " | |
| 287 | } | |
| 288 | }, | |
| 289 | timeStam p: "12/14/ 2014 11:15 PM" | |
| 290 | }, { | |
| 291 | commentS tring: "Th e patient is lorem i psum dolor sit amet. ", | |
| 292 | author: { | |
| 293 | name : "Vehu, F ive", | |
| 294 | duz: { | |
| 295 | "9E7A": "1 0000000238 " | |
| 296 | } | |
| 297 | }, | |
| 298 | timeStam p: "12/13/ 2014 11:17 PM" | |
| 299 | }] ), | |
| 300 | at tributeMap ping: { | |
| 301 | comment: "commentS tring", | |
| 302 | author: "author", | |
| 303 | timeStam p: "timeSt amp" | |
| 304 | } | |
| 305 | }] | |
| 306 | }] | |
| 307 | }] | |
| 308 | }; | |
| 309 | ||
| 310 | var bott omRow = { | |
| 311 | cont rol: "cont ainer", | |
| 312 | extr aClasses: ["row"], | |
| 313 | item s: [treatm entFactors Container, annotatio nsContaine r] | |
| 314 | }; | |
| 315 | ||
| 316 | var lowe rBodyConta iner = { | |
| 317 | cont rol: "cont ainer", | |
| 318 | extr aClasses: ["row", "t op-margin- sm"], | |
| 319 | item s: [select ProblemCon tainer, st atusContai ner, immed iacyContai ner, clear Spacer, on setDateCon tainer, cl inicContai ner, resPr oviderCont ainer] | |
| 320 | }; | |
| 321 | // ***** ********** ********** ********** ********** ** END OF CONTAINERS ********* ********** ********** ********** * | |
| 322 | ||
| 323 | // ***** ********** ********** ********** ********** ** FIELDS ********** ********** ********** ********** ********** * | |
| 324 | // Okay to copy an d paste | |
| 325 | var F414 _SelectPro blemFields = [{ | |
| 326 | // * ********** ********** ********** ********* Modal Body Start *** ********** ********** ********** ********** * | |
| 327 | cont rol: "cont ainer", | |
| 328 | extr aClasses: ["modal-bo dy"], | |
| 329 | item s: [{ | |
| 330 | control: " container" , | |
| 331 | extraClass es: ["cont ainer-flui d"], | |
| 332 | items: [wa rningConta iner, lowe rBodyConta iner, bott omRow] | |
| 333 | }] | |
| 334 | }, { | |
| 335 | // * ********** ********** ********** ********* Modal Foot er Start * ********** ********** ********** ********** * | |
| 336 | cont rol: "cont ainer", | |
| 337 | extr aClasses: ["modal-fo oter"], | |
| 338 | item s: [{ | |
| 339 | control: " container" , | |
| 340 | extraClass es: ["row" ], | |
| 341 | items: [{ | |
| 342 | contro l: "contai ner", | |
| 343 | extraC lasses: [" col-md-3"] | |
| 344 | }, { | |
| 345 | contro l: "contai ner", | |
| 346 | extraC lasses: [" col-md-9"] , | |
| 347 | items: [{ | |
| 348 | co ntrol: "bu tton", | |
| 349 | id : "cancel- btn", | |
| 350 | na me: "cance l-btn", | |
| 351 | ex traClasses : ["btn-de fault", "b tn-sm"], | |
| 352 | la bel: "Canc el", | |
| 353 | ty pe: 'butto n', | |
| 354 | }, { | |
| 355 | co ntrol: "bu tton", | |
| 356 | id : "add-btn ", | |
| 357 | na me: 'add-b tn', | |
| 358 | ex traClasses : ["btn-pr imary", "b tn-sm"], | |
| 359 | la bel: "Add" , | |
| 360 | ty pe: "submi t" | |
| 361 | }] | |
| 362 | }] | |
| 363 | }] | |
| 364 | }]; | |
| 365 | ||
| 366 | // ***** ********** ********** ********** ********** ** END OF FIELDS *** ********** ********** ********** ********** * | |
| 367 | ||
| 368 | // ***** ********** ********** ********** ********** ** MODEL * ********** ********** ********** ********** ********** * | |
| 369 | // Okay to copy an d paste - Please Add additiona l items to prepopula te the fie lds | |
| 370 | var Form Model = Ba ckbone.Mod el.extend( { | |
| 371 | defa ults: { | |
| 372 | savedDay: 'MM/dd/YYY Y', | |
| 373 | selectProb lemTypeahe ad: '', | |
| 374 | requestNew Term: fals e | |
| 375 | } | |
| 376 | }); | |
| 377 | // ***** ********** ********** ********** ********** ** END OF MODEL **** ********** ********** ********** ********** * | |
| 378 | ||
| 379 | // ***** ********** ********** ********** ********** ** FOOTER VIEW ***** ********** ********** ********** ********** * | |
| 380 | // Okay to copy an d paste - WITH 1 EXC EPTION (se e below) | |
| 381 | ||
| 382 | var Dele teMessageV iew = Back bone.Mario nette.Item View.exten d({ | |
| 383 | temp late: Hand lebars.com pile('You will lose all work i n progress if you de lete this task. Woul d you like to procee d?'), | |
| 384 | tagN ame: 'p' | |
| 385 | }); | |
| 386 | var Clos eMessageVi ew = Backb one.Marion ette.ItemV iew.extend ({ | |
| 387 | temp late: Hand lebars.com pile('You will lose all work i n progress if you cl ose this t ask. Would you like to proceed ?'), | |
| 388 | tagN ame: 'p' | |
| 389 | }); | |
| 390 | var Foot erView = B ackbone.Ma rionette.I temView.ex tend({ | |
| 391 | temp late: Hand lebars.com pile('{{ui -button "C ancel" id= "cancel-bt n" classes ="btn-defa ult btn-sm " title="P ress enter to cancel "}}{{ui-bu tton "Cont inue" clas ses="btn-p rimary btn -sm" title ="Press en ter to con tinue"}}') , | |
| 392 | even ts: { | |
| 393 | 'click .bt n-primary' : function () { | |
| 394 | ADK.UI .Alert.hid e(); | |
| 395 | ADK.UI .Workflow. hide(); | |
| 396 | }, | |
| 397 | 'click #ca ncel-btn': function( ) { | |
| 398 | consol e.log("TES T Cancel") ; | |
| 399 | ADK.UI .Alert.hid e(); | |
| 400 | } | |
| 401 | }, | |
| 402 | tagN ame: 'span ' | |
| 403 | }); | |
| 404 | ||
| 405 | var sele ctProblemV iew = ADK. UI.Form.ex tend({ | |
| 406 | ui: { | |
| 407 | "requestNe wTerm": ". requestNew Term", | |
| 408 | "statusRad io": "#sta tusRadioVa lue-sr-opt 1" | |
| 409 | }, | |
| 410 | even ts: { | |
| 411 | "click #ca ncel-btn": function( e) { | |
| 412 | // ale rt | |
| 413 | e.prev entDefault (); | |
| 414 | var de leteAlertV iew = new ADK.UI.Ale rt({ | |
| 415 | ti tle: 'Are you sure y ou want to cancel?', | |
| 416 | ic on: 'icon- cancel', | |
| 417 | me ssageView: DeleteMes sageView, | |
| 418 | fo oterView: FooterView | |
| 419 | }); | |
| 420 | delete AlertView. show(); | |
| 421 | }, | |
| 422 | "submit": function(e ) { | |
| 423 | e.prev entDefault (); | |
| 424 | if (!t his.model. isValid()) | |
| 425 | th is.model.s et("formSt atus", { | |
| 426 | status: "error", | |
| 427 | message: self.mode l.validati onError | |
| 428 | }) ; | |
| 429 | else { | |
| 430 | th is.model.u nset("form Status"); | |
| 431 | va r saveAler tView = ne w ADK.UI.N otificatio n({ | |
| 432 | title: ' Problem Su bmitted', | |
| 433 | icon: 'f a-check', | |
| 434 | message: 'Problem successful ly submitt ed with no errors.', | |
| 435 | type: "s uccess" | |
| 436 | }) ; | |
| 437 | sa veAlertVie w.show(); | |
| 438 | AD K.UI.Workf low.hide() ; | |
| 439 | } | |
| 440 | }, | |
| 441 | "keydown . requestNew Term input :checked(: focus)": f unction(e) { | |
| 442 | if (e. which === 9) { | |
| 443 | e. preventDef ault(); | |
| 444 | th is.ui.stat usRadio.fo cus(); | |
| 445 | } | |
| 446 | } | |
| 447 | }, | |
| 448 | fiel ds: F414_S electProbl emFields, | |
| 449 | mode lEvents: { | |
| 450 | 'change:se lectProble mTypeahead ': functio n(model) { | |
| 451 | ||
| 452 | var se lectProble m = model. get('selec tProblemTy peahead'); | |
| 453 | ||
| 454 | var ch eckName = _.find(pic kList1.mod els, funct ion(obj) { | |
| 455 | re turn obj.g et('label' ) === sele ctProblem; | |
| 456 | }); | |
| 457 | if(sel ectProblem === "") { | |
| 458 | th is.model.u nset('aler tMessage') ; | |
| 459 | th is.model.s et('reques tNewTerm', false); | |
| 460 | th is.ui.requ estNewTerm .trigger(' control:hi dden', tru e); | |
| 461 | } else if (_.isU ndefined(c heckName)) { | |
| 462 | th is.model.s et('alertM essage', ' If you pro ceed with this nonsp ecific ter m, an ICD code of "7 99.9 - OTH ER UNKNOWN AND UNSPE CIFIED CAU SE OF MORB IDITY OR M ORTALITY" will be fi led.'); | |
| 463 | th is.ui.requ estNewTerm .trigger(' control:hi dden', fal se); | |
| 464 | th is.$el.fin d('.alert- dismissibl e .close') .focus(); | |
| 465 | } else { | |
| 466 | th is.model.u nset('aler tMessage') ; | |
| 467 | th is.model.s et('reques tNewTerm', false); | |
| 468 | th is.ui.requ estNewTerm .trigger(' control:hi dden', tru e); | |
| 469 | } | |
| 470 | }, | |
| 471 | 'change:al ertMessage ': functio n(model) { | |
| 472 | if(!mo del.get('a lertMessag e')) { | |
| 473 | th is.ui.requ estNewTerm .find('inp ut').focus (); | |
| 474 | } | |
| 475 | } | |
| 476 | }, | |
| 477 | clea rInput: fu nction() { | |
| 478 | this.model .unset("st atusRadioV alue"); | |
| 479 | this.model .unset("im mediacyRad ioValue"); | |
| 480 | this.model .unset("on set-date") ; | |
| 481 | this.model .unset("cl inic"); | |
| 482 | this.model .unset("re s-provider "); | |
| 483 | this.model .unset("ye sNoCheckli st"); | |
| 484 | } | |
| 485 | }); | |
| 486 | ||
| 487 | // ***** ********** ********** ********** ********** ** END OF FORM VIEW ********** ********** ********** ********** * | |
| 488 | ||
| 489 | // ***** ********** ********** ********** ********** ** MODEL A ND WORKFLO W INSTANCE ********* ********** ********** * | |
| 490 | // Okay to copy an d paste | |
| 491 | var form Model = ne w FormMode l(); | |
| 492 | ||
| 493 | var work flowOption s = { | |
| 494 | size : "large", | |
| 495 | titl e: "Enter Problem", | |
| 496 | show Progress: false, | |
| 497 | keyb oard: true , | |
| 498 | head erOptions: { | |
| 499 | actionItem s: [{ | |
| 500 | label: 'Preview' , | |
| 501 | onClic k: functio n() { | |
| 502 | // Preview f unctionali ty to go h ere | |
| 503 | } | |
| 504 | }, { | |
| 505 | label: 'Print', | |
| 506 | onClic k: functio n() { | |
| 507 | // Print fun ctionality to go her e | |
| 508 | } | |
| 509 | }] | |
| 510 | }, | |
| 511 | step s: [{ | |
| 512 | view: sele ctProblemV iew, | |
| 513 | viewModel: formModel , | |
| 514 | stepTitle: 'Select a Problem' | |
| 515 | }] | |
| 516 | }; | |
| 517 | var work flow = new ADK.UI.Wo rkflow(wor kflowOptio ns); | |
| 518 | workflow .show(); | |
| 519 | // ***** ********** ********** ********** ********** ** END OF MODEL AND WORKFLOW I NSTANCE ** ********** ********** * | |
| 520 | } | |
| 521 | }; | |
| 522 | return F414; | |
| 523 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.