Problem while setting response header in a filter
Hi,
I am intercepting response in a filter and trying to modify the response header, so that my subsequent class would get the header in request .
Somehow i don't get the header in request. I don't know whats going wrong.
I have few more filters other than the one in which i m modifying the response header.
I change the response header before calling doFilter() method.
Where am i going wrong ?
The subsequent servlets and filters will get the same request that the first filter has. The passing to the next servlet is via a method call.
Similar Messages
-
New problem while setting ADS password
Hi,
Im trying to change password in ADS. Ultimately it has to be done via web interface but i was trying it out on my local machine, which has windows 2000. I got the following exception as a result. Any ideas?
This is my code section ...
Hashtable env = new Hashtable();
env.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory" );
env.put(Context.PROVIDER_URL, "ldap://10.2.0.22:636/");
env.put(Context.SECURITY_AUTHENTICATION,"simple");
env.put(Context.SECURITY_PROTOCOL, "ssl");
env.put(Context.REFERRAL,"ignore");
env.put(Context.SECURITY_PRINCIPAL,"[email protected]");
env.put(Context.SECURITY_CREDENTIALS,"Password1");
DirContext dctx = null;
try
dctx = new InitialDirContext( env );
The following is the exception i got ...
javax.naming.CommunicationException: simple bind failed: 10.2.0.22:636 [Root exception is javax.net.ssl.SSLProtocolExcep
tion: java.io.IOException: subject key, Unknown key spec: Invalid RSA modulus size.]
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:198)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2640)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:80 )
at updtpass.main(updtpass.java:34)
Caused by: javax.net.ssl.SSLProtocolException: java.io.IOException: subject key, Unknown key spec: Invalid RSA modulus s
ize.
at com.sun.net.ssl.internal.ssl.HandshakeMessage$CertificateMsg.<init>(Dasho A12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA12275)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
at com.sun.jndi.ldap.Connection.writeRequest(Connection.java:390)
at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:334)
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:193)
... 12 more
Caused by: java.security.cert.CertificateParsingException: java.io.IOException: subject key, Unknown key spec: Invalid R
SA modulus size.
at sun.security.x509.X509CertInfo.<init>(X509CertInfo.java:155)
at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1679)
at sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:173)
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:90 )
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.ja va:389)
... 24 more
Caused by: java.io.IOException: subject key, Unknown key spec: Invalid RSA modulus size.
at sun.security.x509.X509Key.parse(X509Key.java:155)
at sun.security.x509.CertificateX509Key.<init>(CertificateX509Key.java:58)
at sun.security.x509.X509CertInfo.parse(X509CertInfo.java:706)
at sun.security.x509.X509CertInfo.<init>(X509CertInfo.java:153)
... 28 more
Exception in thread "main" java.lang.NullPointerException
at updtpass.main(updtpass.java:61)I am also facing a peculiar type of problem while setting the password
the type of error I am while running the code below
String adminName = "CN=xyz,CN=Users,DC=TESTING, DC=AMG, DC=COM";
String adminPassword = "xxxxxxx";
String ldapURL = "ldap://testing.amg.com:636";
String keystore = "/Program Files/Java/jre1.5.0_03/lib/security/cacerts";
System.setProperty("javax.net.ssl.trustStore",keystore);
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.SECURITY_AUTHENTICATION,"simple");
env.put(Context.SECURITY_PRINCIPAL,adminName);
env.put(Context.SECURITY_CREDENTIALS,adminPassword);
ERROR :
Problem searching directory: javax.naming.CommunicationException: simple bind failed: testing.amg.com:636 [Root exception is java.net.SocketException: connection is closed]
Can any body please help me out how to overcome it.
waiting
Bye
Irshad -
Facing a problem while setting MAC 6.1. My version is 5.1. The activation does not complete.
Hacked or jailbroken iPhone will have this problem.
BTW, it's IOS 6.0.1 not MAC. -
IPhone - Problems while setting Delegate to UISearchBar using IB
Hi,
I'm having a problem while setting the delegate to the UISearchBar.
SearchViewController.h
#import <UIKit/UIKit.h>
@interface SearchViewController : UIViewController {
IBOutlet UISearchBar *mSearchBar;
@property (nonatomic, retain) UISearchBar *mSearchBar;
@end
FirstViewController.m
#import "SearchViewController.h"
@implementation SearchViewController
@synthesize mSearchBar;
// The designated initializer. Override to perform setup that is required before the view is loaded.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
[super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
return self;
@end
I think I have setup the connection properly in IB, the view connected to the File's Owner, the File's Owner referencing the SearchViewController class. Now if I run it like this it all works great but when I set the UISearchBar delegate to File's Owner I get.
Application Specific Information:
iPhone Simulator 2.2 (77.4.9), iPhone OS 2.2 (5G77)
* Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x524790> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key mSearchBar.Found the solution:
Reference:
http://discussions.apple.com/thread.jspa?messageID=8550459 -
How to set response header in filter
Hi,
i want to set the response header in my security filter:
private void setHeader() {
FacesContext ctx = FacesContext.getCurrentInstance();
if (ctx != null){
HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
response.setHeader("Pragma", "No-Cache");
response.setDateHeader("Expires",0);
response.setHeader("Cache-Control", "no-cache");
}But ctx is always null? What am i doing wrong?
Regards,
barntiMy understanding is you will not have Faces Context in a filter as you have not yet hit the faces lifecycle..
Try the below to get the context.
* (non-Javadoc)
* @see javax.servlet.Filter#init(javax.servlet.FilterConfig)
public void init(FilterConfig config) throws ServletException {
setFilterCfg(config);
setServletCtx(filterCfg.getServletContext());
* Since your typical FacesContext.getCurrentInstance() will probably be
* null due to the fact we have not hit the faces lifecycle yet, we must dup
* some of the faces servlet code here to create a new current instance.
* @param req
* @param res
* @return FacesContext which is fresh and virtually empty.
protected FacesContext getFacesContext(ServletRequest req,
ServletResponse res) {
FacesContext facesContext = FacesContext.getCurrentInstance();
if (facesContext != null) {
return facesContext;
// Use the FactoryFinder to grab the Lifecycle object
FacesContextFactory contextFactory = (FacesContextFactory) FactoryFinder
.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder
.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
Lifecycle lifecycle = lifecycleFactory
.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
facesContext = contextFactory.getFacesContext(servletCtx, req, res,
lifecycle);
ProtectedFacesContext.setFacesContextAsCurrentInstance(facesContext);
return facesContext;
} -
Problem while setting username password to router
Hi,
i am trying to connect to router using java program. i am connecting with out any problem.
while giving the credentials like username and password i can't placing the original username
password.instead some thing is setted.
here is my code
public class ConnectRouter
public static void main(String[] args) throws Exception {
try
if (args.length != 2) {
System.err.println("Usage: java router username and password");
System.exit(1);
String password = URLEncoder.encode(args[0], "US-ASCII");
String username=URLEncoder.encode(args[1],"US-ASCII");
URL url = new URL("http://192.168.0.75:23");
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
System.out.println("connection obj got");
PrintWriter out = new PrintWriter(connection.getOutputStream());
out.println(username);----------------------------------------------------------------------------------------------->passing username
out.println(password);------------------------------------------------------------------------------------------------>passing password
Process p = Runtime.getRuntime().exec("cmd /c perl C:\\perlsrc\\uname.pl");
// out.println(args[0]);
System.out.println("-----------connected---------------");
out.close();
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}catch(Exception e){e.printStackTrace();}
}output is as follows:
connection obj got
-----------connected---------------
ÿûÿûÿýÿý
User Access Verification
Username: POST / HTTP/1.1--------------------------------------->here something is placed instead of my username
Password:
% Authentication failed.
Username: Host: 192.168.0.75:23--------------------------------->here something is placed instead of my username
Password:
% Authentication failed.
Username: Connection: keep-alive
Password:
% Authentication failed.
Process exited with exit code 0.
please explain me where i am missing???
Regards,
NagarajuHi ejp,
i done as follows even i am getting same problem
please help me
public class ConnectRouter extends Authenticator
static String username,password;
public static void main(String[] args) throws Exception
Authenticator.setDefault(new ConnectRouter());
try
if (args.length != 2) {
System.err.println("Usage: java router username and password");
System.exit(1);
password = URLEncoder.encode(args[0], "US-ASCII");
username=URLEncoder.encode(args[1],"US-ASCII");
URL url = new URL("http://192.168.0.75:23");
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
System.out.println("connection obj got");
PrintWriter out = new PrintWriter(connection.getOutputStream());
out.println(username);
out.println(password);
Process p = Runtime.getRuntime().exec("cmd /c perl C:\\perlsrc\\uname.pl");
// out.println(args[0]);
System.out.println("-----------connected---------------");
out.close();
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}catch(Exception e){e.printStackTrace();}
//@ovverriding the getPasswordAuhtentication method
protected PasswordAuthentication getPasswordAuthentication()
System.out.println("int the password authentication method");
return new PasswordAuthentication(username,password.toCharArray());
}output::
connection obj got
-----------connected---------------
ÿûÿûÿýÿý
User Access Verification
Username: POST / HTTP/1.1--------------------------------------->here something is placed instead of my username
Password:
% Authentication failed.
Username: Host: 192.168.0.75:23--------------------------------->here something is placed instead of my username
Password:
% Authentication failed.
Username: Connection: keep-alive
Password:
% Authentication failed.
Process exited with exit code 0.
please explain me where i am missing again???
Thanks in advance,
Nagaraju. -
Hi,
I am using Microsoft ASP.NET TreeView control where I have bound embedded images. Also I have set custom header “x-content-type-options” as
“nosniff” in web.config file.
On hosting the sample containing the above mentioned things in SERVER machine, the images are not visible but its working properly while running sample in local (development) machine.
Kindly provide a solution and find the sample in the below link.
http://goo.gl/6uR2b0
Thanks,
Alagarsamy D.Hi AlagarBala,
Your issue is related to asp.net/web technology and for a better support on this please post your question to the asp.net forum below, this forum is for C# code issues in speicific:
http://forums.asp.net/
Regards,
Fouad Roumieh -
Setting response header without scriptlet
Can I set a response header from JSP without using a scriptlet?
With scriptlets I can do <%response.addHeader("name", "header")%>
but is there also a JSTL tag or similar to do it? (Except for writing a custom tag myself)As far as i know JSTL is not designed for this, as it is designed to work as a view language in the mvc model.
And since you handle requests and responses in a controller, I don't think there will be something for JSTL. -
Setting response header fron JSP
Hi
I would like to know how I can set "If-Modified-Since" header, so that when client refreshes the page again the server should send 304 (Not Modified) status to the client.
I was able to do this in servlets as follows,
{code}
class Servlt extends HttpServlet
private long modifiedTime ;
init()
modifiedTime=System.timeMilliSeconds /1000*1000;
//service method automatically calls getLastModified() for the conditional GET
long getLastModified()
return modifiedTime;
{code}
How I can achieve the same in JSP ?
Is this work for POST method?
Is refreshing the browser submits page with GET or POST ?
Please help me understanding these and the solution for the above using JSP.
Thanks in advance.{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}{code}Try to set "Last-Modified" response header via setDateHeader method.
-
Problem while setting the selected value of h:selectOneMenu to bean
Hi all,
I am new to JSF. I am working on application where i have combo boxe on the page. I am setting some values to the combobox from database using <f:selectItems> tag and one value using <f:selectItem> tag. The value combobox value selected by user is set to the bean property which is String. I am able to display all the values in the combobox but when clicked on button (present at the end of form) i am getting following error-
ERROR HtmlRendererUtils:354 - Error finding Converter for
component with id interviewStageOneForm:acceptanceChannelList
I am setting the combobox selected value to the to the bean property which is String and the value selected in also String. Then which converter it is asking for. I am not able to find out what is the problem.
Your suggestions will be really appreciated.
Here is my code snippet:-
JSF:-
<h:selectOneMenu id="acceptanceChannelList"
value="#{interviewStageOneBean.index}">
<f:selectItem itemValue="Select" itemLabel="#{Message.combo_select}" />
<f:selectItems value="#{MasterDataBean.acceptanceChannelList}" /> <!-- The list coming from database-->
</h:selectOneMenu>Bean:-
public class InterviewStageOneBean {
private String index;
public String getIndex() {
return index;
public void setIndex(String index) {
this.index = index;
}Hi!
First I would try next:
Try to leave out
<f:selectItem itemValue="Select" itemLabel="#{Message.combo_select}" />
line. And check if it works after that. If it didn't repeat step but you leave in message selectItem and dump out database selectItem line.
Second:
I would check acceptanceChannelList creation and what type of objects you put while doing setValue and setLabel on UISelectItem
Probably selectItem value has been assigned an object of type the engine doesn't know how to convert from String to it. -
NullPointerException while setting response object encoding.
I am getting Null Pointer Exception at line "esponse.setCharacterEncoding(encoding);", here the encoding value i am getting is "UTF-8". The same code works fine in other webservers like websphere/tomcat. Please let me know is there any specific setting or i need to set the encoding in different way in weblogic. Weblogic 10.3.1.0 - 64 bit.
protected String encoding = null;
protected FilterConfig filterConfig = null;
protected boolean ignore = true;
* Take this filter out of service.
public void destroy() {
this.encoding = null;
this.filterConfig = null;
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
// Conditionally select and set the character encoding to be used
if (ignore || (request.getCharacterEncoding() == null)) {
String encoding = selectEncoding(request);
if (encoding != null){
request.setCharacterEncoding(encoding);
response.setContentType("text/html");
if( encoding != null)
response.setCharacterEncoding(encoding); //Error at this line
else
response.setCharacterEncoding("UTF-8");
System.out.println("response content after :"+response.getContentType());
// Pass control on to the next filter
chain.doFilter(request, response);
* Place this filter into service.
* @throws ServletException
public void init(FilterConfig filterConfig) throws ServletException {
this.filterConfig = filterConfig;
this.encoding = filterConfig.getInitParameter("encoding");
String value = filterConfig.getInitParameter("ignore");
if (value == null)
this.ignore = true;
else if (value.equalsIgnoreCase("true"))
this.ignore = true;
else if (value.equalsIgnoreCase("yes"))
this.ignore = true;
else
this.ignore = false;
* Select an appropriate character encoding to be used, based on the characteristics of the current request and/or filter initialization
* parameters. If no character encoding should be set, return null.
protected String selectEncoding(ServletRequest request) {
return (this.encoding);
}I am getting Null Pointer Exception at line "esponse.setCharacterEncoding(encoding);", here the encoding value i am getting is "UTF-8". The same code works fine in other webservers like websphere/tomcat. Please let me know is there any specific setting or i need to set the encoding in different way in weblogic. Weblogic 10.3.1.0 - 64 bit.
protected String encoding = null;
protected FilterConfig filterConfig = null;
protected boolean ignore = true;
* Take this filter out of service.
public void destroy() {
this.encoding = null;
this.filterConfig = null;
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
// Conditionally select and set the character encoding to be used
if (ignore || (request.getCharacterEncoding() == null)) {
String encoding = selectEncoding(request);
if (encoding != null){
request.setCharacterEncoding(encoding);
response.setContentType("text/html");
if( encoding != null)
response.setCharacterEncoding(encoding); //Error at this line
else
response.setCharacterEncoding("UTF-8");
System.out.println("response content after :"+response.getContentType());
// Pass control on to the next filter
chain.doFilter(request, response);
* Place this filter into service.
* @throws ServletException
public void init(FilterConfig filterConfig) throws ServletException {
this.filterConfig = filterConfig;
this.encoding = filterConfig.getInitParameter("encoding");
String value = filterConfig.getInitParameter("ignore");
if (value == null)
this.ignore = true;
else if (value.equalsIgnoreCase("true"))
this.ignore = true;
else if (value.equalsIgnoreCase("yes"))
this.ignore = true;
else
this.ignore = false;
* Select an appropriate character encoding to be used, based on the characteristics of the current request and/or filter initialization
* parameters. If no character encoding should be set, return null.
protected String selectEncoding(ServletRequest request) {
return (this.encoding);
} -
Problem while setting PF_status in ALV Grid Display
Hi,
i have a final internal table with first field as a check box. I have delete button on application tool-bar, with usercommand and pf status defined for it.
Once the output is displayed i should have the option of checking the line (check box) and delete then records from the list.
problem here is once i check the box and click on delete button is not getting deleted. but instead if i check the box and double click on the line(ie f2 fuctionality) and then click on refresh, then the records are getting deleted.
i have not provided and pf status for f2 functionality, by default its getting activated before the delete fuctionality is called.
i have attached my code below.
DATA : fk_events TYPE slis_t_event,
f_user_command TYPE slis_formname VALUE 'USER_COMMAND',
f_status TYPE slis_formname VALUE 'STANDARD_SP01',
fieldnam(10) TYPE c.
DATA: gs_layout TYPE slis_layout_alv.
DATA: ls_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = fk_events.
READ TABLE fk_events INTO ls_event WITH KEY name = slis_ev_user_command
IF sy-subrc = 0.
MOVE f_user_command TO ls_event-form.
MODIFY fk_events FROM ls_event TRANSPORTING form WHERE name =
ls_event-name.
ENDIF.
READ TABLE fk_events INTO ls_event WITH KEY name =
slis_ev_pf_status_set
IF sy-subrc = 0.
MOVE f_status TO ls_event-form.
MODIFY fk_events FROM ls_event TRANSPORTING form WHERE name =
ls_event-name.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZWR_SECOND_TO_CREATION1'
i_callback_pf_status_set = f_status
i_callback_user_command = f_user_command
it_fieldcat = gt_fieldcat[]
it_events = fk_events[]
TABLES
t_outtab = gt_final[]
EXCEPTIONS
program_error = 1
OTHERS = 2.
FORM user_command USING r_comm TYPE sy-ucomm
rs_selfield TYPE slis_selfield.
fieldnam = rs_selfield-fieldname.
CASE r_comm.
WHEN 'DELETE''.
LOOP AT gt_final INTO gk_final.
IF gk_final-del_sat = 'X'.
DELETE gt_final WHERE vbeln = gk_final-vbeln.
ENDIF.
rs_selfield-refresh = 'X'.
ENDLOOP.
WHEN OTHERS.
EXIT.
ENDCASE.
FORM standard_sp01 USING extab TYPE slis_t_extab.
SET PF-STATUS 'RAM' EXCLUDING extab. " For PF-Status
ENDFORM. "STANDARD_SP01
i wud be very thankful if someone cud help me
thanx
ramHi,
i have a final internal table with first field as a check box. I have delete button on application tool-bar, with usercommand and pf status defined for it.
Once the output is displayed i should have the option of checking the line (check box) and delete then records from the list.
problem here is once i check the box and click on delete button is not getting deleted. but instead if i check the box and double click on the line(ie f2 fuctionality) and then click on refresh, then the records are getting deleted.
i have not provided and pf status for f2 functionality, by default its getting activated before the delete fuctionality is called.
i have attached my code below.
DATA : fk_events TYPE slis_t_event,
f_user_command TYPE slis_formname VALUE 'USER_COMMAND',
f_status TYPE slis_formname VALUE 'STANDARD_SP01',
fieldnam(10) TYPE c.
DATA: gs_layout TYPE slis_layout_alv.
DATA: ls_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = fk_events.
READ TABLE fk_events INTO ls_event WITH KEY name = slis_ev_user_command
IF sy-subrc = 0.
MOVE f_user_command TO ls_event-form.
MODIFY fk_events FROM ls_event TRANSPORTING form WHERE name =
ls_event-name.
ENDIF.
READ TABLE fk_events INTO ls_event WITH KEY name =
slis_ev_pf_status_set
IF sy-subrc = 0.
MOVE f_status TO ls_event-form.
MODIFY fk_events FROM ls_event TRANSPORTING form WHERE name =
ls_event-name.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZWR_SECOND_TO_CREATION1'
i_callback_pf_status_set = f_status
i_callback_user_command = f_user_command
it_fieldcat = gt_fieldcat[]
it_events = fk_events[]
TABLES
t_outtab = gt_final[]
EXCEPTIONS
program_error = 1
OTHERS = 2.
FORM user_command USING r_comm TYPE sy-ucomm
rs_selfield TYPE slis_selfield.
fieldnam = rs_selfield-fieldname.
CASE r_comm.
WHEN 'DELETE''.
LOOP AT gt_final INTO gk_final.
IF gk_final-del_sat = 'X'.
DELETE gt_final WHERE vbeln = gk_final-vbeln.
ENDIF.
rs_selfield-refresh = 'X'.
ENDLOOP.
WHEN OTHERS.
EXIT.
ENDCASE.
FORM standard_sp01 USING extab TYPE slis_t_extab.
SET PF-STATUS 'RAM' EXCLUDING extab. " For PF-Status
ENDFORM. "STANDARD_SP01
i wud be very thankful if someone cud help me
thanx
ram -
Problem while including the header file in C source code in CIN
While Creating code interface node....
In the C source code we are supposed to include the Header file "extcode.h".In my system i have installed
Turbo C. I couldn't able to find the above header files.When i am trying to use the above header file i am getting error,what could be the reasonHi,
You need to point your turbo C to ..\labview\cintools which is where you will find the extcode.h and other h file and also the lib file.
Regards
Ray Farmer
Regards
Ray Farmer -
Problem while setting the property of column in ALV
Hi ,
I have created a alv dynamically and setting the properties of the column like column header text but its not getting updated .
see the below code for ref.
lr_column_settings ?= lr_config_table.
data:
lt_columns type salv_wd_t_column_ref.
lt_columns = lr_column_settings->get_columns( ).
data: lr_column type ref to cl_salv_wd_column,
lr_header type ref to cl_salv_wd_column_header,
ls_column type salv_wd_s_column_ref.
loop at lt_columns into ls_column.
case ls_column-id.
when 'MOIST'.
lr_column = ls_column-r_column.
lr_header = lr_column->get_header( ).
lr_header->set_text( 'Moisture %' ).
I am able to set the alv properties like visible row count etc ..
can anybody help out in this issue
Regards
YashI was just able to change my headers with the following:
data:
lt_columns type salv_wd_t_column_ref,
ls_column type salv_wd_s_column_ref,
lr_header type ref to cl_salv_wd_column_header.
lt_columns = lo_value->if_salv_wd_column_settings~get_columns( ).
loop at lt_columns into ls_column.
lr_column = ls_column-r_column.
lr_header = lr_column->get_header( ).
lr_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_title ).
lr_header = lr_column->create_header( ).
case ls_column-id.
when 'CNT_LINEITEMS'.
lr_column->r_header->set_text( 'Line Items' ).
when 'VAL_OPEN'.
lr_column->r_header->set_text( 'Open Amount' ).
when others.
endcase.
endloop -
Problem while setting External Window Title
Hello,
This should actually be a straighforward task, but I don't understand why I am facing a problem.
I am opening an external window (browser) and trying to set the title of the window. Here is the code
IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Title");
win.setTitle("Title");
win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
win.removeWindowFeature(WDWindowFeature.MENU_BAR);
win.removeWindowFeature(WDWindowFeature.STATUS_BAR);
win.removeWindowFeature(WDWindowFeature.TOOL_BAR);
win.setWindowPosition(100, 150);
win.show();
The window opens well with the right URL. But the title does not seem to be changing at all. The URL is displayed instead of the title. Where could I be going wrong?
I have placed this code within an action event
We are using EP7 SP10.
Thanks and Regards,
ReenaHi Reema
IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Title");
win.setTitle("Title");
in the above code createNonModalExternalWindow(url,"Title"); here it self you are setting the title , just comment this statement [win.setTitle("Title");]
and see the <b>source</b> of the external window whether you can see the title as you mentioned or not
Best Regards
Chaitanya.A
Maybe you are looking for
-
when opening an email using verizon emails I can only print one page. I have checked an I do not have a printer or computer problem because the printer prints more than one page with others such as gmail. We feel there is a print setting in firefox t
-
Write to serial port asyncronously
I am trying to write a commands to a serial port but my problem is that the operation is tedious so it is freezing up my UI. What makes it more complicated is that I must call this procedure when the form loads I want to ask if anyone can provide an
-
How to build jms files using netbeans ide
hi, i am using the latest netbeans ide to build a simple jms java file, but i am getting this: init: deps-jar: Compiling 10 source files to C:\wrox\pro_jms\Chapter04\Test\build\classes C:\wrox\pro_jms\Chapter04\AccountsDepartment.java:4: package java
-
Can't run wiki and web services at the same time?
I'm a newbie with Lion Server, but I've been running several web sites successfully for about 6 months. I'm up to Server 10.7.4. I've been trying ever since the first installation of Server to get the wiki service running. I had absolutely no luck
-
Hi, i have a problem with the discussion forum. It is possible to read old discussions and answer on old discussions. But when i try to create a new discussionforum or a new discussion, i get the following error-message: IO Exception: ORA-01653: unab