How to display selected value in MessageChoice
HI,
I have a messageChoice on my Update screen. I need to display the selected value when the user comes to update the data on the screen. In the Process Request when i am printing the stmt
System.out.println("The type of bean is PortletItemID::"+webBean.findIndexedChildRecursive("PortletItemID"));
The output is The type of bean is PortletItemID:: OAFormValueBean
How can i set the value that is coming from database in order to show the selected value in the message choice when the user is coming to the screen for updating the data.
Thanks,
Mohammadi
Hi Tapash,
In my case, i have mentioned the value in picklist View Definition ,picklist display attribute and picklist Value attribute. Where should i be providing my database value so that i can compare and display it as selected value.
Thanks,
Mohammadi
Similar Messages
-
How to display intial value in messagechoice
hi, i want to show some intial value in picklist as soon as the page gets open other than the values from the VOquery, i need to show intial value like(Select). i tried giving programitically by using the property messageChoiceBean.setDefaultValue("select"), but it dint work, can any one give me an idea for this..
Just noticed that setDefaultValue method seems to be deprecated. Instead use setSelectionValue(OAPageContext pageContext, String selectionValue) .
--Shiv -
How to get selected value from selectOneRadio ???
Hi...i want to how to get selected value from selectOneRadio and use it in another page and in backing bean.
Note i have about 10 selectOneRadio group in one page i want to know value of each one of them.
Plzzzzzzzz i need helpYou have a datatable in which each row is a question, correct?
Also in each row you have 5 possible answers that are in a radio, correct?
So,
You need to put in your datatable model, a question, and a list of answers (5 in yor case) and the selected one.
So you will have a get to the question, an SelectItem[] list to populate the radios and another get/set to the selected question.
ex:
<h:selectOneRadio value="#{notas.selectedString}" id="rb">
<f:selectItem itemValue="#{notas.valuesList}"/>
</h:selectOneRadio>
Search the web for examples like yours. -
How to get selected value from OADefaultListBean.
Hi All,
How to get selected value from OADefaultListBean ?
Thanks,Hi,
To identify the user's selection(s) when the page is submitted, you would add the following logic to your processFormRequest() method:
OADefaultListBean list =
(OADefaultListBean)webBean.findChildRecursive("positionsList");
String name = list.getName();
String[] selectedValues = pageContext.getParameterValues(name);
To retrieve all the values in the list box, call list.getOptionsData().
--Prasanna -
How to display the value of a column in a chart at the top of each column
How to display the value of each column in a chart at the top of each column?
Like this?
Done using chart Inspector.
For details, see Chapter 7, Creating Charts from Numerical Data in the Numbers '09 User Guide. The guide may be downloaded via the Help menu in Numbers.
Regards,
Barry -
How to display 7 values of single field in row wise.
hi,
how to display 7 values of single field in row wise.
thankx in advance.hi ,
do it like this :
1 Place ur UI element in tranparent container with Layout as Row Data and Layout Data as Row Head Data
2 Ur first UI , which contains the first value as Row Head Data ,
3 Others as Row Data
u can do it with Matrix Data as well
if u want to give space , u can use HORIZONTAL GUTTER and set its width to medium / large / Xlarge
also there is a UI element "INVISIBLE ELEMENT" ,
1 u can use this UI element to provide space between ur other UI elements in the view
2 u can insert a text element as well , and in the Text property of the element press ALT + 0160.
u can give the space bw UIs as desired.
regards,
amit -
How to display filter values in analyzer
Hi expert,
I want to add filter into analyzer, above data table, I insert a few rows, and add text to hold filters, but after quit from design mode, inserted rows for filters dispear, and its spaces are taken by data table. could you please tell how to display filter values .
Many Thanks,It is looking like you are saving them as workbooks. It will be possible to maintain fliters if you save with the filters given by workbook properties, not by manual feeding.
let us know with clear expectation if you are not clear with it. -
How to display negative values in a screen field of a screen
Hi All,
Please let me know how to display negative values in a screen field of a screen.
thanksHi Kishore,
You can do this method. In the screen , create a text field of CHAR instead fo creating an INT4 field.
I have created a field of CHAR of name say TEXT.
In the main program,
declare a variable of the same name ie. TEXT.
data: TEXT(5) TYPE C.
In PBO, just assign the negative values.
It will work.Since there is automatic conversion between character and integer data types, it will work for positive values as well.
Regards,
Sylendra. -
How to display F4 values in one field based on other field selection
Hi All,
How to hide a UI element (i.e Link to action) highlited for Normal User and display the same to super user.
Component Name : /SAPSRM/WDC_DODC_SC_GAF_C
2.Can i know how to display the entries in supplier field based on Product category selection.
Right now all the entries are getting displayed in the supplier field.
I want to display only entries based on Product category.
Search Help Name : BBP_BUPA_CLL_PARTNER
Component Name : /SAPSRM/WDC_DODC_SC_I_LIM
How to enhance the web dynpro component with the filtered values.
Regards,
Krish.Hi Ashvin,
Thanks for the document. In the search help there is a standard FM which is getting executed.
Can i enhance that FM or should i copy and edit.
BBP_F4IF_SHLP_EXIT_CLL_PARTNER
If i creata a Z FM and make changes how to pass that values to my standard Component View UI Element.
If not then suggest me some alternative.
Regards,
Krish -
How to display the values stored in the database in the combobox on load?
I am develping one application where in
I wanted to display the values in the combobox which I am taking from the database and in the same form passing that value in same form after selecting it,My program is running fine for the first time but next time it is giving me NullPointerException.
So can anyone tell me please how I should develop the this application to avoid this exception?
Thank You
PraddyThanx a lot for showing interest in answering my query.I am pasting my code for ur reference.Please try to reply ASAP.
Thank You,
Praddy.
CODE:
======
<html>
<head>
<script language="javascript">
function submitthisform(thisForm)
thisForm.submit();
</script>
</head>
<body>
<form method=post name=samepgm>
Select City: <select name=city onChange='submitthisform(samepgm)'><br><br><br>
<option value=''></option>
<option value='All'>All</option>
<%@ page language="java" import="java.sql.*" %>
<%
String scity = request.getParameter("city");
System.out.println(scity);
Connection con = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:property","","");
Statement st = con.createStatement();
ResultSet rs1 = st.executeQuery("select distinct hcity from housefinance");
while(rs1.next())
//String ohname = rs1.getString("hname");
String ocity = rs1.getString("hcity");
//out.println(ohname +"<br>");
out.println(ocity +"<br>");
%>
<br><br><br><option value='<%=ocity%>'><%=ocity%></option><br>
<% }
rs1.close();
if(scity.equals("All"))
ResultSet rs2 = st.executeQuery("select * from housefinance");
while(rs2.next())
String ohname = rs2.getString("hname");
String ohadd1 = rs2.getString("hadd1");
//String ohadd2 = rs2.getString("hadd2");
String ohcity = rs2.getString("hcity");
String ohpcode = rs2.getString("hpcode");
String ohtelno = rs2.getString("htelno");
String ohfaxno = rs2.getString("hfaxno");
String ohemail = rs2.getString("hemail");
String ohmobile = rs2.getString("hmobile");
%>
<pre>
<tr>
<td><p>Company : <%=ohname%> </p></td>
<td><p>Address : <%=ohadd1%></p></td>
<td><p>City : <%=ohcity%> </p></td>
<td><p>Pin : <%=ohpcode%></p></td>
<td><p>Telphone : <%=ohtelno%></p></td>
<td><p>Fax No: : <%=ohfaxno%></p></td>
<td><p>Email : <%=ohemail%></p></td>
<td><p>Mobile No. : <%=ohmobile%></p></td>
</tr>
</pre>
<%
else
ResultSet rs = st.executeQuery("select * from housefinance where hcity like '%"+scity+"%'");
while(rs.next())
String ohname = rs.getString("hname");
String ohadd1 = rs.getString("hadd1");
//String ohadd2 = rs.getString("hadd2");
String ohcity = rs.getString("hcity");
String ohpcode = rs.getString("hpcode");
String ohtelno = rs.getString("htelno");
String ohfaxno = rs.getString("hfaxno");
String ohemail = rs.getString("hemail");
String ohmobile = rs.getString("hmobile");
%>
<tr>
<td><p>Company : <%=ohname%> </p></td>
<td><p>Address : <%=ohadd1%></p></td>
<td><p>City : <%=ohcity%> </p></td>
<td><p>Pin : <%=ohpcode%></p></td>
<td><p>Telphone : <%=ohtelno%></p></td>
<td><p>Fax No: : <%=ohfaxno%></p></td>
<td><p>Email : <%=ohemail%></p></td>
<td><p>Mobile No. : <%=ohmobile%></p></td>
</tr>
<hr>
<% }
%>
</select>
</form>
</body>
</html> -
How to display field value only once in REUSE_ALV_GRID_DISPLAY
hi experts,
i am using REUSE_ALV_GRID_DISPLAY, for alv outpur display.but i want one of the field in output ,not to display the value which is of same, it have to be displayed only once, I mean i have a number which contains multiple line items corresponding, here i want to display the field value only once when it is repeating , for the same header number, how can i achieve itHi,
check the sample code,
REPORT Z_ALV.
Database table declaration
TABLES:
sflight.
Typepool declaration
TYPE-POOLS:
slis.
Selection screen elements
SELECTION-SCREEN BEGIN OF BLOCK blk_1 WITH FRAME TITLE text-000.
SELECT-OPTIONS:
s_carrid FOR sflight-carrid.
SELECTION-SCREEN END OF BLOCK blk_1.
Field string to hold sflight data
DATA:
BEGIN OF fs_sflight ,
carrid TYPE sflight-carrid, " Carrier Id
connid TYPE sflight-connid, " Connection No
fldate TYPE sflight-fldate, " Flight date
seatsmax TYPE sflight-seatsmax, " Maximum seats
seatsocc TYPE sflight-seatsocc, " Occupied seats
END OF fs_sflight.
Internal table to hold sflight data
DATA:
t_sflight LIKE
STANDARD TABLE
OF fs_sflight .
Work variables
DATA:
t_fieldcat TYPE slis_t_fieldcat_alv,
fs_fieldcat LIKE
LINE OF t_fieldcat.
*START-OF-SELECTION
START-OF-SELECTION.
PERFORM get_data_sflight. " Getting data for display
PERFORM create_field_cat. " Create field catalog
PERFORM alv_display.
*& Form create_field_cat
Subroutine to create field catalog
There is no interface paramete
FORM create_field_cat .
PERFORM fill_fieldcat USING 'Carrier Id' 'CARRID' '2'.
PERFORM fill_fieldcat USING 'Connection No' 'CONNID' '1'.
PERFORM fill_fieldcat USING 'Flight Date' 'FLDATE' '3'.
PERFORM fill_fieldcat USING 'Maxm.Seats' 'SEATSMAX' '4'.
PERFORM fill_fieldcat USING 'Seats Occ' 'SEATSOCC' '5'.
ENDFORM. "create_field_cat
*& Form fill_fieldcat
Subroutine to fill data to field column
-->p_seltext Column label
-->p_fieldname Fieldname of database table
-->p_col_pos Column position
FORM fill_fieldcat USING
p_seltext LIKE fs_fieldcat-seltext_m
p_fieldname LIKE fs_fieldcat-fieldname
p_col_pos LIKE fs_fieldcat-col_pos.
fs_fieldcat-seltext_m = p_seltext.
fs_fieldcat-fieldname = p_fieldname.
fs_fieldcat-col_pos = p_col_pos.
APPEND fs_fieldcat TO t_fieldcat.
CLEAR fs_fieldcat.
ENDFORM. " fill_fieldcat
*& Form get_data_sflight
Subroutine to fetch data from database table
There is no interface parameter
FORM get_data_sflight .
SELECT carrid
connid
fldate
seatsmax
seatsocc
FROM sflight
INTO TABLE t_sflight
WHERE carrid IN s_carrid.
ENDFORM. " get_data_sflight
*& Form alv_display
Subroutine for ALV display
There is no interface parameter
FORM alv_display .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = t_fieldcat
TABLES
t_outtab = t_sflight
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " alv_display
End of code -
How to get selected-value of dropdown-field in alv ?
Hello experts,
I have a alv-table with dropdown-field.
When I open the dropdown I am able to select another value.
Now I use method ON_CLICK with ON_CELL_ACTION, and when
I change value in my alv, system jumps into this mehtod.
But how do I get now the selected dropdown value in this method ?
I use following code in comp-wdini in order to declare the dropdown:
Dropdownfield
DATA: lr_dp TYPE REF TO cl_salv_wd_uie_dropdown_by_key.
DATA: lr_node TYPE REF TO if_wd_context_node_info.
DATA: lt_valueset TYPE wdr_context_attr_value_list.
DATA: ls_valueset TYPE wdr_context_attr_value.
DATA : lr_nodeinfo TYPE REF TO if_wd_context_node_info.
DATA wa TYPE cdbc_tj30t.
DATA: lr_drdn_by_index TYPE REF TO cl_salv_wd_uie_dropdown_by_idx.
SELECT * FROM cdbc_tj30t INTO wa WHERE stsma = 'CRMOPPOR' AND
spras = 'DE'.
ls_valueset-value = wa-estat. " actual values
ls_valueset-text = wa-txt30. " text displaying on the dropdown
APPEND ls_valueset TO lt_valueset.
ENDSELECT.
LOOP AT lt_columns INTO ls_column.
CASE ls_column-id.
WHEN 'CONCATSTATUSER'.
CREATE OBJECT lr_drdn_by_index
EXPORTING
selected_key_fieldname = ls_column-id.
lr_drdn_by_index->set_valueset_fieldname( 'VALUESET' ).
lr_drdn_by_index->set_type( if_salv_wd_c_uie_drdn_by_index=>type_key_value ).
ls_column-r_column->set_cell_editor( lr_drdn_by_index ).
ENDCASE.
ENDLOOP.
In view-ini I fill the table which is bound to my alv-table:
LOOP AT lt_list_opportunities INTO lstru_list_opportunities
WHERE status = ls_opportunity_status-estat AND
valid_to <= ls_input-bdate AND valid_from >= ls_input-vdate.
ls_opportunities-valueset = lt_valueset.
MOVE-CORRESPONDING lstru_list_opportunities TO ls_opportunities.
APPEND ls_opportunities TO ltt_list_opportunities.
ENDLOOP.
lo_nd_opportunities = wd_context->get_child_node( name =
wd_this->wdctx_opportunities ).
lo_nd_opportunities->bind_table( new_items = ltt_list_opportunities ).
HOW can I now get the slected dropdown values in ON_CLICK with ON_CELL_ACTION method ?
Thanks for answers !!
GerdHello Abap,
when I have selected the value in the dropdown-box, then the event should start, and then I should have the
selected values of the dropdown box.
Hope you can help me !
Gerd -
How to display decimal values (8.00, 8.01, 8.10)
Can you please tell me anyone how to display the decimal values.
Ex: amount number(5,2)
inserted the table value 300.00
when I am select the value using it has to display as the same 300.00.
Thanks,
RameshI suggest you read oracle documentation about TO_CHAR function and number format models.
SQL> select to_char(0.00, '99990.99') from dual ;
TO_CHAR(0
0.00
1 row selected.
SQL> select to_char(99.78, '99990.99') from dual ;
TO_CHAR(9
99.78
1 row selected.
SQL> -
Additional Field Infoset - how to display multiple values
Hi all,
I have created an extra field in an infoset and I can succesfully retrieve the value I need (with coding), only now I loop over a selection and then the last value that is retrieved is being displayed. How can you display all values of the selection, so you get several lines in the output?
Many thanks!
NathalieI have a item list box and i have 3 enteries in it .If suppose i click on the first entry with out the action being called it displays the message but the same case is not getting happened with multiple value selection..means when i am clicking all the three fields none of the value is getting displayed. There is no action or no button created in for displaying the value which u click on.Can you tell me how to go on with this???
-
How to display Prompt values in Narrative
Using 11.1.1.6.2
Within a dashboard page I have a table with a dimension hierarchy for organization. If you click a division it runs an action link to call a browser script (javascript in a text section on the dashboard) passing the division. If you expand the division and click a market it calls the same javascript function.
The Javascript function then uses Go Path to refresh an analysis within an iFrame on the dashboard page and passes either the Division value or the Market value.
The target analysis has two filters: Division is prompted and Market is prompted.
So after all that my question is how could I display the two passed values from the Go Path call in a narrative on the target analysis? Or I guess the alternative question is how to display the filter values on the narrative.
Sorry for the long explanation, but hopefully this makes sense.
Thanks for any help or suggestions.
BradUse @n to include the results from the designated column in the narrative. For example, @1 inserts the results from the first column
Assuming you want to show the selected value for Division from prompt.
Add Division column in the report criteria and call it @1, where 1 is position of Division column
You may hide the Division column from report, if you dont have to show in the report
Edited by: Srini VEERAVALLI on Feb 7, 2013 3:22 PM
Maybe you are looking for
-
How to get mouse over shape to display data in Visio 2013?
Hi Visio pros, I am required to create a diagram of our servers rack setup and will be publishing to a Web page using Visio 2013. The goal is to mouse over the server shape and have the data be displayed. I have followed arguably every solution on th
-
How do I link to libTIFF.dylib
I need to use the functionality of libTIFF in my application. In the codewarrior version of my app I was able use the version of libTIFF that I downloaded from libtiff.org. I built the binary and linked against it. All worked well. Now I am rewriting
-
It will not let me AirPlay,I do not even have the option for it any help?
-
Browse in iBooks on my iPad does not work. When tapping on the author name nothing appears. Is anyone else having this problem?
-
Have very low speed - 0.225 mbs, download. On signing up I was told I will be receiving minimum of 8mbs, average of 15mbs and a maximum of 19mbs. Besides being passed from pillar to post as no-one understands why the broadband is so low I have just b