on 07-29-2011 10:32 PM
Hi All,
In master agreement --> supplier inof Tab > Product Category when user selects input like *Merchandising--"* it should display error like invalid entry, I am in need to write an java script.
Please advice what should be the steps in scripting and where.
Thanks
Iqbal
Hi Iqbala,
To validate the Product category you have to write the Script for MA and with context as Validate.
Internal Id for product category is INT_CAT.
Hopefully this will work for you.
Thanks,
Ankur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Ankur for your response.
I am very new to this area and I have no idea what should be the script/code for this one. My requirement is in MA > supplier info> super commidty any drop down which start with - (dash) *(Example: "Merchandising--" , -Production- )* should be display like invalid entry.
Pease help me to resolve this issue.
Many Thanks
Iqbal
Hi Iqbala,
As i told, you can use the internal id of the Filed you want to use for the startwith condition and can throw the exception.
e.g:-
if(doc.getExtensionField("Extnsion field ID").get().startsWith("--"))
{
throw doc.createApplication Exception("Extnsion field ID","Error Message");
}
Please rply back if you want any help.
Thanks,
Ankur
Edited by: ankur_goyal03 on Aug 2, 2011 9:22 AM
Thanks Ankur,
I am using the below code for this one :
if(doc.getExtensionField("SUB_COMMODITY1").get().startsWith("--"))
{
throw doc.createApplication Exception("SUB_COMMODITY1","Invalid Entry");
}
However it is not working , when I am selecting other option other then (---) dash it is also showing "Invalid Entry"
Please help me resolve this issue
Many Thanks
Iqbal
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.