Matt - Thank you for posting these very thorough instructions. This worked like a charm! I'm still on SRM 2.2 and an upgrade is nowhere in sight. This will prevent many misunderstandings with our users.
Christine On Aug 17, 1:26 pm, Matthew Perrault <matthew.perra...@genmills.com> wrote: > We had the same problems with the Add ToCartfunctionality. > Here's what we did to disable it: > 1) Go to the Data Visualization Module form in Remedy. > 2) Take the SRMSServiceRequestBrowser.jar file and save it to disk > 3) Save a backup copy of it > 4) Open it with Win Zip > 5) Locate the files: Buttons.st and list-services.st > 6) extract them to your desktop > 7) in the folder that is created (resources\templates\) > You will see 2 folders: list-services and questions > 8) go into the folder list-services, > 9) open the list-services.st file with notepad or word-pad > 10) towards the bottom find the line: <li><button > class="serviceAddToCartAction" srdId="$it.id$"..... > 11) change it to: <li><button class="serviceAddToCartAction" srdId="$it.id$" > disabled="true" onclick="handleAddToCartEvent(event);">DISABLED</button></li> > *note the disabled="true" addition > 12) Save the file > 13) Open the file: buttons.st in the resources\templates\questions\ folder > 14) find the lines: > $if(draft)$ > <td align="right"><input id="addtocart_button" > value="$addToCartLabel$" type="button" class="submitbuttons".... > $else$ > <td align="right"><input id="addtocart_button" > value="$addToCartLabel$" type="button" class="submitbuttons".... > > 15) Change it to the following: > $if(draft)$ > <td align="right"><input id="addtocart_button" > value="$addToCartLabel$" type="button" class="submitbuttons" disabled="true" > onClick="javascript:none();"/></td> > $else$ > <td align="right"><input id="addtocart_button" > value="$addToCartLabel$" type="button" class="submitbuttons" disabled="true" > onClick="javascript:none();"/></td> > > 16) Save the File > 17) Re-Import the modified files with the path structure > (\resources\templates\list-services and \resources\templates\questions\ > otherwise the SRM Portal will error when it is opened. > 18) save the JAR file > 19) remove the old SRMSServiceRequestBrowser.jar file from the Data > Visualization Module record > 20) re-add the modified SRMSServiceRequestBrowser.jar file to the Data > Visualization Module record. > 21) Open the SRS:ServiceRequestConsole form in the Admin Tool > 22) find and disable all the Add ToCartbuttons on that form > 23) Clear the Cache on the Mid-Tier including the Plugin-Cache > 24) restart the Mid-Tier > > At that point you should see the Buttons show up turned off, with the Label > "Disabled" > > The tricky piece is getting the files replaced with the correct path back > into the JAR file. > That where we ran into issues. > I would recommend doing it on Dev first to get the bugs figured out. > > HTH. > Matt P. > > _______________________________________________________________________________ > UNSUBSCRIBE or access ARSlist Archives atwww.arslist.org > attend wwrug10www.wwrug.comARSlist: "Where the Answers Are" _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are"