Rendering values as per selection......
Dear All,
In one of our page the requirement is like this:
There are 3 fields like "Year" , "Make" and "Model".
These 3 are comination values means if the value of "Year" is "99-01"
then "Make" values will be"ABC","DEF"
and Model Values will be "1234" and "4567".
So in the page if user selects Year (from list box or LOV) "99-01" then dynamically we need to show corresponding values for "Make" and "Model".
Because there are lot of combinations residing in the databse.
Please help me if you have any idea.
Thanks .
One way of doing this is to have a PPR on year field.
Create a LOV views for MAKE/MODEL fields.
When the user selects the year, the PPR event will be raised and in the controller handle this event. Inside the controller, set where clause to LOV views and query (using AM->invokeMethod)
Another way to is using a Application Property View (PPV). Look in DEV Guide for details.
Thanks
Srini
Similar Messages
-
How can I receive the value of a selected item in the backing bean
I have a table in a jspx file.
When I go to the detail page I want to do something with the value of the currentrow.
I want do a calculaction of the value of ClbId.
How can I receive the value of the selected ClbId in my backing bean
<af:table value="#{bindings.Searchteamlist.collectionModel}"
var="row" rows="#{bindings.Searchteamlist.rangeSize}"
first="#{bindings.Searchteamlist.rangeStart}"
emptyText="#{bindings.Searchteamlist.viewable ? 'No rows yet.' : 'Access Denied.'}"
selectionState="#{bindings.Searchteamlist.collectionModel.selectedRow}"
selectionListener="#{bindings.Searchteamlist.collectionModel.makeCurrent}"
rendered="#{backing_FirstFlag_Club_Club.searchFirstTimeClub_Club_AdresAndereClubs == false}">
<af:column sortProperty="Matricule" sortable="true"
headerText="#{bindings.Searchteamlist.labels.Matricule}">
<af:outputText value="#{row.Matricule}"/>
</af:column>
<af:column sortProperty="ClbId" sortable="true"
headerText="#{bindings.Searchteamlist.labels.ClbId}">
<af:outputText value="#{row.ClbId}">
<f:convertNumber groupingUsed="false"
pattern="#{bindings.Searchteamlist.formats.ClbId}"/>
</af:outputText>
</af:column>
<af:column sortProperty="Nom" sortable="true"
headerText="#{bindings.Searchteamlist.labels.Nom}">
<af:outputText value="#{row.Nom}"/>
</af:column>
<f:facet name="selection">
<af:tableSelectOne text="Select and">
<af:commandButton text="Submit"
action="club_AdresAndereClubsDetail">
<af:setActionListener from="#{row}"
to="#{processScope.row}"/>
</af:commandButton>
</af:tableSelectOne>
</f:facet>
</af:table>hi tde
Using an Expression Language helper class like this one from Steve Muench ...
http://radio.weblogs.com/0118231/stories/2006/12/18/sourceForMyFavoriteElHelperClass.html
... you could write something like this in your backing bean:
Integer vClbId = (Integer)EL.get("#{row.ClbId}");(Make sure to cast it to the correct type.)
success
Jan Vervecken -
On value request in select-options in a repot URGENT
Hi all,
my requirement is to provide on value request in select-options
in selection screen Gsdpr user one select-option is there
For GSDPR User field, provide F4 help. Users list can be selected from ZWF_UPI table where WF_UPI_TYPE is HR. From the table, select UPI Number and employee full name fields
in ZWF_UPI table the key fields are UPI and WF_UPI_TYPE
non key field is emp_full_name.
please send me the code .
regards
NagendraHi,
I do not have sample code , But you have to use the function module
F4IF_INT_TABLE_VALUE_REQUEST on the AT-SELECTION-SCREEN ON VALUE REUQEST FOR S_OPTION-LOW event
Select Data as per the requirement into Value table of the Function module
Return the Data fro the Return table of the function module.
The good choice will be Go to SE37-> Type this FM F4IF_INT_TABLE_VALUE_REQUEST and look for Where used list-> Programs . There u will get the list of programs used this FM
Regards
Pavan -
Change of Month names as per selection of Month / Year
We have the following requirements:
1. Change of Month names as per selection of Month / Year e.g. If the user select April 08 then the column name should be April 08, at the same time the next column should be April 07.
2. Next there are two in -line totals as per different logic as recurring rows. e.g Row header is Total and it totals the items in the column, next row header is Comparable total and it is based on checking the adjacent column values for doing the total.
Please let us know if this is feasible and can be done using BI Publisher. If you have any alternate way of doing it using OBIEE also , please share.Hi,
The parameter / prompt used is for month which can have values from JAN , feb, MAR, APR,....... DEC. and the other PROMPT being YEAR e.g. 2006, 2007, 2008.
The Column Name of the Report SHould get changed as April 08 if selected as month APril and year 2008.The subsequent column of the report should be April 2007. The same applicable for selecting any month/ year
Layout of Report as below
SALES
|| April 08 || April 07
Shop1 100 200
Shop2 300 100
Thanks
NJ -
Change of Month names as per selection
We have the following requirements:
1. Change of Month names as per selection of Month / Year e.g. If the user select April 08 then the column name should be April 08, at the same time the next column should be April 07.
2. Next there are two in -line totals as per different logic as recurring rows. e.g Row header is Total and it totals the items in the column, next row header is Comparable total and it is based on checking the adjacent column values for doing the total.
Is this feasible and can be done using BI Publisher? If you have any alternate way of doing it using OBIEE also , please share.1. YOu should use AGO function (something like AGO (measure, fiscal_month, 1) ) and Variable to define your column's name
2. maybe you should look into RSUM and I think you can build this logic in the BMM layer.
Good luck -
Query - Stock Value (On a Selected Date)
Hi all
I came up with the below query to display the stock value at a given date in the past.The total value is correct as per the Inventory Audit report. However, it displays the total value for the two warehouses that we have, yet I want it to display the value separately per warehouse. My chart of accounts has only one (general) account defined.
SELECT T0.[Debit]-T0.[Credit] FROM [dbo].[JDT1] T0 WHERE T0.[Account] ='XXXX' AND T0.[RefDate] <='%0'
Anyone with an idea about how I can I can display the values separately? Thank you.
Regards,
HenryHi Gordon,
Many thanks, it worked great.. I'm able to include warehouse selection too.
out of curiosity, what does the T0.Cogsval contain?
Regards,
Henry -
F4 display upon value request - values to be selected
Hello experts,
I have an issue here. When the function module F4IF_INT_TABLE_VALUE_REQUEST is used in my program for displaying the PSTYV field values on the selection screen upon value request. Now, when the popup opens there are 53 number of item categories, i.e., from VBRP table. If any one of them is selected and double clicked, they should be selected as per the conventional idea, but nothing is being selected after double clicking. How to achieve this ? The following is my code.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR SO_PSTYV-LOW.
SELECT DISTINCT PSTYV
FROM VBRP
INTO TABLE GT_PSTYV.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'PSTYV'
VALUE_ORG = 'S'
tables
value_tab = GT_PSTYV
RETURN_TAB = GT_RETURN
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks and regards,
Ambareesh J.Try passing parameters dynpprog dynppr and dynprofield as below:
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'PSTYV'
value_org = 'S'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'SO_PSTYV-LOW'
TABLES
value_tab = gt_pstyv
return_tab = gt_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Regards -
Question on maintaining the ordering of facet values - On facet selection
We have a scenario in our Project where in the facet values could be ordered via workbench
Below example considers the sorting of size facet through workbench
Scenario
Let’s say the facet values displayed for Size facet as below on page load (Ordered through workbench)
Small
Medium
Large
Now user selects say Medium . This will now be available in descriptor list . On merging both the descriptor list and refinement list. The order would be something as below
Medium (Selected)
Small
Large
Is it possible through some endeca api to get the facet values as per the initial order defined (Depicted below)
Small
Medium (Selected)
LargeWell, getting a complete list of organizations is not my problem. I have been able to do that easily enough. Then by using the IN condition, a user can input mutliple values. Ahh, but here is the problem. Many of the people who will use this report will NOT have an understanding of the organization structure. If they are picking at a high level (say at a region level), they will not know all of the names of the child organizations below that level (and could be taking tens of orgs to maybe a hundred organizations). That is why the user requirement is that if a user enters a parameter value of 'B', that means the program is smart enough to figure out that what they really want are values 'B', 'E', 'F', 'M', 'Q', and 'Z' as their selection list. What you have suggested is what I have offered as a potential solution, and is how I have currently set up the workbook. Which may be as close as we can get. But the ideal solution would be to give the users what they have stated in their requirements document - that way the report users don't have to know/understand the hierarchy and where all the organizations fit in the hierarchy. Make sense what I have said here? Would be nice to have the cascading parameters to handle this, but right now the database is not set up to be able to do cascading parameters. And the structure is potentially changeable at any time (so might add a new level), which no doubt is why Oracle set up the structure hierarchy as it did.
John Dickey -
Get all values from multi select in a servlet
Hello,
I have a multi <select> element in a HTML form and I need to retrieve the values of ALL selected options of this <select> element in a servlet.
HTML code snippet
<select name="elName" id="elName" multiple="multiple">
Servlet code snippet
response.setContentType("text/html");
PrintWriter out = null;
out = response.getWriter();
String output = "";
String[] str = request.getParameterValues("elName");
for(String s : str) {
output += s + ":";
output = output.substring(0, output.length()-1); // cut off last deliminator
out.println(output);But even when selecting multiple options, the returned text only ever contains the value of the first selected option in the <select>
What am I doing wrong? I'm fairly new to servlets
Edited by: Irish_Fred on Feb 4, 2010 12:43 PM
Edited by: Irish_Fred on Feb 4, 2010 12:44 PM
Edited by: Irish_Fred on Feb 4, 2010 2:14 PM
Edited by: Irish_Fred on Feb 4, 2010 2:26 PM
Edited by: Irish_Fred on Feb 4, 2010 2:26 PM
Edited by: Irish_Fred on Feb 4, 2010 2:32 PMI am using AJAX.
I will show you how I'm submitting the <select> values by showing you the flow of code:
This is the HTML code for the <select> tag and the button that sends the form data:
<form name="formMain" id="formMain" method="POST">
<input type="button" id="addOpts" name="addOpts" value="Add Options" style="width:auto; visibility:hidden" onClick="jsObj.addOptions('servletName', document.getElementById('elName'))">
<br>
<select name="elName" id="elName" multiple="multiple" size="1" onChange="jsObj.checkSelected()">
<option value="0"> - - - - - - - - - - - - - - - - </option>
</select>
</form>Note that the "visibility:hidden" part of the button style is set to "visible" when at least one option is selected
Note that "jsObj" relates to a java script object that has been created when the web app starts ( The .js file is included in the .jsp <head> tag )
The following code is taken from the file: "jsObj.js"
jsObj = new jsObj();
function jsObj() {
//=================================================
this.addOptions = function(url, elName) {
var theForm = document.getElementById('formMain');
if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else { // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
url += this.buildQueryString(theForm.name);
xmlhttp.open("POST",url,true);
xmlhttp.send(null);
xmlhttp.onreadystatechange=function() {
if(xmlhttp.readyState==4) { // 4 = The request is complete
alert(xmlhttp.responseText);
//=================================================
this.buildQueryString = function(formName) {
var theForm = document.forms[formName];
var qs = '';
for (var i=0; i<theForm.elements.length; i++) {
if (theForm.elements.name!='') {
qs+=(qs=='')? '?' : '&';
qs+=theForm.elements[i].name+'='+escape(theForm.elements[i].value);
return qs;
//=================================================
}And this is a code snippet from the "servletName" servlet:public synchronized void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,IOException {
PrintWriter out = null;
try {
response.setContentType("text/html");
out = response.getWriter();
String output = "";
String[] values = request.getParameterValues("elName");
for(String s : values) {
output += s + ":";
output = output.substring(0, output.length()-1); // cut off last delimitor
out.println(output);
} catch (Exception e) {
}So anyway, everthing compiles / works, except for the fact that I'm only getting back the first selected <option> in the 'elName' <select> tag whenever I select multiple options
Edited by: Irish_Fred on Feb 7, 2010 10:53 AM -
Set Default Value of Multi-select list item
I have a multi-select list item I want to default the value of to '%' (which is really '%null%') and have it selected. I tried setting default value of item, but it doesn't take '%null%'. I also tried a computation with a static of
:P507_ITEM := '%null%'; How do you get the default value set and selected?Hi
Shijesh is right, you need to change your null return value and use that return value as your default. Try and use something of the same datatype as your real return values if you plan to use '%' to display all as it will make your queries simpler. eg.
Company A returns 1
Company B return 2
% returns 0
Then your query would be...
SELECT ...
FROM ...
WHERE company_id = DECODE(:P_COMPANY,1,1,2,2,0,company_id)
Hope this makes sense.
Cheers
Ben -
I am creating a browser based InfoPath 2010 form Calendar Filtering
using SharePoint 2010 Calendar List (All Events) and InfoPath 2010. This form has data connection to the Calendar list. Goal is to
compare Calendar Events from Current Year to Previous Year. I have 2 columns called - Previous Year and Current Year. I have 2 drop-down controls in each columns called
Select Year and Select Week. I also have common drop down called
Select Category which holds category of the events such as weather, power outages and so on. I wish to display specific events on specific date and specific week on both columns.
I am able to filter the list based upon Year and Week
on both these columns by applying rules in the InfoPath 2010 form. The real issue is that I want to apply category filter on the search result of
Year and Week. Or it needs to show all the values if I
select Category value as All. So I wish to apply filter on Search results using Category drop-down list selection.
Hope I could explain this better but I tried to do the best here. Any suggestions, hint, or pointers
Thanks
Snehal H Rana
Thanks Snehal H.Rana SharePoint ConsultantI am creating a browser based InfoPath 2010 form Calendar Filtering
using SharePoint 2010 Calendar List (All Events) and InfoPath 2010. This form has data connection to the Calendar list. Goal is to
compare Calendar Events from Current Year to Previous Year. I have 2 columns called - Previous Year and Current Year. I have 2 drop-down controls in each columns called
Select Year and Select Week. I also have common drop down called
Select Category which holds category of the events such as weather, power outages and so on. I wish to display specific events on specific date and specific week on both columns.
I am able to filter the list based upon Year and Week
on both these columns by applying rules in the InfoPath 2010 form. The real issue is that I want to apply category filter on the search result of
Year and Week. Or it needs to show all the values if I
select Category value as All. So I wish to apply filter on Search results using Category drop-down list selection.
Hope I could explain this better but I tried to do the best here. Any suggestions, hint, or pointers
Thanks
Snehal H Rana
Thanks Snehal H.Rana SharePoint Consultant -
How to get all the values in the Select-option.
Hi,
I got the select-option field so_week, for eg. If I give 200923 to 200926 (year and week) in the selection screen and then I need to pass this value (200923) to the FM 'ZWEEK_GET_FIRST_DAY' to get the first day of the week.
My question is how can i get all the values from the select option, (i.e) i need to get 200923, 200924,200925, 200926.
Regards,
Anbu.Hello,
I will prefer Max's solution. But just for the sake of this req.
i need to get 200923, 200924,200925, 200926
i am proposing my soln:
DATA: V_WEEK TYPE RSCALWEEK.
SELECT-OPTIONS: S_WEEK FOR V_WEEK NO-EXTENSION OBLIGATORY.
AT SELECTION-SCREEN.
DATA:
V_COUNT TYPE I,
V_ADD TYPE I,
RT_WEEK TYPE RANGE OF RSCALWEEK,
RS_WEEK LIKE LINE OF RT_WEEK.
V_COUNT = ( S_WEEK-HIGH - S_WEEK-LOW ) + 1.
DO V_COUNT TIMES.
RS_WEEK-SIGN = 'I'.
RS_WEEK-OPTION = 'EQ'.
RS_WEEK-LOW = S_WEEK-LOW + V_ADD.
APPEND RS_WEEK TO RT_WEEK. "RT_WEEK--> Will contain the week values
CLEAR RS_WEEK.
V_ADD = V_ADD + 1.
ENDDO.
@Max: I was stupid enough not to think of your solution. Need to leave office
Cheers,
Suhas -
How to get the values from html:select? tag..?
i tried with this, but its not working...
<html:select styleClass="text" name="querydefs" property="shortcut"
onchange="retrieveOptions()" styleId="firstBox" indexed="true">
<html:options collection="advanced.choices" property="shortcut" labelProperty="label" />
</html:select>
<td align="left" class="rowcolor1">
<script language="javascript" type="text/javascript">
function retrieveOptions(){
var sel = document.querydefs.options;
var selectedOption = sel[sel.selectedIndex].value;
document.write(selectedOption);
</script><td align="left" class="rowcolor1">
<script language="javascript" type="text/javascript">
function retrieveOptions(){
var sel = document.querydefs.options;
var selectedOption = sel[sel.selectedIndex].value;
document.write(selectedOption);
</script>This java script is not working at all..its not printing anything in document.write();
This is code..
<td class="rowcolor1" width="20%">
<html:select styleClass="text" name="querydefs" property="shortcut"
onchange="retrieveSecondOptions()" styleId="firstBox"
indexed="true">
<html:options collection="advanced.choices" property="shortcut"
labelProperty="label" />
</html:select>i tried with this also. but no use..i'm not the getting the seleced option...
function retrieveOptions(){
firstBox = document.getElementById('firstBox');
if(firstBox.selectedIndex==0){
return;
selectedOption = firstBox.options[firstBox.selectedIndex].value;
}actually , how to get the values from <html:select> ...?
my idea is to know which value is selected from the combo box(<html:select> ) if that value is equal some string i have enable a hyperlink to open a popup window -
How to display the sort value in the selection screen in the report title
Dear All,
How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
Good day,
Thanks and regards
Arun SHi Arun,
Try this.
1, Set one dynamic parameter,
2, Drag and drop that parameter into your report title.
3, Pass the value(sort value) dynamically from your application,
4, Cheers..
Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then set the data source from CR designer. and darg and drop that data column into the report.
Hope this will work,
Regards,
Salah
Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM -
How to Refer the Selected value in a Select List
I have a page item which is a select list. I have a button in my region which when clicked will call a process. This process takes the current value of my page item as a parameter. However, when I select a value from the Select list and click on the button, the page item is still submitting the earlier value, it is not getting updated with the value I selected in the select list. Can someone tell me how I can get the page item value to be updated with the value I selected from the choice list? I tried calling a javascript function from the element attribute of this select list onchange="javascript:setValue(this);") and was trying to set the value of another hidden page item with the value of this select list but then the function is not getting called as well. My function code is something like
function setValue(pThis)
for (var i = 0; i < pThis.options.length; i++) {
if (pThis.options[ i ].selected){
result= pThis.options;
html_GetElement('P2_HIDDEN').value = result;
P2_HIDDEN is my hidden page item970829 wrote:
I have a page item which is a select list. I have a button in my region which when clicked will call a process. This process takes the current value of my page item as a parameter. However, when I select a value from the Select list and click on the button, the page item is still submitting the earlier value, it is not getting updated with the value I selected in the select list.
How do you know this? Have you used Debug mode to track what is happening when the button is pressed? This will show any changes to item values in session state during page submit and page show processing.
Can someone tell me how I can get the page item value to be updated with the value I selected from the choice list?
This should happen automatically with a select list item, if the button is correctly defined to perform a page submit. It will not happen if the button performs a redirect. What action is defined to occur when the button is pressed?
I tried calling a javascript function from the element attribute of this select list onchange="javascript:setValue(this);") and was trying to set the value of another hidden page item with the value of this select list but then the function is not getting called as well. My function code is something like
function setValue(pThis)
for (var i = 0; i < pThis.options.length; i++) {
if (pThis.options[ i ].selected){
result= pThis.options;
html_GetElement('P2_HIDDEN').value = result;
P2_HIDDEN is my hidden page item
As detailed above, this should be completely unnecessary, however as an aside, html_GetElement is a very out of date method of accessing an item. What version of APEX are you using? (Always specify which version you're using when you ask a question, to allow us to determine the most appropriate solution to the problem.)
Maybe you are looking for
-
Flex pitch (Time) needs midi track import function
Flex pitch (Time) needs midi track import function
-
I would like to know someone configured CVS in NWDS is there any document or steps to use CVS reprository through NWDS. Regards, RK
-
Notes Table in cProjects 4.0
Hi Has anybody aware of how notes (which are available for all objects like Project definition / task/phase) are stored in cProjects 4.0 Iam not refering to SAP Notes In my BW requirement, i would like to take the notes for project definition Can you
-
I need add a FS in a field in marketing docs, for example invoice. When the field INV1.UseBaseUn = ¨No¨ then show the result in OITM.SalUnitMsr else OITM.SalPackMsr This in X field into lines. I try with: SELECT CASE WHEN a.usebaseun = 'No' THEN OITM
-
CS6: Object Find/Change-Stroke weight?
Hi all, First time using the find/change Object query in CS6. I'd like to search for and decrease a specific stroke weight on all frames in my document (in this case they are all graphic frames, but I'm unable to get it to work) I've tried searching