Table Input Field Problem
Hi All,
I am facing a problem now where table row height is too big , as in 1 row size is actually a merged of 2 rows, the input field is shifted to the bottom of the cell. And when you select the row, an asterik is visible at the bottom row, and the input field is shifted up to the top of the cell. I am using customized iterator and cl_crm_ic_inputfield to render the cell. Anyone have this problem before?
Thanks!
Cheers,
cady
Hi Guys,
Some additional info i found on this issue. I am using design2003. I realized that the * added meant that its required field. However, upon further checking, when calling method RENDER_DESIGN2003 in class cl_crm_ic_inputfield, it checkes for me->required is not initial, which is kind of odd since the required field has the initial value of 'FALSE'. So , either required = 'TRUE' or 'FALSE', it will always be required field. Anyone encountered such problem before?
Cheers,
cady
Similar Messages
-
I have to create a table which will take input from user. I have created the context and binded it to the table. At the time of biniding with table i mentioned that these will be input field. But the problem is as the node has no value the table becomes uneditable.I have to give user 5 rows for editing. Can any one tell me the steps of creating this.
<b>If possible please provide the detail step & Sample code.
Points will be rewarded.</b>
Thanks,
ProsunHi Prosun,
If you want five empty rows in the beginning Insert 5 empty lines in an Internal table and bind it to the context. You can see 5 empty rows in ur table.
Also if u want to add an intial line to ur table when you press add button in the toolbar of ur table.
Provide a Add button linked wit action add
In Action :On action add
DATA: lo_new TYPE REF TO if_wd_context_element,
ls_employee TYPE zemployee,
lo_node type ref to if_wd_context_node.
lo_node = wd_context-get_child_node( 'NODENAME' ).
lo_new ?= lo_node->create_element( ).
lo_new->set_static_attributes( ls_employee ).
do_main_node->bind_element( new_item = lo_new
set_initial_elements = abap_false ).
Regards,
Ismail.
Message was edited by:
Ismail Basha -
Dynamic Table Input Field - Disabled in runtime
Hi,
I have dynamically created a node. The node as a string attribute X.
Then dynamically created a IWDTable to bind to the node.
In the table I have a column, then a tablecelleditor of inputfield.
The inputfield 'value' is binded to node->X attribute info.
inputField.bindValue(attributeInfo).
Then I created a few entries of the node, populating X with some dummy value.
In runtime, my inputfields are disabled, and the dummy values don't appear.
I believe it is something to do with my binding.
Then I replaced the inputfield with a textview. textview text is binded to the node->X
attribute info.
textview.bindText(attributeInfo)
(i.e. exact same attribute info I used for the inputfield)
In runtime I see my textview with the dummy values.
Can anyone point me in the right direction?
Cheers,
Michael.Hi Guys,
I think to be clear I better include my code here.
I did bind the table to the nodeInfo, and I did bind the textView/inputfield to the particular attribute.
As mentioned before, it does show for the textView, but not for the inputfield.
Create the new node:
IWDNodeInfo newNode = wdContext.getNodeInfo().getChild("nodeName");
newNode =
wdContext.getNodeInfo().addChild(
"nodeName",
null,
true,
true,
true,
false,
false,
true,
null,
null,
null);
Create the attribute:
IWDAttributeInfo detailAttribute =
newNode.addAttribute(
"xyz",
"ddic:com.sap.dictionary.string");
Get the node
IWDNode specificNode =
wdContext.getChildNode(
"nodeName",
0);
Create the element from the node
newElement =
specificNode.createElement();
Set the attribute value:
newElement.setAttributeValue(
"xyz",
"1234");
Add the new element:
specificNode.addElement(newElement);
Create the table now:
IWDTable someTable =
(IWDTable) view.createElement(
IWDTable.class,
"TAB_ArticleQty" + articleElement.getArticleId());
someTable.setEnabled(true);
someTable.setReadOnly(false);
someTable.setRowSelectable(true);
someTable.setFooterVisible(false);
someTable.setSelectionMode(WDTableSelectionMode.NONE);
someTable.setVisibleRowCount(-1);
someTable.bindDataSource(
specificNode.getNodeInfo());
TC.addChild(someTable);
Loop at all the attributes and create the column
The code for the textView has been commented out
The code is now for the input field
* LOOP AT ALL THE ATTRIBUTES IN THE NODE:
* CREATE ONE COLUMN FOR EACH ATTRIBUTE
Iterator allAttributes =
specificNode.getNodeInfo().iterateAttributes();
while (allAttributes.hasNext()) {
IWDAttributeInfo attrInfo =
(IWDAttributeInfo) allAttributes.next();
String attrName = attrInfo.getName();
// Text View
IWDTextView TV_info =
(IWDTextView) view.createElement(
IWDTextView.class,
"TV_AQ_"
+ counter
+ attrName);
TV_info.bindText(attrInfo);
COL_qty.setTableCellEditor(TV_info);
//input field for the user to enter the value
IWDInputField input_Qty =
(IWDInputField) view.createElement(
IWDInputField.class,
"input_Qty"
+ counter
+ attrName);
input_Qty.setEnabled(true);
input_Qty.bindValue(attrInfo);
input_Qty.setWidth("4");
COL_qty.setTableCellEditor(input_Qty);
someTab.addColumn(COL_qty); -
Hi Experts
I have an OIF Application in which I have an Input enabled table and it is mandatory to enter the date range fields. When the user clicks 'SAVE', I have to validate if the start and end dates are entered in each record, and give an error message if blank. I wanted to know if I have to loop through each record and validate manually or if there is a better way?
Thanks
NeoHello Neo,
you can use the utility method CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW to check for the mandatory attributes.
For this you need to set the STATE property of the inputfield (in the table column) to REQUIRED.
BR, Saravanan -
hi i have a problem with the input fiield.
below is my codes.
MODULE F4_INPUT INPUT.
TYPES: BEGIN OF VALUES,
TABNAME TYPE DD02T-TABNAME,
END OF VALUES.
DATA: F4_VALUES TYPE TABLE OF VALUES.
PROGNAME = SY-REPID.
DYNNUM = SY-DYNNR.
SELECT DISTINCT TABNAME FROM DD02T
INTO TABLE F4_VALUES WHERE TABNAME = IO_TABLEA.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'IO_TABLEA'
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'IO_TABLEA'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = F4_VALUES.
ENDMODULE.
I couldn't get the user input in (IO_TABLEA).
can anyone help me with this problem.hi,
Check this out
http://www.sap-img.com/abap/value-request-for-parameter.htm
Regards,
Santosh -
Flash Pro CC dynamically create an input field problems?
I dynamically created an input TextField and designated a TextFormat object that is a Thai Font. The difficulty I have is the superscript above the Thai letters will not display. These tone marks are cut off by the uppermost dimension of the field.
The following is an example of the problem " นี้ "
The tone mark " ้ "does not display
If there are multiple lines the tone marks are obscured by the line above.
I have fooled around with carriage returns and RegExp as a work around but this is torture.
Any ideas?
thanksThank you Rob for your help. The leading property will add whatever space I require between lines. So the response was helpful there. However it does not apply to the first line.I have worked around this by adding a carriage return as the initial line of text. This is working for me
-
Input field in a table view control
Hi,
I have a table view control, with input field in one of the columns.
That is meant for entering some values.
My problem is when i am entering a 3 input field with value and then by using mouse control i enter say 20th input field with value. After that when i use the directional keys to enter the 21st field, the cursor is not in 21st field, it is somewhere else.
How to correct this problem.
Regards,
VijayalakshmiHi,
Try to use the TABINDEX property of <input>.
Best regards,
Guillaume -
Input Field in table - I need a OnClick Event
Hello everybody,
I have the following problem:
I have created a table in my view which is filled at runtime. The table has 3 different rows and every row has TableSingleMarkableCells, these cells further have a input field as their celleditor.
I now want to know which cell the user is editing. I have a AttributePointer through which I know that at the time the user presses the enter key. But I need to know whether the focus has changed. Because there is the possibility that the user switches between the differnt cells with the arrow key or the tab key. But the AttributePointer only gives me the first selected cell.
Have anybody a suggestion to solve this problem - it seemed to be something like definingb a OnClick event for a input field (additionaly to the default OnEnter event...)
Best regards,
SebastianHi,
You can find out at which row the editing goes, by using
onLeadSelect action of TableUIElement.
in onLeadSelect action you can find row number using this statement
int rownumber= wdContext.node<TableNode>().getLeadSelection();
Regards
LakshmiNarayana -
Problem with increasing input field length in module pool programming.
Hi All,
I have created a screen in which i have used table control wizard. In my table control I have an input field. The problem is, this input filed only takes 23 inputs at a time. I need to make this field unfixed. This is an quantity field. I am not understanding why this is happening. Can anybody plz help me in this regard ?
Thanks in advance.
Tripod.HI Tripod ,
YOu can add Lines to Table control .
Add one button by name ADD LINES : give func code 'ADD'
IN PBO ...
if it_mat[] is not initial .
describe table it_mat lines ln .
tab_ctrl-lines = ln .
endif.
case sy-ucomm .
when 'ADD' .
perform add_lines .
endcase .
form add_lines .
ln = ln + 1 .
clear it_mat .
append initial line to it_mat .
endform .
regards
deepak. -
Setting input fields to an empty string BIG PROBLEM
Hi Rob, thanks for your rerply, It makes sense alright, but I am using 2 seperate input fields. I have discovered what is causing the problem .
After the user types into the inputfield and moves on to a different frame, I have set the input field to an empty string and this is what is causing the problem.
I have tried setting the input field to an empty string in a movie script and on individual sprites and the first right answer is not excepted.I have to type in the right answer twice to get get a right response. I am actually using three seperate input fields in total, each with a different name and behavior. Even If I use one input field I still have the same problem. Its driving me crazey. Any Ideas.
AnneI believe that the FIM Service always does trims on string, so you may be out of luck.
What is your scenario / what are you trying to accomplish by setting a space in an attribute? A space is not an empty string in my definition.
Regards, Soren Granfeldt
blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt -
Highlighting input field and table cell column in red colour
Hi,
I have 4 input fields and a table in my screen. All the input fields are read only.
I have a functionality where I have to highlight a input field with the red colour. In the sense, I have to put a thin Red border over the input field without thowing any errors or messages.
Also, i have to highlight a particular cell in the table. i.e, i have to put Red colour border over the cell of the table for some rows only. Right now i have changed the background colour of the cell for required rows, but i need Red thin border rather than changing the entire background colour.
Please guide me on achieving these functionalities..
Thanks and Regards,
-Shabir Rahim.Hi,
The red thin lines border you are talking about comes from the framework during the exceptions. If this is the case then refer the following links, hope this will help you.
[Re: Automatic message for inputfields with state=required]
[Re: Validation of InputField]
Well without exceptions, i dont think it will come.
thanks & regards,
Manoj
Edited by: Manoj Kumar on Feb 7, 2008 12:09 PM -
How to get the value from the Input field of the Table view.
Hi Experts,
I have created a table view with 10 rows and each rows contains input fields in it.Can you please help me getting the values that are entered in all 10 rows.
Currently I am using the below code,but using the below I am able to get only the first row details of the table.
lo_el_table->get_static_attributes(
IMPORTING
static_attributes = ls_table).
Please let me know you suggestions on this.Thanks in advance.
Regards,
ArunHi Arun,
You should use this method:
lo_nd_table->get_static_attributes_table(
IMPORTING
table = lt_table).
Cheers,
Roelof
http://www.nl4b.com -
Add data to table view from input fields in a page
Hi
I am developing a BSP page which will be called from SRM shop transaction. After user enters the line item data, data will be passed back to shop transaction using OCI interface and the page attributes (URL).
(1) How can I add data from input fields to table view on a page on a button click? I am able to add first line but I could not retain first line data when I try to add the second line.
I am able to add multiple lines to table view if I use view and controller by adding to the line data to static attribute of the controller. I cant use the controller and view because I can not set the attribute to Controller automatically.
(2) Is there a way to pass an attribute (URL) to controller from SPRO? Like we pass an attribute to page automatically (Automatic page attribute).
(3) How can I call a controller and view and pass the page attribute to the controller on a button click from a page with out controller?
Thanks
SreenivasI'm trying to test the merge with the following data in a test.txt file:
ZZZZZ114923000004
1234Z400660000001
ZZZZZ114923000010
Getting an error:
SQL> @C:\dataformats\sql\pc12seriesMerge.sql
Directory created.
SP2-0552: Bind variable "17" not declared.
SQL>
here it the pc12seriesMerge.sql file
set serveroutput on
create or replace directory user_dir as 'c:\dataformats\incoming\';
DECLARE
v_filename VARCHAR2(100); -- Data filename
v_file_exists boolean;
v_file_length number;
v_block_size number;
f utl_file.file_type;
s varchar2(200);
lineString varchar(200);
v_account varchar(5);
v_IDN varchar(6);
v_quantity varchar(6);
BEGIN
v_filename := 'TEST.TXT';
DBMS_OUTPUT.PUT_LINE(v_filename); --shows filename
utl_file.fgetattr('USER_DIR', v_filename, v_file_exists, v_file_length ,v_block_size );
IF v_file_exists THEN
dbms_output.put_line('File Exists');
create table ext_table (
account varchar2(5),
idn number(6),
quantity varchar2(6)
organization external (
type oracle_loader
default directory user_dir
access parameters (
records delimited by newline
fields (
account position(1:5) char(5),
idn position(6:11) char(6),
quantity position(12:17) char(6)
location ('test.txt')
reject limit unlimited;
MERGE INTO id_req_stg t
USING (
SELECT account,
idn,
decode(quantity, '-', 0, to_number(quantity)) as quantity
FROM ext_table
) v
ON ( t.account = v.account AND t.idn = v.idn )
WHEN MATCHED THEN
UPDATE SET t.quantity = v.quantity
DELETE WHERE t.quantity = 0
WHEN NOT MATCHED THEN
INSERT (account, idn, quantity)
VALUES (v.account, v.idn, v.quantity);
ELSE
dbms_output.put_line('File Does Not Exist');
END IF; -- file exists
EXCEPTION
WHEN UTL_FILE.ACCESS_DENIED THEN
DBMS_OUTPUT.PUT_LINE('No Access!!!');
WHEN UTL_FILE.INVALID_PATH THEN
DBMS_OUTPUT.PUT_LINE('PATH DOES NOT EXIST');
WHEN others THEN
DBMS_OUTPUT.PUT_LINE('SQLERRM: ' || SQLERRM);
END;
/ -
Input field validation in a Table based on the value of other column
Hi all
I have a table with 2 columns. column1 is of text view and column2 is Input field.
The user should not be allowed to enter a value in the column2 ( input field) greater than the value populated in column1(textview).
So for Eg; if the column1 is populated with value 100, The user should not be able to enter a number greater than 100 in the column2 input field.
Please let me how this can be achieved.
I appreciate the help.
ThanksHi,
Let me make sure u r working with table control.
First u have to create a event(VALIDATE) to do the validation.
Inside the event,
1. First get the current index where user has pointed the curson
2. Once u get the index read the internal table with index value.
3. Now u can compare the col1 and col2 values and populate the error message.
1. DATA : lo_elt TYPE REF TO if_wd_context_element,
l_index type i.
lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
CALL METHOD LO_ELT->GET_INDEX( RECEIVING MY_INDEX = l_index.
above code should be written inside the event.
Thanks, -
Issue with input field in table control
Hi,
I have an issue with field acgl_item-rstgr in the table control.
I have created a screen program with a table control.
In the control i have added a dictionary field as acgl_item-rstgr.
When i execute, do f4 on the input field, select a value and press enter, then it is showing me
error as 'Entry 'val' does not exist in T053R (check entry). Its really weird to understand this. I have selected the value
from f4 and even then it says this. Its working for all other columns, but not working only for RSTGR.
Plz help me on this regard.
Code is like this.
TYPES : BEGIN OF ty_rstgr,
rstgr TYPE RSTGR,
END OF ty_rstgr.
TABLES : ACGL_ITEM.
DATA : it_rstgr TYPE TABLE OF ty_rstgr.
DATA : wa_rstgr TYPE ty_rstgr.
CONTROLS : table TYPE TABLEVIEW USING SCREEN 100.
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
LOOP AT it_rstgr INTO wa_rstgr WITH CONTROL TABLE.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
LOOP AT it_rstgr.
ENDLOOP.
Thanks,Hi Navitha,
Its Check Table concepts for the error u stated. Please check wht the Search help ur using...Because for this field there is no search help at value table level...Use search help that hold all master data or create a custom search field in SE11 level or in program level.
Cheers,
Naveen
Maybe you are looking for
-
Error Msg: RemoteException occurred in server thread; nested exception is:
Hi Everyone, I got the above msg and does anyone has any idea what could be the root of the problem? Attached below is extraction from the server log file. Thanks, Kelvin Server Log [#|2005-09-28T23:28:59.836+0800|INFO|sun-appserver-pe8.1_01|javax.en
-
how to update iphone 4 software but there's not a choice to update software in settings tab? Thoughts
-
If I make an explain plan for a query of the following form: SELECT a.* FROM a, b WHERE a.pk = b.fk AND b.pk IN (1, 2); the explain plan states, that a FULL-TABLE-SCAN on table b is performed and a HASH-JOIN is done to execute the query. On 8.0.6 Dat
-
No Power in New United Airlines Business Class
Bottom Line: The new United Business Class does not support a power option for the Macbook without a workaround 1. United is upgrading its business class across its fleet (see info and progress at http://www.suitedreams.united.com/ 2. The good news i
-
Problems creating thumbnails for Firefox?
Hello, I am having issues creating a thumbnail gallery for just Firefox. It seems to work fine on Safari... I basically have one giant div. I then put in 24 thumbnail images and spaced them out. I used square hot spots and drew over each thumbnail to