Problem with multiple Java PopUps
Hi Friends ,
In our requirement, we need to open up multiple pages from a console page. I am doing this using openWindow function. The code looks somewhat like below-
( The below code gets called on Partial Fire Action of LinkBean )
if ("Y".equals(updateAllowed))
redirect_URL = "OA.jsp?
page=/../.PageXPG&retainAM=N&addBreadCrumb=N¶m1="+value;
else
redirect_URL = "OA.jsp?page=/../.PageXPG&retainAM=N&addBreadCrumb=N¶m1="+value;
OAUrl oaurl = new OAUrl(redirect_URL, "N");
String createdOAURL = oaurl.createURL(oapagecontext);
String jsLovURL = "javascript: void openWindow(top,'" + createdOAURL
+ "','"+value+"',{width:750,height:550},false,'dialog');void(0);";
try
oapagecontext.sendRedirect(jsLovURL);
return;
}catch (Exception ee){
The Problem that I face when multiple PageXPG's are open , only the last opened PageXPG is updateable,
Square 1. When I click on the previously opened PageXPG's , the first time I hit Save button the page refreshes itself without saving.
2. After that the Page works properly. ( Meaning this now becomes that last opened Page and the remaining PageXPG's become inactive, Back to square 1 )
This is a business requirement for us. Is this a possible functionality ? If so where am I going wrong ? Can someone please point out ?
Thanks,
Antony.
Actually this is possible! I have implemented this before. Let me explain the OAF concept... which leads to the nature of page refresh of base page after closing a pop up page and doing any submit event on base page.
"If a post (form submit) action occurs on a page that is different from the page where the last request was issued, OA Framework tries to re-enter the processRequest() phase to synchronize the state on the middle tier with the state on the client browser. The logic above handles cases where the request is redirected to another JVM as well. In such cases, processRequest() is entered to rebuild the web bean hierarchy. This is the prime cause of base page refresh... which is nothing but calling of process request and process form request, one after the other when any submit event is called in page other than ur main transaction page."
This should be handled accordingly in ur code.Using this logic u can have multiple non-modal windows implemented in OAF,the only thing you would not be able to maintain focus of windows, if it more than 2.
--Mukul
Similar Messages
-
Problem with multiple Toplink/JPA apps in same server
Anyone have experence of running serveral Toplink/ EJB-3 Web apps in the same server (OC4J, alas)?
We seem to get a problem with the second app failing to initialise toplink, with an entity not found message. Each app runs OK on it's own.Yes, they access the same datasource and most of the tables overlap.
We're thinking it might help to have common entity classes and put them in a shared library, but I don't know if this is relevant (setting up shared libraries complicates testing and tends to snowball, I reckon we need about 15 jars all told).
I''ve had some funnies on OC4J before which I think may be to do with it's use of ClassLoaders, for example I initially put persistence.xml in the libary jar with the data model, but for some reason I get the entity not found error that way. It only seems to work if it's in the classes folder.
For the moment we're getting arround the problem with multiple OC4J instances in the server. -
Solution Manager systems RAM requirements - problems with the Java Engine
Hello,
I am about to install SAP Solution Manager 7 on a WIndows 2003 Server x64 but I need to know what the RAM requirements are? I have been having problems with the Java Engine starting and it seems to time out, I have heard that this is a very RAM hungry process and it might be why?
Many thanks for your help in advance,
OmarHello Omar,
To size SAP Solution Manager 7.0 EHP1 we recommend to use the SAP Solution Manager Quicksizer Tool at:
http://service.sap.com/sizing-solman
Here you find information on how to use the tool, how to collect input data for E2E Scenario Sizing, on SAP E2E RCA Sizing, Introscope Tuning, Wily Enterprise Manager Cluster Setup for E2E RCA Scenario and BI Aggregation Strategy in E2E Scenario.
Please find more information about installing Solution Manager in:
http://service.sap.com/instguides -> SAP Solution Manager
I hope this information helps.
Thanks,
Mark -
Problem with multiple versions of documents being published with 001, 002, etc.
I am using Contribute CS3. I am having a problem with multiple versions of documents being published on the sever with 001, 002, etc in the name. So that I end up with 2 or 3 versions of a document on the server. Does anyone know why / how Contribute is doing this? Thanks for any help you can give.
Your Web site administrator will need to update your key to allow you to delete files you are able to edit.
-
Problems with multiple idocs in one file ( Inbound file )
HI,
Thanks in Advance for your suggestions.. Highly appreciated.
We have problems with multiple IDocs in one file.
We are using XIB ( Amtrix ) as Middleware to receive the files.
Curretenly When the file contains one IDoc then there is no problem. IDoc is created and everything is ok.
If file contains two IDocs ( for example two messages ORDERS and DELVERY ) then it is creating two IDocs but both IDocs contains ORDERS plus DELIVERY segements information. That is the problem. Some how SAP unable to differentiate the IDocs in the file.. But it knows that how many idocs are there in the file..because it is creating exact number of idocs.
We are using TRFC port ... Do I need to change it to File port..
When we have more than one idoc do we need set any parameter in the file ...Thanks for the swift response. Always ideas are useful.
As of now , Middleware cannot split the file.
Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that -
Problem with multiple forms and subview
I have a problem when using NetBean Web Pack (JDK6, Net Beans 5.5, JSF 1.2).
1) I created a JSF page (hello.jsp) and a page fragment (header.jspf) inside Web Pack, and let the JSF page (hello.jsp) includes the page fragment.
2) The include instruction is outside of the "form" element id=main_form() of the first JSF page.
3) Inside the page fragment (header.jspf), I put a form (id=header_form) with some input fields inside the "subview" element.
4) When running the web application, the form and its children (id=header_form) inside the subview are not rendered.
It seems to be a problem with multiple forms on a page and the subview.
Do I use these JSF components incorrectly? Any advice?
ThanksThe forms are not nested.
hello.jsp
<webuijsf:body ...>
<!-- BEGIN: include header -->
<div style="margin: 0px 0px 10px 0px; left: 0px; top: 0px">
<jsp:directive.include file="Header.jspf"/>
</div>
<!-- END: include header -->
<webuijsf:form ...>
From above fragment, you can see the header.jspf is outside of the form element. -
JCoIDoc IDocLibrary 3.0.2 Problems with IDocServerExample.java
Hello, I´m facing a problem with IDocServerExample.java. I created a new project in eclipse, added the package com.sap.conn.idoc.examples and the class IDocServerExample.java. I configured the files "MYSERVER.jcoServer" and "BCE.jcoDestination" and started the application. Then I get the following error messages: *********************************************************************************************************************************************************
com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Unable to get repository at com.sap.conn.jco.rt.DefaultServer.update(DefaultServer.java:136) at com.sap.conn.jco.rt.DefaultServer.(DefaultServer.java:105) at com.sap.conn.idoc.jco.DefaultJCoIDocServer.(DefaultJCoIDocServer.java:35) at com.sap.conn.idoc.jco.DefaultJCoIDocServerFactory.createServer(DefaultJCoIDocServerFactory.java:17) at com.sap.conn.idoc.jco.DefaultJCoIDocServerFactory.createServer(DefaultJCoIDocServerFactory.java:13) at com.sap.conn.jco.rt.DefaultServerManager.getServer(DefaultServerManager.java:108) at com.sap.conn.jco.rt.StandaloneServerFactory.getServerInstance(StandaloneServerFactory.java:170) at com.sap.conn.idoc.jco.JCoIDoc.getServer(JCoIDoc.java:78) at com.sap.conn.idoc.examples.IDocServerExample.main(IDocServerExample.java:18) Caused by: com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connection parameters: TYPE=B DEST=JCOSERVER01 MSHOST=arm115tx GROUP=PUBLIC R3NAME=T01 PCS=1 LOCATION CPIC (TCP/IP) on local host rz1462 with Unicode ERROR service '?' unknown TIME Tue Jul 07 09:09:40 200 RELEASE 711 COMPONENT NI (network interface) VERSION 39 RC -3 DETAIL NiErrSet COUNTER 2 at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:615) at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1280) at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:661) at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103) at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:171) at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:44) at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:160) at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:789) at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:817) at com.sap.conn.jco.rt.RepositoryManager.getRepository(RepositoryManager.java:32) at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:891) at com.sap.conn.jco.rt.DefaultServer.update(DefaultServer.java:132) ... 8 more Caused by: RfcException: [null] message: Connect to message server host failed Connection parameters: TYPE=B DEST=JCOSERVER01 MSHOST=arm115tx GROUP=PUBLIC R3NAME=T01 PCS=1 LOCATION CPIC (TCP/IP) on local host rz1462 with Unicode ERROR service '?' unknown TIME Tue Jul 07 09:09:40 200 RELEASE 711 COMPONENT NI (network interface) VERSION 39 RC -3 DETAIL NiErrSet COUNTER 2 Return code: RFC_FAILURE(1) error group: 102 key: RFC_ERROR_COMMUNICATION at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255) at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcopen(RfcIoControl.java:94) at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:83) at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1273) ... 18 more
Does anyone know what I´m doing wrong? With thanks, VeitIm having the same issue here. Has anyone found a solution to this?
-
LOV Problem with multiple values
HI All,
I have a problem with LOV .When ever i click LOV after search button all values are displaying fine.
But when i get so many values i want to select only one vlaue that is not cmng to the main page ....Cursor is in running state always after that time out error is coming in my application .
This problem is coming with with only single value selection in lOV only problem with Multiple values retrival that time only...
(Iam using 11.1.1.3 Jdeveloper.)
Thanx in advance...duplicate of {thread:id=2286814}
-
Safari 5.0.4 Problem with multiple overlaying plugins
Hi!
I experience an issue only in Safari on a webpage with multiple overlaying plugins. The overlaying plugin will not render in the browser. For instance, on the mainpage there is a flash-banner. When logging in it opens an iFrame overlaying the banner. This login-frame contains java, but Java will not render or load in Safari. Everything is ok in other browsers and a peculiar thing is that the problem only occurs in Safari on certain types of Macs like MacbookPro and iMac. The ordinary MacBook displays everything ok.
The problem must be related to plugins overlaying cause if i resize or zoom in the browser, it may render. If i go to another subpage without the flash-banner, the java-login appears ok. On another subpage it opens an iFrame containing Flash, but the background is also flash. The same problem again. Flash in the iFrame won`t render.
A workaround is to make Java open in its own process (through the Java control panel), but this aint good since all MacBookPro- and iMac-users have to do this. Flash doesn`t have this option either.
When Safari 5.0.4 was released, the changelog said: "Improved stability for webpages with multiple instances of plug-in content".
Updates Safari on several different Macs, but the problem consists.
Anyone know anything about this?Hi,
I use ClickToFlash to get around the overlays.
http://clicktoflash.com/
Gives you complete control over Flash content.
Carolyn -
Performance problems with new Java Tiger style recommendations
Performance problems with jdk 1.5 on Linux plattform
(not tested on Windows, might be the same)
using the new style recommendations.
I need fast Vector loops for high speed mathematical calculations, some
hints about the fastest way to program that loop would be also great!
After refactoring using the new features from java 1.5 (as recommended from
SUN) I lost performance significantly:
using a vector:
public Vector<unit> units;
The new code (recommended from SUN for Java Tiger for redesign):
for (unit u: units) u.accumulate();
runs more than 30% slower than the old code:
for (int i = 0; i < units.size(); i++) units.elementAt(i).accumulate();
I expected the opposite.
Is there any information available that helps?
The following additional information I got from Mr. Shankar Unni:
I got some fairly anomalous results comparing ArrayList and Vector: for the
1.5-style loops, ArrayList was faster then Vector, but for a loop with get()
calls, Vector was faster. Vector was even faster than that using
elementAt(), which was a surprise:
For a million summing iterations over a 100-element array:
vector elementAt loop took 3446 ms.
vector get loop took 3796 ms.
vector iterator loop took 5469 ms.
arraylist get loop took 4136 ms.
arraylist iterator loop took 4668 ms.If your topic doesn't change, please stay in your original post.
-
Problems with a java bean in Weblogic 5.1
Hello,
I am having a problem deploying a java bean in Weblogic 5.1:
I have been given a .class and a .jar file for a java bean (not an EJB). I
placed the .class file into e:\temp\WEB-INF\classes and added the following
line to my weblogic.properties file:
weblogic.httpd.webApp.testApp=e:/temp/
I have also updated the web.xml file in the WEB-INF directory as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>EdIface</servlet-name>
<jsp-file>test.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>EdIface</servlet-name>
<url-pattern>EdIface</url-pattern>
</servlet-mapping>
</web-app>
When I try to access my http:\\server:port\testApp\test I get an "Error
500 - internal server error".
Has anyone had experice with deploying a java bean with jsut the .class and
.jar file? Where should I put the .jar file?
I appreciate any advice!
Bump
-
A problem with my Java Scrabble game
Hello
I am making a Java Scrabble game for a school assignment and I have a problem with the following:
The number of players is input by the user (2 to 4) and i need to create a number of arrays based on the number of players. These arrays must have 7 playing pieces at all times until the "bag" of pieces has less pieces than those required to replace the ones a certain player just used (in wich case the bag would give that player all of it's remaining pieces and, from this point on, the player arrays would not necessarily need to have 7 pieces).
this is my procedure to take a piece from the bag:
public Piece takePiece()
if (this.pieceCounter > 0) {
Arrays.sort(this.pieces, 0, this.pieceCounter);
int i = this.generator.nextInt(this.pieceCounter);
Piece p = this.pieces;
this.pieceCounter--;
this.pieces[i] = this.pieces[this.pieceCounter];
return p;
else
return null;
this is my Piece class:
public class Piece implements Comparable {
private int scorePiece;
private char letterPiece;
public Piece(char letterPiece, int scorePiece)
this.scorePiece = scorePiece;
this.letterPiece = letterPiece;
public int scorePiece()
return scorePiece;
public String letterPiece()
return letterPiece();
public String toString()
return letterPiece+ " " + scorePiece;
public int compareTo(Object a)
Piece piece= (Piece) a;
return (int) letterPiece - (int) piece.letterPiece;
}Thanks in advance for your helpOk, if i create a Players class and do this in Main class:
if(nPlayers >= 2 && nPlayers <= 4)
Players arrayPlayers[];
arrayPlayers= new Players [nPlayers ];
for(int i=0 ; i < nPlayers ; i++)
arrayPlayers[i] = new Players ();
}My Players Class should contain something like this:
// Array of 7 that contains Pieces...
Piece[] pieces= new Piece[7];how can i get pieces from takePiece(); (Class Bag) and put them in the pieces arrays until takePiece(); returns null? -
So how do I fix this? How do I get this to go away? It's prompting me for a password that I haven't ever set up!
I have the same problem with three pop-up prompts:
(1) com.apple.iCloudHelper wants to use the "login" keychain. Please enter the keychain password.
(2) CalendarAgent wants to use the "login" keychain. Please enter the keychain password.
(3) AddressBookSourceSync wants to use the "login" keychain. Please enter the keychain password.
I can enter my login password and the prompt goes away for a little while, but eventually returns. Or I can click on "Cancel" many multiple times and it goes away for a little while, but returns again.
I want a solution too and hope this additional information will help. -
Candlestick chart problem with multiple series
Hello,
I added one mx:CandlestickSeries object and couple additional
mx:LineSeries objects to the chart. All series are represented but
still I have one problem. More series I add - less candles are
becoming of CandlestickSeries data. It seems that there should be
any scaling option for all series in the chart or something like
this, but I cannot find it. I'm still new in Flex Can anyone halp
me with this?
Thanx in advance
marukasI've added screenshots to get better view of the problem.
Here is chart with addtional series:
Chart
with multiple series
And here nothing is changed except that additional line
series were removed:
Chart
with only one CandlestickSeries
Is it possible to get the same candles as in 2nd view with
addiotnal series added? -
Problem with multiple client numbers from a view
Hi Gurus,
I have a problem with a view
Creates a view with a UNION ALL stmt
=====================================
Create view vw_benifits
as
SELECT
Client_num, -- can have multiple values like 200,201,250
PERNR,
OBJPS,
ENDDA,
BEGDA,
AEDTM,
UNAME,
COB_MNTH_AMT
FROM
STG_SAP_PA9211_TB
UNION ALL
SELECT
null, -- no client number for legacy data
PERNR,
OBJPS,
ENDDA,
BEGDA,
AEDTM,
UNAME,
COB_MNTH_AMT
from
LEG_STG_SAP_PA9211_TB;
==============================
The second table contains legacy data (LEG_STG_SAP_PA9211_TB). The first table now contains multiple client data (ie the client_num can be 201,202,250 like that.
Now if the users qery the view they will only get that clients data.
eg selet * from vw_benifits where client_num=250 results only client 250 data. But I want to add the legacy data also with that.
I don't want to propose
selet * from vw_benifits where client_num in (250,NULL) since the users will be confused.
Is there any other way to do this . my requirement is like
If they query
select * from vw_benifits where client_num=250, the data should include all the records satisfying client=250 + the records from the legacy data. The view need to be created like that.
Appreciate your help
DeepakHi Thanks for the suggestion.
But I am not sure this may work for me. Here my users may not be able to use that since they don't know Oracle.
I want to hide that details from them
They may just issue a statement like this
select * from vw_benifits where client_num =250
Or
select * from vw_benifits where client_num =400 . But both times I need to show them the data from the legacy table.
Deepak
Maybe you are looking for
-
Populating the Lookup values in AD Child Form based logged in user
HI, Below is the Lookup code(AD Groups) format. Codekey , Decodekey IT-Development , IT-Development IT-Testing , IT-Testing IT-Production , IT-Production HR-system , HR-system HR-Finance , HR-Finance My requirement is I need to filter the data being
-
I am unable to transfer my contacts from my iphone5 to Benz c200. as soon as i press receive contacts Bluetooth disconnects, I can see from my iphone under bluetooth. is it possible to do? if yes how?
-
Error while collecting the process chain in a transport request
Hi Gurus, I am getting an error while collecting my process chain in a tranpsort request.I have to transport the request from DEV to QA system. When in RSA1--->transport connection i drag & drop the chain from left to right side pane then the Error o
-
Transferring From Final Cut Express to Pro
Hey! I am looking to upgrade from Final Cut Express to Final Cut Pro. I have a present project in Express and plan to finish it shortly. However, can I take this file from Express and finish editing it in Final Cut Pro? Thank you!
-
Add Additional Attributes/Metadata to a Question to Enable Deeper Segmentation Analysis?
In Captivate, is it possible to add additional attributes/metadata to a quiz question, to allow for more flexible and effective reporting? For example, I want to categorize questions in two different buckets: Difficulty (Easy, Medium and Difficult)