Making the input fields readonly
hi
iam calling a RFC and it is a Custom and not
a pre-defined
and now i need to show some data of the table
in the pop-up window in the input fields and all this
fields should be readonly . there are about 30
input fields and it difficult to make each and every input
field as readonly , is there any alternative that allows
me too make the all the input fields readonly.
Hi, Kishore,
Even I tried the same but not successful. Because your container will not have Readonly propert so only way is to do it is doing for each and every element. for this also two ways are there.
1. directly set the readonly property of each and every element in Layout tab or
2. create a context variable of type boolean and map it to the readonly property of the UI.
Regards,
Srinivas.
Similar Messages
-
Make Input field readonly at run time.
Hi,
I have a input field on a view , i want to make it <b>readonly</b> during run time depending on some value.
plz help. reward point is sure.Hello Manoj
You can also make the input field readOnly dynamically during run time. For this you need to write a simple code in wdDoModifyView of your view controller. Code is as follows
IWDInputField inputField = (IWDInputField)view.getElement("<id of inputfield>");
if(<reqd condition>)
inputField.setEnabled(false);
else
inputField.setEnabled(false);
Try this, if things donot get much complicated on doing this. I hope it helps u and makes thing simple.
Regards
Kapil -
How to make the input field of an uplaod button to readonly
Hi all,
I have to upload an excel file using upload button.But the problem here is i want the user to use only browse button to upload a file..but he should not enter mannulally in the input field.Is it possible to gray out the input filed but the browse button should be in active state.
Regards
Padma NHi,
I dont think you can make the readonly only for the inputfield which is part of the FileUpload UI.
I guess your issue is related with user entering invalid urls and system hangs.
Regards
Ayyapparaj -
How to enable/disable the input fields based on the data entered in the web dynpro application abap? If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.
Hi,
Try this code.
First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
Next go to Init method.
Set the readonly value as 'X'.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = 'X').
After that Go to the Action ENTER.
First read the input field ( first input field, which is value entered field) , next give a condition
if input value is not initial then set the readonly value is ' '.
DATA lo_nd_input TYPE REF TO if_wd_context_node.
DATA lo_el_input TYPE REF TO if_wd_context_element.
DATA ls_input TYPE wd_this->element_input.
DATA lv_vbeln TYPE wd_this->element_input-vbeln.
* navigate from <CONTEXT> to <INPUT> via lead selection
lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
* @TODO handle non existant child
* IF lo_nd_input IS INITIAL.
* ENDIF.
* get element via lead selection
lo_el_input = lo_nd_input->get_element( ).
* @TODO handle not set lead selection
IF lo_el_input IS INITIAL.
ENDIF.
* get single attribute
lo_el_input->get_attribute(
EXPORTING
name = `VBELN`
IMPORTING
value = lv_vbeln ).
if lv_vbeln IS not INITIAL.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = ' ' ). -
Changing color of text in the input field
hi
when i disable the input field , the text written in it has very light color. How can i change the color of the displayed text in the input field.Hi Harsimran,
changing the text color of an input field is not possible. However, you can build a workaround:
1. take an expression box, place it exactly over your input field
2. change its text color and take the value of your input field as value being displayed
3. instead of making your input field disabled, make it hidden and show the expression box instead.
Thus, instead of enabling/disabling your input field, switch between expression box/input field to be displayed. I hope it's clear what I mean. If not, don't hesitate to ask again.
Best regards,
Benni -
How can we change the input field on a view stop showing zeros
Hello,
To make screen look consistent with other character input field. How can we change the input field on the view stop displaying zeros even though the data type is NUMC and data type should not be change?
Edited by: sap_learner on Mar 25, 2010 5:44 PM
Edited by: sap_learner on Mar 25, 2010 5:49 PM
Edited by: sap_learner on Mar 25, 2010 5:55 PMhello Manas Dua,
Thanks for your help. I am able to resolve my problem.
My code will help the future comers to resolve this kind of issues.
*The code is applied to method WDDOINIT of the default view.
DATA lo_nd_terms_input TYPE REF TO if_wd_context_node.
DATA lo_nd_terms_input_i TYPE REF TO if_wd_context_node_info.
DATA lv_zeros TYPE wdy_attribute_format_prop.
lv_zeros-null_as_blank = 'X'.
lo_nd_terms_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
lo_nd_terms_input_i = lo_nd_terms_input->get_node_info( ).
lo_nd_terms_input_i->set_attribute_format_props(
EXPORTING
name = `ENTER THE ATTRIBUTE NAME`
format_properties = lv_zeros ).
Edited by: sap_learner on Mar 26, 2010 5:02 PM -
Not able to display the values in the input fields of the view
Hi All.
I am facing an unique issue.
My custom element created in my custom node getting a null value
from a Get Vendor Details RFC written in RFC.
The values are getting populated in the custom element but not coming in the
input field of the corresponding view.
Then, I wrote this code
wdContext.nodeCustom.setLeadSelection(1);
and all the output came in the input field.
Now, after a build it is not coming in the input fields of the view.
All my custom nodes are Singleton and values are coming in the custom elements
as I can print them by wdComponentApi.getMessageManager.reportSuccess(""+customnode.getField());
All my nodes are Singleton.
Please give your valuable inputs.
Regards
Kaushik BanerjeeHi
Check the node property
initializeLeadSelection true
if not make it true , I would suggest to make a value node of the same structure as in RFC after execuation of the RFC populate the value manually.Dont bind it directly to the UI element.
BR
Satish Kumar -
Clearing the data buffer from the input fields
Hi,
I am using an user exit CONFPP02 for the Tcode: co11n. I have written a program such that the confirmation numbers having the status CNF will not be allowed to be processed. The whole confirmation is terminated when the system checks the confirmation number and its status as CNF. If the status of the confirmation number is PCNF, the program allows the further processing of the Tcode Co11n.
The problem starts when the user enters the PCNF status confirmation number and enters, the system stores the values in the various input fields. Now without exiting the initial confirmation screen, if the user replaces the Confirmation number of the PCNF status to the Confirmation number of the CNF status , the system issues a warning message:" Confirmation no. or order/sequence/operation has been changed
However, the input fields still contain default values from thepreceding confirmation". if the user says yes, the program written is bypassed , thus allowing the reconfirmation of the CNF confirmation number into PCNF confirmation number .
Can anybody suggest a suitable method to clear the data stored defultly in the input fields so that the program can be made to work.
With regards,
Avinash.S
Mobile no:09996192456Hi Gilad,
I never use Preview and did not use Preview at all before sending the document over to my most recent client either.
I only opened Preview up this morning after I discovered that all of the form data had disappeared on his end! And the only reason I opened up Preview was because I already knew it looked fine in Acrobat so wanted so wanted to view the form in a different application.
My client would not even have notified me about it had he not sent the signed form back to me and I saw there was no data there! I then called him and asked him about the missing data and he said that he thought I had simply sent over the form purposely with blank fields:(
I have just emailed him to ask him what application he opened it up in. My understanding is that he is on Windows because ne mentioned to me his company was using Windows when we last spoke. Perhaps he has a personal Macbook where he opened it? I just don't know and can hopefully soon find out:)
But THANK YOU for letting me know about that script! I appreciate it:) I have now downloaded and installed it and will just have to use it on ALL of my forms before sending them out:) -
In BSP how to give the input field as mandatory?
Hi friends,
In BSP how to give the input field as mandatory?
In BSP i want to validate the input field (example checking the material no is valid or not)
if this material no doesnot exit means i want to pass error message.What is the code for that.
Moosahi
try this
in LAYOUT
<htmlb:inputField id = "vname" disabled = "False" value = "<%= v_visitor %>"/> <font color="red" size="2"><b><%= page->messages->assert_message( 'vname' ) %></b></font></td>
in DO_HANDLE_EVENT
in oninputprocessing
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
DATA: event TYPE REF TO CL_HTMLB_EVENT.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
button_event ?= event.
ENDIF.
case event->id.
when 'select'.
if v_visitor = ''.
page->messages->add_message(
condition = 'vname'
message = 'Visitor Name can not be blank'
severity = page->messages->CO_SEVERITY_ERROR ).
ELSE.
here u can write ur when ur field getting filled
endif.
endcase.
endif.
give marks if it is helpful
thanks -
The list doesn't appear in the input field
Hi All
The list doesn't appear in the input field when I make input or press the BACKSPACE key.
Notes:
I made this modifications:
1. In connection properties I set High speed connections (LAN)
2. In local data settings I set the historial to ON
we had SAPGUI 620 in workstations and now we have installed SAPGUI 710
Thanks for your time and help
Message was edited by:
Genner SanchezHello Genner,
see note 399180:
o FIELD NAME LENGTH
The history is only written for field names with a maximum length
of 40 characters. In earlier SAP GUI versions, this length was
restricted to 30 characters. The history file must be deleted to
achieve extended support.
o FIELD LENGTH
If the length of the input field is 60 or more characters,
history is not written either. "Input field length" refers to the
dictionary length of the field, not to the "visible length" on
the screen. (The restriction of the input data to 60 characters
results from the fact that text editors were often built as lists
of text fields with a length of 60 in the past. In those editors,
this history was quite annoying. On customer request, this was
Regards, Martin -
How to keep the input field from PDF Form to RTF
Hi,
I'm looking to keep the input fields from my pdf form document to Rtf so I can use them in my Rtf document.
Regards,
AlanGood day Alan,
I'm afraid that's not possible as form fields in a PDF file have no equivalent either in a Word format (.docx/.doc) or within the Rich Text Format (.rtf). That data is simply stripped during the conversion as there's no equivalent available.
Kind regards,
David
Acrobat Community Manager
Adobe Systems -
How to change the input field's color in SE51
Hi:
I need to change the color of input fields in module pool.
I tried to modify its screen-color but it did not work.
Need your suggestion.
Regards
Shashihi,
Check this similar thread
Regarding the input field color
thanks -
To find the input fields for the given technichal names .
Hi ,
This is for the transaction SU01.
I have some technichal names for some fields in this transaction,
CODVN
BCODE
GUIFLAG
LIC_TYPE
REF_USER.
I want to find out the input fields in this transaction which correspond to the respective technichal names mentioned above.
How should i do it?Hi,
Go to SU01 Tcode and press F1 on the fields you get the Pop-up and then click on the Technical Information...you can find the details of the fields,..... -
How to read the input field value into ABAP variable?
Hi All,
i need a read the value of an input field into an ABAP variable,and i am doing this in the following way
lstring = request->get_form_field('myFlag').
here 'myFlag' is the input field name,but this is not returning me any value into lstring.
I have gone through the SDN and tried to do this.
could you please help me out to resolve this issue.
Thanks in Advance,
PraveenaDear Praveena
In which event are you putting this code. Place it in oninputprocessing event(Page with flow logic Model of coding). Then it will surely work.
Regards
Vijay.M -
Error : The input field contains prohibited characters (already deleted)
Hi,
While trying to generate depreciation (Tcode AFAB), after select the Time of Print (either spool or immediate printing) this error will be displayed - "The input field contains prohibited characters (already deleted)", no error number displayed and the character ### appear in Time of Print. I m not using any special characters and i was able to generate it before. Also the test run is successful.
Please guide why this error is appear and what is the resolution for it.
Thank you,
AmalinaHi Amalina,
Please see note 382285 solution part.
Regards Bernhard
Maybe you are looking for
-
Potential buyer – 8 questions I can't find answers for in the reviews
Folks, I'm seriously considering getting an iPhone in the next few days and after doing my homework I have a few questions I didn't quite find the answers in the reviews I've read/watched. Could anyone comment on them? Some may sound silly 1- VNC – H
-
I am using a MacBook Pro 2.4 Ghz. I am using an Apple 1Tb Time Capsule as my source for the internet and "router" (I don't know if I'm using the terminology correctly, so if you need clarification, ask away). I have that Time Capsule connected to my
-
Convert Photoshop image to EXISTING .pdf
Hello - I searched everywhere for this answer and can't seem to find it. I want to be able to put an .psd file/.jpg/anything file that I create in Photoshop into an existing .PDF that I have. In otherwords I have a .pdf template with a blank area fo
-
Reg. arear(verzn) value from fbl15n
Hi all, Is any way ( any functional module or BAPI) to get the value for arear(verzn field) in the line items of FBL5n tcode based on customer,company code,document no, reference no. posting date thanks suresh
-
Data transfer from SWF to VC++
Hi, I am developing a VC++ application in which I need to play SWF files. In my SWF file there are some integer values, which I need to fetch to my VC++ application. I am using the flash.ocx activex control in the application. Also I need to call som