on 10-06-2004 1:58 PM
Hi there
I'm new at JSP and especially ISA.
I Would like to modify this
organizer-content-product-search.jsp
So that the possibility to search on productnumber no longer is possible.
Can anybody help me out here ?
Best regards
Lars Henrik Andersen
well, i don't know this file, but it should be no problem to comment/delete the section with the search functionality in the jsp...
if you're not sure what to do & the file isn't very large, post it here.
kr, achim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
the drop down box with the available search critera should be filled by the folling lines of code
...<isa:iterate id="attributes" name="<%= InitQuickSearchAction.QS_COMMONATTRIBUTES_LIST %>"
type="com.sapmarkets.isa.catalog.impl.CatalogAttribute">
...
You might check in the class InitQuickSearchAction how this attribute is filled, overload the class with a custom Action class and change the struts-config accordingly.
If you are not only new to JSP but also to Java and Struts, this might be a bit heavy to start with.
Best Regards, Astrid
To "check in the class InitQuickSearchAction how this attribute is filled" requires you of course to decompile the Java class (just in case you try to look for it).
ISA is a bit of a beast in this sense. Without having a Java decompiler handy it is impossible to do any serious customization of the product. SAP could of course provide us with the class sources and make it just that much easier to use
A very good Java Decompiler for this purpose is DJ.
But as Astrid said, your question indicates that you are fairly new to all of this and hence it might be a bit of a task to start of with what she validly suggested.
Of course we have never decompiled anything either...just heard rumours that people have done so when in lack of documentation of certain products or when tracing some product bugs 😜
Now, could someone validate that you get the source code for ISA 4?
Who did you Astrid contact to get the source code for the 3.x version?
Cheers,
Kalle
The simplest way is making this:
-
-
Be observed that you must put the 'name' of product name in your language
. Example: spanish = "número", if english = "number".Hope that helps!!
Best regards!
Antonio.
P.D.: Click on the yellow star? Thanks!! jejeje
Ooops! You must put the post as question to see the yellow star.
Message was edited by: Antonio Dominguez
Hi again
After I have been strugling with this problems for a while I ended up with this solution :
-
<% String theDescription = InitQuickSearchAction.getAttributeDescription( pageContext, thePrefix, attributes);
<%-- MO0006 Remove : if (theDescription != null ) {
--%>
<%-- MO0006 Start Insert : --%>
if (theDescription != null && attributes.getName().compareToIgnoreCase("OBJECT_ID") != 0) {
<%-- MO0006 End Insert : --%>
%>
<% if (null == iqs ) { %>
-
Best regards and thanks for all Your answers
Lars Henrik Andersen
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.