Select item list
is their a way to do a add from a select item list.
IE: created a view of the items i wanted to select off. based on this view i want to select it from the select item list and then add these records to another table.
table 1: item id, item description, item points used (i wrote a view for this)
table 2: redeem item id, redeem points used
Thanks.
Hi
Check the below thread
SAPB1 Application Hang and Not responding when i serch item in any document
With Regards
Balaji Sampath
Similar Messages
-
Error Occur when trying to select Item List
Hi Experts,
Machine gets Hang when trying to select Item List in row level PO,SO ect as well as in item master Data when Pressing Star ( * ) .
and when trying to close this window then error occur as close the program and problem occur on server itself
Test Database is working fine.
worked around
1.Restarted the machine
2.Restarted services
using SBO 9.0 PL 7
OS-Window 7 Professional
Please Find the Two Error Attachments
Please help me
Thanks & Regards
NavnathHi
Check the below thread
SAPB1 Application Hang and Not responding when i serch item in any document
With Regards
Balaji Sampath -
Using value of selected item list
I'm working on existing code. I want to use the value of a selected item in a list to use it in a query. So, the corresponding records should be displayed in a subform when an item of the list is selected. This is the code i'm using:
This is the code i use to populate the list
DECLARE
locatienaam varchar(100);
locid number;
recordcount number;
i number;
correct NUMBER;
hList ITEM := Find_Item('LIST_LOCATIE');
iRC PLS_INTEGER := 0;
currValue VARCHAR2(60); /* increase if required*/
BEGIN
--vraag het bijhorende ID op van de geselecteerde locatie.
currValue := Name_In('LIST_LOCATIE');
FOR i IN 1..Get_List_Element_Count(hList) LOOP
IF currValue = Get_List_Element_Value(hList,i) THEN
iRC := i;
break;
END IF;
END LOOP;
locid := GET_LIST_ELEMENT_VALUE('LIST_LOCATIE', iRC);
locatienaam := GET_LIST_ELEMENT_LABEL('LIST_LOCATIE', iRC);
Below the code i use to make the query
SET_BLOCK_PROPERTY('V_KALENDER',DEFAULT_WHERE,'(BEGINDATUM BETWEEN '||''''||:V_KALENDER.TIJDSTIP1 ||'''AND '||''''||:V_KALENDER.TIJDSTIP2||''') AND (NAAM=:locatienaam)');
GO_BLOCK('V_KALENDER');
Execute_Query;
I get the message: "unable to resolve reference to locatienaam"
The subform is populated with all the records between the two dates of all the locations, not only by the selected location.Hi,
Welcome to the forum!
If locatienaam is a local variable, don't use a colon (:) to reference it.
You didn't say
IF :currValue = Get_List_Element_Value(:hList,:i) THEN so why should you say
:locatienaam? -
Using checkboxes to select items in a Spark DataGroup/List?
I have a DataGroup from Catalyst, laid out like a tile list:
I'd like to do something a bit different, in that I'd like to allow people to multi-select items in the list using those checkboxes instead of the usual command/control-click.
The checkbox, label and image are in the itemRenderer. Is there an easy way that I can have that checkbox toggle the selected state of its list item?Hi,
Using the checkbox as a selection is easy enough as all you have to do is add a change event to the checkbox in the renderer and then in the event
selected=mycheckbox.selected;
The fun is how to handle the list click event from the checkbox you can stop propagation but if the item is clicked it will reset the selected indices.
There is a few ways to handle this
when processing the list don't use the selected indices just use the checkbox value to determine whats selected
disable the listbox click event so items have to be selected with the checkbox
or the most complex lots of overriding so that click acts like a ctrl/click and the checkbox/itemclick can toggle each other.
David -
How to create a report based on selected item from Select list?
Hi,
I have created a tables_LOV based on:
select table_name d, table_name r from user_tab_cols
where column_name like '%_type%'
Then I created a page item ListOfTables, Display as select list and pointing to tables_LOV.
I run the page, and i can select the table i want from the drop down list.
How to create a report based on the selected item? (ex: select * from selected_table)
many thanks in advance
SalahHi Salah,
Allright, have a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
I think that simulates what you're trying to accomplish. I've set up the simplest method I could think of.
The report is based on an apex collection. If you are not familiar with that, you should study the documentation: APEX_COLLECTION
To recreate my example you should:
1) create an (interactive) report on your collection
SELECT *
FROM APEX_collections
WHERE collection_name = 'MY_COLLECTION'
2) create a page_item select list for the tables you want to display (in my case this is called "P38_TABLES" )
3) create a dynamic action that triggers on change of your select list page_item. The dynamic action must be a PL/SQL procedure perfoming the following code:
declare
l_query varchar2(4000);
begin
l_query := 'select * from '||:P38_TABLES;
if apex_collection.collection_exists
( p_collection_name => 'MY_COLLECTION' )
then
apex_collection.delete_collection
( p_collection_name => 'MY_COLLECTION' );
end if;
apex_collection.create_collection_from_query
( p_collection_name => 'MY_COLLECTION'
, p_query => l_query
end;
Make sure you add your page_item to the "Page Items to Submit" section.
4) Add an extra true action that does a refresh of the report region.
Here are two pictures describing the da:
http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA1.png
http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA2.png
Good luck and regards,
Vincent
http://vincentdeelen.blogspot.com -
Hi,
in a backing bean (MyBean) which exposes a List of MyItem objects.
I show this list in a report page using a dataTable.
I associate a link "details" to each row and I want that selecting this link a detail page is shown, with all the data for the specific item selected.
How can I do this ?
Pietrook! I've wrapped my item List in a ListDataModel obejct with very few changes to my code and set up detail method as:
/** list bounded to the report page */
private ListDataModel myList;
/** detailed item */
private MyItem myItem;
/** action called from a single report page row */
public String itemDetails(){
this.myItem = (MyItem) myList.getRowData();
// goes to the item details page
return "details";
and it works well.
thanks!
Pietro -
Can't delete multiple selected items in List or Library
I am experiencing quirky behavior when attempting to delete multiple selected items from a library or list. I select a few items via check box for each item I would like to delete. Then I click the delete button in the ribbon, and all I get is "Deleting...",
but no page refresh and the items are not deleted. However if I access the same list or library via the App server and select a few items, then hit delete, the page refreshes and the items are deleted.
So I consulted the Logs and compared the Web Server vs App Server, and the there is a lot of cryptic entries. The few lines that stands out most to me is the App server is:
ConnectionString: 'Data Source=database;Initial Catalog=Content;Integrated Security=True;Enlist=False;Asynchronous Processing=False;Connect Timeout=15'
ConnectionState: Closed ConnectionTimeout: 15
In fireItemEvent(), for list Building Locations, and item: 1
In fireSyncItemEvent(), calling ExecuteItemEventReceivers()
Calling ExecuteItemEventReceivers() for list 0f773535-3b22-4c29-97f1-fd2b70b50dd3 on item 1
Entering monitored scope (Event Receiver (Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, Microsoft.SharePoint.Publishing.Internal.PublishingWebEventReceiver))
Releasing SPRequest with allocation Id {FE9A45A8-C042-4223-8FCC-4BD873C93885}
PublishingWebEventReceiver:ItemDeleting: item
These calls are not in the web server log.
The list I was doing the delete action on was "Building Locations". We are using claims based authentication
Thanks for any insight or thoughts.
BrandonI confirmed that there is no rewrite tags in either web config (app or web).
I did download fiddler, and when I try and delete on the web front end I get:
It tries to access the URL https://mysite/_layouts/_vti_bin/client.svc/processQuery
Then it sends me here since I have been denied
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="https://mysite/_layouts/AccessDenied.aspx">here</a>.</h2>
</body></html>
The app server goes to
http://mysite/_layouts/_vti_bin/client.svc/processQuery doesn't get denied and deletes the items. -
Assign a SELECT item's list of values - APEX 2.2.0
Hey, all,
Is there a way to assign the list of values of a SELECT item programatically, besides the usual query-in-the-LOV? I am reusing a page 0 region and have a SELECT item that can take on a wide range of lists of values. Something like:
AddOptionToSelectItem('P0_MY_SELECT', 'Yes', 1);
AddOptionToSelectItem('P0_MY_SELECT', 'No', 0);
or:
SetLOV('P0_MY_SELECT', somethingRepresentignAListOfValues);
If that cannot be done, I'll just put all of the parameters I need to figure out what goes into the select list into page 0 items and either write query the old fashioned way or write a PL/SQL function that takes the parameters in and returns a table.
Thanks!In case this helps, you can specify an item's LOV attribute as a function that returns the LOV query, e.g.,
return my_lov;
Scott -
Multiple selection in list item
can i do multiple selection i list item using developer6(i), if yes, how?
Hello,
Please repost this question in the appropriate section of the Discussion Forum.
This forum is for general suggestions and feedback about the OTN site.
You can also use our new offering called OTN Service Network:
For Oracle Advice/Minimal Support (fee based) on the Oracle Database Server, Oracle9i Application Server Containers for J2EE (OC4J), Oracle9i JDeveloper, Reports, Forums, SQL*Plus, and PL/SQL, please go to: http://www.oracle.com/go/?&Src=912386&Act=45
For customers with paid support (Metalink) please go to:
http://www.oracle.com/support/metalink
Regards,
OTN -
Automatic Selected Item of List Builder Component Does not work (anymore)
Hi all,
Í'm working with Xcelsius Engage 2008 (version 5.3.2.0) and the automatic selection of an item at runtime of the list builder component does not work anymore. In a previous version it worked very well.
Here's the case: at runtime I want that the list builder component automatically puts the first item in the list to the destination section and selects it, so that a graph can show the underlying pushed data. In the previous version it worked o.k., but now at runtime the destination section remains empty at startup. If I interactively select an item from the source section to the destination section and update the list builder, the data is shown correctly, but it must done automatically, which worked o.k. in an earlier version of Xcelsius 2008...
This are my settings of the list builder component (which was running correctly earlier..):
-at the general tab I defined a range of labels
-at the general tab I defined 2 data column insertion series
-at the behaviour-common tab I defined selected items: position mode; items: the first item of the label list; insert items at runtime
-all of the data comes from an external xml data source
You can find an example of the visualisation at: http://onderzoek2.evinet.nl/projecten/10169/dynarap.htm. You will see that at start-up there is no item visible and selected in the destination section of the list builder....
I've tried every combinations of settings, build up the component from scratch, but its not working (anymore).
Greetings Erik-Jan VriensHi njnits,
Print view button is a standard component of Xcelsius: look at it in the IDE
Exporting to Powerpoint is also a standard functionality, so yes. For this particular dashboard/report all data resides in an external xml-file which have to be accessible for Powerpoint
All visualisations, not only the table, in this/report fetch their data from an external xml-file, but a QaaWS-connection will also do the trick. You will have to write this dedicated service. In our case the xml-data is also generated automatically.
The external data is best defined as a sort of matrix, consisting of approx. 100 columns by 1000 rows. I agree it takes a lot of Xcelsius but it does the job....
Hopes this info helps.... -
How can i show the first item in the list as selected item
Aslam o Alikum (Hi)
Dear All
How can i show the first item in the list as selected item when user click on the list. Right now when user click the list the list shows the last item in the list as selected or highlighted. Furthermore if the list item have large no of value and a scroll bar along with it then the list scroll to last item when user click it with mouse. I want that when user click the list item with mouse list should show the first item as highlighted.
Take Care
Allah HafizHi!
You can set list "initial value" using When-Create-Record trigger.
I.g.
:<Block_name>.<list_item_name> := Get_List_Element_Value('<Block_name>.<list_item_name>', 1); -
Getting a lists selected item itemRenderer's properties
Is there a way to get a Spark List's selectedItem itemRenderer's contentToGlobal x and y and it's height values?
Thanks,
JohnHello Shongrunden;
Thanks again for your help, if you don't mind me asking a couple of more questions...
- With a scrollable Spark List, if a selected item is partially in view, is there a method to get just the visible height of the itemRenderer?
- Also, on my custom paged List component, with a custom itemRenderer and useVirtualLayout = true, after the list data is retrieved a resultHandler is called, in this I then call your getRendererCoordinates function. I also call getRendererCoordinates() in a listChangeHandler.
After the resultHandler calls getRendererCoordinates, even though the dataGroup is showing the proper number of elements, and I set the list.selectedIndex to 0, the renderer variable created in;
var renderer:IVisualElement = list.dataGroup.getElementAt(list.selectedIndex);
the renderer var returns null on the initial display called from the resultHandler, but ... it works perfect on on the listChangeHandler and subsequent page displays. So it seems the renderer is not finished being drawn when getRendererCoordinates is being called from the resultHandler, but subsequent page displays work probably because the renderer has already been drawn. I've tried callLater(getRendererCoordinates) but since nothing else is going on it won't trigger. I did not see an event that can be dispatched from IVisualElement after it is completely drawn that I can use to call getRendererCoordinates.
Any suggestions?
Thanks again for your help and time,
John -
Select item in list box using code
We use Adobe Workflow v5. I am creating a Check Request application where users type information into various fields and when they click Add, the data is added to a List Box. Also when they click Add, if the current item is >$1,000, a query searches our accounting database to see if the client has outstanding AR older than 90 days. If they do, another list box is displayed with the client name and amount of outstanding AR.
If that clientnum is already in the second list box, it does not add another one.
To delete a record from the first list box, the users select the item in the first list box, and then click a Delete button. That deletes the
record in the first list box.
I am also trying to delete the record from the second list box but am not sure how to select it using code. As part of the Delete button code, if the currently selected item (the one they want to delete) is >$1,000, I go through each row of the first list box to see if clnum.text (field in the form where the record to be deleted is now displayed) matches the client number in column 4 of any row of the first list box. If it does, I see if the amount of the item in the first list box is >$1000.
If it is, then I know that there is a corresponding record in the second list box.
Here is some of the code:
'go through each row in first list box
For irow = 1 to lstExp.ListCount
'set clientnum variable equal to client # in row in first list box
clientnum = lstExp.RetrieveItem(irow,4)
'if clientnum variable is equal to client # to be deleted from first list box (selected record - client # in clnum.text now)
if clientnum = trim(clnum.text) then
'if amt is >$1,000 in first list box
if lstExp.RetrieveItem(irow,10) > 1000 then
'don't delete row because there is another record in first list box
DeleteOutAR = "N"
else
'delete row because there is NOT another record in first list box.
DeleteOutAR = "Y"
end if
end if
Next
Here is the code I need help with. I am unsure how to select the record in the second list box so I can delete it.
if DeleteOutAR = "Y" then
'go to second list box ?
form.GoToField(lstOutARUnbilled)
'start going through second list box looking for clientnum
For irow2 = 1 to lstOutARUnbilled.ListCount
if clientnum = lstOutARUnbilled.RetrieveItem(irow2,1) then
irow2 = lstOutARUnbilled.CurrentSelection
lstOutARUnbilled.Removeitem (irow2)
end if
next
end if
So my question is, how can I move to the second list box to actually delete the record?
Thank you in advance for any help.
MaryMary-
The solution could either be quite easy or difficult dependent upon how the data is arranged in the subsequent list box.
Basically, if there is any sort of corresponding or matching entries, meaning line 1 from list box #1 matches with line 1 of listbox #2, then you would simply execute the following...
"listbox#2.RemoveItem listbox#1.CurrentSelection"
Or if you have a column that would contain the same values, say an index, then you could just loop thru the 2nd listbox searching for that index and once found remove the line...
"listbox#2.RemoveItem nRow"
, where nRow would be the line that you discovered to have the matching index. -
Javascript help to copy selected items from one list to another list on same site
Hello,
So I have a request that I am not sure how to handle. I have created a page with a list view webpart that displays all the items from one list.
The user is then supposed to select off multiple list items and click on a button (most likely a ribbon button) that will take the selected items and copy them to another list on the same SharePoint site.
I would like to do this with JavaScript, but have only found an example that copies library items to another library.Hi KansaiKel,
According to your description, my understanding is that you want to copy selected list items to another list.
I suggest you can use JavaScript Client Object Model to achieve it.
Here is a code snippet for your reference:
<script type="text/javascript">
var context = SP.ClientContext.get_current();
var siteUrl = 'http://sp2013sps/sites/test';
var clientContext = new SP.ClientContext(siteUrl);
var web = context.get_web();
context.load(web);
var sourceId = SP.ListOperation.Selection.getSelectedList();
var source = web.get_lists().getById(sourceId);
var oList = context.get_web().get_lists().getByTitle('Copy');
context.load(oList);
var selectedItems = SP.ListOperation.Selection.getSelectedItems(context);
alert('debut');
for(var i in selectedItems)
var currentItem = source.getItemById(selectedItems[i].id);
context.load(currentItem);
context.executeQueryAsync(Function.createDelegate(this,test),Function.createDelegate(this,error));
function test(sender, args){
var itemCreateInfo = new SP.ListItemCreationInformation();
var oListItem = oList.addItem(itemCreateInfo);
oListItem.set_item('Title', currentItem.get_item('Title'));
oListItem.update();
oList.update();
alert('done');
function error(sender, args){ alert('error');}""
</script>
Here is a detailed article for your reference:
Complete basic operations using JavaScript library code in SharePoint
Best Regards
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Zhengyu Guo
TechNet Community Support -
Retrieving value of selected item in sap.m.list
var data = {
details : [{
Name : "MuthuKannan", Age : "22",Location :"Bangalore" },
{ Name : "Sachin Tendulkar", Age : "35", Location :"Mumbai" },
var model = new sap.ui.model.json.JSONModel();
model.setData(data);
var model1 = new sap.ui.model.json.JSONModel();
model1.setData({
col1 : "Name ",
col2 : "Age",
col3 : "Location "
sap.ui.getCore().setModel(model1, "mkModel1");
list = new sap.m.List("", {
threshold: 2,
inset : false,
select : function(){
a = list.getSelectedItems();
alert(a[0].getBindingContext());
How can I get the name of selected item? I tried the highlighted text but I am unable to proceed ,I even tried toString() function still I am not getting the output.All I am getting(alert box) is either "null" or "undefined". Kindly help me on this.
Thanks and Regards,
Muthu Kannan STry this
list = new sap.m.List("", {
threshold: 2,
inset : false,
select : function(oEvent){
// oEvent is the key to access everything
oEvent.getSource().getSelectedItem() ;
Maybe you are looking for
-
Font list just keeps getting longer!@!
hello! i use suitcase fusion with my illustrator CS2. I have noticed that in some files the font list is very long, and once I open a new font or activate it it is listed in the font list and openned every time I open the file. is there a way to dele
-
Any ideas how to get this working? I donʻt have money to go buy a new monitor...
-
How do I create a bootable snapshot image of Lion?
How do I create a bootable snapshot image of Lion? In the past, I used disk utilities - restore to create a copy of current hard drive on an external drive. If there was a problem, kids could boot to external and work until internal drive was fixed
-
How to get the value assigned in dropdowmlistbox as well as radio button
Hi Everybody, Please help me to find the solution for the following: 1. How to get the value assigned in dropdowmlistbox? 2. How to get the value assigned in radio button? I am waiting for the answer and reply... Thanks & Regards, Shan
-
Cost center relationship with department
Hi experts, I have one question to ask about cost center relationship.Let say one department use only one cost-center. Is it I have to key-in the relationship between department and cost-center only or I have to key -in all the position in that depar