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
Similar Messages
-
Capture item by Dropdown list in Interactive Form
Hi experts,
I have a problem. I hope to get your suggestion ready.
I created a WebDynpro Abap that contains within it an Adobe Interactive Forms.
With the method wddoinit by the component controller I set all values of the fields into interactive forms correctly.
Inside the form there is a dropdown list which is bind to a table, the list of this dropdown list is filled with properly values of the table which is bind.
When I select a value from the list dropdown I can not capture the selected item by the table corresponding of the data.
Carryover below the code I use to recover (unsuccessfully) the values selected by list dropdown:
DATA:
node_adobe_data TYPE REF TO if_wd_context_node,
node_it0002 TYPE REF TO if_wd_context_node,
node_stato_civile TYPE REF TO if_wd_context_node,
elem_stato_civile TYPE REF TO if_wd_context_element,
stru_stato_civile TYPE wd_this->element_stato_civile.
navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
node_adobe_data = wd_context->get_child_node( name = wd_this->wdctx_adobe_data ).
navigate from <ADOBE_DATA> to <IT0002> via lead selection
node_it0002 = node_adobe_data->get_child_node( name = wd_this->wdctx_it0002 ).
navigate from <IT0002> to <STATO_CIVILE> via lead selection
node_stato_civile = node_it0002->get_child_node( name = wd_this->wdctx_stato_civile ).
get element via lead selection
elem_stato_civile = node_stato_civile->get_lead_selection( ).
get single attribute
elem_stato_civile->get_static_attributes(
IMPORTING
static_attributes = stru_stato_civile ).
The problem persist also if I use the method GET_LEAD_SELECTION_INDEX.
The return value always is the first item and not what I selected.
I wait trusting your suggestions to solve the problem.
Regards.Hi Davide,
Maybe you can try to keep your own Index parameter (Integer) to keep track of the selected index.
Then use that parameter to select data from your node:
node_stato_civile->get_static_attributes(
exporting
index = wd_this->lv_index
importing
static_attributes = stru_stato_civile
Hope this helps.
Regards,
Roelof Albers -
Only one value shown in dropdown list of ISR form using pure ABAP
Hi all,
We are trying to create a Adobe form using ISR library controls. We want to populate a dropdown list with all the values from the table T001 dynamically. We have implemented the BAdi QISR1 & populated the ADDITIONAL_DATA. The BAdi is executing & populating the value correctly.
In the we have created a control using the ISR Dropdown & mapped to the Context BUKRS from the interface created. When we execute the form, only the first value is getting filled.
Can anyone help us in this ??? Its very urgent....
Thanx,
Sivagami.RHi,
I am just giving the solution what I have done in my project. Hope this will help:
DATA: BEGIN OF it_ccode OCCURS 0,
bukrs TYPE t001-bukrs,
butxt TYPE t001-butxt,
END OF it_ccode.
DATA: wa_ccode like line of it_ccode.
Select Company Code (bukrs) and Text (butxt) from table T001.
SELECT bukrs butxt
from t001
into table it_ccode.
LOOP AT it_t001.
ADD 1 TO lv_index.
ls_additional_data-fieldindex = lv_index.
ls_additional_data-fieldname = 'FIELDNAME_KEY'.
ls_additional_data-fieldvalue = it_t001-bukrs.
APPEND ls_additional_data TO additional_data.
ls_additional_data-fieldname = 'FIELDNAME_LABEL'.
CONCATENATE it_t001-bukrs '-' it_t001-butxt
INTO ls_additional_data-fieldvalue.
APPEND ls_additional_data TO additional_data.
ENDLOOP.
And the form my fields binding is:
$record.FIELDNAME.DATA[*].FIELD
Try this out. Hope this will help.
Regards,
Amit -
Fill Dropdown list in Adobe forms
Hi friends,
I am using SFP transaction.I have two requirements.
1. How to fill dropdown list without java script or formcalc.
2. I have 2 dropdowns .If i select first dropdown,it will be populate another dropdown based on first drop down selection in the same form.
Can you please help me?
Thanks.
HansWhich technology are you using Web Dynpro Java / ABAP? In both cases you can do the stuff in your backend i.e. the BAPI which you may be calling to dipslay just the material numbers, ask the ABAPer to change it so that it returns "Mat No - Mat Desc" and not just Material No for e.g. 01000000001 - Material 1, 010000002 - Material 2 and so on.
Bind it to the drop-down in your Adobe form and it should display the description in your Interactive form drop-down list only. So you do not need an additional field and trigger seperate events.
Chintan -
Hi All,
I'm New to Adobe forms, I got a requirement on Dropdown list.
In Layout Dropdown List contains Material Numbers . And placed one more Inputfield or text field next to the Dropdown list.
Once Material is selected from the dropdown list, auomtically material desc of it should displayed in Inputfield.
Could any please help me out in this.
Thanks,
Archana.Which technology are you using Web Dynpro Java / ABAP? In both cases you can do the stuff in your backend i.e. the BAPI which you may be calling to dipslay just the material numbers, ask the ABAPer to change it so that it returns "Mat No - Mat Desc" and not just Material No for e.g. 01000000001 - Material 1, 010000002 - Material 2 and so on.
Bind it to the drop-down in your Adobe form and it should display the description in your Interactive form drop-down list only. So you do not need an additional field and trigger seperate events.
Chintan -
Closing a Enumerated DropDown List in Adobe form
I have an adobe form where we used Enumerated Drop down Lists for search helps. The problem is right now we dont have option to close the Enumerated DropDown List. It closes when we select a value or sometimes if we try "ESC" key. But we want to have a "Close"/"X" button like in normal search help.
Letme know if there is any solution or an Alternate way to close the Enumerated Drop Down List from Adobe Form by just hitting a close/X button. Each value help has over 500 values, so we cannot use normal dropdowns, letme know if any other suggestions.
Edited by: Phani Rajesh Mullapudi on Jun 21, 2010 8:14 PMHello Arafat,
I am using a drop down list in Adobe Interactive Form for Web Dynpro ABAP.
The form is of ZCI type layout and the form interface is of XML schema-based interface type and the XML schema source is set to "Generated".
I have included the following code in WDDOINIT method of the view:
data: handle1 type ref to if_wd_context_node,
begin of zstruct,
zktokd type kna1-ktokd,
end of zstruct,
zitab type table of zsttxecr.
handle1 = wd_context->get_child_node( name = 'DATA.NODE1' ).
select ktokd from kna1 into corresponding fields of zstruct.
append zstruct to zitab.
endselect.
handle1->bind_table( new_items = zitab ).
In the Adobe Form Designer, i have binded the node NODE1 to the enumerated drop down list from native web dynpro library. Still the drop down box is not getting populated.
Please let me know what is missing.
Thanks and Regards. -
How to fill dropdown list in Adobe form
Hi Experts,
I am new to adobe form.Please tell me ,how to fill drop down list in adobe form?
Thanks,
HansHello Arafat,
I am using a drop down list in Adobe Interactive Form for Web Dynpro ABAP.
The form is of ZCI type layout and the form interface is of XML schema-based interface type and the XML schema source is set to "Generated".
I have included the following code in WDDOINIT method of the view:
data: handle1 type ref to if_wd_context_node,
begin of zstruct,
zktokd type kna1-ktokd,
end of zstruct,
zitab type table of zsttxecr.
handle1 = wd_context->get_child_node( name = 'DATA.NODE1' ).
select ktokd from kna1 into corresponding fields of zstruct.
append zstruct to zitab.
endselect.
handle1->bind_table( new_items = zitab ).
In the Adobe Form Designer, i have binded the node NODE1 to the enumerated drop down list from native web dynpro library. Still the drop down box is not getting populated.
Please let me know what is missing.
Thanks and Regards. -
Dropdown list in interactive form
Hello All,
I want to get a drop down list in adobe interactive form. I did the following.
1. created a simple dictionary data type and populated it with values
2. created a context and bound it to the simple dictionary type.
3. when I drag the element to the pdf page, it shows it as a drop down list.
4. when I run the application also, the drop down list comes but the values are not populated. I am not able to use the dropdown also.
What should I be doing now to get a dropdownlist that works?
Regards,
ChanderHello Chander,
what you want to create is a drop down list populated by the Web Dynpro context values. When you use drag-and-drop it just creates a regular drop down list (where you need to specify the values in the Designer).
However if you select in your tools palette the Web Dynpro tab you will find special drop down lists. So here is what you do:
1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
Cheers
Matthias -
Dynamic dropdown list in adobe forms.
Hi All,
I need to have a dynamic drop down list in the adobe forms.The values for the drop down list are selected from a standard table at runtime.This is the online scenario.
I have been using Enumerated drop down list.How do i pass the value or bind the values to this element.
I have enable Dynamic binding in the Properties of designer. but i am not able to enter the values into the specify item values.(OBJECT-BINDING-SPECIFY ITEM VALUE).Actually in my case it is coming disable.
I have also set the preview format to "ACROBAT 8 (Dynamic) XML FORMAT" which is in the form properties.
please let me know if i am missing any step?
Thanks
GauravHello,
1) I am sure you didn´t search because I have answered this question many times around here. Next time seacrh first, ask later, please. That is how we do it here.
2) you must, in your options menu in LCD, allow yourself to use dynamic binding. Check the menus for the checkbox, that should help you get what you need.
Regards Otto -
SSRS report - A single selection dropdown list converted to text box
Hello everyone,
We created a single selection dropdown parameter (City parameter) on a report. The data in this parameter is populated using MDX query. Also, it is filtered based on selection of another single selection dropdown list (Country parameter) of a report.
The problem is when there is no cities for the selected country the dropdown list is gets converted to free type text box and user can insert city data in it. Why SSRS is not keeping it as empty dropdown list with no data?
Any help would be much appreciated.
Thanks, Ankit Shah
Inkey Solutions, India.
Microsoft Certified Business Management Solutions Professionals
http://www.inkeysolutions.com/MicrosoftDynamicsCRM.htmlHello Charlie,
We developed a fresh report only with two parameters but still the dropdown control gets converted to text box in our case. We have two single selection parameters, Location and Customers. Based on selected Location the customer
dropdown gets populated.
Location Parameter Query
WITH MEMBER [Measures].[ParameterCaption] AS [Location].[Location Name].CURRENTMEMBER.MEMBER_CAPTION MEMBER [Measures].[ParameterValue] AS [Location].[Location Name].CURRENTMEMBER.UNIQUENAME MEMBER
[Measures].[ParameterLevel] AS [Location].[Location Name].CURRENTMEMBER.LEVEL.ORDINAL
SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Location].[Location Name].ALLMEMBERS ON ROWS FROM [Model]
Customer Query
WITH MEMBER [Measures].[ParameterCaption] AS
[Customer].[Customer Name].CURRENTMEMBER.MEMBER_CAPTION
MEMBER [Measures].[ParameterValue] AS
[Customer].[Customer Name].CURRENTMEMBER.UNIQUENAME
MEMBER [Measures].[ParameterLevel] AS [Customer].[Customer Name].CURRENTMEMBER.LEVEL.ORDINAL
SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel],[Measures].[Amt]} ON COLUMNS,
nonempty([Customer].[Customer Name].ALLMEMBERS,[Measures].[Amt]) ON ROWS FROM ( SELECT ( STRTOSET(@LocationName, CONSTRAINED) ) ON COLUMNS FROM [Model])
Regarding parameter settings on General tab for both the above parameters we did not select any of the following values, all these checkboxes are empty:
Allow Blank Value ("") , Allow null value, Allow multiple values.
I think it has something related to [Measures].[Amt] that we used in customer parameter. We are now trying to take other two parameters where we would be not using the [Measures].[Amt] to filter the data. Will update you soon.
Thanks, Ankit Shah
Inkey Solutions, India.
Microsoft Certified Business Management Solutions Professionals
http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html -
Referencing the text in a Dropdown List
Hi,
I would like to know if it is possible to reference the text of the selected item of a Dropdown List. The scenario is as follows:
I have a dropdown list in a form which is used to select profit centres. The dropdown list's Entry List consists of the Profit Centre Code as the VALUE and the Profit Centre Description as the corresponding TEXT. I would like to reference the TEXT of the selected item in a formula for building a dynamic string that includes the Profit Centre Description plus other data, for informational display purposes in a Plain Text control. However, it seems that only the VALUE of the dropdown list can be referenced in a formula and not the TEXT.
Is this a limitation of Visual Composer?
Thanks,
Mustafa.Hi Basheer,
I'm not clear about your proposed solution. In the reference "#ID|ACA1EO|@DL_Division", "#ID|ACA1EO|" is the ID of the form which contains the Dropdown list and "DL_Division" is the name of the Dropdown list control itself. When referenced in this way, the VALUE of the selected item is always returned. However, I would like to determine the TEXT of the corresponding selected item and there doesn't appear to be a method to do this.
Can you provide more details for your proposed solution?
Thanks,
Mustafa. -
Populating dropdown list from an XML file
Hi!
I want to prepopulate a dropdown list in a form from an XML file.
Typically something like:
A
B
C
Is this the correct way to specify the list's values in XML?
How do I specify the binding property of my dropdown list, to put the values A, B and C into the dropdown list?
I am using Designer 7.0!
Thanks![email protected] wrote:
> Hi!
>
> I want to prepopulate a dropdown list in a form from an XML file.
> Typically something like:
>
>
> A
> B
> C
>
>
>
> Is this the correct way to specify the list's values in XML?
> How do I specify the binding property of my dropdown list, to put the values A, B and C into the dropdown list?
>
> I am using Designer 7.0!
>
> Thanks!
Liana,
You can't do this with Designer 7.0. If you upgrade to Designer 7.1,
you can bind dropdown list values to your xml data using the dynamic
property binding capabilities.
Hope this helps!
Justin -
Dropdown help on Interactive form in Web Dynpro ABAP.
Hi all,
we are creating an SAP Interactive forms for the Material Master Creation.
We want the value help to be displayed in dropdown boxes for various mandatory fields to be filled up by the user.
Please suggest how to do that??
These helps are there when we create a material master through Transaction mm01.Hi Sasidhar,
Could you please clarify.
I had taken a value node in the Context of the view for the field for which i have to display the value help.
I have also bound this value node to the dropdown list on the form by specifying it in the binding tab. Still i am not getting the help.
Do we have to write some code for that in the method tab of the view?? -
Multiple criteria search with 4 dropdown lists
I want to perform a multiple criteria search on a MySQL
database. Users should be able to use from 4 dropdown lists in a
form only one criterium, all 4 of them or 2 or 3.
Each used dropdown list gives a numeric variable: Fvar1 ...
Fvar4. The variables from the dropdown lists used should be matched
with numeric fields in the database: DBvar1...DBvar4
The numeric variables from the dropdown lists that are not
used, should be ignored.
Example: a user selects a value in dropdown list 2 and 3 and
does not use dropdown lists 1 and 4. Fvar1 and Fvar 4 should then
be ignored for the search, that has to be performed with Fvar2 and
Fvar3, who have to be matched with DBvar2 and DBvar3.
Anyone who can help me out with the WHERE statement in my SQL
query?
Your help will be greatly appreciated.
ErikErik61 wrote:
> I want to perform a multiple criteria search on a MySQL
database. Users should
> be able to use from 4 dropdown lists in a form only one
criterium, all 4 of
> them or 2 or 3.
Start by using the Advanced Recordset dialog box to create a
query that
looks for all four variables. Then switch to Code view and
start carving
up the code created by Dreamweaver.
The query will look something like this:
$query_getProducts = sprintf("SELECT product_name, price
FROM products
WHERE prod_type = %s AND colour = %s AND size = %s AND range
= %s
ORDER BY price ASC",
GetSQLValueString($var1_getProducts, "text"),
GetSQLValueString($var2_getProducts, "text"),
GetSQLValueString($var3_getProducts, "text"),
GetSQLValueString($var4_getProducts, "text"));
Change it like this:
$query_getProducts = "SELECT product_name, price
FROM products
WHERE ";
$where = false;
if (!empty($_GET['prod_type')) {
$query_getProducts .= sprintf("prod_type = %s ",
GetSQLValueString($var1_getProducts, "text"));
$where = true;
if (!empty($_GET['colour'])) {
if ($where) {
$query_getProducts .= 'AND ';
$query_getProducts .= sprintf('colour = %s ',
GetSQLValueString($var2_getProducts, "text"));
$where = true;
if (!empty($_GET['size'])) {
if ($where) {
$query_getProducts .= 'AND ';
$query_getProducts .= sprintf('size = %s ',
GetSQLValueString($var3_getProducts, "text"));
$where = true;
if (!empty($_GET['range'])) {
if ($where) {
$query_getProducts .= 'AND ';
$query_getProducts .= sprintf('range = %s',
GetSQLValueString($var4_getProducts, "text"));
That builds the query in stages using $where to decide
whether to add
"AND" in front of the second, third, and fourth variables.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Script : checkbox/dropdown list conditioning
Hi all,
How can I create conditions depending on what has been checked in the boxes or chosen in a dropdown list (ticking this checkbox leads to this or that further window, etc. like it would be possible for buttons in a script) ?
For example, for a answer with two different checkboxes : "blue" and "gren" :
- if "blue" selected, when clicking on "Next", display a dialogue box related to blue cars
- if "green" selected, when clicking on "Next", display a dialogue box related to green cars
- if "green" AND "blue" selcted, when clicking on "Next", FIRST display a dialogue box related to blue cars and THEN display a dialogue box related to green cars
Thanks in advance,
EliThe easiest method is to create all of the objects you might need and set their 'presence' property to 'hidden'. Then in JavaScript you can turn each object on (as per your own condition) by setting the proprerty to 'visible'. This will only work on the client if the form is rendered as a dynamic PDF form.
I've also heard of an advanced methodology that uses the 'proto' object to define the different objects that might be needed and then the 'use' property can be used to invoke the applicable objects as needed (see the Designer ES Scripting Reference for more info). Unfortunately I don't have any first-hand expertise on using this method.
Maybe you are looking for
-
Goods Issue error - batches not defined for delivery item
Hi, We are getting a Goods Issue error u201CThe batches are not defined for delivery item 000010u201D. We are only getting this error for a material that is being shipped against a particular third party sales scheduling agreement. We went live i
-
How can I import music into iTunes from another media. I have a library downloaded from a Sony Ericsson W715 into "Media Go" and I want to transfer to iTunes and then into my iPhone 4. Is this possible ? Chris <Email Edited by Host>
-
Customization Wizards and reader 8.1.2
Trying to install the update, I have customized the install but the remove previous version is greyed out, therefore can not select. When I run the install it does a repair. Does anyone know how to fix or the variable to set to force the uninstall of
-
hi all, i have a problem and search everwhere else here, so i think it is better to discuss it here also, i try to run debug mode in eclipse but not succeeded, i run the debug long ago but not know. i hknow this is not maybe right place but i think i
-
"Must-have" Presets for Aperture 3
Looking for suggestions/recommendations for "must have" presets. I have a couple from the old MacCreate site (B&W and Color Film presets). Looking for suggestions/recommendations that rival those available for LR4.