on 05-18-2006 7:58 PM
Hi,
I am having a disabled input field on my screen whose
value is set equal to a character( of length 70) page attribute.The value of this page attribute is being set
in the oninitialization of the page
Problem is, when I am assigning any special character (#,or " etc) to the page attribute,the input field is not picking up the value of the attribute.
But when the input field is enabled it picks up fine.
What can be the problem ? Please help.
Regards,
Ananya
Hi,
Add one more attribute to your <htmlb:inputfield> i.e type attribute and give value STRING as shown in below code and check.
<htmlb:inputField id="SAMPLE" design="STANDARD" type="STRING" value="<%= var1%>"
disabled="TRUE"/>
Regards,
Azaz Ali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It's working fine here check the Internet options and other settings.
Don't forget to reward points if the answers are helpful.
Regards,
Azaz Ali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am sending you the entire code for a application which i have tried for you, just create a new application and just paste my code where ever required and check.
page type : page with flow logic
status : unchanged
In the layout
-
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
<htmlb:page title = "first page ">
<htmlb:form>
<br>
<br>
<htmlb:inputField id="SAMPLE" design="STANDARD" value="<%= var1%>"
disabled="TRUE"/>
</htmlb:form>
</htmlb:page>
</htmlb:content>
Event Onintialization
-
var1 = 'abc"dk'.
page attributes
-
var1 type char5
Try this with single page with flow logic. you will get the solution. After that you can cross check with your application where it is going wrong.
Regards,
Azaz Ali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
No..It is still not solved. I did it the way you told..same way..but still it is not taking "
Regards
Ananya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you got the solution? If there are any issues let me know.
Regards,
Azaz Ali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
the problem is specifically occuring for the character
" ( i.e. double quotes).
For other characters it is ok.. Please help
Regards,
Ananya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have used htmlb inputfield. Why is this problem ocuuring for special characters.
Thanks®ards
Ananya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have tried its working. i am sending you the sample code which i have worked try out with this you will get the solution.
In the layout
-
<htmlb:inputField id="SAMPLE" design="STANDARD" value="<%= var1%>"
disabled="TRUE"/>
In the page attributes
-
I have declared in this way...
var1 type char5
In the Oninitialization Event
-
var1 = 'abc#dk'.
It's working fine... try out this and let me know...
Regards,
Azaz Ali.
Hi,
Are you using in your layout, i mean javascript or htmlb?
Have you tried with both cases?
Regards,
Azaz Ali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.