on 06-11-2015 1:08 PM
Hi,
Have extended SAP Approve PO app, everything works fine. However need to have a custom java script function to validate PO type.
To do that we use:
<form:FormContainer title="PC data"
visible="{parts : [{path : 'ZZPOTYPE'}], formatter : 'ui.s2p.mm.purchorder.approve.util.Conversions.commonFieldVisibilityTrigger'}">
Here, FORMATTER is called from the standard app Conversions.js under UTIL folder:
1. Could we extend the Conversions.js or
2. Couls we create one in extension app?
Regards,
Kevin Dass
Message was edited by: Michael Appleby
sure you can create one, just place it in the right folder structure and dont forget to declare it
jQuery.sap.declare("your.own.very.special.Formatter");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check your name space in index.html and component.js,
<script id="sap-ui-bootstrap" | ||
src="resources/sap-ui-core.js" | ||
data-sap-ui-libs="sap.m" | ||
data-sap-ui-theme="sap_bluecrystal" | ||
data-sap-ui-xx-bindingSyntax="complex" | ||
data-sap-ui-resourceroots='{"HERE IT SHOULD MATCH": "./"}'> | ||
</script> jQuery.sap.declare("HERE IT SHOULD MATCH.Component"); jQuery.sap.require("HERE IT SHOULD MATCH.MyRouter"); sap.ui.core.UIComponent.extend("HERE IT SHOULD MATCH.Component", { |
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.