cancel
Showing results for 
Search instead for 
Did you mean: 

display error like invalid entry

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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. Pease help me to resolve this issue.

Many Thanks

Iqbal

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Experts,

How can we debug the CLM Application.?

other point --> how can I print System.out.println in CLM log files.

Thanks

Iqbal

Answers (0)