Using KeyFilter Java Bean in Client Server Environment - Mr. Grover hope u r here !
Hello,
I will be grateful if some one can tell me how to use Keyfilter
java bean in Forms 6.0 client server environment.
Our requirement is to restrict entry in text field to just upper
case characters at key punch rather than after navigating out of
field.
Thanx in advance.
Are you using
http://otn.oracle.com/sample_code/products/forms/content.html#jbp
jc
Since the readme file shows exactly what you have to do.
Basically you set the implementation class for a text field to
point to this class and make sure this class is accessable.
Regards
Grant Ronald
Forms Product Management
Similar Messages
-
Run a report made in Rerports 9i in client/server environment
Hello
I need to run a report made in Reports 9i in a client/server environment, but we don´t want to install the developer suite. Reports 6i had a runtime tool how can i do in Reports 9i?
PD: si alguien me puede responder en español seria fantastico.
Thank you
Angelo J. GonzalezIn client server mode you can use RUN_PRODUCT built-in. Lookup help for this built-in for more details.
Best of luck! -
Oracle9i Reports in Client/Server environment
Hi
Is it possible to use Oracle9i Reports in Client/Server environment. I tried to use reports against older databases (7.3.4 and 8.1.7) and they work from Repots Builder but it is nor clear is it possible to set clinet/server environment for them.
RegardsYou can certainly still run reports using the rwrun executable.
However, there is no longer any runtime UI (i.e., you can't run to Screen or Preview any more, only to File, Printer, etc.)
Regards,
Danny -
How to use/configure JAVA beans file in Forms10g?
Hi!
I'm using Forms10g. I need to use few java beans file in my forms. How do i call it and configure it. So, that i can access all the features of this file in Forms.
Regards.
Satyaki De.Hello,
Java Beans Integration
http://forms.pjc.bean.over-blog.com/article-4018331.html
Hope it helps,
Jose. -
Hi Guys,
Ive built a system which uses 8/9 servlets and connects to a postgres database, reads csv files and a few other things, now Ive been asked to implement this using java enterprise beans, how easy/difficult is this? how would I go about it and whats the advantages of using enterprise java beans?
Thanks
TzafCan anyone help?
Thanks
Tzaf -
Client Server environment in 10g
Hi there,
How can I run forms 10g in client server environment ?
TIA.10g Forms is a web only release as are all versions of forms now.
REgards
Grant Ronald
Forms Product Management -
GENERATE EXCEL IN CLIENT SERVER ENVIRONMENT
Hi,
At the moment I use the <utl_file> to generate an excel file(from oracle table) via sql*forms GUI to the server (my development server/cilent were one machine)
The user presses a button on the GUI form and the excel file is generated.
Now unfortuanately when we transfer to a 'real' production enviroment with client, server architecture , different machines, my generate to excel cannot generate a excel file :
error : ORA 29283 : INVALID FILE OPERATION : ORA-06512 at SYS_UTIL file ORA 29283 invalid file operation
Is thre a solution for this where the user can press the button in the GUI form and the excel gets dumped to the client ? (export the excel)
THANKS in adavance of any tips.Thanks
But unfortunately with 3 days left and 10 modules using <util_file> , I am in trouble !!
I usde code as follows in <sql_forms>
wfile_handle := utl_file.fopen ('REPORTS',v_file, 'W');
utl_file.put_line(wfile_handle,v_header);
Now in client sever environment wont work and this is coded in many places !!!! -
Java bean + Map Tile Server
We have Oracle 10g Release 2 And AS + Mapviewer Patch 4.
Question:
Is Java bean based API can use map tile server, i. e. to fetch tile from cache of Map Tile Server?
Why i asking?
We use function addMapCacheTheme, and mapviewer takes pic from the Map Tile Layer.
In user guide no ever mention about this functions and about ability of java bean to use Map Tile Server.You can find a sample Java Swing application that does just that on my blog here:
http://oraclemaps.blogspot.com/2008/09/displaying-map-tiles-in-your-java-swing.html
It contains full source code and can be easily configured to display map tiles from any MapViewer instance.
thanks -
Best Approach to Share Photos in Client Server Environment
Ive been doing research on the best way to share scanned documents inside a client server application (PB11) but am not sure what's the quickest way to do it.
My brainstorm came up with:
1. Use MS SharePoint to share photos.
Pros: Relatively quick to install
Cons: Potentially difficult to maintain. No integration with PB application.
2. Use web server to share photos
Pros: PB integration possible
Cons: Difficult to maintain
3. Use Oracle database to store photos
Pros: PB integration possible and easy to maintain
Cons: Hardware resource demanding.
The idea is to be able to share scanned documents to different users which can be then associated with different business information such as journal entries, assets, customer application, and many others.
Of the three above which one would offer the quickest solution?Hi Chris,
I have a Fujitsu software that can scan and store images to folders (may contain photos of assets, sorry for the mixup tween photo and image), sharepoint, but not to a web server - although now I suspect I can configure the webserver to just automap the file folders to the webserver's URL (I guess I had amnesia). However there's another feature which I haven't found out yet and that is whether the scanning software can store the metadata directly to the database. Most likely it doesn't thus the reason why sharePoint looks attractive. The other concerns you mentioned I believe I can handle at a later time.
Thank you. -
Problem in using custom java beans
Hi,
We are using oracle JDeveloper 3.2.2 version for developing our Graphical User interface which
involves Applets and custom beans.
We faced the following problems when we tried to add the custom beans to JApplet.
Problem 1. When I drag and drop the custom beans to JApplet, the gif image used by the bean is
not displayed even when the gif image has been added in the archive file representing
JavaBean
Problem 2. When I modify the source code generated by Jdeveloper and come back to the design tab,
the custom beans looses its look and feel and gets the look and feel of the standard
bean from which it has been extended.
For instance, I have a dropdownlist which has been extended from JCombobox.
I drag and drop to the JApplet. The look and feel of the dropdownlist is
maintained.
Now I modify the source code for the dropdownlist in order to add items to it.
After doing so, I come back to the design tab where i can see my dropdownlist
appears with the look and feel of JCombobox.HI,
IF YOU create custom object the profile should be the same as standard.Also see whether the authorization object is added to the data target or not.
Hope this helps
Assign points if useful
Regards,
venkat -
Recommendations/experiences using APO-DP in multi-client SCM environment ?
Hello experts,
we have an SCM5.0 system using DP/SNP etc. Now we want to onboard another company (Joint Venture) and introduce DP first for them. We are investigating what it would mean to setup another client within our existing SCM system or what challenges we could run into (since the underlaying BW is not truly multi-client capable).
SAP Note 1413544 says that theoretically SCM is capable of doing so with some limitations since there can only be 1 "master" BW client in an SCM system. Does somebody have / would kindly share experiences working withe several APO clients within 1 SCM system and preferably using DP.
My questions would be:
1) if I create a new DP PlanningObjectStructure in the additional APO client - do I need to activate it the "master BW client" (since there is an internal InfocCube behind) ? Does this also mean all POS and PAs are visible in all clients or only in the client where I created them ?
2) if I want to use RemoteCube to extract data from a DP (or SNP) planning area (ad-hoc reporting on LiveCache Data)- does this go thru the "master BW client" or thru the additional / new BW client ?
3) Assuming I would create a new DP POS + Planning Area in the additonal client and create planning Books / DataViews - are these PB/DV visible in all clients or only in the one where I created it ?
Regards
ThiomasHi Thiomas,
Though I have not worked for this scenario. However as per my understanding,All APO objects as PA, MPOS ,PB, DV should be client specific and will be visible in the specific client only. The Tricky portion would be the BW portion. As this would be single one, So the extraction cube and Planning area datsources should be visible in the main client BW.Hence it can be used in the same BW client .
I hope this should work having the seperate client for DP objects and keeping the same main BW client at the background. Let me also the test results.
Let me know if it helps.
Regards
Gaurav -
Installing AS Java in a multihomed server environment
Hi SDNers,
We are about to install a BI, EP and SCM Development environment and we're considering using a server network to handle the communications between the servers so that it doesn't 'hit' the client network.
I read an old SAP Network Integration Guide (BTW - does anyone know whether this has been updated in the last 3-4 years? I'm damned if I can find a recent copy!), which explains how to do this, but the guide is so old it doesn't mention anything about Java or Netweaver.
My question is - is it still recommended to split client and server traffic across different networks in a SAP Java environment?
Many thanks,
Arwel.> My question is - is it still recommended to split client and server traffic across different networks in a SAP Java environment?
Hi Arwel,
It's always good idea to use a separate VLAN for the communication between your servers.
regards
Juan -
Using Class Timer in a client/server app
In my program i d like the server execute draws every 5 min choosing numbers randomly from1 to 10.
Clients, when connected will inform server about the number they chose. (This works correctly)
Next, the clients will wait until notified by the server about the number drawn in the last draw and
about if they won or not.
i ve found that i have to use classes Timer and TimerTask but API does not help me enough
about how to use them. Could anyone help me?
Here is the piece of code i think it need to be changed.
// control thread's execution
public void run()
int message=0;
int rnum=randGen.nextInt(10);
display.append( "\n"+ "THE MAGIC NUMBER IS: " + rnum );
// process connection
try {
// read message from client
do {
try {
message = input.readInt();
if (message==rnum){output.writeUTF("SERVER>>> YOU WON: MAGIC NUMBER IS: " +rnum);}
else {output.writeUTF("SERVER>>> YOU LOSE: MAGIC NUMBER IS: " +rnum);}
display.append( "\n\n" +"PLAYER " + clientNumber + " SELECTED NUMBER " + message );
display.setCaretPosition( display.getText().length() );
// process problems reading from client
catch ( IOException ioException ) {
display.append( "\nUnknown object type received" );
} while ( message!=-1 );
display.append( "\nClient terminated connection" );
display = null;
// close streams and socket
finally {
try {
output.close();
input.close();
connection.close();
// process problems with I/O
catch ( IOException ioException ) {
ioException.printStackTrace();
clients.remove( this );
} // end method run
I just implemented something like this so I know what you are trying to do.
Basically TimerTask is an Abstract class, which means you can't make an instance of it. So TimeTask t = new TimeTask() won't work. Instead what you need to do is make your own class that extends TimerTask. You then need to implement the run() method which is abstract in TimerTask.
This sounds complicated at first, but it is very easy.
This is my DelayTimerTask:
import java.util.TimerTask;
*Author: Jon Parise
*email: [email protected]
public class DelayTimerTask extends TimerTask{
private boolean timeExpired = false;
/** Creates a new instance of DelayTimerTask */
public DelayTimerTask() {
timeExpired =false;
public void run(){
timeExpired =true;
public boolean isExpired(){
return this.timeExpired;
}All this class does is set a flag when it is run.
The Timer class schedules a TimerTask, in this case a DelayTimer. When the scheduled time comes, everything in run is executed, which in this case sets the flag.
To schedule the task do this:
Timer delayTimer = new Timer();
DelayTimerTask delayTimerTask = new DelayTimerTask();
delayTimer.schedule(delayTimerTask,5000);
while(!delayTimerTask.isExpired()){
//DoSomething Here
}This will create a new delayTimer, and then schedule it to go off in 5 seconds(5000 millaseconds). When it goes off isExpired will become true and break you out of the loop.
Hope this helps,
Jon -
Multithreaded sever client/server environment
I understand sockets, socket streams, but what puzzles me is how one client can send to the server and the server send only to remaining clients connected. I though getPort() and IDs but I am clueless. Can I send across a socket to the server for broadcast, what do I do to have the server broadcast? Just write to the socket and have all clients continuously reading? How would a client get a chat message to the other clients? Would the server just send them through the socket and if so, how to prevent sending it back to sender client?
I understand sockets and reader/writers through InputStream, OutputStream Scanner, and PrintWriter but the idea of what to do once clients connected to my multithreaded server baffles me. I want to be at one terminal and when I enter something on the sockets, all the remaining clients see it but just not connecting in my head.sabre150 wrote:
Always Learning wrote:
What am I missing?Don't know about what you are missing but I am missing a view of your code so can only guess at your problem. Guessing is not a very scientific approach to diagnosing problems.Sorry about that. I have posted it now ..
This is the server .... I want to capture the sockets for use to broadcast client messages but just not working right
public class is_TCPServer
static final List<Socket> sockets = new CopyOnWriteArrayList<Socket>();
// to send the same message to multiple sockets.
public static void sendToAll(byte[] bytes) {
for(Socket s: sockets)
try {
s.getOutputStream().write(bytes);
} catch (IOException ioe) {
// handle exception, close the socket.
sockets.remove(s);
public static void main(String[] args)
int port = 0;
boolean correctArguments = false;
Scanner keyboard = new Scanner(System.in);
// Process presence or absence of command-line arguments
if (args.length > 0)
if (args[0].trim().equalsIgnoreCase("-p") && args.length > 1)
try
// Argument two must be an integer; port number
Integer.parseInt(args[1]);
System.out.println("Good Arguments");
correctArguments = true;
catch (NumberFormatException formatException)
// NAN
System.err.println("Bad arguments");
if (correctArguments)
// Success
port = Integer.parseInt(args[1]);
else
System.out.println
("usage: is_TCPServer [-p] [port - numeric value] \n");
System.out.print("Enter the desired port: ");
String temp = keyboard.nextLine();
try
port = Integer.parseInt(temp);
catch (NumberFormatException formatException)
System.out.println("Incorrect format, using default port");
// Set port to the default value
port = 8189;
else
// Set port to the default value
port = 8189;
System.out.println("Using default port: " + port);
try
// Establish the server socket on specified port
ServerSocket serverSocket = new ServerSocket(port);
System.out.println("Listening on port: " + port);
System.out.println();
File chatLog = new File("is_Chat.txt");
while (true)
// Server awaits client connection to accept
Socket clientConnection = serverSocket.accept();
sockets.add(clientConnection);
Runnable r =
new ServerThread(clientConnection, chatLog);
Thread t = new Thread(r);
t.start();
System.out.println("Listening on port: " + port);
catch(IOException ioException)
ioException.printStackTrace();
* Handles the client input for one server socket connection
class ServerThread implements Runnable
private long initialTime;
private long finalTime;
private long days;
private long hours;
private long minutes;
private long seconds;
private long milliseconds;
private File chatLog;
private Socket incomingConnection;
public final long DAYS_CONVERSION = 24*60*60*1000;
public final long HOURS_CONVERSION = 60*60*1000;
public final long MINUTES_CONVERSION = 60*1000;
public final long SECONDS_CONVERSION = 1000;
public ServerThread(Socket aSocket, File chatLog)
this.chatLog = chatLog;
incomingConnection = aSocket;
public String elapsedTime(long finalTime)
String elapsedTime = "";
// Days
if (finalTime > DAYS_CONVERSION)
// convert to days
days = finalTime / DAYS_CONVERSION;
// remove the days from the total time
finalTime = finalTime % DAYS_CONVERSION;
// Hours
if (finalTime > HOURS_CONVERSION)
// convert to hours
hours = finalTime / HOURS_CONVERSION;
// remove the hours from the total time
finalTime = finalTime % HOURS_CONVERSION;
// Minutes
if (finalTime > MINUTES_CONVERSION)
// convert to MINUTES
minutes= finalTime / MINUTES_CONVERSION;
// remove the minutes from the total time
finalTime = finalTime % MINUTES_CONVERSION;
// Seconds
if (finalTime > SECONDS_CONVERSION)
// convert to seconds
seconds = finalTime / SECONDS_CONVERSION;
// remove the seconds from the total time
finalTime = finalTime % SECONDS_CONVERSION;
// compute the milliseconds
milliseconds = finalTime % 1000;
return elapsedTime += "Days: " + days + " Hours: " + hours +
" Mins: " + minutes + " Secs: " + seconds + " MS: " +
milliseconds;
public void run()
try
try
// Record initial time
initialTime = System.currentTimeMillis();
// Establish input socket stream
InputStream inputSocketStream =
incomingConnection.getInputStream();
// Connect to the input socket stream
Scanner readSocketStream = new Scanner(inputSocketStream);
// Read the user name
String userName = readSocketStream.nextLine();
// Establish output socket stream
OutputStream outputSocketStream =
incomingConnection.getOutputStream();
// Connect to the output socket stream
PrintWriter writeSocketStream =
new PrintWriter(outputSocketStream);
// Establish a file writer to the chat log
PrintWriter fileWriter =
new PrintWriter(new FileOutputStream(chatLog, true));
// Open the chat log
Scanner fileReader = new Scanner(new FileInputStream(chatLog));
boolean done = false;
// Write client input to a chat log file
while(!done && readSocketStream.hasNextLine())
// Read the socket stream until user is finished
String clientInput = readSocketStream.nextLine();
if (clientInput.trim().equals("DONE"))
done = true;
else
is_TCPServer.sendToAll(clientInput.getBytes());
synchronized(fileWriter)
// Write client stream to the chat log file
fileWriter.println(userName + ": " +
clientInput);
// Flush the writer
fileWriter.flush();
// Feedback on server end
System.out.println(userName + ": " + clientInput);
// Close the chat log file
fileWriter.close();
// Close the chat log file
fileReader.close();
Chat file not to deleted
File file = new File(chatLog);
// Delete the chat log file
file.delete();
// Record the final time
finalTime = System.currentTimeMillis() - initialTime;
// compute and send session time to the client
writeSocketStream.println("\nSession length: " +
elapsedTime(finalTime));
writeSocketStream.println();
System.out.println();
finally
System.out.println("Closing " +
incomingConnection.getInetAddress().getHostName() + ":"+
incomingConnection.getPort());
System.out.println();
// close the network connection
incomingConnection.close();
catch(IOException ioException)
ioException.printStackTrace();
}Edited by: Always Learning on Feb 18, 2012 3:34 AM -
Problems Securing Web.show_document using the java bean
Friends,
I know this is a hot topic, but after reading through a lot of the previous posts I can not find any reference to the problem I am encountering.
I am using Forms 10g Release 2 (10.1.2.0.2)
Basically I have implemented the bean as the white paper instructs but when the report is first run I am presented with a Oracle Reports screen that has the title
Database User Authentication, followed by fields to enter the username, password and database
Below the submit and cancel buttons there is the following message "REP-51018: Need database user authentication"
Once these details are entered the report runs ok and if the report is run again then this logon screen is NOT shown.
Thanks in advance for any help you can provide.
RegardsHi,
you describe the problem, but you don't provide any help for this forum to help you. What is the debug output of the Jinitiator console? Note that the bean uses JSObject class that doesn't work with newer versions of Netscape, so are you using Netscape? What is the machine address ? Is the machine with a domain name, or is it local host or IP in which case setting the cookie can be failed
Frank
Maybe you are looking for
-
Frustration at this point having spent a lot of cash and getting a machine that doesn't seem to havr th reliability I was led to believe. Is it OSX Lion?
-
How to add some more field in dispaly?
Dear friend, I have a abap query ib co module,now i created a abap report by convert the query.As it's conatin logic based on field group and sysmbols.it's difficult to find out where i have top add or not? i have to add some more coloums in display
-
Stored Procedure issue in receiver JDBC synchronous scenario
Dear Experts, Below is the description of the Stored Procedure for my requirement which has 1 input and 7 output. CREATE OR REPLACE PROCEDURE emp_det_proc p_emp_id IN NUMBER, cur_det OUT sys_refCURSOR aS BEGIN OPEN cur_det FOR SELECT
-
All of a sudden my DW8 Site Manager takes ages to let me edit a site. It does eventually open the site, but has me wait for several minutes. The problems affects all sites. I have renamed my configuration folder and a new one was duly created but the
-
Bank account number for Brazil
All, I need to set up some house banks for Brazil, the problem is they consist out of 22 digits, while maximum lenght for field bank account in SAP is 18 digits. I already tried to llok on OSS Notes but couldn't find anything related to my problem. A