hiddenPromptValue2.js 576 B

12345678910111213141516171819202122232425262728293031
  1. define( function() {
  2. "use strict";
  3. function PageModule()
  4. {
  5. };
  6. PageModule.prototype.load = function( oPage )
  7. {
  8. console.log( "PageModule.load" );
  9. };
  10. PageModule.prototype.show = function( oPage )
  11. {
  12. var oControl = oPage.getControlByName( "TEXT1" );
  13. var selection = [{'use': 'Camping Equipment'}];
  14. oControl.setValues(selection);
  15. alert("There cct is a hidden prompt on this page. When you press OK, the prompt value will be set and the Finish button 'clicked' for you");
  16. oControl.valueChanged();
  17. if ( bAutoSubmit )
  18. {
  19. oControl.next();
  20. }
  21. };
  22. return PageModule;
  23. });