Hyperlin on inputfield in Table
Hi Guys,
I have defined in my model in one table hyperlink on inputfield. Some how hyperlink is not working. can anyone tell me the reason for that?
I did try with read only and also with editable. I am calling through this hyperlink only Google website.
Thanks for your help in advance.
Hi,
It won't work. As a workaround, you can hide this table field and create a Plain Text column in your table. The label of the control will be the id of the hidden column (@BANK_KEY). Now, the hyperlink action will work if you assign one to the plain text control.
Hope this helps,
Natty
Similar Messages
-
How to set focus on next row inputfield in table
Hello all,
How to set focus on next row input field in table
Please help.
Thanks in advance.
CSPHi,
use the following code
wdThis.wdGetAPI().requestFocus(nodeElement, attribute)
Ex:
Provide the attribute and replace the nodeElement with that of yours
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Your attribute");
wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attributeInfo);
Regards
Ayyapparaj -
I have read several documentations and checked the forum up and down but couldn't find any answer. I have created a view which uses the table element. Some columns are defined as inputfields. It is possible to enter several data in differend cells. The questition is how to get the information which rows and columns have been changed by the user. I expected an event raised for each row but the only event for an input field is "onenter". The only way seems to check the attribute 'is_changed_attribute_by_client' for each element.
Does someone have an idea how to solve this issue or an example ? I checked many examples in the namespace 'WD_TEST' or 'table* ' but none shows how to deal with changed data.
Remark: To change data in cells should be possible without selecting the rows.
Thanks in advance, JuergenHi Ari,
please check the type of your table column. It must be a InputField.
--> Table
--> TableColumn_1
--> TableColumn_1_Cell_Editor -->Properies(InputField)
--> TableColumn_1_Header -->Properties(Caption)
--> TableColumn_2
--> TableColumn_2_Cell_Editor -->Properies(TextView)
--> TableColumn_2_Header -->Properties(Caption)
In this example only the field TableColumn_1 can be edited. TableColumn_2 is a readonly field because of the type "TextView".
Hope this helps you.
Regards Juergen -
InputField focus issue in ECC 6.0
We are upgrading from 4.7 to ECC 6 - I have a BSP app which is behaving differently in ECC 6. When tabbing between inputFields within an iterator, the first tab will place the cursor focus around the inputField, then the second tab will place the focus inside the inputField. You cannot start typing into the inputField until the 2nd tab. This is very annoying and confusing to the user. Is there anyway to change this behavior so that the cursor focus moves inside the field on the first tab? This does not seem to happen with inputFields which are not within an iterator. This does not happen with 4.7. Any insight would be greatly appreciated.
LisaRaja,
Thanks for your reply. But I have about 9 different data screens, and do not wish to hard-code the tabbing via javascript for each one. This seems like alot of work to make tabbing to the next field work correctly (like it does in any normal HTML page). I would like to be able to tab thru all data entry fields within my iterator, moving to the next field with only one TAB. This works outside of an iterator, and works in previous versions of SAP. But I have to TAB twice now to get to the next field. Is there a new parameter on the inputField or Table definition which might override this behavior? I can't imagine any situation where I would want to TAB to the cell holding the inputField, rather than to the inputField itself. Has anyone else encountered this behavior?
Thanks,
Lisa -
Table Parameter Values Are Input To RFC?
Hi,
My Requirement is Table Parameter Values are Input RFC.
We have Table Parameter With Project ID Column and Multiple Rows.
User Need To Enter Project id's in Table And Submit.The Result can be displayed.
In My Scenario User Need to enter the values in table.
I Developed Webdynpro Application and Deployed.
When i am trying to enter values into a table,table is not taking values.
Because in My Requirment is the user enter morethan one project id in table.
Thanks
SubbaRao ChintaHi,
Can you please explain more clearly that what is the meaning of "Table not taking values"?
Did you take the ColumnCellEditor(inputfield) for table column as input field.
For example, You need to create a value node as below
ProjectIdsNode (Value node with cardinality 0..n & selection 0...n)
---> ProjectId (Attribute)
And bind this ProjectIds node to table UI element. And bind ProjectId attribute to ColumnCellEditors(inputfield) value property.
Now in submit action loop though this node and get all the values entered in ProjectId attribute.
And set all these values into input of your RFC while executing to store in backend.
Regards,
Charan -
How to put Menu in WebDynPro for ABAP
How to put Menu in WebDynPro for ABAP
What kind of menu do you want? Normally WD4A doesn't need any menu's. You can create (drag and drop) UI elements on your view and use navigation links to navigate from one view to another (for example). In classical dynrpo programming these buttons (back, cancel, exit, etc.) are used to navigate.
But in WD4A 'menu' is created using the UI elements like button, inputfield, textview, table (grid), etc.
So let me know what kind of menu you're talking about, and I might be able to help you.
Kind regards,
Micky. -
Hi Friends ,
I am getting some problem while using the message manager ,the scenario is like this I am having a table control in view , if there are errors in the values entered in the inputfield of table rows i am calling the method report_attribute_t100Message( ) to display error messages , in this method i am passing the message , context element and the attribute name . This things are working fine when i am in the default view and table control is also in the default view but when i use navigation , means if the table control is in second view the errors are not displayed . I dont know why its not displaying messages, I have checked the message manager object also errors are present in it but not displayed .
Can anybody tell why it is happening and how to solve it ?
Regards
YashpalHi thomas,
pls find the code snippet for the message manager
im_elem is type ref to if_wd_context_element.
g_message_manager is defined as an attribute of assistance class and instantinated in component controller init.
the follwing call to the message manager is part of an assistance class method which is called in the view as wd_assist->check_material( ) with import export parameters i.e im_elem is passed as an export parameter
lw_msg-msgty = 'E'.
lw_msg-msgid = 'ZMA_MSGCLASS'.
lw_msg-msgno = '294'.
CALL METHOD me->g_message_manager->report_attribute_t100_message
EXPORTING
msg = lw_msg
element = im_elem
attribute_name = 'MATNR'. -
Javascript to check if a checkbox is selected in datatable
Hi,
I have a form with some command buttons and couple of datatables with checkboxes in one of the columns. How do I make sure when a user clicks on any command button to generate an action only if any checkbox is selected else shows an error to atleast select one checkbox. Is it possible do that using javascript rather than on the server side. Any small example will help.
ThanksHi Detlev,
I searched for the file controls_ie5.js. But I have only one function for cell click in js file. I didnt get any methods you mentioned in the reply.
The workaround I could see is, get the name of the tableview control using 'myContext.getParamIdForComponent("tableviewcontrolname")'. Then append '-chk'(that is the name generated dynamically for the radio button in the HTML page). With this we can do a javascript validation if a radio button is selected. The only disadvantage is if they change the naming conventions(say instead of -chk if they use _chk) for HTMLB implementation this code will fail.
In another post I saw a reply from Stephan Batzdorf for similar post. He says, "Now to the client side. The only thing you can do on client-side is to retrieve the selected rows and get the values from the key column.
It's not possible to manipulate data. Of course you can render InputFields into table cells and let the user manipulate them, but then you have to retrieve each value for each InputField again on server side (pageContext.getComponentForId(tableCellInputFieldId);)."
Does he say we cant get the value of inputfield in the client side?
I will definitely award points once the problem is fixed.
Regards,
Priya -
Hello,
I need some help in developing a webdynpro application. My scenario is as follows:-
How to assign values entered in inputfields to table rows at runtime? The total number of rows in the table will only be decided at runtime. Could you advise me of how to do this?
I would greatly appreciate your help.
Regards,
Gopal.Hi Uday,
Thanks a lot for your reply. We are supposed to develop the application with as many less clicks as possible . So, giving the Add new row button is not an option for us. So, we are making use of the concept of "Context Log" and it is working fine.
I'll try to explain in more detail:-
I have a custom node in my context, which has 9 different attributes. I have to get these 9 values from the end user. But, 3 of the attributes should be filled in through inputfields and the rest of the 6 attributes should be filled through a table because the end-user should be able to enter multiple line items.
But, at runtime, when the users clicks the Button to execute the BAPI, the 3 attributes that are entered through inputfields should be assigned to every row of the table that the user is using. But, the values are getting added only to the first row of the table. Do you get what I am saying?
Please let me know if you need more clarification. Your help is very much appreciated.
Regards,
Gopal. -
Using OVS (Object value selector) inside a tabe.
I am new to the WebDynpro Java development. I am developing a simple UI ,where I have to put inputfield in table row and apply OVS to that inputField. I have already done that , but the problem is when selecting the inputField the value hep button is showing and , when clicking on the value help button nothing happens.Can any body suggest me , how to use OVS inside a table row.
Thanks,
SrikantaHi Srikanta,
you can use object value help selector in table by creating a singleton node attribute by this you will make sure that one row's value is not affected by other row's value selection for object value help please refer to this wiki article [Value Help - Object Value Selector|http://wiki.sdn.sap.com/wiki/display/WDJava/ValueHelp-ObjectValue+Selector]. Please let us know if you need any help.
Regards
Jeetendra -
Hi All,
We are creating Lead from Business activity using folloup transaction in CRMD_ORDER but the problem it's not copying BA number it's copying the other data the same BU number is copying from Lead to oppurtunity I am looking into badi CRM_COPY_BADI so that I can pass BA number from Business activity to Lead but I am not getting right method in this BADI.Please suggest somebody how can I will do this?.
Thanks in advance
MaheshHi Mahesh,
In the badi output, first thing you have to do is to populate your new transaction field with required data and secondly in the inputfield internal table create an entry for the field you have populated.
Refer to some SAP Badi implementation for the same badi and you will get the exact idea.
Best Regards,
Pratik Patel.
Reward with points if it helps! -
How to change attribute "read_only" of a inputfield in a table?
Hi, experts,
action:
1.Create a table with name " A_TABLE" in the layout in a view.
2.Binding some fields from a structure to the table.
3.Field "Checkbox" is a checkbox type and field "input" is a inputfield type with readonly in the table "A_TABLE" .
4.I hope: When selecting a checkbox in the "Checkbox" colume in a row in the table, the field "input" corresponding will be changed readonly.
The follow is my code: When select Field "Checkbox" , the method is invoked.
method ONACTIONCLICK4DISDESC .
data view type ref to if_wd_view.
DATA input_desc TYPE REF TO CL_WD_INPUT_FIELD.
data tab type if_BIDDING_LIST_VIEW=>elements_ONSURVEY.
data struct type if_BIDDING_LIST_VIEW=>element_ONSURVEY.
I have set "wd_this->m_view = view" in the method wddomodify and add m_view to the attribute of the
"viewBIDDING_LIST_VIEW" .
view ?= wd_this->m_view.
input_desc ?= view->GET_ELEMENT( `TABLE_INPUT_EDITOR` ).
input_desc->SET_READ_ONLY( EXPORTING value = abap_false ).
endmethod.
result:
when I select a checkbox in the "Checkbox" colume in a row in the table, all field "input" is read and write.
How can I do it ?
Best regards,
taoHello Wang,
You need to bind the readOnly attribute of the input field to a newly to created attribute beneath the dataSource node of the table within the context. That way, each input field of each row of the table can have a different value for readOnly.
Best regards,
Thomas -
Addition of a inputfield as column to item level table in shopping cart
Dear Experts
i added a new inputfield to item level table as columen of Shopping cart and binded a variable from context. that column is displayed in the table but it is displayed in Disabled mode im not able to give input to the column(as it is a inputfield).
I checked the table column property it is enabled and i aslo configure on the SPRO, nothing is woring for me.
Please giude me to make the table column enabled so that i can give input..
Regards
Arun.K.PHi Arun ,
you need to maintain the Meta data entries ,
Navigate path
spro->sap implementation guide->Supplier Relationship Management->SRM server->cross application basic settings-> extension and field control->create table extension and supply with data->control table extension and there field action-> configure control of fields of table extension .
Thanks & Regards
Pradeep Kumar Dondeti -
Enable Inputfield in the table column even though the column is empty
Dear Experts
How to enable or disable a table column(it is an inputfield) dynamically.
I done this and strugling to proceed from this point
DATA lr_container TYPE REF TO cl_wd_uielement_container.
DATA lr_table TYPE REF TO cl_wd_table.
DATA lr_view TYPE REF TO if_wd_view.
DATA lr_child TYPE REF TO cl_wd_uielement.
data : lr_col TYPE REF TO CL_WD_TABLE_COLUMN.
data : lr_inp TYPE REF TO cl_wd_input_field .
lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
lt_children = lr_container->get_children( ).
CALL METHOD lr_container->get_child
EXPORTING
id = 'ITEMS_TABLE'
index = 1
RECEIVING
the_child = lr_child.
lr_table ?= lr_child.
CALL METHOD lr_table->get_column
EXPORTING
id = 'ZVPN_IT_INP'
index = '6'
receiving
the_column = lr_col.
Upto this the code is working fine as per the requirement .Now the thing is in that in column we r having an input field which should be enabled dynamically
Regards
ArunHi Arun.,
For enabling and disabiling any field on the view, there is only procedure.
1. Make an attribute of type 'ABAP_BOOL' in the context.
2. Bind the enable property of the UI element to this attribute.
3. Enable or Disable the UI element in the code.
So for your question you can follow :
1. Make an attribute 'ENABLE' in the context node bound to the table. Type ABAP BOOL.
2. Bind 'ENABLE' property of the desired input field with this attribute.
3. In WDDOMODIFYVIEW check your condition and based on the condition use set_attribute method of if_wd_context_node to change the value to 00 - None or 01 - Enabled.
I hope your question is answered. -
I want to know what InputField is selected in the table
Hi Experts
Please help me
I have table with 4 columns (each column have TableCellEditor of type InputField)
I need to know what InputField is selected in the table(or in wich column)Hi,
You can get the selcted row for the table but not for a particular column. Even if you are editing something your input field the complete row would be selected.
Regards,
Murtuza
Maybe you are looking for
-
How to send generated form in PDF form through email
hi, i am working on interactive form in Webdynpro Java, when i am trying to send pdf form as an attachment. i kept Email Submit button in the form and when i am clickink on send email button it is taking local outlook user in default and attachment a
-
Styleddocument problem with styling text
Hello, I am looking to create syntax highlighting for a document. First I am just getting to grips with how it all works. I have reached a problem I hope someone will be able to help me understand.. The following is the code where I have the problem.
-
I just bought CS 1.1 on ebay and it has been activated by the sellers daughter. It is old and unsupported so I can't activate the software in the suite. Since it is very old is there a way for me to use it and not be timed out after 30 days? If not c
-
Error Message in Buiding Slideshow Encore CS3
PGC "my project" has an error at 00:06:20:04. internal software error: %0, line project name-PGC info: name=Project Name, =Bpgc, time=00:06:20:04
-
Media Browser Crashes Everything
Starting tonight, everytime I open the media browser it almost instantly crashes whatever program opened it, iweb, Keynote, etc. I have read about problems with flip4mac and 3rd party quicktime plugins. I have flip4mac installed as well as an xvid pl