Adding a object to the next request
Hi all,
Suppose your in a JSP section at the top of your page, and later there is an html button, that will submit the form. I know you can write code such as:
request.setAttribute("name", object);However, that attribute is set to the previous request. (Which seems mostly useless.) However, suppose I wanted the object to be added to the next request. The request when the user click the button.
I know about hidden inputs, but I want to add actually objects to the request, not just strings. Besides, it is kind of a pain, to add a different hidden input every time you want to add an object to the next request.
I like how session works, with session.getAttribute(name) and session.setAttribute(name, value).
What advice do you guys have?
Grae
PS: See http://forums.sun.com/thread.jspa?threadID=5442963&tstart=0 for more details. I am still looking for more answers.
It turns out hiddenInput is only for strings, not objects. I am not using tomahawk or a4j, so I can't use either of them. Do you have any other ideas?
I was thinking of using a session scope Map, and adding the object to the map, and passing the key to the next page as hidden input. However, I am having a little trouble telling when and how to add it to the map.
I want the object to accept input from the gui, and then be saved. Basically, I think I need to grab the object at a phase after the data is added to the object, but before the object it deleted. I don't know a lot of the phase listeners, so I am not sure how to do what I want to do.
Do you have any ideas how I would do that, or a better way to do the same thing?
Grae
Similar Messages
-
Adding Selection Texts to the transport request
Dear All,
1) I want to transport only "text elements" ( SE38->Text Elements) of an ABAP program. I am unable find how can I include this in a transport number. ( The other objects went safely to my quality system except this selection texts.)
Thanks for your time.
Regards,
KiranRich Heilman,
Unfortunately it did not ask me any request number.
My previous 1st transport failed in quality system and I created another request which went success to Quality system. As I thought I included all objects in the second request I directly used to transport to production. Transport was success but is is lack of texts ans selection screen texts.
Today is not very good day so far..
Gagan,
Thanks for the info. I had added manually "Report Texts". I hope this includes both "Text Symbos" and "Selection Texts".
Do you see any problem here by adding manually?
Message was edited by: Hari Kiran -
When I try to setup my iCloud, after adding my AppleID & password, the next screen is the EULA (with an Agree and a Disagree button) - I press Agree - Nothing happens. It appears to freeze. This phone was previously owned and the last owner's apple id is what defaults... I do not know the last owner's password. - I just want to get rid of that person's iCloud in order to create my own with my own account.
With iOS 7 you will not be able to delete the iCloud account without providing the password for the iCloud ID. If it is the previous owner's account, you will need to have them remove it from their ID as mentioned in this article: http://support.apple.com/kb/TS4515.
-
Error adding BW object into a transport request
Hi all, I'm modifying an OHD and when I'm trying to save into a new request I got the following error: "Attention!. The selected object is already locked by another transport request". And it shows me which is the TR that has the object locked, however, when I go to SE10 in order to check if the object its locked there, it is not!. Any ideas on how to solve this problem?
MauroDid you try unlocking from SE03 - enter that request which system warned and execute and try collecting the Object again in new request
SE03 - Search for Objects in Requests/Tasks - enter IOBJ - Obj tech name - select Modifiable option and execute .. you will see the request numbers .. where this object is locked -
Calendar object for the next week day
I have a calendar object,
How can I get the calendar object the comes on the next Tuesday or for that matter any week day.
For example I have the calendar object for today ie. Monday, 7th Aug 2006. How can I get the calendar object for the first saturday after today.What you do is calculate how many days ahead it is.
This would be the target day, less today's day
reduced to modulo 7. Add 7 to guarantee the %
operator works correctly e.g.
cal.add(Calendar.DAY_OF_YEAR,(7 + Calendar.SATURDAY -
cal.get(DAY_OF_WEEK)) % 7);
Requires that the numeric values associated with the days of the week are ordered and one apart. Even thought this is the case, the API does not say this is the case so it should not be assumed. -
Adding a functionality to the next button
Hi,
In SSHR pages, i need to add a message to display when a next button is pressed in a seeded page.
But am unable to find the functionality in the CO's for the next button so that i can modify it.
There are functionalities written for back, saveforlater but not for Next button.
Can somebody explain me?
Thnaks a lotWhen the user selects a value from the poplist and moves to thenext page that is pushed to the vo and will be retained when the user navigates back and the AM is retained in all these navigation.
I donot understand what you are trying to achieve, the user is still in the same transaction and the value selected by him in one step of the transaction is going to be retained through out the transaction. Why do you want the value to be blank again when he uses the back navigation button.
You can still achieve that by programmatically resetting the value in PR of the page, but I donot understand what you are trying to achieve by doing that. -
Adding responsibility objects for the Notification Groups for a PA
Hi Gurus,
I am supposed to add responsibility objects for the notiifcation groups for a PA.. Could you please confirm the steps I am planning to follow
1. Find out the Workflow
2. Add the responsibilities objects ( Where can Add those ( in the workflow or in Org Management?)
3. Edit the rule to point to that PA..
I am new to workflows ..points are assured for the helpJust write your own composite Icon class:
public class CompositeIcon implements Icon
private Icon icon1;
private Icon icon2;
public CompositeIcon(Icon icon1, Icon icon2)
this.icon1 = icon1;
this.icon2 = icon2;
public int getIconHeight()
return Math.max(icon1.getIconHeight(), icon2.getIconHeight());
public int getIconWidth()
return icon1.getIconWidth() + icon2.getIconWidth();
public void paintIcon(Component c, Graphics g, int x, int y)
icon1.paintIcon(c, g, x, y);
icon2.paintIcon(c, g, x + icon1.getIconWidth, y);
}Hopefully a slightly more reusable solution. You could write all sorts of different layouts in this way.
Hope this helps. -
How to reuse a response from a server in the next request?
Hello all,
I am invoking the doGet method to get authenticated by the clickatell's server... the server responds with a "Ok: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" (not exact values) message in a fresh html page. This is the status code and its session_id after authentication.
The problem is, how to reuse the session_id value in a request to invoke the doPost method?
Can anyone help with an idea?
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
String urlStr = new String ("http://api.clickatell.com/http/auth?api_id="
+ api_id + "&user="
+ username + "&password=" + password);
res.sendRedirect(res.encodeRedirectURL(urlStr)) ;
public void doPost (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
String msg, to;
msg = req.getParameter("msg");
to = req.getParameter("to");
String urlStr = new String ("http://api.clickatell.com/http/sendmsg?session_id=" +sessionID + "&to=" + to + "&text=" + msg);
HttpServletResponseWrapper hsrw = new HttpServletResponseWrapper(res);
res.sendRedirect(res.encodeRedirectURL(urlStr));
}Hello,
Can you try with the following code after doing appropriate modifications for your requirements.
package servlet;
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
import java.net.*;
public class TestServlet extends HttpServlet {
public void service(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException{
System.out.println("Start ..........................................................");
URL url = new URL("Your Portlet URL");
HttpURLConnection urlConn = (HttpURLConnection)url.openConnection();
String toPost = "Your string";
System.out.println("URLConnection object\t" + urlConn);
urlConn.setDoInput(true);
urlConn.setDoOutput(true);
urlConn.setUseCaches(false);
urlConn.setRequestProperty ("Content-Type", "Appropriate content type");
//urlConn.setRequestProperty("Content-Length","Appropriate content length");
urlConn.setRequestMethod("POST");
OutputStream out = urlConn.getOutputStream();
out.writeBytes(toPost.getBytes());
out.flush();
out.close();
PrintWriter outStream = new PrintWriter(res.getOutputStream(),true);
DataInputStream in = new DataInputStream(urlConn.getInputStream());
String inputLine = in.readLine();
while(inputLine!=null){
outStream.println(inputLine);
inputLine= in.readLine();
outStream.close();
in.close();
System.out.println("End ...........................................................");
As long as you do not get input stream from your URL Connection you will experience problems. Also the parameters should be passed as query string in the url. Rather pass them using output stream object obtained from URL connection. Also in your responding servlet you will be required to read the parameters using an Input Stream something like this.
DataInputStream in = new DataInputStream(request.getInputStream());
String inputLine = in.readLine();
while(inputLine!=null){
System.out.println("Input Received by servlet\t" + inputLine);
inputLine = in.readLine();
HTH
VJ -
Error when adding an Object to the server via CMS
I am trying to upload a new report to the server via CMS.
I click on Objects > Browse for the report > Click Submit
After a few seconds, I get the following error:
There was an error while writing data back to the server: File Repository Server error : File system operation for frs://Input.reportingdb/a_068/047/000/12100/172659d5862b3e2.rpt on File Repository Server failed. If the problem persists, please contact your system administrator for event log information.
I can see that the Input.reportingdb server is running
I have tried restarting the physical server that CRE XI R2 is running on.
I have restarted the Tomcat as well as all of the report servers via ccm.sh and enabled all of the report servers via ccm.shYes, the installation directory is:
/opt/crystal/bobje
The directory where the repository is located:
data
Here are the permissions:
drwxr-xr-x 14 oracle oinstall 4096 Mar 24 16:10 data
Here are the permissions of the subdirectory:
drwxrwxrwx 2 oracle oinstall 4096 Jul 22 2008 Auditing
drwxrwxrwx 2 oracle oinstall 4096 Jul 22 2008 cacheserver
drwxrwxrwx 11 oracle oinstall 4096 Mar 26 09:50 frsinput
drwxrwxrwx 60 oracle oinstall 4096 Mar 24 16:11 frsinput_bak
drwxrwxrwx 259 oracle oinstall 12288 Mar 24 09:54 frsoutput
drwxrwxrwx 2 oracle oinstall 4096 Jul 22 2008 pageserver
drwxrwxrwx 6 oracle oinstall 4096 Mar 24 09:54 procSched
drwxrwxrwx 2 oracle oinstall 4096 Mar 24 12:07 reportingdb.cacheserver
drwxrwxrwx 3 oracle oinstall 4096 Mar 24 12:07 reportingdb.pageserver
drwxrwxrwx 2 oracle oinstall 4096 Jul 22 2008 reportserver
drwxrwxrwx 2 oracle oinstall 4096 Jul 22 2008 wcs
I have tried multiple times to re-start and re-enable the File Repository and get the error.
Is there a way to reinstall ONLY the File Repository server? -
Get Date of the next midnight...
Hello people,
I would like to get a java.util.Date object of the next Midnight to use the java.util.Timer class to schedule an event once per day at midnight.
Any Ideas????Use the java.util.Calendar (or GregorianCalendar) class instead. Then do something like this
Calendar cal = new Calendar();
cal.setTime(new Date(System.currentTimeMillis()+24*60*60*1000)); // one day added
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTES, 0);
cal.set(Calendar.SECONDS, 0);
// the time set to midnightNow you can call cal.getTime() if you want the Date object representing the first coming midnigt. Subsequent midnights can be found by adding 24*60*60*1000 ms to the time. -
Transport connection, error in object editing, Specify a request
Hi,
I am trying to collect a cube with data flow before option, when i select all the objects and create a request and choose continue,
The pop-up prompt for workbench continues to appear,
If i press continue again, it returns message,
Error in object editing,
Specify a request
Message no. TK136
Diagnosis
You have selected a function without specifying a request.
System Response
The function terminates.
Procedure
First enter a request and then select a function.
To display all your requests, choose Own requests. You can also create a new request.
When i see the list of objects in the transport request all the objects
InfoCube
Communication structure
InfoPackage
InfoSource transaction data
Transfer structure
DataStore Object
Routine
Update rules
are collected except for transfer rules.
sometimes, when i choose continue it returns,
a new task will be added to the following request and i choose continue. All the objects are collected.
Normally, it should behave this way asking if a new task should be added. But, i am getting the above error.
Please suggest.
Raj.Yes, normally i should be able to select the request and continue without the error.
The transport size is not too big.
I listed the objects instead of hierarchy and selected individually by object type into the same request.
I was able to collect all the objects,
application
infoarea
infocube
infoobject
communication structure
3.x datasource
infopackage
transfer rules
3.x infosource
transfer structure
source system
datastore object
routine
update rules
in one request. I could not do it the normal way though.
Thanks for you help again.
I saw the note earlier. yes, it is not relevant to this issue.
Raj. -
Infosource -adding new objects
I enhanced the datasource 2lis_02_itm with some objects using abap code. I created the objects in BW and replicated the datasource. I added those objects to the info source.
Now , I am not able to assign these objects in the info source, I do not see these objects in the list.
ThanksYes I activated the cube after adding the fields.Here's what I did exactly:
1. Wrote the abap code for 5 key figures and marked them as "selection" in the datasource.
2. Deleted the data source assignment (I had assigned it earlier)
3. replicated the datasource
4. Reassigned the datasource
5. Added the kf's to the comm structure
6. I see them in the transfer structure but unassigned
7. I assigned these objects in the transfer structure manually
8. activated the info source
9. added the kf's to the cube
10. activated the cube
11. I do not see them in the update rules!!!!
Thanks -
User profile is not avaliable on the first request to portal.
Hi, I am having a problem with anonymous user profile.
When user come to our portal for the first time:
1) In desktop backing file we will initialize it's anonymous profile.
ProfileWrapper userProfile = SessionHelper.getProfile(SessionHelper.getSession(request, true));
userProfile.setProperty("UserProperties", "user-region-name", "Germany");
2) The in Java Page Flow action I could read or change this value, but in the following forwarded .jsp page
I read only NULL values.
In the JSP I tried to read it by scriptlet, tags.
<%
ProfileWrapper userProfile = SessionHelper.getProfile(session);
String segmentJ = ((String) userProfile.getProperty("UserProperties", "user-region-name"));
System.out.println("JSP CODE:"+segmentJ);
%>
JSP CODE: [<%=segmentJ%>]
<profile:getProperty propertyName="user-region-name" propertySet="UserProperties" id="segment"/>
ruser-region-namee : <c:out value="${segment}"/><br>
But in the both situations I read only NULL values.
In the next request(F5) all values are accessible.
Please adivice how can I read user profile or deal with it in correct way?
P.S At the same moment I couldn't read user profile in the Struts portlet at all. :(
ThanksHi
Couple of things.
1. Try using this below API to get ProfileWrapper and see if that helps. This is what I use on my side after login action, and I could get user profile details.
ProfileWrapper aProfileWrapper = ProfileFactory.getProfile(loginId, null);
http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/index.html
2. Now, in the backing file, you are setting some properties. Which lifecycle methods are you setting them in. Like in handlePostBack or preRender. For time being, set them in both these methods and add proper System.out.printlns to observer which method is actually getting invoked. handlePostback gets called only when we move across tabs, as per my observation so far. So I set them or get them in preRender method.
Thanks
Ravi Jegga -
To change the Transport Request Number Range.
<b>Hi Experts,</b>
My customer needs a typical solution.
He wants SAP to create the Future Transport Requests starting from 10000. ( Ten thousand)
now the sequential order is 321
that is <SID><K9>00321. From now on the new transport request should start from 10000
i.e.
<SID><K9>100000
<SID><K9>100001
<SID><K9>100002
etc.
Is it possible. ?
Thanks for your help.
Best Regards,
Raghunahth LHi
Check the report RSWBO301 and check its documentation..
Press "I" button in the selection screen to get the documentation..
I believe this might solve your problem...
Program documentation
Short text
Number Assignment for Requests: Find Free Interval
Description
This report program searches for a free interval for numbering requests.
If the search is successful, you can save the interval. The request
numbers are then taken from this interval.
Requirement
For customers the number range interval includes the follwing areas:
o 900000-999999 (just numerals)
o 9A0000-9ZZZZZ for ASCII character set or
9AAAAA-9Z9999 for EBSDIC character set.
You only need to execute this program if you have come to the end of the
number range interval, but there are still large gaps in the range that
you want to use up.
Example
Why you might get into this situation:
The customer has the R/3 System C11. The last number assigned is
C11K900115. The customer now imports transport request C11K9ZZZZA
from an external R/3 System C11 into the customer system C11. The
next request created in this system will have the number C11K9ZZZZB
Procedure
Proceed as follows:
1. Execute this program in transaction SE38.
2. Enter the interval limit, for example 5000. You can change this
limit at any time.
3. Choose Execute.
If you entered an interval limit of 5000, the report searches for a
free interval with a size of 5000.
4. If the search was successful, you can save this interval. If not,
repeat the search with a smaller interval.
Thanks,
Naren
Thanks,
Naren -
Identify the package in the transport request
Hi SDNers,
How do i identify the package that i have collected all the objects in the transport request.
Thanks,
SatyaHi
In the transport connection screen, you can see the package, where your objects are assigned.
Cheers
Chanda
Maybe you are looking for
-
cant seem to access that library from my second computer- logged in to iclouds.. how do i access my cloud in Itunes from anotehr computer? I also cn plug my device- iphone- into my computer.. but cant hear play back? What in the world am i doing wron
-
ColdFusion 11 wsconfig.exe -- Error while configuring connector for IIS.
I ran into a problem with my ColdFusion 11 64-bit installation/migration on a Windows Server 2012 R2/IIS 8.5. I was following the ColdFusion 11 Lockdown Guide - Pete Freitag (very helpful) and I ran into problems on page 35 "Run the ColdFusion Web S
-
Created By field shows display name.
Hi, I have a SharePoint list and the created By Field exports as Display name when I export to excel. I would like to auto -populate a field in the SharePoint list that will auto populate the Field with display name of the field when an item is creat
-
IDoc to Soap, with BPM - Permanent error in BPE inbound processing
Hi Experts, IDoc to Soap, with BPM - > Permanent error in BPE inbound processing How to rectify this any issue??? Thanks- sk
-
Mail has been very unresponsive as of late. It just spins and it is loading plain messages very slow. I have to force quit several times a day. Is there any fix to keep mail running smooth?