Name

global.CatalogTransactionNavigateGuide

Description

Invoked when you hit one of the tabs atop an order guide screen

Script

gs.include('PrototypeServer');
gs.include('AbstractTransaction');

var CatalogTransactionNavigateGuide = Class.create();

CatalogTransactionNavigateGuide.prototype =  Object.extendsObject(AbstractTransaction, {
  
  execute : function() {
  	try {
  		var cartName = this.request.getParameter("sysparm_cart_name");
  		var cart;
  		if (!JSUtil.nil(cartName))
  			cart = GlideappCart.get(cartName);
  		else
  			cart = GlideappCart.get();
  		var og = new GlideappOrderGuide(cart.getGuide());
  		og.navigate(this.request, this.response, cart);
  	} catch (e) {
  		var catalogExceptionUtils = new CatalogExceptionUtils();
  		if (catalogExceptionUtils.isCartException(e)) {
  			return catalogExceptionUtils.handleCartException(e);
  		}
  		gs.debug(e);
  	}
  }
});

Sys ID

93e58c93c0a800270015107f4b8d3783

Offical Documentation

Official Docs: