How to Pre-select an item when making an ISR DDL.
I am trying to mimic the functionality of the "Position Field' in the SPPD, but I can't figure out how it is pre-selecting the PLANS_CURR box with the current position.
I basically want a drop down bo, which I am populating with data using ls_special_data, and I am able to do that fine, but now I would like to specify and certain record to be pre-selected.
Does anyone know how to do this?
Thanks,
hi Tim and Sridhar,
How do we do the binding.
On the Adobe dynamic binding I See see.
for example for the forms field PERSK_NEW
ITEM Binding
Item value text
Item key key
but the source code in ls_additional_data has this code
ls_additional_data-fieldindex = index.
ls_additional_data-fieldname ='PERSK_KEY'.
ls_additional_data-fieldvalue = int_table-key.
append ls_additional_data to additional_data.
ls_additional_data-fieldindex = index.
ls_additional_data-fieldname = 'PERSK_LABEL'.
ls_additional_data-fieldvalue = int_table-label.
append ls_additional_data to additional_data.
endloop.
In this case how is PERSK_KEY bound to Item key
and 'PERSK_LABEL' bound to item value
Please guide. I am trying to create a PCR from scratch and got stuck up big time at this point
Similar Messages
-
Hi Everyone
Please advise: how do I select multiple items when on Safari? Ex. when I have to select multiple countries where I have worked.Hi Carolyn
I am trying to select multiple items from a list on a particular website. I tried using the 'command' button, but to no avail.
Grateful for any advice. -
when editing info, how do i select multiple items to edit a group? For example, changing the artist name on multiple tracks at once?
Same way you select multipl items anywhere else.
Hold ctrl and click the items you want.
If they are in consecutive order, click the 1st then Shift click the last. -
HorizontalList - How to programatically select an item
Hi All,
I am new to flex and new to this forum. I am building an
application that uses a HorizontalList and a button.
When the button is clicked, I need to add a new item (image +
label) on the HorizontalList, and I need to make the newly added
item the default selection.
I tried to set the selectedIndex property, but that does not
work.
Any idea how to make this work ? ie how to programatically
select an item in the HorizontalList
Regards
RoniThis code seems to do what you want:
-
How do I select multiple items on blackberry phone?
How do I select multiple items on blackberry phone?
Multiple items of what?
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Selecting the item when mouse wheel scrolled in JComboBox
Hi All,
I have 2 issues wrt JComboBox which are:
1.Selecting the item when my mouse scroll wheel is rolled.
2.Collapsing the expanded combobox ie. to initial state when i press ALT+Tab and revist the same window.It is like this..
expand the combobox to with item selected and expanded.Now press alt+tab to see the same window then the combobx is still exapanded.Actulaly it is to be collapsed showing the seleted item only.
Could any one pls help me out.
cheers,
sharathAs regards problem 2 - do you want the combo to stay open, or to close when you Alt Tab, I can't quite tell from your question.
If you want it to close, then I would say that is standard behaviour and I have never seen a Java (or any other) application that doesn't work like that, so if it doesn't work that way for you, then you must have coded it very oddly.
Regards,
Tim -
How to Pre-select Value in auto drop down list
Hi,
I have an automatically populated drop down list, and I'm trying to have it display with a pre-selected value (in the example 5). I didn't know where to start, so I modified the Dreamweaver code for "Set value equal to" from the Dynamic list function.The list displays, but the value defaults to 0. What am I missing?
<?php
echo '<select name="firstnumber" id="number">';
for ($j=0; $j<11; $j+=1)
echo "<option value=\"$j\" <?php if (!(strcmp(\"$j\",5))) {echo \"selected=\"selected\"\";} ?>$j</option>\n";
echo '</select>';
?>
Thanks,
TimThe problem is that you have nested PHP tags inside a PHP block. You can't do that. In fact, it's surprising that the code works at all. Normally, nesting PHP tags inside a PHP code block will trigger a syntax error.
Also, your code is very difficult to read because of the way you use double quotes all the time. It's best to use single quotes for strings, except when you need to display the value of a variable inside a string. You can also nest double quotes inside a single-quoted string and vice versa, making for code that's much easier to read without all the backslashes.
This is how I have rewritten your code:
<select name="firstnumber" id="number">
<?php
for ($j=0; $j<11; $j+=1) {
echo "<option value='$j'";
if (!(strcmp($j,5))) {
echo 'selected="selected"';
echo ">$j</option>\n";
?>
</select> -
How To? Select List item return 2 values (high and a low)
Can anyone suggest how to make a select list drop box return 2 values for my query.
eg:
Pick from
Last Week
Last Month
Last Year
return high/lo values of
5-feb-06 12-feb-06
01-jan-06 31-jan-06
01-jan-05 31-dec-06
Such that my query can refer to it as
select *
from tabx
where dte > :parm_lo
and dte < :parm_hi
You get the idea ..I haven't tested this at all, so it may not work, but the first thing that springs to mind is not returning the two dates, base it on the current date, i.e. have your select list return something like -
Last Week - Return 'W'
Last Month - Return 'M'
Last Year - Return 'Y'
then use a query something like -
SELECT *
FROM tabx
WHERE dte >
CASE v ('ITEM')
WHEN 'W'
THEN TRUNC (SYSDATE, 'd')
WHEN 'M'
THEN TRUNC (SYSDATE, 'Mon')
WHEN 'Y'
THEN TRUNC (SYSDATE, 'yyyy')
ELSE dte - 1
ENDLike I said, completely untested and may not work...you may also have to play around with the boundary values (NLS settings too perhaps). -
How do I Select Individual Items, Among Many Items, to Edit Database?
I have many CD's that cover a range of years, in which they were popular; I use the following Genre: "Pop:1970's",Pop: 1980's, Pop:1990's"; I want to select just the "Tracks" from the 1980's, and change the genre from "Rock", to "Pop:1980's", then I want to select "Tracks" from the 1970's, and change the genre from "Rock", to "Pop:1970's"
Many of the pre-assigned genre is listed as "Rock", and I consider them "Pop" (this is a matter of Individual preference).
I can't figure out how to select Individual items, within a "Compilation CD" to change just the selected items.Try getting out of Grid view and use List or Cover Flow.
It's easy to change, use the boxes over on the right near the Search oval. -
How to highlight selected list item in sap ui5?
I have a list..in which custom list items have been used.
On click of any custom list item it should get highlighted,
I am able to click on each custom item...and have added an browser event
on its click..which changes its color ..
function to change its color goes like this:
hbox.attachBrowserEvent("click", function(event) {
var idOfHbox= this.getId();
$('#'+idOfHbox).css"backgroundcolor","#e6f2f9");
ALso for each custom list item I have used a button and a checkbox in a HBox..
So am changing the hbox color (on click event).
The problem here is...
When i select one item, and then select another item..both of them are highlighted..
I want only the current selected item to be highlighted.
Please guide..Have you tried using the SelectionChange event on the list, rather than the browser onClick event?
I believe the SelectionChange event is fired for each selected and deselected item in the list.
https://sapui5.hana.ondemand.com/sdk/docs/api/symbols/sap.m.ListBase.html#event:selectionChange
Many thanks,
Jason -
How do I select multiple items to paste a style?
There are times when I have several paragraphs of text with a number or letter in front of strategic sections. I like to change the color of these letters or numbers, make them boldface and change them to SuperScript. Once I have the first one changed, in Pages 4, I would simply copy the character style for this changed letter or number. Next, I would hold down the COMMAND key while double-clicking each subsequent letter or number. Finally, I would paste the formatting which would update all the various items I had selected with the saved formatting.
In Pages 5, I can copy the character style, and then hold down the COMMAND key and start double-clicking text items to reformat, but while the first item will highlight when selected, the second item I double click will highlight and the first one will de-select.
Is there a way to multi-select text items in this way?
Thanks for your help!!!
RonThere isn't any multi- selection in Pages 5. use PAges 09 instead.
-
How can I select an item from a list component with a seperate button
This is a repost, I decided it'd probably be better here than
in the general discussion board. I will try to delete the other
one.
Hello Everyone,
This is my first post here. I am trying to figure out how to
select an item within a list component with a button. This button
is calling a function. I have searched for the past 3 hours online
and I can't find anything about it. I thought perhaps I could set
the selectedItem parameter, but that is read only, and I believe it
returns an object reference rather than something like a number so
even if i could set it, it would be pointless. I also found a get
focus button, thought that may lead me somewhere, but I think that
is for setting which component has focus currently as far as typing
in and things like that. I am lost.
Basically I am looking for a way to type this
myList.setSelected(5); where 5 is the 5th item in the list.
Any help would be much appreciated.Never mind found it. It is the property called selectedIndex
and it is writable -
How do I select multiple items?
Happy New Year. I am a new Mac user. Recently switched from Windows. How do I select multiple rows? In windows you can CONTROL+click to select multiple items 1 at a time and SHIFT+click to select multiple items in groups. I figured out to do COMMAND+click on Mac to select multiples 1 at a time. I need to delete ALOT of rows. How do I select multiples in groups?
Thanks.KarenSelena and BobHarris have given you the direct sequences.
You can also select multiple disjoint ranges with combinations of ⌘ (command key) click and ⇑ (shift key) click, too.
As you use OS X, you'll find a large number of ⌘ and ⇑ and ˄ (control key) and ⌥ (option key) clicks and shortcuts available (and some were mentioned earlier), and shortcuts such as ⌘ A (select all), ⌘ Z (undo) and a whole host of other shortcuts available.
Here is Apple's Mac 101 / Mac Basics site, which has a good (and free) introduction toward learning to use your Mac. -
How to Pre-Select a View for ALV dashboard at runtime
Hello Experts,
The requirement is to pre-select 1 view initially (out of several configured) for 'All' users and disable the 'View-selection' dropdown function in a standard ALV dashboard. So whenever the dashboard loads, a particular view has to be set automatically for all users.
I need your help for the first part, which is to always pre-set a 'View' in a standard dashboard.
I tried to implement the suggestion provided in the following thread:
How to apply ALV view at runtime
However I couldn't make this work in my case. I created a Post-Exit of a method in Comp Ctlr of dashboard (Initialize method) - where I receive the refrence 'IWCI_SALV_WD_TABLE'. Then calling the method 'GET_CONFIG_DATA' with action 'if_salv_wd_table=>set', I try to set the view, but it has no effect.
Thanks a lot for your help,
AbirHi abir,
Use this and alv1 is my alv component name
DATA LO_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
LO_CMP_USAGE = WD_THIS->WD_CPUSE_ALV1( ).
IF LO_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
LO_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.
DATA LO_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
LO_INTERFACECONTROLLER = WD_THIS->WD_CPIFC_ALV1( ).
LS_PARAM_IN TYPE IF_SALV_WD_TABLE=>S_TYPE_PARAM_CONFIG_IN.
ls_param_in-default = "your view name " ( view is of type wdr_pers_variant)
DATA LO_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
LO_VALUE = LO_INTERFACECONTROLLER->GET_CONFIG_DATA( ls_param_in )
Regards
Srinivas
Edited by: sanasrinivas on Dec 30, 2011 7:15 AM -
I tried to select an item from a drop down list on a web page in safari and discovered that the list disapeared to quickly for me to make a selection. Has anyone else found this and solved the problem. Many thanks.
Demo wrote:
I tried it on my iPad and I see what you mean. From what I can see when I go to the site on my Mac, it is Flash based and that will not work anyway.
Actually, it is Javascript and uses the 'onmouseover' event.
Maybe you are looking for
-
Adobe plugin for Outlook in 2013 unable to configure to load at startup
Windows 7 Pro, Office 2013 Home and Business I don't see a registry key for the plugin, there's no properties in Outlook for the plugin Manually loads properly and functions properly, however unable to configure it to load when Outlook starts. Any id
-
How come I could not download anything today? It keeps saying my app is not available in the US store and that I must first switch to Philippine store. But I have long been using Philippines as my location. Pls help me.
-
Wifi lost during ios update and iphone is stuck. What should i do?
Wifi lost during ios update and iphone is stuck. What should i do?
-
How to create a DataBase File like MDB or DBF to web
Hi People, I'm a Delphi Developer and I'm new in Java. I need to make a DataBase File like MDB or DBF to work online. I will make a Form to sign users. All of user's information, for example: user name, address, mail, phone, will need to record in my
-
Trying to update by installing a notified item in settings. Being asked for a pass code. What is this ?