Single select option in table view as radio button without design
Hi,
When I use the Content design = "Design2002" or design = "Design2003" then I get a checkbox in table view by giving the single select option. But when I do not use any design for the Content then I get a radio button in the table view.
How do I get a radio button in the table view with Content Design = "Design2002" or design = "Design2003"?
Message was edited by: Brian McKellar
Assume you are asking about design=2002 versus 2003? Updated question.
Hallo Sachin,
Later this afternoon I will check your question with a colleague for an answer. We are all offsite today.
Until then, it would be good if you review your questions Tableview radio button event..
++bcm
Similar Messages
-
How do I use the option "table view" in NetWeaver 2004s Query Designer?
Dear,
We have used NetWeaver 2004s Query Designer, We found a strange problem. The option to select table view is not available. It is greyed out. How can you select table view (tabular) in 2004s Query Designer?
I have read the help doc about tabular view of NetWeaver 2004s Query Designer, I check my query, it has only one structure . but the option is still greyed out. I rebuild the query with 3.x Query Designer in tabular view, and reopen it with 2004s Query Designer, So there is a tab named "tabular view" display, but the option to select table view is still not available, and when users view the query result in web , it is still not in tabular view display. So I am confused, is there a bug with NetWeaver 2004s Query Designer?
Please help me. Thanks!Note 1002271. Seach this note to use key word "table view"
-
SELECT-OPTIONS in table maintenance generator screen
Hi
Is it possible to create SELECT-OPTIONS in table maintenance screen?
My requirement is to allow the user to enter single Company code and Range of G/L Accounts in the Table Maintenance input screen. Please let me know.
Thanks
Abdul HakimHello Tamas,
As a matter of fact we can add a custom selection-screen to the TMG screen & without manually modifying the TMG
You can do so by using the [Event AA: Instead of the Standard Data Read Routine|http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9f56a9d111d1a5690000e82deaaa/content.htm].
Please check the code snippet:
DATA: gv_fldate TYPE s_date.
* User-defined selection-screen
SELECTION-SCREEN: BEGIN OF SCREEN 9000.
PARAMETERS: p_carrid TYPE s_carr_id OBLIGATORY.
SELECT-OPTIONS: s_fldate FOR gv_fldate OBLIGATORY.
SELECTION-SCREEN: END OF SCREEN 9000.
*& Form sub_yvsflight_event_aa
* text
FORM sub_yvsflight_event_aa.
DATA: ls_temp_data TYPE yvsflight,
lt_temp_data TYPE STANDARD TABLE OF yvsflight.
* Call the user-defined selection-screen
CALL SELECTION-SCREEN 9000 STARTING AT 25 10.
* Populate the int. table TOTAL
PERFORM get_data_yvsflight.
* Delete the records which are not required
LOOP AT total.
ls_temp_data = <vim_total_struc>. "Copy to local struct.
IF ls_temp_data-carrid NE p_carrid OR
ls_temp_data-fldate NOT IN s_fldate.
DELETE total. "Remove the record from the TOTAL
ENDIF.
ENDLOOP.
ENDFORM. "sub_yvsflight_event_aa
BR,
Suhas -
How to read data from select Options in another view without using context
I have 2 views, one for selection screen and another for displaying result.
In selection screen view I have define a select options with the help of webdynpro component.
Now my object is display result in result view based on entry of selection screen.
I don't want to do binding in context node, without that how I can read data of select option
in result view?
Regards,
Rasmi Ranjan MishraSolve by own.
If I define the Select options in component controller, then it will be global in nature. so i can get the value of select options
in another view also.
Regards,
Rasmi Ranjan Mishra -
Select Options in multiple views
I am running into a problem. I have an application with 2 views. I use select-options in both views, but with different fields. When I move from view 1 to view 2, it works correctly, displaying the select-options for view 2. When I return to view 1 however, the container still shows the select-options for view 2. Any help would be greatly appreciated.
Alex, please explain what you mean by 'clear the nodes'. All the setup for the select-options is currently done in the WDDOINIT in both views.
Sarath, could you please explain what you mean by 'changing the lifetime'. I've never heard this term. Where would this be done.
I copied the select-options code I had in my WDDOINIT into my HANDLEIN screen, and it dumps on the first 'ADD_SELECTION_FIELD' method call. If I add a
l_ref_comp_usage_so->delete_component( ).
before my
l_ref_comp_usage_so->create_component( ).
the selection screen comes up blank. -
Attributes select-options in form view.
How to make UI form view context attributes multiple selection ?
Ex: Employee Id attributes. I need provide this employee id like select-options in form view.
Thanks,
kaaviyaHi,
this is an interesting requirement.
please correct me if my understanding is wrong, do you mean that you want to enable a function like:
employee ID = 3271 or 3270
if we take this field in employee IC employee identification for example, you'd like to enable customer to enter more than one ID to start the search without using wildcard (as sometimes wildcard does not help)
if this is your requirement, maybe try to check the following?
here is an example for account ID search
I enter Account ID = 3271;3270 and start search
in
CL_ICCMP_BP_BUPASEARCHB2B_IMPL
FIRE_QUERY
it will
er_bo_col ?= iv_query_service->get_query_result( ).
how about use a loop to make two query?
In the above example,
IV_QUERY_SERVICE->PARAM_STRUCT_REF->PARTNER = 3271;3270
maybe try to split the string with ; and start the query until the end of this string.
and then combine the two collection?
Hongyan -
Single Selection Problem in table
Dear All,
I am getting problems with single selection in a table. Although I have set the selection model to single, if I select a row int the table and then depress Ctrl/Shift multiple rows are selected.
The code for set single selection is :
ListSelectionModel seleModel = myTable.getSelectionModel();
seleModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
Any idea about this? Is this a bug in JAVA?
Thanks!Look through your code and see if you've declared your table twice. Your single selection may not being applied where you intended.
-
Select options range table to be passed to Assistance class
Hi Guru's,
I have an assistance class where I have to write all my select queries. I have a selection screen with multiple Select options (as input fields). Now I want to pass the select options range table to assistance class.
Please let me know if you have any sample code for this which may also include building range tables for select options.
Thanks,
PradeepHi Pardeep,
U can use following code: for field ERDAT
data: rt_ERDAT type ref to data,
R_ERDAT TYPE RANGE OF VIQMEL-ERDAT,
R_ERDAT_line LIKE LINE OF R_ERDAT,
field-symbols: <fs_ERDAT> type table.
Retrieve the data from the select option
rt_ERDAT = wd_this->m_handler->get_range_table_of_sel_field( i_id = 'ERDAT' ).
Assign it to a field symbol
assign rt_ERDAT->* to <fs_ERDAT>.
copy field symbols to local variable
R_ERDAT = <fs_ERDAT>.
CALL METHOD WD_ASSIST->"METHOD_NAME"
R_ERDAT = R_ERDAT
where in class method:
R_ERDAT Importing Type ZU5QNM_ERDAT_T
ZU5QNM_ERDAT_T : is a table type of ZU5QNM_ERDAT_R
and ZU5QNM_ERDAT_R has following structure :
SIGN ACE_SIGN CHAR 1 0 Debit/Credit Sign (+/-)
OPTION ACE_OPTION CHAR 2 0 Option for Ranges Tables
LOW ERDAT DATS 8 0 Date on Which Record Was Created
HIGH ERDAT DATS 8 0 Date on Which Record Was Created
I hope this wiol solve ur problem.
Regards,
Vishal. -
Single select option in launch variables
Hi,
I am using hyperion 9.3.0 , i have written a HBR , but the problem is that the launch varaibles are giving multiple select option , how can i restrict the launch variable to have a single select option only.the launch varaibles are global varaibles. do i need to do some changes in the global varaible or the HBR and what changes would be required.thanks in advance.Maybe you have set the variable to be members instead of type member.
Cheers
John
http://john-goodwin.blogspot.com/ -
Get Selection options from one view to another view
Hi Experts,
I am using two views, first view it shows basic list of records based on selection options criteria , here I used component WDR_SELECT_OPTIONS . Then if we click on any record in first view then it opens popup window with record relevant information. Here I want to get selection option values while editing record values.
Initially I used context node for one value, for that just I created node and attribute then bind to table then I used with method get_static_attributes_table( ) in second view.
But I need all values to be used in second view.
Please could you suggest, is there another way to get values into second view?
Regards,
BBCHello BBC,
you can access the SELECT_OPTION component usage in second view and then you retrieve the selection fields and its corresponding range table. In this case the component usage instance will be shared across the application unless you explictly delete the component usage.
BR, Saravanan -
React to a line-selection on a table-view
Hello,
I show some data on a table-view and i want to show detail-information in another table-view when a user selects a row of my table-view. How can i get that done?
Is there an event to catch? How can i realize that?
Thanks for your help!The tableView control has an event "onRowSelection"
event:
"Defines the event handling method that will be processed when the user clicks on the radiobutton button in the first column. The radiobutton is visible when the 'selectionMode' is set to "SINGLESELECT". The method com.sap.htmlb.event.TableSelectionEvent.getRowIndex() can be used to retrieve the index of the row that initiated the event"
import com.sap.htmlb.enum.TableSelectionMode;.
/* Get the tableView component */
TableView table = (TableView) this.getComponentByName("myTableView");
/* Set the onHeaderClick event
table.setSelectionMode(TableSelectionMode.SINGLESELECT);
table.setOnRowSelection("onRowSelClick");
/* the method onRowSelClick has to be declared in the DynPage. Otherwise an
exception is thrown ("method not found") when the user clicks on the
radio button of the tableView.
Declaring onHeaderClick:
public void onRowSelClick(Event event) {
System.out.println("Row selection click");
Edit: Sorry, I did not see at first that your question aimed at the Visual Composer. I don't know the VC - so no idea if this works.
Message was edited by: Francisco Villar -
Update a select-option From Table
Hi,
I'm originally a C++ developer trying to learn ABAP.
I want to append values to a select-option from a table if another select-option is specified. I wrote some code that I believe will work but looks very inefficient to me. Any advice on how to streamline this process would appreciated.
The following is pseudo code and I left out some tweaks for simplicity and understanding but the basic idea is there. I want to add selection criteria to a select-option based upon a second select option (that may or may not be provided) table lookup.
Example:
DATA: groups TYPE table3.
SELECT-OPTIONS:
s_accountNo FOR table1-accountNo,
s_accountGroupNo FOR table2-accountGroupNo.
**** get the Account Groups that meet the selection criteria.
START-OF-SELECTION
SELECT * INTO TABLE groups
FROM table3
WHERE accountGroupNo IN s_accountGroupNo.
**** Remove duplicate accounts from the Account Groups
SORT groups BY accountNo.
DELETE ADJACENT DUPLICATES FROM groups COMPARING accountNo.
**** Append the account #'s onto the s_accountNo range/select-option
LOOP AT groups.
APPEND groups-accountNo TO s_accountNo.
ENDLOOP.
**** manually edit the s_accountNo to have the correct option/sign for use in further select statements.
LOOP AT s_accountNo.
s_accountNo-sign = 'I'.
s_accountNo-option = 'EQ'.
MODIFY s_accountNo.
ENDLOOP.
Thanks much,
-ChrisThe actual selection is fairly complicated from my point of view. I wrote the accountNo example to make things less confusing for me as much as anyone else, not to hide anything. I also didn't expect this amount of feedback, though it is appreciated.
The eventual select statement that is done is the following:
SELECT DISTINCT vttp~zseq_num
likp~vbeln
likp~lprio
likp~vstel
lips~werks
likp~lgnum
lips~posnr
lips~lgort
lips~vgbel
lips~vgpos
lips~sobkz
lips~lfimg
lips~vrkme
lips~matnr
lips~volum
mara~raube
vttk~dplbg
vttp~tknum
vttp~tpnum
likp~berot
likp~vkorg
likp~lfart
INTO TABLE temp_deliveries
FROM vttk
INNER JOIN vttp
ON vttk~tknum = vttp~tknum
INNER JOIN likpuk AS likp
ON vttp~vbeln = likp~vbeln
INNER JOIN lipsup AS lips
ON likp~vbeln = lips~vbeln
INNER JOIN mara
ON lips~matnr = mara~matnr
WHERE likp~vstel = p_vstel
AND lips~werks = p_werks
AND likp~lgnum IN s_lgnum
AND likp~vbeln IN s_vbeln
AND lips~vgbel IN s_vgbel
AND vttk~dplbg IN s_dplbg
AND vttk~tknum IN s_tknum
AND mara~raube = p_raube
AND likp~lfart IN ('ZLF', 'NL')
AND lips~kosta <> 'C'
AND lips~kosta <> ''
AND likp~kostk <> 'C'
AND likp~vbtyp = outbound.
and the structure it is put into is the following:
TYPES: BEGIN OF type_deliveries,
zseq_num TYPE vttp-zseq_num,
vbeln TYPE likp-vbeln,
lprio TYPE likp-lprio,
vstel TYPE likp-vstel,
werks TYPE likp-werks,
lgnum TYPE likp-lgnum,
posnr TYPE lips-posnr,
lgort TYPE lips-lgort,
vgbel TYPE lips-vgbel,
vgpos TYPE lips-vgpos,
sobkz TYPE lips-sobkz,
lfimg TYPE lips-lfimg,
vrkme TYPE lips-vrkme,
matnr TYPE lips-matnr,
volum TYPE lips-volum,
raube TYPE mara-raube,
dplbg TYPE vttk-dplbg,
tknum TYPE vttk-tknum,
tpnum TYPE vttp-tpnum,
berot TYPE likp-berot,
vkorg TYPE likp-vkorg,
lfart TYPE likp-lfart,
sdabw type likp-sdabw,
orig_lgort TYPE lips-zzorig_lgort,
selected TYPE flag,
counter(15) TYPE n,
END OF type_deliveries.
Currently there is a select option for tknum and I am attempting (successfully with my change shown above, though as many have pointed out I may be misusing the intended functionality) to add another select-option for s_pickno which is a field of a custom table that has pickno as one of it's unique keys and tknum as another of it's fields. The idea is to be able to take a pickno and use it to find all the tknum's associated and then use them in the select statement above as well as any tknum's provided as initial input by the user. If there is a better method than modifying the s_tknum selection I'm open to feedback.
Apologies that my initial example did not portray this, but being new I was a little overwhelmed myself and want something I can wrap my head around better. There's my wall of text -
To determine the number of rows selected in a table view (BSP)
Hi,
My requirement is:
I would be selecting 1 row from a table view ( which is made multiselect for another requirement) , and press a button.
The functionality of button is to open a popup window based on the row selected.
I want to display an error message if more than 1 row is selected, and button is clicked.
Message will say that "you cannot select more than 1 row".
For this, I need to know how I can get the number of selected rows in a table view.
I tried using the below code.
But I feel this will work only in DO_HANDLE_DATA method.
The popup would open, even before control comes in this method.
CALL METHOD cl_hrrcf_iterator=>get_tv_index
EXPORTING
p_id = p_tableview_id
pt_form_fields = table_form_fields
IMPORTING
pt_indices = sel_row_index_tab.
Could you please provide me with a solution.
Quick replies will be highly appreciated.
Thanks,
Nisha Vengal.Hi ,
Your TV :
<htmlb:tableView id = "tv1l"
design = "alternating"
visibleRowCount = "10"
fillUpEmptyRows = "true"
onRowSelection = "MyEventRowSelection" <----This is the event you have to use
selectionMode = "MULTILINEEDIT"
filter = "SERVER"
table = "<%= some table %>" >
in DO_REQUEST:
DATA: tv TYPE REF TO cl_htmlb_tableview,
tv_event TYPE REF TO cl_htmlb_event_tableview ,
event TYPE REF TO if_htmlb_data.
event = cl_htmlb_manager=>get_event( request ).
IF event IS NOT INITIAL AND event->event_name = htmlb_events=>tableview.
tv_event ?= event.
CASE event->event_server_name.
WHEN 'MyEventRowSelection'.
count = count + 1 .
if count ne 1 .
errmsg = 'Your message'.
endif.
ENDCASE.
ENDIF.
in View/Layout:
<% if errmsg is not initial. %>
<s cript t y p e = t e x t / j a v a s c r i p t >
a l e r t ("<%= errmsg %>") .
</ s c r i p t>
<% clear errmsg. %>
<% endif. %>
errmsg is a class attribute of type string and count is also a class attribute of type c .
Regards,
Anubhav.
Reward if useful
Edited by: Anubhav Jain on Sep 19, 2008 3:08 PM -
Hi to all,
I have a WD View with some fields that I use as parameters in a BAPI and it works fine. Now I prefer to use thouse fields like "ABAP select options" and so "more than", "less than", "not equal to" and so on. How is it possible in a WD application?
Thank you very much,
AntonioHi Antonio,
please have a look at this Select Options. The example given is from flight list tutorial but should work in similar kind for your scenario.
Hope that helps.
Regards
Stefan -
How to Captured Value into Select-Options Range Table Without "Enter"
Hi,
I defined a set of Select-Options in the Web Dynpro. I found that the value for the Select-Options will not be captured whenever I manually type in the value instead of choosing it from F4 Help Drop Down.
However, this problem can be resolved if I manually type in the value for Select-Options in the Selection Field and I press "Enter". Without pressing "Enter" value will not be captured.
Any solution for this issue? Please help.Hi Kris,
My problem is only when the user key in the value themselves rather than choosing it from Select-Options drop down value. Most of the time user will know what value to key in and will skip the step to choose from the Drop Down List. Thus, if this happen, the value keyed in by the user will not be able to capture into the range table.
I am using this logic to capture the value for selection item:
wd_this->m_helper->get_selection_screen_items(
IMPORTING et_selection_screen_items = lt_sel_item ).
* Values From Selection Screen
LOOP AT lt_sel_item ASSIGNING <fs_sel_item>.
CASE <fs_sel_item>-m_id.
WHEN `PERNR`.
ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_pernr>.
WHEN `BUKRS`.
ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_bukrs>.
WHEN `STAT2`.
ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_stat2>.
WHEN `WERKS`.
ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_werks>.
WHEN `BTRTL`.
ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_btrtl>.
WHEN `PERSG`.
ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_persg>.
WHEN `PERSK`.
ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_persk>.
WHEN `ABKRS`.
ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_abkrs>.
WHEN `BEGDA`.
ASSIGN <fs_sel_item>-m_value->* TO <fs_begda>.
ENDCASE.
ENDLOOP.
E.g. User key in the BUKRS without using the Drop Down Value provided by the Select-Options. For this case, <fs_bukrs> table will be initial as no value is captured.
Edited by: Girish Nabar on Apr 21, 2011 8:55 AM
Maybe you are looking for
-
How to convert an excel file where customers have partial access for selecting items.
Please Advise, I have created an excel file with columns that calculates price and quantity. I need to know how my customers can access the file without seeing all my calculations, etc. and just select the number of items. I need to keep my excel for
-
Disable Incessant Update Pop-up?
I updated the last time and ever since Netflix has never been the same. It works great on all my other devices. (360/PC/Wii/PS3/Mac/Macbook even iPhone 4's) I learned my lesson and sure enough this time HDMI to DVI connector users (like myself) are r
-
Counter output becomes unsnchronized when gated with an other counter
Dear all i'm using a PCI-6602 to generate a range of different pulse trains / retriggered pulses. Ctr0 is running at the experiments base frequency (T0) and is configured like this: Error = DAQmxCreateCOPulseChanTicks(T0TaskHandle, "Dev1/ctr0", "", "
-
Reconnecting the footage to the sequence
Could really do with you're help. I have delete all the media files from my film (accidently). I have now recaptured every one of them again. There is no red slash through the clips on the browser. Now that I have recaptured it all I cannot seem to g
-
I've done this a million times before. I'm importing XDCAM HD files into a project using the usual transfer software. Now, everytime a clip is transposed, a box pops up titled "XML..." and wants me to "OK" every clip. Anyone know how to shut this thi