Shuttle: How to reference selected items on the right side
This seems so easy so why am I struggling so much.
I have a simple shuttle:
1 Adam
2 Baker
3 Charlie
4 Delta
5 Echo
6 Foxtrot
Select Name D, UserID R from UserTable
The values are stored in a VARCHAR2 field MULTI_USER (for example 1:2:4:6)
When I want to get the names back from the selected item, how do I reference the colon-separated items?
For example:
Select Name from UserTable
where UserID in (select MULTI_USER from MULTI_USER where MULTI_USER_ID = 1)
should return:
Adam
Baker
Delta
Foxtrot
Why is this so difficult for me to figure out?
Thank you in advance
Hi,
This might help
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_item.htm#sthref908
Regards,
Jari
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai
Similar Messages
-
I have icons left over from trial software I have deleted in my menu bar and can't get rid of them. I've tried dragging them out while holding down the "Command" or "Control" keys but that didn't work.
I have icons left over from trial software I have deleted in my menu bar and can't get rid of them. I've tried dragging them out while holding down the "Command" or "Control" keys but that didn't work.
-
How to set an icon to the right side of a tab item ?
Hi All,
Currently the icon added to a tab item appears on the left side. How can that be changed to appear on the right side of the tab item.
Thanks in advance.if using 1.6, an easy way:
create an empty tab,
create a JLabel with icon and setHorizontalTextPosition(..)
tabbedPane.setTabComponentAt(..,label) -
'list all tabs' arrow - how can I move it to the right side of the tabs?
I want to have the 'List all tabs' arrow on the right side of the firefox window.. just to the left of the 'minimise/restore/close' set of buttons. The 'Open a new tab' button can be moved -- why not also the 'list all tabs' button?? Very frustrating. Much Google-fu has not yet found a solution to this simple problem... help?
Hmm, by default that little downward pointing triangle is at the right end of the tab bar. Could you go back into Customize mode and try dragging anything that appears to the right of it back around to the left of it?
-
How to read selected item of the dropdown listbox in dialog prgmming
hello to all,
i need one help.In dialog programming how to read the selected value of the dropdown listbox created in se51. the values are appering in listbox by using FM 'VRM_SET_VALUES' .and function code is also assigned to lisbox .but how to read that one particular value selected by user form the dropdown list.
thanks.hello mate
Try this following logic and code u will getting the answer
Here this example :
Let Name of the LIST BOX BE : LT
Code :
Data Declaration :
I_NATIO TYPE VRM_VALUES,
W_NATIO LIKE LINE OF I_NATIO
data: begin of itab occurs 0,
LT(10) type c,
end of itab.
**This query to data retrival
select x1 x2 into table itab form tbl .
loop at itab.
w_natio-key = itab-LT.
w_natio-text = itab-LT.
append w_natio into i_natio.
clear w_natio.
endloop.
**This code for setting values in the list box
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'LT'
VALUES = I_NATIO.
**This code getting the valu form the list box
CALL FUNCTION 'VRM_GET_VALUES'
EXPORTING
ID = 'LT'
IMPORTING
VALUES = I_NATIO.
**simply to print the values selected
write : i_natio-lt.
I hope this will help u out.
Anand -
Selected list in the right side of the shuttle gets clear after form submit
Hi all,
In my application, I have a list of email in the shuttle. User can choose the email from that list of email from the shuttle and/or they can also add additional email address separately. So, in my page, I have a shuttle which has pre-populated email list, and I have a text box and a multi-select list (where they can select multiple email address they entered and hit delete to delete them). The problem that I am seeing is, after selecting the email list from the shuttle, and if they entered additional email address and hit "Add" button (which is a submit button to add email address to the multi-select list), only one email address in the selected side of the shuttle remained. rest of them moved back to the left side. I am not sure how to accomplish not to behave that way. Can someone please guide me how to resolve this issue? Much appreciated. Thanks.
SoeJust found out that there is some error in the page branch, which makes the shuttle to clear off. Now the problem solved. Thanks.
-
The display on my 6th Generation Nano has flipped sideways, and I can't figure out how to get it to flip back.
Place your fingers onto the screen and gently (but firmly!) drag the screen around to the upright position.
Hope this helps. -
Getting the value of the selected items of the shuttle
Hi Steve,
How to get the selected items of the shuttle in the backing Bean upon clicking submit button?
Regards,
GarethCheck the ADF Developer Guide and the SRDemo
application for a sample of using the shuttle
http://download.oracle.com/docs/html/B25947_01/web_com
plex008.htm#CEGHACEDHow to get the values from leading list. I have a pop-up with selectManyShuttle. The leading list values are retreived from from emailTable and there is no default values in the trailing List. When I click ok in the popup, the selectedValues is null.
here is my code:
<af:form>
<af:selectOneChoice label="" valuePassThru="true" valueChangeListener="#{backingpsEmailUserContact.refreshSelectedList}" id="usercontactid" autoSubmit="true">
<af:selectItem label="User" value="user"/>
<af:selectItem label="Contact" value="contact"/>
</af:selectOneChoice>
<af:panelHorizontal valign="bottom" partialTriggers="usercontactid">
<af:selectManyShuttle
trailingHeader="Chosen"
leadingHeader="Email"
trailingDescShown="true"
leadingDescShown="true"
size="10"
value="#{backingpsEmailUserContact.selectedValues}" >
<f:selectItems value="#{backingpsEmailUserContact.allItems}"/>
</af:selectManyShuttle>
<af:commandButton text="Ok" action="#{backingpsEmailUserContact.cmdOk}" id="cmdOkid" partialSubmit="true"/>
</af:panelHorizontal>
</af:form>
backingBean method
public void cmdOk(){
Object selectedList = this.getSelectedValues();
// for (int i = 0; i < selectedList.size();i++){
// System.out.println((String)selectedList.get(i));
} -
How to find out the selected item in the lsit
Hi all,
How to find out the selected item in the list,can any please post some examples which easy to understand,because iam not a good programmerThis sample program uses a checkbox as selection, you could also use a HOTSPOT.
report zrich_0002 no standard page heading.
data: imara type table of mara with header line.
data: check_box(1) type c,
report_lines type i.
start-of-selection.
* Create the gui status with BACK button in standard place
* and a READ button in the application toolbar
set pf-status 'CHECK'.
select * into corresponding fields of table imara from mara up to 100 rows.
loop at imara.
write:/ check_box as checkbox, imara-matnr, imara-matkl.
hide imara-matnr.
endloop.
report_lines = sy-linno - 1.
top-of-page.
write: 'List of materials'. uline.
top-of-page during line-selection. write: 'Material.....'. uline.
at user-command.
case sy-ucomm.
when 'READ'.
check_box = space.
set pf-status 'CHECK' excluding 'READ'.
do report_lines times.
read line sy-index field value check_box.
if check_box = 'X'.
write:/ 'You have selected material',
imara-matnr.
endif.
enddo.
endcase.
Regards,
Rich Heilman -
How to change the selection background color of the selected item in the popup menu of the choice box ?
By defaut, the selection background color likes "blue", but if I want it to be "yellow" for example, how should I do ?
ThanksThe id is applied by (I think) the skin class of the ChoiceBox. You don't need to define it.
You have to apply the css in an external style sheet. You can apply the external style sheet to any parent of your choice box, or to the scene (the most usual way to do it).
Example:
import java.util.ArrayList;
import java.util.List;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.ChoiceBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class ChoiceBoxTest extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setTitle("Example 2");
final ChoiceBox<String> choiceBox = new ChoiceBox<>();
List<String> tempResult = new ArrayList<String>();
for (int i = 0; i < 10; i++) {
tempResult.add("Item " + i);
choiceBox.getItems().setAll(tempResult);
VBox root = new VBox();
root.getChildren().add(choiceBox);
final Scene scene = new Scene(root, 300, 250);
scene.getStylesheets().add("choiceBox.css");
primaryStage.setScene(scene);
primaryStage.show();
public static void main(String[] args) {
launch(args);
choiceBox.css:
@CHARSET "UTF-8";
#choice-box-menu-item:focused {
-fx-background-color: yellow ;
#choice-box-menu-item .label {
-fx-text-fill: black ;
Message was edited by: James_D -
How do you remove items from the assets panel that are duplicated?
How do you remove items from the assets panel that are duplicated?
If you add an item to a slideshow, you'll usually see 2 entries for that image in the assets panel - one represents the thumbnail, and the other represents the larger 'hero' image.
It sounds like you may have added the same image to your slideshow twice. You can select one of the hero images or thumbnail images in your slideshow and use the delete key to remove it. Then the extra 2 entries in the assets panel should disappear. -
How to get selected items from a tree in backing bean without adfbc
Hi ADF Experts,
Below is my code for af:tree. My question is how can I get selected Items from the selectionListener (without adf bc) this uses formation of tree from backing bean.
Using Jdev 11.1.1.7.0
<af:tree var="node" value="#{pageFlowScope.MerchandizeBean.model}"
binding="#{pageFlowScope.MerchandizeBean.treeModel}" id="tree" immediate="true" autoHeightRows="0"
styleClass="AFStretchWidth" rowSelection="multiple"
selectionListener="#{pageFlowScope.MerchandizeBean.treeNodeSelection}">
<f:facet name="nodeStamp">
<af:commandLink text="#{node.classDescription}"
actionListener="#{pageFlowScope.MerchandizeBean.createListManyItemForMerchandise}" id="displayTable" partialSubmit="true">
</af:commandLink>
</f:facet>
</af:tree>
public void treeNodeSelection(SelectionEvent selectionEvent) {
// Add event code here...
RichTree tree = (RichTree)selectionEvent.getSource();
TreeModel model = (TreeModel)tree.getValue();
//get selected value
Thanks
RoyHi,
in a multi select case, try
RowKeySet rks = tree.getSelectedRowKeys();
Iterator iter = rks.iterator();
while(iterator.hasNext()){
Object aKey = iterator.next();
tree. setRowKey(aKey);
Object rowData ? tree.getRowData();
.... do something with the data here ...
Frank -
How do I programmatically populate the right side of a shuttle?
Greetings,
< on Application Express 4.0.2.00.07 >
Background - I have an Image Map on a page and I need to put code in each cell hotspot href which will end up adding a value to the right side of a shuttle.
I guess I will do it via a function call in the hotspot href? If so I will need to populate the shuttle using PL/SQL. Problem is, I don't know how to do that with PL/SQL.
Or, maybe there is a way to populate the right side of a shuttle via JavaScript or some other way?
Never really used Shuttles much. I know how to process the values on the right side via an array, but I don't know how to populate it programmatically.
Also, I didn't find the answer after some forum searching, but if it is here and you know where it is you may just point me in the right direction.
Any help is appreciated.
Thanks in advance, TonyOn page load you need to set the page item value to a colon separated list. Basically just reverse what ever processing you are doing on submit.
-
How to read selected item value from DropDownList?
Hi,
The DropDownList component has a selectedItem property that is supposed to return a ListBase.
But what I want is just the "String" that is supposed to be the selected Item in the DropDownList.
How can I read this value?
thanks
-MalenaThank, yes, I realized that right after I posted my question -:)
I casted the selectedItem property to String and voila.
Best
-Malena -
How do you return items from the trash can to their original locationn
how do you return items from the trash can to their original location
Welcome to the Apple Support Communities
To restore a file on the Trash to its original location, open Trash, right-click the file or press it with Command key, and select Put Back
Maybe you are looking for
-
I have been using the 1.4 version of Numbers for some time on my iPad. After updating to the 2.2.1 version, my files can no longer be accessed as when I click to open them they display the message "Spreadsheet can't be imported - the file format is i
-
Help Designing a Billion rows System
Hello, I need to build a new system that will have a table that will keep data for 60 days (aprox. 1 billion rows). Once the data is there, more data will be loaded (aprox. 10M rows/day loading around 40 files with 40k rows each file). The system nee
-
Schedule A Job To Run Upon Completion of The Currently Running Query
Hi friends, Sometime right after sometime a query starts I realize the same to be taking quite a long time and then upon realizing that I hadn't selected the next portion of the T-SQL which depends upon the result of the ongoing query I have to wait
-
How to generate 3 phase sine wave to output on ELVIS
Hi .I need to make a star or delta connected circuit on ELVIS board.2 make this circuit I need 3 wave generator( with 120 phase shift) and one common ground and because the ELVIS function generator can only generate one wave I decided to generate cou
-
No IDOCS arrived from Source system to BI for generic extraction
Hi All, While loading data from r\3 generic data source to BI, I am facing the below problem. 1. Using Full Load:- The request from r\3 to psa turns red after a while. The request monitor says: Error when updating Idocs in Source System Diagnosis Err