How to search item classes
Hi,
Is there a way to search for a specific item class in the item classes list? Neither I could find a way to sort them, so it is more pain to search for a specific item class.
Thanks.
Hi Puppethead
this is true and is exactly what I did when I first started working with Discoverer. However, not everyone has that business area installed.
For anyone wondering what we are talking about, here is a workflow:
1. Launch SQL*PLUS as EUL owner
2. Locate and execute this file: EUL5.SQL - you will find it here:
$ORACLE_HOME/discoverer/util - usually: C:\oracle\BIToolsHome_1\discoverer\util
3. Exit SQL*PLUS and launch Discoverer Administrator
4. From the menu bar, select File | Import
5. Click Add File
6. Locate this file: EUL5.EEX - you will find it here:
$ORACLE_HOME/discoverer - usually: C:\oracle\BIToolsHome_1\discoverer
7. Click Next
8. Accept all default and click Next
9. Click Start (located top right)
10. When done - click Finish
11. You will now see a new business area called The Discoverer V5 EUL
You should now be able to log into Desktop or Plus as the EUL owner and run the workbooks that were also installed by the above process. There are four of these, called:
EUL Access
EUL Data Definition
EUL Query Statistics
EUL Workbook Management
The one you want in order to look at the list of values is called EUL Data Definition. Open this and look at the worksheet called Item Classes.
I hope this helps
Best wishes
Michael Armstrong-Smith
URL: http://learndiscoverer.com
Blog: http://learndiscoverer.blogspot.com
Similar Messages
-
How to search a class in list of jar files
Hi All,
I am using Windows XP. I have some 100's of jars and I want to find in which jar file a particular class exists. The search option in Windows XP (except Windows 2000) doesn't help. I tried the sourceforge.net jarbrowser tool but it's search functionality is not working.
Can anybody please suggest a nice tool or approach ...
Thanks & Regards,
Kr.I know of one named ClassFinder that will do what you want.
-
How to search for a class to know it is in which Jar file
Hi Guys,
Can any tell me how to search a class file. I have a set of Jar files in which the required class file is there. But i don't know in which Jar file the class is. Is there any way to find out.
Regards,
Gowtham K.Hi Gowtham,
Please download the Class locator from the following site. This will help to know what you are looking for.
<b>http://www.alphaworks.ibm.com/tech/jarclassfinder</b>
<b>http://sourceforge.net/projects/classlocator</b>
I hope this solves your problem.
Regards
Pravesh
PS: Please consider rewarding points for helpful answer. -
Searching items in InfoPath form library
Hi,
I have an Infopath form library, in which I have done the property promotion and exposed some of the columns.
I am trying for search functionality. How to search items in infopath form library? Is there any OOB webparts which can be used to display search criteria and the results. I do not have access to Central Admin, and hence cannot create Managed metadata properties,
but the columns are exposed in InfoPath form.
The infopath form has repeating table as well.
How to achieve the search in InfoPath form library?
ThanksHi Venkatzeus,
Have you tried using contextual search for this InfoPath form library?
Please go to site setting page->Site collection ->Site Collection Administration section->Search Settings page, select the value "Show and default to contextual scope" for option "Site Collection Search Dropdown Mode",
then please go to the InfoPath form library to test the search using "This list:YourFormlibraryName" dropdown (and wait a full crawl if needed).
See more information from below.
https://technet.microsoft.com/en-us/library/gg576955%28v=office.14%29.aspx?f=255&MSPPError=-2147217396#BKMKSiteCollectionSearchSettings
http://www.sharepointanalysthq.com/2010/06/sharepoint-2010-site-search-drop-down-mode/
Thanks,
Daniel Yang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Daniel Yang
TechNet Community Support -
How to search for available class in given package?
How to search for available class in given package or sub package?
Finally i did it. I make hibernate and spring without much configuration. I just pass the package pattern to search for all bean. I named it package pattern injection.
My website is still under construction yet. It named Jimmy6 Framework.
The code it just the following for all hibernate and spring bean for the whole project.
<bean id="sessionFactory" class="com.j6.framework.JAnnotationSessionFactoryBean">
<property name="annotatationOrHbmXmlPackagePattern">
<list>
<value>com\.j6\.project.+?\.vo\..+?</value>
</list>
</property>
<bean id="autoBeanCreatorFactoryManager" class="com.j6.framework.resource.AutoBeanCreatorFactory">
<property name="packagePatterns">
<list>
<value>com\.j6\.project\..+?\.manager\..+?</value>
</list>
</property>
</bean>
<bean id="autoBeanCreatorFactoryDao" class="com.j6.framework.resource.AutoBeanCreatorFactory">
<property name="packagePatterns">
<list>
<value>com\.j6\.project\..+?\.dao\.hibernate.+?</value>
</list>
</property>
</bean>Feel free to have a look and gv some comments. Thanks :)
Regards,
Jimmy6
Edited by: jimmy6 on Nov 4, 2008 8:15 AM -
How do I clear previously typed searched items
I have a problem
When ever I am typing something on google or youtube, in the search box...a huge list of previously searched items that i typed in shows up when i start writing something with that same letter..
on my pc, i would just select the whole text within that list and then press delete, so that the list goes away....
how would i do it on the mac? its really annoying seeing all the stuff ive typed before every single time...
i would appreciate if someone can help me out with this small situation
thanks so much!
ps: im new to mac, if u couldnt tell...so please dont mind...hahaGoogle's search is a bit different. There, once logged on to your G account, go to Google Preferences. Somewhere in that maize of selections you'll find the option to remove the searches.
It's true that Google will keep a record of your searches if you're logged into your Google account. However, Google doesn't autofill those search strings in the Google search field; only Safari does that. So the procedure for clearing those autofill entries is the same as you gave for clearing YouTube search strings.
Instead of autofilling past searches as you type, Google's list of your search history is only accessed by clicking on the "My Account" link and then clicking on the "Web History" link. (And for what it's worth, clearing Google's record of your search history is via the option found at My Account > My Services - Edit > Delete Web History.) -
How to search for particular string in array?
I am struggling to figure out how to search array contents for a string and then delete the entry from the array if it is found.
The code for a program that allows the user to enter up to 20 inventory items (tools) is posted below; I apologize in advance for it as I am also not having much success grasping the concept of OOP and I am certain it is does not conform although it all compiles.
Anyway, if you can provide some assistance as to how to go about searching the array I would be most grateful. Many thanks in advance..
// ==========================================================
// Tool class
// Reads user input from keyboard and writes to text file a list of entered
// inventory items (tools)
// ==========================================================
import java.io.*;
import java.text.DecimalFormat;
public class Tool
private String name;
private double totalCost;
int units;
// int record;
double price;
// Constructor for Tool
public Tool(String toolName, int unitQty, double costPrice)
name = toolName;
units = unitQty;
price = costPrice;
public static void main( String args[] ) throws Exception
String file = "test.txt";
String input;
String item;
String addItem;
int choice = 0;
int recordNum = 1;
int qty;
double price;
boolean valid;
String toolName = "";
String itemQty = "";
String itemCost = "";
DecimalFormat fmt = new DecimalFormat("##0.00");
// Display menu options
System.out.println();
System.out.println(" 1. ENTER item(s) into inventory");
System.out.println(" 2. DELETE item(s) from inventory");
System.out.println(" 3. DISPLAY item(s) in inventory");
System.out.println();
System.out.println(" 9. QUIT program");
System.out.println();
System.out.println("==================================================");
System.out.println();
// Declare and initialize keyboard input stream
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
do
valid = false;
try
System.out.print(" Enter an option > ");
input = stdin.readLine();
choice = Integer.parseInt(input);
System.out.println();
valid = true;
catch(NumberFormatException exception)
System.out.println();
System.out.println(" Only numbers accepted. Try again.");
while (!valid);
while (choice != 1 && choice != 2 && choice != 9)
System.out.println(" Not a valid option. Try again.");
System.out.print(" Enter an option > ");
input = stdin.readLine();
choice = Integer.parseInt(input);
System.out.println();
if (choice == 1)
// Declare and initialize input file
FileWriter fileName = new FileWriter(file);
BufferedWriter bufferedWriter = new BufferedWriter(fileName);
PrintWriter dataFile = new PrintWriter(bufferedWriter);
do
addItem="Y";
System.out.print(" Enter item #" + recordNum + " name > ");
toolName = stdin.readLine();
if (toolName.length() > 15)
toolName = toolName.substring(0,15); // Convert to uppercase
toolName = toolName.toUpperCase();
dataFile.print (toolName + "\t");
do
valid = false;
try
// Prompt for item quantity
System.out.print(" Enter item #" + recordNum + " quantity > ");
itemQty = stdin.readLine();
// Parse integer as string
qty = Integer.parseInt (itemQty);
// Write item quantity to data file
dataFile.print(itemQty + "\t");
valid=true;
catch(NumberFormatException exception)
// Throw error for all non-integer input
System.out.println();
System.out.println(" Only whole numbers please. Try again.");
while (!valid);
do
valid = false;
try
// Prompt for item cost
System.out.print(" Enter item #" + recordNum + " cost (A$) > ");
itemCost = stdin.readLine();
// Parse float as string
price = Double.parseDouble(itemCost);
// Write item cost to data file
dataFile.println(fmt.format(price));
valid = true;
catch(NumberFormatException exception)
// Throw error for all non-number input (integers
// allowed)
System.out.println();
System.out.println(" Only numbers please. Try again.");
while (!valid);
// Prompt to add another item
System.out.println();
System.out.print(" Add another item? Y/N > ");
addItem = stdin.readLine();
while ((!addItem.equalsIgnoreCase("Y")) && (!addItem.equalsIgnoreCase("N")))
// Prompt for valid input if not Y or N
System.out.println();
System.out.println(" Not a valid option. Try again.");
System.out.print(" Add another item? Y/N > ");
addItem = stdin.readLine();
System.out.println();
// Increment record number by 1
recordNum++;
if (addItem.equalsIgnoreCase("N"))
System.out.println();
System.out.println(" The output file \"" + file + "\" has been saved.");
System.out.println();
System.out.println(" Quitting program.");
while (addItem.equalsIgnoreCase("Y"));
// Close input file
dataFile.close();
if (choice == 2)
try {
Read user input (array search string)
Search array
If match found, remove entry from array
Confirm "deletion" and display new array contents
catch block {
} // class
// ==========================================================
// ListToolDetails class
// Reads a text file into an array and displays contents as an inventory list
// ==========================================================
import java.io.*;
import java.util.StringTokenizer;
import java.text.DecimalFormat;
public class ListToolDetails {
// Declare variable
private Tool[] toolArray; // Reference to an array of objects of type Tool
private int toolCount;
public static void main(String args[]) throws Exception {
String line, name, file = "test.txt";
int units, count = 0, record = 1;
double price, total = 0;
DecimalFormat fmt = new DecimalFormat("##0.00");
final int MAX = 20;
Tool[] items = new Tool[MAX];
System.out.println("Inventory List");
System.out.println();
System.out.println("REC.#" + "\t" + "ITEM" + "\t" + "QTY" + "\t"
+ "PRICE" + "\t" + "TOTAL");
System.out.println("\t" + "\t" + "\t" + "\t" + "PRICE");
System.out.println();
try {
// Read a tab-delimited text file of inventory items
FileReader fr = new FileReader(file);
BufferedReader inFile = new BufferedReader(fr);
StringTokenizer tokenizer;
while ((line = inFile.readLine()) != null) {
tokenizer = new StringTokenizer(line, "\t");
name = tokenizer.nextToken();
try {
units = Integer.parseInt(tokenizer.nextToken());
price = Double.parseDouble(tokenizer.nextToken());
items[count++] = new Tool(name, units, price);
total = units * price;
} catch (NumberFormatException exception) {
System.out.println("Error in input. Line ignored:");
System.out.println(line);
System.out.print(" " + count + "\t");
System.out.print(line + "\t");
System.out.print(fmt.format(total));
System.out.println();
inFile.close();
} catch (FileNotFoundException exception) {
System.out.println("The file " + file + " was not found.");
} catch (IOException exception) {
System.out.println(exception);
System.out.println();
// Unfinished functionality for displaying "error" message if user tries to
// add more than 20 tools to inventory
public void addTool(Tool maxtools) {
if (toolCount < toolArray.length) {
toolArray[toolCount] = maxtools;
toolCount += 1;
} else {
System.out.print("Inventory is full. Cannot add new tools.");
// This should search inventory by string and remove/overwrite matching
// entry with null
public Tool getTool(int index) {
if (index < toolCount) {
return toolArray[index];
} else {
System.out
.println("That tool does not exist at this index location.");
return null;
} // classData file contents:
TOOL 1 1 1.21
TOOL 2 8 3.85
TOOL 3 35 6.92Ok, so you have an array of Strings. And if the string you are searching for is in the array, you need to remove it from the array.
Is that right?
Can you use an ArrayList<String> instead of a String[ ]?
To find it, you would just do:
for (String item : myArray){
if (item.equals(searchString){
// remove the element. Not trivial for arrays, very easy for ArrayList
}Heck, with an arraylist you might be able to do the following:
arrayList.remove(arrayList.indexOf(searchString));[edit]
the above assumes you are using 1.5
uses generics and for each loop
[edit2]
and kinda won't work it you have to use an array since you will need the array index to be able to remove it. See the previous post for that, then set the value in that array index to null.
Message was edited by:
BaltimoreJohn -
How to search to files based on the metadata of the category in CS
Hi,
Can any one tell me how to search the files in the content services based on the metadata of the Category,I know how to search based on the Category using
public static void attributSearch(String searchString)
throws FdkException, RemoteException, Exception
// get the Manager instances
SearchManager sem = s_WsCon.getSearchManager();
CategoryManager cat = s_WsCon.getCategoryManager();
CommonManager cm = s_WsCon.getCommonManager();
FileManager fm = s_WsCon.getFileManager();
Item folder = fm.resolvePath("/idc/workspaces/BoardMembersProject", null);
AttributeRequest[] catAttr =
WsUtility.newAttributeRequestArray("ProjectCategory");
// create AttributeRequest to retrieve CATEGORIES attribute
AttributeRequest[] catClassAttr = WsUtility.newAttributeRequestArray(
Attributes.CATEGORIES, catAttr);
// define search options
NamedValue[] nv = WsUtility.newNamedValueArray(new Object[][] {
{ Options.SEARCH_VERSION_HISTORY, Boolean.TRUE },
{ Options.RETURN_COUNT, new Integer(100)
// get search expresiion
SearchExpression seExp = new SearchExpression();
// searchString ="ProjectCategory";
Item[] item = cat.getRequiredCategories(folder.getId(),catClassAttr);
seExp = new SearchExpression();
NamedValue[] attributes = item[0].getRequestedAttributes();
seExp.setOperator(FdkConstants.OPERATOR_HAS_CATEGORY);
seExp.setRightOperand("["+item[0].getName()+"]");
// search documents
NamedValue[] result = sem.search(seExp, nv, null);
// search result display
for (int i = 0; i < result.length; i++)
if (result.getName().equals(Options.SEARCH_RESULTS))
Item[] resulItem = (Item[]) result[i].getValue();
WsUtility.log("Kveni",resulItem);
if (resulItem != null)
for (int j = 0; j < resulItem.length; j++)
WsUtility.log("File " +resulItem[j].getName());
But how do one search Based on the attributes of the category??
thanks
kveniDownload the PM accelerator kit appropriate to your environment, and check out the TestSearch2.java example.
http://www.oracle.com/technology/products/cs/developer/contentservicesdev/contenservicesdevkit.html
Essentially you need to lookup the internal names of your category attributes, as well as have the internal name of your category class.
categoryClassName = ...; // e.g. AHC_XXX
attribute1name = ....; // e.g. CUSTOM_MYBOOLATTR
you then create a normal search expression such as
String attribute1Operand = "[" + categoryClassName + FdkConstants.SEPARATOR + attribute1name + "]";
SearchExpression expr1 = new SearchExpression();
expr1.setOperator(FdkConstants.OPERATOR_EQUAL);
expr1.setLeftOperand(attribute1Operand);
expr1.setRightOperand(Boolean.TRUE);
Matt. -
Query Search Panel not displaying search items in 11g on Windows 7 x64
I have defined a view object with two bind variables in a query criteria.
when I drag the query criteria onto a page - I get the panel with the search box - but the message says "no search items have been added".
I went back and ran through the steps with the SR Demo - same results.
I have tried redoing the search, using the default "all query items", query with table, and always the same results.
If I do a query form - I get everything - but i really need the "nice" query table to work.
Anyone else having this problem - or know of a solution.
I have redone the cue card step many times - I can put the base object (view) on the page and it works fine.
Edited by: rogerappl on Jun 30, 2010 12:49 PMOK, this may seem foolish, how do I drag and drop the ExecuteWithParams - this will need to be in the Datacontrol - I presume - I am using 11gR3 (11.1.1.3).
I cannot even find documentation on this.
You are correct - I created the bind variables when I defined the where clause - so I suspect this may be the reason.
I would have thought that this would be automated - since it is pretty useless without it. There were no hints of this in the demo either. -
How to search this forum?
Before the recent change to the Apple forums, I could search for something and get a whole lot of results. Now it seems I'm limited to the first three suggestions and then I'm forced to ask a question. Is there something I'm missing?
More specifically, how to get more than 3 search items?
-
How to search for a BADI in a transaction
Hi All,
Please let me know the steps to find a BADI for a transaction.
Thanks,
Jaffer Ali.Scheck this.
u can find BADI's in different ways...
1>First go to any transaction->iN THE menu bar SYSTEM->STATUS->Get the program name ->double click->u will go to the program attached to the tcode.Now search term will be CALL CL_EXITHANDLER.Now u will get list of BADI'S available..
2>Goto SE24->Give class name as CL_EXITHANDLER->Display->double click on get_instance mathod->Now u will go inside the method->Now put break point on the cl_exithandler.Now go to any transaction code and pass dat..U will see that it will be stopped on the break point which u set on the cl_exithandler...In the exit name u can find list of badi's attached to the tcode..
There are multiple ways of searching for BADI.
Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
Finding BADI Using SQL Trace (TCODE-ST05).
Finding BADI Using Repository Information System (TCODE- SE84).
1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for CL_EXITHANDLER=>GET_INSTANCE.
Make sure the radio button In main program is checked. A list of all the programs with call to the BADIs will be listed.
The export parameter EXIT_NAME for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter INSTANCE will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.
2. Start transaction ST05 (Performance Analysis).
/people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
3. Go to Maintain Transaction (TCODE- SE93).
Enter the Transaction VD02 for which you want to find BADI.
Click on the Display push buttons.
Get the Package Name. (Package VS in this case)
Go to TCode: SE84->Enhancements->Business Add-inns->Definition
Enter the Package Name and Execute.
Here you get a list of all the Enhancement BADIs for the given package MB.
The simplese way for finding BADI is
1. chooes Tcode Program & package for that Tcode.
2. Go to Tcode se18
3. Press F4
4. search by package or by program.
Regards
Kiran Sure -
How to search for a particular word in a string?
How to search for a particular word in a string?
thanks for your help....This works fine.
public class Foo {
public static void main(String[] args) {
String s = "Now is the time for all good...";
String s2 = "the time";
System.out.println(s.contains(s2));
System.out.println(s.contains("for al"));
System.out.println(s.contains("not here"));
}output:true
true
falseYou must have something else wrong in your code.
JJ -
How to change CSS Class Dynamically for columns in a page
Hi ,
I have a page and i have columns like customer, bill to location, date from, date to..etc.
Once i save the records the columns shoulbd change to Bold(CSS Class = OraDataText). In simple way how to chane CSS class for an item dynamically to a specific value.
Can some one help me if came across this kind of a requirement.
Please send me sample code if any one has this....
Thanks,
MaheshI'm getting the following error while i implement the code in CO of Apply button.
oracle.apps.fnd.framework.OAException: java.lang.ClassCastException
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2637)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.lang.ClassCastException
at xxafp.oracle.apps.qp.pricelistrebate.webui.XxafpEepRebateCreateCO.processFormRequest(XxafpEepRebateCreateCO.java:98)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.lang.ClassCastException
at xxafp.oracle.apps.qp.pricelistrebate.webui.XxafpEepRebateCreateCO.processFormRequest(XxafpEepRebateCreateCO.java:98)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
Thanks,
Mahesh -
How to search for files using wildcards * and ?.
Hi All,
I've been searching the forum for a couple of hours now and have been unable to find a good example of how to search a directory (Windows OS) for a file using wildcards * and/or ?. Does anyone out there have a good example that they can share with me?
ThanksHi All,
First of all I want to thank everyone for taking the time to respond to my question. All of your responses where greatly appreciated.
I took the example code that was posted by rkconner, thanks rkconner, and modified it to allow me to search for files in a directory that contain * and/or ?. Yes, I said and/or! Meaning that you can use them both in the same file name, example: r??d*.t* would find readme.txt.
I've posed my complete and thoroughly document code below. I hope it is very helpful to other as I have searched many forums and spent many hours today trying to resolve this problem.
Enjoy
* File Name: WildcardSearch.java
* Date: Jan 9, 2004
* This class will search all files in a directory using the
* asterisk (*) and/or question mark (?) as wildcards which may be
* used together in the same file name. A File [] is returned containing
* an array of all files found that match the wildcard specifications.
* Command line example:
* c:\>java WildcardSearch c:\windows s??t*.ini
* New sWild: s.{1}.{1}t.*.ini
* system.ini
* Command line break down: Java Program = java WildcardSearch
* Search Directory (arg[0]) = C:\Windows
* Files To Search (arg[1]) = s??t*.ini
* Note: Some commands will not work from the command line for arg[1]
* such as *.*, however, this will work if you if it is passed
* within Java (hard coded)
* @author kmportner
import java.io.File;
import java.io.FilenameFilter;
public class WildcardSearch
private static String sWild = "";
* @param args - arg[0] = directory to search, arg[1] = wildcard name
public static void main(String[] args)
String sExtDir = args[0]; // directory to search
sWild = args[1]; // wild card to use - example: s??t*.ini
sWild = replaceWildcards(sWild);
System.out.println("New sWild: " + sWild);
File fileDir = new File(sExtDir);
File[] arrFile = fileDir.listFiles(new FilenameFilter()
public boolean accept(File dir, String name)
return (name.toLowerCase().matches(sWild));
for (int i = 0; i < arrFile.length; ++i)
System.out.println(arrFile.getName());
} // end main
* Checks for * and ? in the wildcard variable and replaces them correct
* pattern characters.
* @param wild - Wildcard name containing * and ?
* @return - String containing modified wildcard name
private static String replaceWildcards(String wild)
StringBuffer buffer = new StringBuffer();
char [] chars = wild.toCharArray();
for (int i = 0; i < chars.length; ++i)
if (chars[i] == '*')
buffer.append(".*");
else if (chars[i] == '?')
buffer.append(".{1}");
else
buffer.append(chars[i]);
return buffer.toString();
} // end replaceWildcards method
} // end class -
How to search for upper/lower case using string using JAVA!!!?
-I am trying to write a program that will examine each letter in the string and count how many time the upper-case letter 'E' appears, and how many times the lower-case letter 'e' appears.
-I also have to use a JOptionPane.showMessageDialog() to tell the user how many upper and lower case e's were in the string.
-This will be repeated until the user types the word "Stop".
please help if you can
what i have so far:
[code]
public class Project0 {
public static void main(String[] args) {
String[] uppercase = {'E'};
String[] lowercase = {'e'};
String isOrIsNot, inputWord;
while (true) {
// This line asks the user for input by popping out a single window
// with text input
inputWord = JOptionPane.showInputDialog(null, "Please enter a sentence");
if ( inputWord.equals("stop") )
System.exit(0);
// if the inputWord is contained within uppercase or
// lowercase return true
if (wordIsThere(inputWord, lowercase))
isOrIsNot = "Number of lower case e's: ";
if (wordIsThere(inputword, uppercase))
isOrIsNot = "number of upper case e's: ";
// Output to a JOptionPane window whether the word is on the list or not
JOptionPane.showMessageDialog(null, "The word " + inputWord + " " + isOrIsNot + " on the list.");
} //main
public static boolean wordIsThere(String findMe, String[] theList) {
for (int i=0; i<theList.length; ++i) {
if (findMe.equals(theList[i])) return true;
return false;
} // wordIsThere
} // class Lab4Program1
[/code]So what is your question? Do you get any errors? If so, post them. What doesn't work?
And crossposted: how to search for upper/lower case using string using JAVA!!!?
Maybe you are looking for
-
Hi people I need help to configure a new Airport Express only to extend the range of my WIFI network. My ethernet cable from modem is connected directly in my iMac and I am sharing the internet by WIFI inside home very fine. Now, I would like connect
-
Application started using Java Web Start doesn't launch the first time
I have a Facebook photo uploader application that I plan to distribute using Java Web Start. I'm using Java 6u4 on Windows XP SP2 with 2GB of RAM. I have Java 6u3, Java 6u4 and Java 5 u14 installed and I'm sure the one used is Java 6u4. I signed my a
-
BAPI or FM for changing Purchase Order
Hi, Does anybody know a BAPI or FM to change Purchase Order item details. I looked for a BAPI but only found for creating and listing. thanks.
-
Problems connecting to Oracle 11g R1 RAC
Hi everybody In my factory we hava a web aplication called Matrix one that is connected to an oracle database 11g. This aplication uses Weblogic 9.2.3 to load the web pages. Until now we had an oracle running in one server, but now we have put an ora
-
Transfer PO value limit from HR system to SRM system
Hi All, Kindly provide some inputs about how could I transfer the PO value limit from HR system to SRM system. It would be good if you please explain in brief. Regards, KM