Parameter to dropdown
Hi there,
I'm trying to pass a parameter from dropdown1 to dropdown2 and further from dropdown2 to dropdown3 and I'm using the auto-submit under first dropdown. Every dropdown has a different datasource.
So the first passing works fine. coding under public page1:
try {
settableRowSet1.execute();
settableRowSet1.next();
} catch (Exception ex) {
throw new FacesException(ex);
} // end try catch
under the dropdown1:
public void dropdown1_processValueChange(ValueChangeEvent vce) {
try {
attributetableRowSet.setObject(1, dropdown1.getValue());
attributetableRowSet.execute();
} catch (Exception e) {
log("person change exception", e);
error("Exception changing person id: " + e);
} // end try catch
The "attributetableRowSet" is the source under the dropdown2. Ok until here everythink is fine.
But when I now try to pass another parameter from dropdown2 to dropdown3 there occurs a problem.
the coding under dropdown2 is:
public void dropdown2_processValueChange(ValueChangeEvent vce) {
try {
z_dropbase_1RowSet.setObject (1,dropdown2.getValue());
z_dropbase_1RowSet.execute();
} catch (Exception e) {
log("person change exception", e);
error("Exception changing person id: " + e);
} // end try catch
z_dropbase_1Rowset is the data-source under dropdown3
When I try to execute the change on Auto-submit the error 505 occurs
Who can help me. Who has an idea how to handle this problem
Thanks in advance
arpschi
Hi
I am doing the same and getting the errors when I submit the dropdown2. Will try for any other solution.
-Srinivas
Similar Messages
-
How to show filtered parameter in dropdown form in crm 2013
Hi,
I want to create a report in crm 2013. When I report is run then filtered parameter fill record from database in dropdown form and when I select record from dropdown then generate report of selected record. Please tell me how to show record in filtered parameter
from database within crm. In below image paramter is text field. How to auto fill filtered parameter from database.Hi Aamir,
Check if the below link helps!!
https://social.microsoft.com/Forums/en-US/ad8a3bc2-dbec-4597-adfd-8bd6c34f5e9a/drop-down-parameter-in-crm-2011-custom-report?forum=crm
Thanks,
Prasad
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question. -
Crystal reports with static list parameter : blank dropdown menu
Hi,
I've created a very simple report displaying customer order (ordr and rdr1)
it has :
parameter DocKey@ used in the selection formula DocKey@=DocEntry
It also has another parameter : static list with 2 entries
- 1 : normal presentation
- 2 : proforma presentation
The user has to choose between option 1 or 2 before displaying the report
Using the report in the Crystal application is OK : i can choose between option 1 and 2 in a dropdown list
If i use the Addin Menu // preview in SAP : i can choose in the dropdown menu
If i import my report in SAP and i try to preview it : the dropdown menu is empty and i cannot select anything
Anyone has the same problem ?
I use SAp SBO 8.8 pl 00 hotfix 14
I 've the same report worrking on a sap sbo 8.8 sp 00 pl 11
thanks for your helpHi and thanks for your help
I've tried with and without default values : no changes
I've tested with the last pl (18) and it works fine : no blank dropdown menu , i can select a value for my static parameter !
Edited by: Antoine TESSIER on Jan 6, 2011 11:47 AM -
Can I make the parameter supports multiple selection and editable at the same time?
Hi,
I am building my report using SQL Server Report builder 3.0. All the parameters are added to the report
by the builder. When the user access the report by browser, he can change the parameter value and click "view report" button to load the report from the database.
For one of the parameter, I want to provide user the ability to select frequently used value as multiple
selection, and meanwhile let them able to edit the value if the preloaded selection doesn't contain what he wants.
Is it possible to archive this goal using report builder?
Thanks!You cant have this functionality using standard report viewer. An approximate work around can be implemented as follows.
Have two parameters one based on your current parameter values (dropdown) and another one without any available values set and default set to NULL (Set Allow Null value property and pass Null as default value). This parameter will appear as disabled textbox
with NULL checkbox checked.
Now in your code behind which gives you first parameter's values Add one more value say <None Of Values> and set value as some default value (-1 if int or just a random string value).
Now in the value for second parameter set a expression like below
=IIF(Parameters!FirstParam.Value ="<Select None>","",Nothing)
This will make sure second parameter gets activated when you select option <none> from first. Then you can type the value you want in it
In query behind just make filter like below
WHERE field = CASE WHEN @Param1 <> '<None>' THEN @Param1 ELSE @Param2 END
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Ssrs 2008 'select all' option to be selected for a parameter
In a new ssrs 2008 report, the problem is all reports are not selected from the parameter called 'report' when the report runs automatically. When the report executes, there is nothing displayed in the parameter selection dropdown box. The user
has to click the down arrow to select which reports they want to execute.
Here is the siutation for the ssrs 2008 report:
In a new SSRS 2008 report, I want to be able to allow the user to select which report they would like to see generated by selecting the report name from a dropdown list. This is a multi-valued parameter and the parameter name is called 'report'. I
would like the default value to be for all 5 reports to be selected.
All 5 reports will be on the 'main' report. There will be no subreports. Each report will have its own unique matrix and the matrix will be visibile based upon what is selected in the parameter called 'report'.
My question is how can I make the 'default' value for the parameter called 'report' have all the reports selected?
Normally to get all multivalued parameter values selected you create a dataset and run a query against a table. However in this case, there is no table to query. The user just selects what report(s) they want executed.
Here is the code that is used:
1.Right-click the multiple parameter ‘repot’ to open the Properties dialog box.
2.Specify the values below in the Available values:
Label: report1
Value: report1
Label: report2
Value: report2
Label: report3
Value: report3
Label: report4
Value: report4
Label: report5
Value: report5
3.Specify the values below as the Default Values:
report1 report2 report3 report4 report5
4.Right-click the ‘report1’ to open the Tablix Properties dialog box.
5.Select Visibility in the left pane, type the expression below in the “Show or hide based on an expression” textbox:
=iif(InStr(join(Parameters!report.Value,","),"report1")>0,false,true)
6.Use the expressions below to control the visibility of the ‘report2’, ‘report3’, ‘report4’, ’report5’:
=iif(InStr(join(Parameters!report.Value,","),"report2")>0,false,true)
=iif(InStr(join(Parameters!report.Value,","),"report3")>0,false,true)
=iif(InStr(join(Parameters!report.Value,","),"report4")>0,false,true)
=iif(InStr(join(Parameters!report.Value,","),"report5")>0,false,true)
Thus can you tell me how all values from the 'report' parameter can be selected automatically when the ssrs report is executed?Pass default value as below and see
=Split("Report1,Report2,Report3,Report4,Report5",",")
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Regarding Creation of specific Application scenario..
Hii All,
I am having a requirement where i have to create a application in which in FIRST view i m having a dropdown menu,from where i have select one parameter from dropdown menu, say for example there is list of countries in a drop down menu.when i select say India i will get a tabular data say "<b>name of state</b> ","<b>population</b>","<b>male:female ratio</b>" and etc.
and i should get this tabular data corresponding to default country defined.When i will change the country from dropdown menu,I will get all detail(tabular data) corresponding to that country.
and when i click on any item specified in "<b>name of state</b>" i.e one of the column of tabular data,it should display another table(some x, y , z colums) corresponding to that state .
Can anyone help me out on how many bapiwrappers needs to be used for the above application and how will be the structure.
Do i need to use a create, change bapiwrapper for dropdown menu or what??
Thanks in advance
Devendra Kumar Phate.hello deven,
are you creating an application for MI client or an ABAP
application?
if you already have your data structure available in ABAP,
i don't think that you should re-create one that will cater
to the UI on your client application. if you are using the
MI Tomcat runtime, you can make use of the web control events
like onChange, to retrieve the corresponding data from
data repository using the selected value. you can make use
of XMLHttpRequest and DOM manipulation thru JavaScript;
in this case, there no need for the whole page to be
reloaded; only the delta data would be exchanged. you have
however to create the corresponding handlers in your MI
app that will return these XML elements (e.g. your state
details) that will be inserted into your browser's DOM tree.
hope this gives you an idea.
regards
jo -
CRM 7.0 WebUI: Second field searchhelp based on first field value
Hi,
I created an all-custom search/result component, all other things are working correctly, except one - on result list, when in change mode, the second field should have a dropdown list which is filled based on the first field value, user can pick one. I searched this forum and SAP docs, so far I haven't found a solution. Has anyone done this? or have you seen any SAP standard screens having this kind of function?
Thanks.
Steven
Edited by: Steven Lee on Apr 23, 2010 11:11 AM
Edited by: Steven Lee on Apr 23, 2010 11:11 AMHi Steven,
1. Declare a Global Drop Down table as an attribute in your implementation class.
2. Create an Event when you select a drop down value for the first field.
3. In this event handler, build the global drop down table.
4. In the get_v method of your second field, fill the returning parameter of dropdown values from the values in your global dropdown table you just filled in the Event Handler method.
I have used this successfully. I hope it works for you too.
Please let me know if you have questions.
Thanks
Vishal -
hello friends ..
need some help .
we are excuting one query where input is on Reporting week .
When we are manully giving this input for this selection parameter , query is working fine .
but when we try to give the selection parameter from dropdown F4 list , it is throwing below error.
BW system raised exception : System_FAILURE
Error qroup -
RFC_ERROR_SYSTEM_FAILURE
PLease advice .
RegardsHi Akshay,
The error is corrected in SAP NetWeaver 2004s BI Support Package 7 ABAP.
Check out with the OSS notes 921661.
Hope this helps. -
SSRS: "View Report" button doesn't refresh parameter dropdowns
So many people have asked similar questions about why SSRS report parameters are not refreshed when "View Report" button is clicked and MSDN simply comes back with an answer "work as designed". It's a bad design, period.
Here is my suggestion to Microsoft team who works on SSRS: either add a "Refresh Parameters" button at the end of the last parameter dropdown so users can force reload the parameter list, or add "Reload
Report" after "View Report" button (which should be re-named "Refresh Report" more precisely) to allow user reload the entire report (as if it was Ctrl-F5 is pressed in I.E.), not just to refresh the main report dataset as "Review
Report" button is currently doing.Hi Steve Liu,
Thanks for your suggestion and you can also submit this suggestion at
https://connect.microsoft.com/SQLServer/
If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the level
of service provided.
Thanks for your understanding
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Hello Everyone,
I would like to create SSRS single select dropdown list parameter (it is using MDX query in dataset) with "None" option at the top. Note: this parameter is dependent parameter and getting filtered based on the selection of another parameter.
How can I add hard-coded "None" text at the top of the parameter values? Can Union function help me to add this hard-coded value? The purpose is, when user selects None from the dropdown ignore the condition of the parameter from MDX query else
use the selected value in query condition.
Thanks, Ankit Shah
Inkey Solutions, India.
Microsoft Certified Business Management Solutions Professionals
http://www.inkeysolutions.com/MicrosoftDynamicsCRM.htmlHi Ankit,
In your scenario, you can achieve your requirement in report level other than in query. Add a Filter like:
Expression: =IIF(Parameters!Name.Value="None",1,Fields!Name.Value)
Operator:=
Value: =IIF(Parameters!Name.Value="None",1,Parameters!Name.Value)
In this case, report will ignore this parameter, and show all the records on the report when selecting “None” value. I have tested it on my local environment, the screenshots below are for you reference.
Reference:
Add a Filter to a Dataset (Report Builder and SSRS)
Regards,
Charlie Liao
TechNet Community Support -
How to change the width of dropdown parameter's in BI Publisher
Hi,
Can you please tell me how to change the width of dropdown parameter's in BI PublisherKirk,
In the <rw:graph> tag, just add the standard HTML properties of width="xxx" and height="xxx" to control the width and height of the image. BTW, the graph tag is in the on-line help, although not in the index. You can find it by doing a search for "rw:graph".
regards,
Stewart -
Showing a parameter on the prompt where user can pick a value drom dropdown
Hi All,
I have a requirement to display a parameter in the applet prompt that shows user a LONG picklist of values to choose and then submit the BIP report request under Siebel.
I now the syntax to declare a parameter with few list of values but how to manage if the list is too long.
e.g. a list of Countries that are in the system today.
Please give me some suggestion as to how we can handle a long list of values when need to display it against a parameter.
Thanks,
RaghuIt must be a generic requirement to display a dropdown in the prompt applet but what if the list of values expected in the drop down are too long. Can we still accommodate it by defining the parameter string in the RTF.?
Please suggest some solution here.
Regards,
Raghu -
Populate Parameter Dropdown with Dynamic Description
Hello all,
I am programming a report in Crystal Reports 2008 to run on Business Objects XI R3. I have a report that has a dynamic Parameter Field that is populated from the database when the report is opened. The value of this is a numeric key I have placed in the database tables and the description is the text displayed to the user. I use the u201CPrompt with Description Onlyu201D so the user sees only the text. When the report is run the numeric key is used for a more efficient query. However this is CR 2008 so the parameters show up un the report when it is published to InfoView. This is done so the user can use the parameter screen to either make a more finite report or go to a different type for this field (ie Water Sports, Mountain Sports, Land Sports).
The problem I am having is I need to keep the u201CValueu201D field the KeyID so the dynamic parameter remains numeric. The drop down in the parameters field is populated from the u201CValueu201D field not the u201CDescriptionu201D field. This means that after the user runs the report the parameter is populated with KeyIDs instead of the user friendly descriptions I created. Is there a way to tell the Parameter Dropdowns to be populated from the u201CDescriptionu201D field instead of the u201CValueu201D field?
ThanksHello Mohamed,
Thanks for your reply, but I think I may not have made my point.
I have the u2018Valueu2019 field filled with a number to fetch the data. I need the u2018Descriptionu2019 field to populate the drop down windows in the prompt when this is published for InfoView.
My question is there a way to make Crystal Reports populate the drop downs with the description instead of the default?
Please let me know if this clarifies my needs.
Thanks
Scott -
Conditional dropdown list in parameter form
I have a report with a parameter form containing a parameter called "person_name". As of now, it is a dropdown list which is built using a select query over my "people" table and displays all the people in the table. I need to add a checkbox on the parameter page which says "Show only current people" and when this checkbox is checked, the "person_name" dropdown list should be limited to only current people. I don't know how to add a checkbox to the parameter form, and how to implement this conditional if-then-else on the dropdown list.
My current query for the dropdown list is:
SELECT 1 co11,' ALL - ALL' col2
FROM dual
UNION
SELECT person_seq_num col1, last_name||','||first_name col2
FROM people
ORDER BY 2 ascWhen the checkbox is checked, my query needs to be:
SELECT 1 co11,' ALL - ALL' col2
FROM dual
UNION
SELECT person_seq_num col1, last_name||','||first_name col2
FROM people
WHERE person_current_flag='Y'
ORDER BY 2 ascCan anyone help with this problem? Thanks in advance.Hi,
you can use 2 parameters with LOVs. The first one for All People/Current People, the second for your people-parameter. How to get them dependent is described in Note 185951.1 SAMPLE - How to create a parameter LOV based on another parameter value?
Regards
Rainer -
Passing parameter to next dropdown
My question is..is it possible to passing parameter to second drop down .if i select one value(ex : INDIA) first dropdown that value shd go to second drop down qry then matching records only shd display in second drop down.
i ll write query for second drop down
select state from state where country = -
>(INDIA)
issues:-
if i refresh the report first showing one text box then i entered the country values after that shwing country drop down and
state dropdown according that values.. i need to show only two dropdown box and through passing parameter..Sounds like performance issue (number of records) causes the usual cascading parameter to be too slow for you. Check you didn't forget to join the tables used by the dynamic parameters.
If that was not the issue, you can create your own viewer application and take care of the parameters using your own GUI.
Alternatively, one of the 3rd-party viewers (see list at http://www.kenhamady.com/bookmarks.html) provides special dynamic and cascading parameters that would solve this issue for you. Each parameter can use another crystal report to provide the list of values, and each of these reports can have it's own static or dynamic parameter (providing the cascading effect).
Maybe you are looking for
-
Quicktime 7 does not seem to work properly on my system
I have juste tried installing the latest Quicktime version on my system (Asus G71Gx, CPU Intel Core2 Quad Q9000 @2GHz, RAM 6 GB, Windows Vista Ultimate 64 bits with SP2), but it never worked properly: + I am unable to view Quicktime content on web si
-
Accessing Party EDI details through code in 2013
Hi, We are looking at options of accessing the Party EDI details from orchestration in BTS 2013 R2. But looks like the property X12Receiver belonging to the partner object Microsoft.BizTalk.Edi.PartnerAgreementManager.Partner has been deprecated. Al
-
small crack on my 4s just the glass broke not LCD screen how much would it cost me?
-
Help! iCloud/iCal strange error message
Help! My iCloud calendar is giving this error: The server at p04-caldav.icloud.com is currently unable to handle the connection for account "iCloud" due to a temporary overloading or maintenance of the server. Now things that I'm putting in my deskto
-
Flash Professional CS5.5 crashes while publishing for iOS
Greetings, I'm having the same problem as is detailed in the forum post below from March 8th: http://forums.adobe.com/thread/972499 The problem is that Flash Professional CS5.5 crashes every time I try to publish my 'Hello World' project for iOS. The