cancel
Showing results for 
Search instead for 
Did you mean: 

how to check Order type in in function submit_refresh

Former Member
0 Kudos

Hi Experts,

I have a requirment to check P.O. when Update new order, but this validation is only for Order not for Quotation. I know how to do the validation in function submit_refresh() in orderTools.js, but don't know how to check if it's Order only.

Can anyone please provide me the code for checking Order type in function submit_refresh?

Thanks, Jin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jin,

Try like this


BasketUI ui = new BasketUI(pageContext);

if (!ui.isQuotation()) {
//put your validations here
}

Put the above code below this piece of code in order.jsp


<%@ include file="/b2b/itemErrMsg.inc.jsp"%>
<% } %>
<%-- ui.showItemDetailButton() --%>
<% } %>
<%-- ui.isBOMSubItemToBeSuppressed() --%>

This will work while you click on update button on order creation page.

Regards,

Arshi

Edited by: Arshi Arshi on Jun 25, 2009 1:19 PM

Former Member
0 Kudos

Hi Arshi,

Thank you very much for your help with all details. You answered my question.

Thanks agian, Jin

Answers (0)