DataGrid Multiple Selection and ItemClick Event
Hi,
Can any one help me in preventing the ItemClick event when end user tries to select multiple items in DataGrid..!
Thanks,
Pradeep
There are 2 ways which will depend on your exact requirement.
1. Use event.preventDefault() which will cancel your event to execute.
2. If you want to make it select once then take boolean variable in itemclick and make it true on 1 item click and check in itemclick if boolean is false allow and continue what you wan to do in that event else not.
Hope it will help you!!!
Similar Messages
-
Can I make the parameter supports multiple selection and editable at the same time?
Hi,
I am building my report using SQL Server Report builder 3.0. All the parameters are added to the report
by the builder. When the user access the report by browser, he can change the parameter value and click "view report" button to load the report from the database.
For one of the parameter, I want to provide user the ability to select frequently used value as multiple
selection, and meanwhile let them able to edit the value if the preloaded selection doesn't contain what he wants.
Is it possible to archive this goal using report builder?
Thanks!You cant have this functionality using standard report viewer. An approximate work around can be implemented as follows.
Have two parameters one based on your current parameter values (dropdown) and another one without any available values set and default set to NULL (Set Allow Null value property and pass Null as default value). This parameter will appear as disabled textbox
with NULL checkbox checked.
Now in your code behind which gives you first parameter's values Add one more value say <None Of Values> and set value as some default value (-1 if int or just a random string value).
Now in the value for second parameter set a expression like below
=IIF(Parameters!FirstParam.Value ="<Select None>","",Nothing)
This will make sure second parameter gets activated when you select option <none> from first. Then you can type the value you want in it
In query behind just make filter like below
WHERE field = CASE WHEN @Param1 <> '<None>' THEN @Param1 ELSE @Param2 END
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Hello
My client wants to have a possibility of multiple selections
in a datagrid... but he wants to have them selected by a simple
click instead of the "classical" ctrl click... how can I achieve
that ?
HenriWhat you can do is use the selectedIndices property of the
grid. Keep a
separate array - call it indices. When a click on the grid is
made, get the
grids.selectedIndex and then add that to you indices array.
Then set the
grids.selectedIndices to your indices array. Make sure you
set the grids
multipleSelection property to true.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Multiple selection and lead selection
I have now multiple selection in my application via selectin mode 8. but i also want that the app reacts when i make one selection. the lead_selection argument does not work anymore with mode 8.
Anyone nows how to manage that?Hi,
u want to know the value/column name of clicked cell in ALV, am i right?
If i'm right do below:
1. Create a event handler with name on_click , while creating the event handler u have to specify the select the event as ON_AFTER_CONFIG (Press F4 on the Event row).
Inside on_click u can get the value of the selected cell.
U have WDEVENT & R_PARAM parameters.
Using these 2 parameters u can get as ur wish.
Reward if useful.
Thanks,
Router -
Spliting deliverables according to multiple selection and load it
Hi ,
There are some couple of Deliveries and I need to split them into multiple selections .Then I need to load them based on selections to ods and cube .
Please tell the steps to do this in BI7 Verison.you can create two transformation groups to splitt data. maintain rules for both groups
or
start routine can be used to split the data
loop at source_package into <source_package>.
If <check if this record should be splitted>
wa_newdata = <source_package>.
Modily your new line accoridingly..
append wa_new_data to it_new_data .
endif.
clear wa_new_data
endloop.
append lines of wa_new_data to source_package. -
Multiple movieclips and mutiple event handling.
Hi All,
I have multiple movieclips(images sequence), which I want to add mouseevent (click and drag), keyboard event(left and right arrows) and zoom event(mouse wheel).
I have this function for only one mc(one image sequence).
Now if I use this function, I am having problem with calling the function from the same frame.
That is,
If click another mc from say frame 3, and click on another function, it should continue from frame 3 only, not start from first frame again.
Please help.
Thanks in advance.I assume that shows the part where you rotete the house view in a 360degree fashion?
if so, make a global var on your root timeline:
var rotationframe:int = 1; //in the beginning of the app all the dirffernt images are sitting on frame 1
you can access this var from anywehere inside any function of your app by calling:
root.rotationframe
now in the function that handles the rotation (lets say its your keyboard function) in the end (after you moved the playhead) you make sure to always set
root.rotationframe = garage.currentFrame;
and in the function that handles the switching between images you write sth. like
gotoAndStop(root.rotationframe);
Be aware, you can`t simply use that code without adapting it to your special needs. -
Listbox component, multiple selections and databases
Hello, I have a listbox component bound to a database. It populates alright, but when I want to set the default selections and add an array of String objects to the listbox's selected property, they never appear selected. I set the array in the prerender method. Has anyone done this before? I searched and only found different situations.
TIA,
ScottHere is an excerpt from http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/about_components.html
"One way to preselect items is to call setSelectedValue(Object[]) or setSelectedValue(Object) from the prerender() method. You pass in the return values of the items that you want preselected. ..."
"For the items property, you specify a display label and a return value for each item in the list. The selected property returns an object, or, if the multiple property is selected, an array of objects, of the same type as the return values. "
" If the multiple property is false, the value of the component's selected property matches the return value of the selected list item. If the multiple property is set to true (to enable the user to select more than one item), you must bind selected to an array of Object, an array of primitives, or java.util.List. If you use java.util.List, you must specify a converter for the type of the List members unless they are String objects. The array contains values that match the return values of the selected items." -
FileReference Select and Cancel Event Not Working in leopard
FileReference not working in leopard
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
public function onClick():void{
var fr:FileReference=new FileReference();
//fr.addEventListener(
fr.addEventListener(Event.OPEN,openHandler);
fr.addEventListener(Event.COMPLETE,completeHandler);
fr.addEventListener(Event.SELECT,selectHandler);
fr.addEventListener(Event.CANCEL,cancelHandler);
fr.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,uploadCompleteDataHandler);
fr.addEventListener(HTTPStatusEvent.HTTP_STATUS,httpStatusHandler);
fr.addEventListener(IOErrorEvent.IO_ERROR,ioErrorHandler);
fr.addEventListener(ProgressEvent.PROGRESS,progressHandler);
fr.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErrorHandler);
fr.browse([new FileFilter("images", "*.png;*.jpg;*.gif")]);
private function cancelHandler(event:Event):void {
trace("cancelHandler: " + event);
private function completeHandler(event:Event):void {
trace("completeHandler: " + event);
private function
uploadCompleteDataHandler(event:DataEvent):void {
trace("uploadCompleteData: " + event);
private function
httpStatusHandler(event:HTTPStatusEvent):void {
trace("httpStatusHandler: " + event);
private function ioErrorHandler(event:IOErrorEvent):void {
trace("ioErrorHandler: " + event);
private function openHandler(event:Event):void {
trace("openHandler: " + event);
private function progressHandler(event:ProgressEvent):void {
var file:FileReference = FileReference(event.target);
trace("progressHandler name=" + file.name + " bytesLoaded="
+ event.bytesLoaded + " bytesTotal=" + event.bytesTotal);
private function
securityErrorHandler(event:SecurityErrorEvent):void {
trace("securityErrorHandler: " + event);
private function selectHandler(event:Event):void {
Alert.show("XD");
]]>
</mx:Script>
<mx:Button x="205" y="198" label="Button"
click="onClick()"/>
</mx:Application>
Adobe Flex Builder 3 Beta3
Leopard 10.5.1
both Safari and firefox doesn't workFlash version is 115 debug player
-
Revision: 6476
Author: [email protected]
Date: 2009-05-01 14:08:56 -0700 (Fri, 01 May 2009)
Log Message:IE doesn't like something about
http://72.29.76.51/~organica/fadeslideshow.js
Perhaps try re-uploading it. -
Multiple users and multiple select options
Hi,
First of all, let me congratulate Oracle HTML DB team for this great product! This is extremely powerful and useful.
I have multiple selection item on the form to generate report for the selected multiple schools. I have two critical questions.
1) Currently I am deleting all records from database tables for multiples selects and similarly selecting all records from these tables to populate dependent LOVs and so on. This is a major issue when multiple people use this application at the same time. I looked at couple of examples to create, delete and select records based on IDs (unique) and it is not clear to me if I need to create parameter/hidden params on the reports side or on the HTML DB side or .. how do they communicate etc. Could any one clarify this process of checking for unique IDs please.
2) Is there any way to give an option to the user to treat multiple selected item as just one single and to treat them separate? For example, if we let the user count number of students at two schools, how can we let the user count two schools separate as well as both schools together? This should also further ask for the possible options separate for both schools separate if they were to run separate.
This is very important for me and appreciate any help from you. Thanks in advance.Hi,
Could any one point me in the right direction, please!
Thanks, -
Multiple selection in JTable for deletion
Dears,
I'm using Jdeveloper 9.0.3.3 on 8.1.7 Oracle DB.
I noticed that when a JTable is bound to a View object ==> only one row can be selected.
My situation -which I think is very common- I have a screen with JTable where I can edit a row and commit my updates or select multiple selection in JTable and delete them at once ; thats what I need.
It is very like the test of any application module but allow multiple selection and deletion in JTable for user's selected rows.
How this could be done in JClient?
Thankx in advance.Thanks for your suggestions! They both would work as workarounds, I think. I tried another way:
Following code changes a TableBinding bound JTable's selection model to Multi select (thanks to Shailesh!!).
void setMultiSelectionModel(JTable tbl)
class MultiSelectionListListener implements javax.swing.event.ListSelectionListener
ListSelectionModel defSelModel;
MultiSelectionListListener(ListSelectionModel model)
defSelModel = model;
public void valueChanged(javax.swing.event.ListSelectionEvent e)
if (!e.getValueIsAdjusting())
ListSelectionModel listModel = (ListSelectionModel)e.getSource();
int leadIndex = listModel.getLeadSelectionIndex();
if (leadIndex == listModel.getAnchorSelectionIndex()
&& leadIndex == listModel.getMaxSelectionIndex()
&& leadIndex == listModel.getMinSelectionIndex())
//change currency on the bound iterator only if
//one row is being selected.
defSelModel.setSelectionInterval(leadIndex, leadIndex);
ListSelectionModel newModel = new DefaultListSelectionModel();
newModel.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
newModel.addListSelectionListener(new MultiSelectionListListener(tbl.getSelectionModel()));
tbl.setSelectionModel(newModel);
This fixes the bug if you select some rows and then select a row before the first selected one. Seems to work great. -
UIX/XML BC4J Retaining multiple selection in tables
We have a table with multiple selection, and we want the items to remain selected after the page refresh for some reason. Whats the cheapest way to obtain this?
Data bind the selection attribute of multipleSelection to "someKey@ctrl:eventResult". Then in your event handler use an oracle.cabo.ui.data.ServletRequestDataSet and attach it to the event result, under the key "someKey".
When the page is refreshed it should remember the multiple selection.
Regards,
John Fallows
Oracle Corporation. -
How do i take one layer with multiple selections...
how do i take one layer with multiple selections and make those selections their own layer?
Yes sir. It w was really hard to explain. It is discontiguous segments that are separated by transparent areas. And I want those non transparent areas to be on their own layer. I have a photo shop file that has a bunch of buttons on them and they are on a transparent background. It is one layer. I want to select all the buttons and put them on their own layers. I can do this manually by selecting a button and cmd Just to a new layer, but when I have 200 buttons it is a daunting task.
Sent by MailWise<http://www.mail-wise.com/installation/4> – Your emails, with style. -
How to use multiple selection parameters in the data model
Hi, after have looked all the previous threads about how to use multiple selection parameters , I still have a problem;
I'm using Oracle BI Publisher 10.1.3.3.2 and I'm tried to define more than one multiple selection parameters inside the data template;
Inside a simple SQL queries they work perfectly....but inside the data template I have errors.
My data template is the following (it's very simple...I am just testing how the parameters work):
<dataTemplate name="Test" defaultPackage="bip_departments_2_parameters">
<parameters>
<parameter name="p_dep_2_param" include_in_output="false" datatype="character"/>
<parameter name="p_loc_1_param" include_in_output="false" datatype="character"/>
</parameters>
<dataTrigger name="beforeReport" source="bip_departments_2_parameters.beforeReportTrigger"/>
<dataQuery>
<sqlStatement name="Q2">
<![CDATA[
select deptno, dname,loc
from dept
&p_where_clause
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_DEPT" source="Q2">
<element name="deptno" value="deptno"/>
<element name="dname" value="dname"/>
<element name="loc" value="loc"/>
</group>
</dataStructure>
</dataTemplate>
The 2 parameters are based on these LOV:
1) select distinct dname from dept (p_dep_2_param)
2) select distinct loc from dept (p_loc_1_param)
and both of them have checked the "Multiple selection" and "Can select all" boxes
The package I created, in order to use the lexical refence is:
CREATE OR REPLACE package SCOTT.bip_departments_2_parameters
as
p_dep_2_param varchar2(14);
p_loc_1_param varchar2(20);
p_where_clause varchar2(100);
function beforereporttrigger
return boolean;
end bip_departments_2_parameters;
CREATE OR REPLACE package body SCOTT.bip_departments_2_parameters
as
function beforereporttrigger
return boolean
is
l_return boolean := true;
begin
if (p_dep_2_param is not null) --and (p_loc_1_param is not null)
then
p_where_clause := 'where (dname in (' || replace (p_dep_1_param, '''') || ') and loc in (' || replace (p_loc_1_param, '''') || '))';
else
p_where_clause := 'where 1=1';
end if;
return (l_return);
end beforereporttrigger;
end bip_departments_2_parameters;
As you see, I tried to have only one p_where_clause (with more than one parameter inside)....but it doesn't work...
Using only the first parameter (based on deptno (which is number), the p_where_clause is: p_where_clause := 'where (deptno in (' || replace (p_dep_2_param, '''') || '))';
it works perfectly....
Now I don't know if the problem is the datatype, but I noticed that with a single parameter (deptno is number), the lexical refence (inside the data template) works.....with a varchar parameter it doesn't work....
So my questions are these:
1) how can I define the p_where_clause (inside the package) with a single varchar parameter (for example, the department location name)
2) how can I define the p_where_clause using more than one parameter (for example, the department location name and the department name) not number.
Thanks in advance for any suggestion
AlexAlex,
the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
So change your package to (you need to expand your variables)
create or replace package bip_departments_2_parameters
as
p_dep_2_param varchar2(1000);
p_loc_1_param varchar2(1000);
p_where_clause varchar2(1000);
function beforereporttrigger
return boolean;
end bip_departments_2_parameters;
create or replace package body bip_departments_2_parameters
as
function beforereporttrigger
return boolean
is
l_return boolean := true;
begin
p_where_clause := ' ';
if p_dep_2_param is not null then
if instr(p_dep_2_param,',')>0 then
p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
else
p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
end if;
if p_loc_1_param is not null then
if instr(p_loc_1_param,',')>0 then
p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
else
p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
end if;
end if;
else
if p_loc_1_param is not null then
if instr(p_loc_1_param,',')>0 then
p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
else
p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
end if;
end if;
end if;
return (l_return);
end beforereporttrigger;
end bip_departments_2_parameters;
I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
Regards
Rainer -
ABAP Dump when executing tcode CATS_APPR_LITE for multiple selection.
Dear Members,
Issue:
When executing tcode CATS_APPR_LITE for Time Approval from the remote R/3 by selecting multiple selections and click on Approve, if you get a dump saying CALL_FUNCTION_REMOTE_ERROR
Analysis:
If there is an SAP Note applied in 1368487 and at CALL FUNCTION CATS_CHECK _PTEXDIR FM getting the dump because in source system for this function module Remote Enabled Module option is not checked.
To resolve this correction note 1430042 has to be applied.
Regards
DurgaDear Members,
Issue:
When executing tcode CATS_APPR_LITE for Time Approval from the remote R/3 by selecting multiple selections and click on Approve, if you get a dump saying CALL_FUNCTION_REMOTE_ERROR
Analysis:
If there is an SAP Note applied in 1368487 and at CALL FUNCTION CATS_CHECK _PTEXDIR FM getting the dump because in source system for this function module Remote Enabled Module option is not checked.
To resolve this correction note 1430042 has to be applied.
Regards
Durga
Maybe you are looking for
-
CS3
-
No place to Double Click visible on pdf file-after opening a password-protected pdf
No place to Double Click visible on pdf file-after opening a password-protected pdf
-
Songs on a single CD are split between two albums in Itunes
This seems to happen whenever a particular artist on the CD has someone else join him and the singer listed goes from "singer name" to "singer name and other name". This creates another "album" with a single song on it. Any way to prevent this and/or
-
How do I disable responding to an 'X-Confirm-Reading-To" header in incoming email?
I am receiving emails with 'X-Confirm-Reading-To:' and 'Notice-Requested-Upon-Delivery-To:' headers. I consider the automatic response to these headers a privacy violation. How can I disable all such "return receipt request" functions?
-
[SOLVED] Unresolvable dependencies: gambas3-examples
I am trying to get my package updates using pacman, but unfortunately there seems to be a problem with some of the gambas3 packages: [hamish@Griffindor ~]$ su - Password: [root@Griffindor ~]# pacman -Syu :: Synchronizing package databases... core is