Dropdown box
hi frnd's.
whether we can add a value to a dropdown box at run time.
I had done by selecting from a dropdownbox with available datas.
Hi Suganya,
This topic has already been discussed in the forum.
Anyway, the solution is like this.
In selection screens , the code is as follows:
REPORT ZSHAIL_DROP_NEW .
TYPE-POOLS: VRM.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN OUTPUT.
NAME = 'PS_PARM'.
VALUE-KEY = '1'.
VALUE-TEXT = 'LINE 1'.
APPEND VALUE TO LIST. VALUE-KEY = '2'.
VALUE-TEXT = 'LINE 2'.
APPEND VALUE TO LIST.
CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
START-OF-SELECTION.
WRITE: / 'PARAMETER:', PS_PARM.
In this example two values will be entered in to the listbox at runtime.
Hope ur query is answered.
Regards,
Sylendra.
Similar Messages
-
Dropdown box - which event handler to use ?
I am having trouble with setting the readonly property (via Javascript) of the adjacent textbox to my dropdown box when the index value is a certain number.
I tried using MouseUp, MouseDown, and even OnBlur....but the readonly does not seem to be getting set to true or false consistently.
Could this be a timing issue ? The textbox that I am trying to control is the next tab-order control in the list of controls for this page.
This same logic is working fine in the MouseUp event handler for check boxes. So I am just wondering if this is a bug or must my implementation change to accomodate dropdown boxes ? For instance, should I move the logic to the Enter event handler of the textbox instead ? Can a control's own eventhandler set itself to readonly when it is the active form field ?After tons and tons of testing time, I've come to the conclusion that dropdowns are totally buggy in 11.0.07 release of Acrobat Pro.
Even if you set the "commit values immediately", you get the PRIOR selected item's value as the event value, not the CURRENT one.
This occurs in a Validate event handler script. I have not been able to use any other event handlers for a dropdown except the OnBlur....and then, for my purposes, IT'S TOO LATE !!!
This is totally worthless as I need to setFocus() and set fields to readonly based on the immediate dropdown offset or face value. -
How to set initial value for a dropdown box?
Hi,
Within Netweaver 2004S (BI 7.0) we use integrated planning. In one of our applications we want to use a dropdown box (created with the WAD) to make a selection possible for a characteristic.
We set up a pre-query to fill the dropdown box (via data binding CHARACTERISTIC_SELECTION) with the proper values. This works fine.
We pass on the choosen entry (via command SET_VARIABLES_STATE) to a second variable that is used in another query. This command is triggered after the user makes a selection in the dropdown box. Also this works fine. After selection of one entry, the output of the second query is limited.
We have the following problem: the first time a blank selection entry is added to the dropdownbox and that no values are passed on to the second query. Because it seems that the user first must choose an entry.
What we would like to do is that one of the found values of the pre-query is automatically selected in the dropdown box and passed on to the second variable (to limit the second query).
I give you an example:
The first query delivers value A, B, and C for the characteristic of the dropdown box.
The first time the dropdown box showns an empty entry, and three additional entries A, B and C. The second query shows all results, because the second variable doesn't receive any value via the command SET_VARIABLES_STATE. The command is not yet triggered.
When you select A, B or C, the command is triggered and the second query shows only results for the choosen entry (this is correct). Now the empty entry has disappeared from the dropdown box. Only the entries A, B and C are left.
Is it possible to set up the dropdown box on such a way (or add some script coding around it) that in the initial show for the dropdown box one of the entries is choosen automatically, so that the empty line is not part of the value set of the dropdown box and that the command connected to the dropdown box (in our case the SET_VARIABLES_STATE) is carried out automatically?
Please, who can help us with this?
Kind regards and thanks in advance,
Marcel.Hi,
In BW 3.5,say you want to set default for calmonth.
In order to avoid the ALL option from appearing in the dropdown box,
filter infobject 0CALMONTH for DP1 by any valid value.
In the object Data_provider include the lines in Bold:
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="SET_DATA_PROVIDER"/>
<param name="NAME" value="DP1"/>
<param name="QUERY" value="WORKSHOP_CALMONTH_DROPDOWN"/>
<param name="INFOCUBE" value="0D_SD_C03"/>
<<b>param name="FILTER_IOBJNM" value="0CALMONTH"/>
<param name="FILTER_VALUE" value="200401"/></b>
DATA_PROVIDER: DP1
</object>
Hope this helps.
Anu. -
Initial value for a dropdown box
Hello all,
I have created a web template in the WAD (BI 70) with a dropdown box on a characteristic. A chart is displayed based on the query result. My query is built on an infoset.
My problem is to populate the filter with an initial value and still let users change the characteristic value in the dropdown (all values for the characteristic is not acceptable in the context) . Also, I don't want the variable screen to show up.
What is the best approach to achieve this?
Thanks,
JLIn Query Designer you put in your default value in the area to the right in the first pane..
If you put it on the left hand side, the filter will not be changeable.
Hope this helps.
Can give more presise answer if you need it. -
Dropdown boxes do not work on Firefox 5.0.
When using the address bar or any dropdown box on Firefox, the drop down menu flashes but will not stay open so that I can use it. I do not have this issue in IE. I have started Firefox in Safe Mode and the dropdown boxes still did not work.
I can't even use the dropdown box on this form.Try the Firefox SafeMode. <br />
''A troubleshooting mode, which disables most Add-ons.'' <br />
''(If you're not using it, switch to the Default Theme.)''
# You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
# Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes -
Issue in WAD Dropdown box functionality. Help req.
Hello,
Issue in WAD and Bex.
I have two dropdown boxes in the web templates, for ex cost center and controlling area.
DDBox1: Controlling Area.
DDBox2: Cost center.
Step1: I am selecting Controlling area 4002
Step2: I am selecting cost center 691
Step3: Now I want to change the cost center to 4001.
When I change the cost center to 4001 in Dropdown box1
the filter(Selected value 691) set in the Dropdown 2(for cost center) is not removed or reset,
so that it shows no applicable data found even though there is data for the controlling Area 4001(DDBox2)
Some one please guide me to solve this
Thanks in advance!
Kind regards
RaMHello,
Some one please help me on this topic.
If any further informations required i can give .
Thanks
RaM -
Need help in creating a dropdown box inside a table control
Hi,
I need to display a calender upon click event of a dropdown box placed inside my table control.
Can any body help me out.
Regards,
SrinivasTry this ex
TYPE-POOLS VRM.
VALUES-KEY = 'D'.
VALUES-TEXT = 'Double Crate'.
APPEND VALUES.
VALUES-KEY = 'S'.
VALUES-TEXT = 'Single Crate'.
APPEND VALUES.
VALUES-KEY = 'C'.
VALUES-TEXT = 'Carton Box'.
APPEND VALUES.
VALUES-KEY = 'P'.
VALUES-TEXT = 'Pallet'.
APPEND VALUES.
VALUES-KEY = 'W'.
VALUES-TEXT = 'Wood.Case'.
APPEND VALUES.
VALUES-KEY = 'L'.
VALUES-TEXT = 'Loose'.
APPEND VALUES.
CLEAR VALUES.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'CRTYPE'
VALUES = VALUES[]
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2
hope it helps..
Edited by: prabhu p on May 22, 2008 10:55 AM -
Using a dropdown box to change the specified value of a radio button?
I have a form that generates the body text for an email.
First there is a dropdown box in which the choices are either "red" or "blue"
Further down the page, there is a radiobutton list with 2 items "available" and "unavailable".
The specified values for these items (as defined on the binding tab) are "have blue hats" or "do not have blue hats".
This value is concatenated in the email body textfield which is to be copied by the user to an email body:
Concat("Dear", NameField, "," We ", RadioButtonList, " today. ") // Dear Persons Name, We have blue hats today.
Is there any way to change the value of the selected radio button based on the selected dropdown choice?
So if the user selected "red" in the dropdown field, the radio button values could become "have red hats" or "do not have red hats"?
Or perhaps there is a better way from the start?
Thanks!Ok, so now I've done that...
But is there a way to change that value with another field (ie when a user chooses "red" or "blue" in a dropdown box) so that the concatenated message reflects both the users choice of color and the availibility?
I'm guessing I should probably use an intermediary text box and put
InterText.rawValue = Concat ("We have ', dropdown1, " hats today") in the change event of the available radio button and:
InterText.rawValue = Concat ("We do not have ', dropdown1, " hats today") in the change event of the unavailable radio button.
then concatenate that box in the final textbox. -
How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
I currently run OS X 10.10.1
Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
Here is an example of what i want to happen.
I will have 2 tabs: Contact | Sales
Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
Now how do i do this, Excel can do this so how can numbers do it?Hi Shegra,
Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
quinn
Script starts:
-- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
property DataEntryTable : "Sales" --name of table with popups to be refreshed
set copyRange to {}
property PopValueSheet : "Sheet 1" --name of sheet with popup values table
property PopValueTable : "Contacts" --name of table with popup values
set PopStartRow to {}
tell application "Numbers"
set d to front document
set ps to d's sheet PopValueSheet
set pt to ps's table PopValueTable
set s to d's sheet DataEntrySheet
set t to s's table DataEntryTable
set tf to t's filtered --this records filter setting on data Entry Table
display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
set PopStartRow to {text returned of result}
tell pt --convert list to alphabetized popups
set ptRows to count rows
set copyRange to ("A2:" & name of cell ptRows of column "A")
set selection range to range copyRange
set selection range's format to text
sort by column 1 direction ascending
set selection range's format to pop up menu
-- popupsmade
set selection range to cell ptRows of column 1 of pt
set v to value of cell ptRows of pt
end tell
activate application "Numbers"
tell application "System Events" to keystroke "c" using command down
tell pt
set selection range to range copyRange
set selection range's format to text
end tell
tell t
set filtered to false
set tRows to count rows
set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
set selection range to range pasteRange
tell application "System Events" to keystroke "v" using command down
set filtered to tf
end tell
end tell -
Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?
Yes but you will have to create some custom JavaScript to do this.
Also you should be aware that the "Required" property is only processed when the form is submitted to a scripted web page or "mailto:" process. -
How to populate a dropdown box based on a selection in another Dropdown box.
I am trying to find out a way to do the following:
I am using coldfusion ....working on a form. The form has
couple of dropdown boxes. Based on the selection on the first
dropdown box another dropdown box needs to get populated with
different options. These options will be coming from a query. I am
trying to find out the Javascript code for doing this.
Thanks in advance.jchopra,
There's a method to doing what you're wanting to do that I've
used extensively.
Basically, within my code, I start by invoking the method
that returns the data for the dropdown lists. Then, I use the
following code to pour the data returned into a javascript array:
var locArray = new Array(#evaluate(locs.recordcount+1)#);
locArray[0] = new Array('','','','','','','','','',);
<cfloop query="locs">
locArray[#locs.CurrentRow#] = new
Array('#JSStringFormat(locationId)#',
'#JSStringFormat(fkyPolicyId)#',
'#JSStringFormat(locationNumber)#',
'#JSStringFormat(description)#',
'#JSStringFormat(address1)#',
'#JSStringFormat(address2)#',
'#JSStringFormat(zipcode)#',
'#JSStringFormat(city)#',
'#JSStringFormat(state)#';
</cfloop>
Then I wrote a javascript function that is assigned to the
first dropdown's onChange() event. When the user changes the value
that is selected within the dropdown, I use javascript to locate
(using the policyid) the corresponding record in the javascript
array and populate and/or select the appropriate value(s) in the
second dropdown.
If the data returned from the method invocation is too large
to use within a javascript array, you may need to limit the results
that are returned.
Hope this makes sense. If not, please let me know.
ds -
How can I validate a dropdown box to NOT accept the default value?
I have a fillable form where I need the user to select their "Number of Employees". I have added several ranges as their options in a dropdown box (1-10, 11-25, 26-50, 50+). My issue is the "defult value" is set to "1-10" and people submit it without changing it to the correct value.
I have changed the default value to "--Select One--", but it still lets them submit the form with that value entered.
I am assuming I need some sort of validation script that will basically say - "If the value in this field is --Select One-- do not submit the form, but give an error that says 'please select your number of employees" or something along those lines.
Basically I just want them to pick something as opposed to just submiting it with the default value.
I have looked all over and am not very good with JS.You can not have the default value set to a real possible value. You need a value that should be selected.
Then for your submit script you need to test all of your required fields to make sure they are not at the default value.
You make a variable that assumes all the required fields are completed and then check each field and if any one still has the default value you set your variable to "false" and then when you have checked all the fields you test your variable's value and only if it is true to you submit the form.
var bSumbit = ture; // logical variable for submission test
// test drop down # of employess
this.getField("Number of Employees".).required = false; // clear required property
if(this.getField("Number of Employees".).value == "--Select One--") {
bSubmit = false;
this.getField("Number of Employees".).required = true; // set required property
if(bSubmit) {
// your submit acation;
} else {
app.alert("Not all required fields properly completed", 0, 1); -
IC WebClient: Add Dropdown Box to TableView
Has anyone successfully added a dropdown box inside of a CRM IC WebClient table that uses a context node? If so, I would appreciate some advice! I have read Brian's blog about table view iterators, but as usual the application in CRM is slightly different.
I'm working with a custom column in the result list (Customers context) on the BuPaSelectCustomer view. I want my custom column to be editable via a dropdown box. Here's what I've done:
1) Created a custom class that implements the IF_HTMLB_TABLEVIEW_ITERATOR interface
2) Created an attribute of the Customers context class called ITERATOR that is typed as the new class in #1
3) Added the iterator attribute to the crmic:tableView
element in the page which points to the attribute defined in #2: iterator = "<%= customers->iterator %>"
4) Set edit = "TRUE" attribute in the crmic:tableViewColumn element for my new column named 'ZZSLSTATUS'
5) In the controller class SET_MODELS method:
* Create iterator for table
IF NOT iterator IS BOUND.
CREATE OBJECT iterator TYPE ZCL_CRM_SELCUST_TV_ITERATOR
EXPORTING
ir_context_node = typed_context->customers.
ENDIF.
The constructor looks like this:
method CONSTRUCTOR .
gr_context_node = ir_context_node.
endmethod.
6) GET_COLUMN_DEFINITIONS looks like this:
data: wrapper type ref to cl_bsp_wd_collection_wrapper.
gv_current_line = 0.
gv_tableview_id = p_tableview_id.
* get the wrapper of the context node
wrapper = gr_context_node->get_collection_wrapper( ).
* fill the local iterator
gr_iterator = wrapper->get_iterator( ).
7) RENDER_ROW_START looks like this:
* Position on correct index
gr_iterator->get_by_index( iv_index = p_row_index ).
8) RENDER_CELL_START looks like this:
DATA: LT_RECSTAT TYPE TABLE OF IHTTPNVP,
LS_RECSTAT TYPE IHTTPNVP,
LR_COL_DROPDOWN TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX.
FIELD-SYMBOLS: <TABLE> TYPE TIHTTPNVP.
* Simple 1 record table for now
LS_RECSTAT-NAME = '1'.
LS_RECSTAT-VALUE = 'Not Called'.
APPEND LS_RECSTAT TO LT_RECSTAT.
CASE P_COLUMN_KEY.
WHEN 'ZZSLSTATUS'.
IF NOT P_EDIT_MODE IS INITIAL.
* Create replacement bee to show a dropdown listbox in the
* table cell
CREATE OBJECT LR_COL_DROPDOWN.
LR_COL_DROPDOWN->ID = P_CELL_ID.
LR_COL_DROPDOWN->NAMEOFKEYCOLUMN = 'NAME'.
LR_COL_DROPDOWN->NAMEOFVALUECOLUMN = 'VALUE'.
TRY.
CREATE DATA LR_COL_DROPDOWN->TABLE TYPE TIHTTPNVP.
CATCH CX_SY_CREATE_DATA_ERROR.
RETURN.
ENDTRY.
ASSIGN LR_COL_DROPDOWN->TABLE->* TO <TABLE>.
IF SY-SUBRC = 0.
<TABLE> = LT_RECSTAT.
ENDIF.
LR_COL_DROPDOWN->SELECTION = GR_CONTEXT_NODE->GET_ZZSLSTATUS(
ATTRIBUTE_PATH = ''
ITERATOR = GR_ITERATOR ).
P_REPLACEMENT_BEE = LR_COL_DROPDOWN.
ENDIF.
ENDCASE.
Nothing happens to the cells in my column (they still appear as uneditable with their initial values) and my breakpoints aren't hit in the custom iterator class methods when the table is rendered. Any ideas?
Thanks,
BradBrad or anyone who could help:
I found this article very useful and tried to follow the samples. I am not very experienced in BSP and I only need to add a column to BuPaSelectCPforCustomer IC webclient tableview.
Step 1 - done.
step 2 - I am not sure I did it right. I created a custom class ZCL_CRM_IC_BUPASELCP_CN02 for CONTACTRELATION and added an attribute ITERATOR to the class.
step 3 I add this to crmic:tableView
iterator = "<%= CONTACTRELATION->iterator %>"
but I go compile errors like "Field iterator is unknown".
Step 4 - skip
Step 5 - I assume the controller class is the top controller which in my case is ZL_CRM_IC_BUPASELECTCPFOR_IMPL->SET_MODELS. I added this code:
IF NOT iterator IS BOUND.
ENDIF.
I got the same compile errors like "Field iterator is unknown".
I think I missed something somewhere. I would really appreciate it if you could shed more light on this.
Thank you so much. -
Dropdown Box in WAD (Please help me as i posted many times,but no infos)
Hello ,
I have defined two drop down box one for Plant and other for Material.
Plant has 14 entries and Material drop down has 100 entried for every plant.
Now Dropdown Box is assigned with characteristcs info object 0PLANT
2nd Dropdown Box is assigned with characteristcs info object 0MATERIAL
Plant is used as an Compounding attribute of 0material.
When i select plant 4040 corresponding material numbers will be displayed in dropdown box of material.
After that i am selecting a material from that dropdown box.
Now if i change the plant it is not displaying me any values even though there is data for that plant.
The dropdown box keeps the previous selection and it is not getting refreshed .
How to solve this issue.
Please help me!
Kind regagrds
Ram
Points will be assignedHello Rakesh,
Thanks for the informations,
But already these options were selected.
My issues in if i select 1st drop down box and then select second drop down box the values are displayed.
Now if i make change in the 1st drop down box the previous selection of the first drop down box was not cleared and because of that it does not show the values in the chart or table.
i need to solve this issue,
Please help me with informations
Lots of thanks in advance
Kind regards
Ram -
Creating calculation based on result of dropdown box
Hi there. I am hoping someone will be kind enough to help me with some Javascript as it seems I am too blonde and middle aged to figure it out by myself.
I have a dropdown box 'Member'. The value for Yes is 0. The value for No is 10.
Then I have three check boxes. 'Day1' value is 35. 'Day2' value is 25. 'Dinner' value is 65.
If Yes is selected, I want the sum of the check boxes if they are checked. (eg, total if all checked = 125)
If No is selected, I want the value of each check box increased by 10. (eg, total if all checked = 155)
I am using Acrobat X.
Thanks in advance.Because of the fact that you want to add a constant to a number of values if a given condition is meet then you will need to use a custom calculation script.
// get the value of the fields
var cMember = Number(this.getField("Member").value);
var nDay1 = this.getField("Day1").value;
var nDay2 = this.getField("Day2").value;
var nDinner = this.getField("Dinner").value;
// define a varaiable for the sum
var sum = 0;
// day 1 plus adjustement
if (nDay1 != "Off") sum += Number(nDay1) + cMember;
// day 2 plus adjustement
if ( Day2 != "Off") sum += Number(nDay2) + cMember;
// dinner plus adjustement
if (nDinner != "Off") sum += Number(nDinner) + cMember;
event.value = sum;
Excel is only easy if you accept Microsoft's view of calculations. -
How can I make a dropdown box populate with values from other fields?
I am trying to create a NCAA bracket where they select teams from a dropdown menu. For example, they choose which teams win in game 1 and 2 through a dropdown box. The winner of games 1 and 2 then play each other, so how can I populate the dropbox with their selections for game 1 and 2?
Game 1 winner --
(game 9) |--- Game 9 winner
Game 2 winner --
Game 9 winner needs to populate with their selections from game 1 winner and game 2 winner.I would look at using the setItems Acrobat JavaScript method.
Have you considered using a Mouse Up action for "Game 1" and "Game 2" to fill "Game 9"
Maybe you are looking for
-
Hi , When I parse XML file containing special char like" a e i o u � � � � u � � � �" then it giving me error . because it accept only UTF-8 format . File which I got from my client is always correct mean in UTF-8 format. (like field v��r is always c
-
My iPhone 5 will not ring when my phone number is called.
Despite the "Silent" button on the side of the iPhone 5 being set to off, and the ringer turned on full blast, my iPhone 5 will not ring when any number calls my phone. This is not an issue with the settings, which are all set for the phone to ring.
-
ma ipod s nt recievin ne data after formatting so kindly help me solve dis prob
-
Having trouble transferring contacts with VZ Transfer App? Come in here!
IF YOU DONT WANT TO READ THE ISSUE I HAD, SKIP DOWN TO THE BOTTOM OF THIS POST FOR INSTRUCTIONS HOW TO SYNC CONTACTS WITHOUT THE VZ TRANSFER APP. So I think I had the most possible trouble you could have trying to get my contacts from my old flip pho
-
Merge to HDR - aligning not working
There is a checkbox called "Attempt to Automatically Align Source Images" in File/Automate/Merge to HDR Pro... It seems to me that it does nothing. Even when I shoot with tripod and the unaligment of source images is very small, the end result is als