Disable the dragging of the "group" rows
We are using the AdvancedDataGrid as a tree dataGrid, using
GroupingCollection as the dataProvider. The items in the dataGrid
can be dragged, so dataGrid.dragEnabled is set to "true".
But by setting dragEnabled to true, all rows seems to be
draggeable, even the "group" rows! We would like to disable the
possibility to drag the group rows, without managing the entire
drag/drop process ourself using the DragManager. Is it possible?
Thanks in advance!
Any help?
Similar Messages
-
Safari: Tabs disappear when dragging on the tab bar
When dragging tabs to re-arrange them all the tabs disappear, except the one you're dragging, which makes placing the dragged tab difficult. When you drop the dragged tab the others re-appear.
Anyone else seeing this?I'm having sort of the opposite thing happen. When I grab a tab and drag it out of the window and drop it, it disappears. The odd thing is, if I click on mission control I can see the missing safari window. I can drag it to multiple desktops and work with it in mission control just like normal. And if the page is playing any audio or video that will continue, but it just disappears. Only quitting safari and chooing close all windows with the option key does it go away.
-
What is the deal with the crazy zooming when I drag the playhead??
What is the deal with the zooming in with the dragging of the playhead??? I'm sure I can adjust/turn off this feature in the preferences. How could i use this to benefit me? How would it? It seems so spastically erratic!
I use it quite a bit for zooming in and out (by dragging up and down) but you have to be careful you don't move left or right when doing this as it then becomes a bit unpredictable as you say...
If you just want to use the playhead for dragging left and right (and if you can't find a pref to turn it off) you'll just have to be careful to drag only in the horizontal axis and not up or down..
Cheers
Robo -
How to hide itemRenderers in the Grouped rows of an AdvancedDataGrid?
I am using an AdvancedDataGrid and showing a comboBox as the itemRenderer and also the editRenderer. However I am seeing the combobox in the grouped rows also. Below is the code I am using and also attached the screenshot of the app. Please help.
TestAdvGridGrpRen.mxml
===================
<?xml version="1.0"?>
<!-- dpcontrols/adg/SummaryGroupADGCustomSummary.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
import mx.collections.IViewCursor;
import mx.collections.SummaryObject;
[Bindable]
private var dpFlat:ArrayCollection = new ArrayCollection([
{Region:"Southwest", Territory:"Arizona",
Territory_Rep:"Barbara Jennings", Actual:38865, Estimate:40000},
{Region:"Southwest", Territory:"Arizona",
Territory_Rep:"Dana Binn", Actual:29885, Estimate:30000},
{Region:"Southwest", Territory:"Central California",
Territory_Rep:"Joe Smith", Actual:29134, Estimate:30000},
{Region:"Southwest", Territory:"Nevada",
Territory_Rep:"Bethany Pittman", Actual:52888, Estimate:45000},
{Region:"Southwest", Territory:"Northern California",
Territory_Rep:"Lauren Ipsum", Actual:38805, Estimate:40000},
{Region:"Southwest", Territory:"Northern California",
Territory_Rep:"T.R. Smith", Actual:55498, Estimate:40000},
{Region:"Southwest", Territory:"Southern California",
Territory_Rep:"Alice Treu", Actual:44985, Estimate:45000},
{Region:"Southwest", Territory:"Southern California",
Territory_Rep:"Jane Grove", Actual:44913, Estimate:45000}
// Callback function to create
// the SummaryObject used to hold the summary data.
private function summObjFunc():SummaryObject {
// Define the object containing the summary data.
var obj:SummaryObject = new SummaryObject();
// Add a field containing a value for the Territory_Rep column.
obj.Territory_Rep = "Alternating Reps";
return obj;
// Callback function to summarizes
// every other row of the Actual sales revenue for the territory.
private function summFunc(cursor:IViewCursor, dataField:String,
operation:String):Number {
var oddCount:Number = 0;
var count:int = 1;
while (!cursor.afterLast)
if (count % 2 != 0)
oddCount += cursor.current["Actual"];
cursor.moveNext();
count++;
return oddCount;
]]>
</mx:Script>
<mx:AdvancedDataGrid id="myADG"
width="100%" height="100%"
initialize="gc.refresh();">
<mx:dataProvider>
<mx:GroupingCollection id="gc" source="{dpFlat}">
<mx:Grouping>
<mx:GroupingField name="Region"/>
<mx:GroupingField name="Territory">
<mx:summaries>
<mx:SummaryRow summaryObjectFunction="summObjFunc"
summaryPlacement="first">
<mx:fields>
<mx:SummaryField dataField="Actual" summaryFunction="summFunc"/>
</mx:fields>
</mx:SummaryRow>
</mx:summaries>
</mx:GroupingField>
</mx:Grouping>
</mx:GroupingCollection>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn dataField="Region"/>
<mx:AdvancedDataGridColumn dataField="Territory_Rep"
headerText="Territory Rep"/>
<mx:AdvancedDataGridColumn headerText="Actual" dataField="Actual"
rendererIsEditor="true"
itemRenderer="TestStatusTypeEditor"
editorDataField="type"/>
<mx:AdvancedDataGridColumn dataField="Estimate"/>
</mx:columns>
</mx:AdvancedDataGrid>
</mx:Application>
TestStatusTypeEditor.mxml
====================
<?xml version="1.0" encoding="utf-8"?>
<mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="OnInit()" >
<!-- This is the content of the ComboBox.
<mx:dataProvider>
<mx:Object label="Cog" />
<mx:Object label="Sproket" />
</mx:dataProvider>
-->
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var cards:ArrayCollection = new ArrayCollection(
[ {label:"38865", data:1},
{label:"29885", data:2},
{label:"29134", data:3},
{label:"52888", data:4},
{label:"38805", data:5},
{label:"55498", data:6},
{label:"44985", data:7},
{label:"44913", data:8}]);
private function OnInit():void
dataProvider = cards;
* This override of set data compares the data.label against the label property
* of each item in the dataProvider (above). This code is written a bit more
* generically than necessary, but it would allow you to have a long list
* in the dataProvider and not have to change this code.
override public function set data(value:Object):void
super.data = value;
var list:ArrayCollection = dataProvider as ArrayCollection;
for(var i:int=0; i < list.length; i++)
if( String(value.statusName) == list[i].label ) {
selectedIndex = i;
* This getter is the one identified as the editorDataField in the list for
* the itemEditor.
public function get type() : String
if( selectedItem ) {
return selectedItem.label;
else {
return null;
]]>
</mx:Script>
</mx:ComboBox>Solved this issue by using mx:rendererProviders element for my AdvancedGrid. Using the depth parameter gives me the ability to hide the itemRenderer for the Grouped rows.
<mx:AdvancedDataGrid id="myADG"
width="100%" height="100%"
initialize="gc.refresh();">
<mx:dataProvider>
<mx:GroupingCollection id="gc" source="{dpFlat}">
<mx:Grouping>
<mx:GroupingField name="Region"/>
<mx:GroupingField name="Territory">
<mx:summaries>
<mx:SummaryRow summaryObjectFunction="summObjFunc"
summaryPlacement="first">
<mx:fields>
<mx:SummaryField dataField="Actual" summaryFunction="summFunc"/>
</mx:fields>
</mx:SummaryRow>
</mx:summaries>
</mx:GroupingField>
</mx:Grouping>
</mx:GroupingCollection>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn dataField="Region"/>
<mx:AdvancedDataGridColumn dataField="Territory_Rep"
headerText="Territory Rep"/>
<mx:AdvancedDataGridColumn headerText="Actual" dataField="Actual"
rendererIsEditor="true"
editorDataField="type"/>
<mx:AdvancedDataGridColumn dataField="Estimate"/>
</mx:columns>
<mx:rendererProviders>
<mx:AdvancedDataGridRendererProvider
columnIndex="2"
columnSpan="1"
depth="3"
renderer="TestStatusTypeEditor"/>
</mx:rendererProviders>
</mx:AdvancedDataGrid> -
How to insert a row in Tree table which is dragged from the table?
Hi All,
I am having a Tree table and a Table in the same page, like below
Treetable Table
Item1 Subitem12
Subitem1 Subitem13
Subitem2 Subitem14
Subitem3 Subitem15
Subitem4 Subitem16
Item2 Subitem17
Subitem5 Subitem18
Subitem6 Subitem19
Subitem7 Subitem20
Subitem8 Subitem21
Item3
Subitem9
Subitem10
Subitem11
The requirement is i need to "drag" a row from the Table and place it under any parent node in the Tree table.
What i have done is I make the Tree table as ".ui-sortable" and table as a "draggable".
I am not able to find the position of the dragged item when i dropped it in the Treetable.
Please provide me a solution.
Regards,
AravindhHello:
Do you mean setting the selectedRowKeys in the setter method of the treeTable in the Request Scoped Managed Bean?
If that is what you mean, I tried that and there was no change in behavior. (Still does not highlight the correct row in the tree table upon execution of the next method for the bindings) Does anyone have any sample code they can provide that works?
Thanks for the help. -
Select the newest value of a row in a group by
On the following query I would like to select the value of the column new_cost which belongs to the row with the newest date in the column m.creation_date, instead of using max(new_cost)
select s.segment1, segment2, m.organization_id, sum(primary_quantity), max(new_cost)
from inv.mtl_material_transactions m, inv.mtl_system_items_b s
where s.segment2 = 1000435
and m.organization_id = 83
and s.organization_id = 136
and m.inventory_item_id = s.inventory_item_id
group by s.segment1, s.segment2, m.organization_id
order by s.segment1, s.segment2, m.organization_id for example, on the following table I would like to choose the new_cost of the row with the creation date 20/08/2010 14:37 (row 4)
SEGMENT1 SEGMENT2 ORGANIZATION_ID PRIMARY_QUANTITY NEW_COST CREATION_DATE
1 1000435 83 0,66668 175.500 04/06/2010 16:41
1 1000435 83 1 189.106 22/06/2010 11:54
1 1000435 83 -0,58333 189.106 19/07/2010 11:55
1 1000435 83 1 198.459 20/08/2010 14:37
1 1000435 83 -0,5 189.106 11/08/2010 18:12You should be able to use an analytic function... something similar to:
with data
as
select 1 segment1, 1000435 segment2, 83 organization_id, 0.66668 primary_quantity, 175.500 new_cost, to_date('04/06/2010 16:41', 'DD/MM/YYYY HH24:MI:SS') creation_date
from dual
union all
select 1 segment1, 1000435 segment2, 83 organization_id, 1 primary_quantity, 189.106 new_cost, to_date('22/06/2010 11:54', 'DD/MM/YYYY HH24:MI:SS') creation_date
from dual
union all
select 1 segment1, 1000435 segment2, 83 organization_id, -0.58333 primary_quantity, 189.106 new_cost, to_date('19/07/2010 11:55', 'DD/MM/YYYY HH24:MI:SS') creation_date
from dual
union all
select 1 segment1, 1000435 segment2, 83 organization_id, 1 primary_quantity, 198.459 new_cost, to_date('20/08/2010 14:37', 'DD/MM/YYYY HH24:MI:SS') creation_date
from dual
union all
select 2 segment1, 1000435 segment2, 83 organization_id, -0.5 primary_quantity, 189.106 new_cost, to_date('11/08/2010 18:12', 'DD/MM/YYYY HH24:MI:SS') creation_date
from dual
select segment1, segment2, organization_id, primary_quantity_sum, new_cost
from (
select
segment1,
segment2,
organization_id,
sum(primary_quantity) over (
partition by
segment1,
segment2,
organization_id
) primary_quantity_sum,
new_cost,
row_number() over (
partition by
segment1,
segment2,
organization_id
order by
creation_date desc
) rn
from data
where segment2 = 1000435
where rn = 1 -
I hope that someone will answer this. I want to create a drag and drop. Each drop has multiple drag answers. I group the drags and give them a Type name. I initial the drops. I go to Object actions. I unclick "accept all" I unclick all but the group I want to go to that drop. When I preview, two of the drops accept the three choices that they are supposed to accept. But the first one I try, only accepts one choice and lets the others bounce back. I'd also like to have a reset button which I can't find. I've spent hours and hours working on this.
Got it. When you go to unclick all the choices except the group you want, you have to also change the count. Even if the drags are in a group, the count still considers them individually
-
Photoshop Elements 12 is stalling when I want to merge group shots. I am able to put the photos into the photo bucket however if i try to drag the photos to workspace it stalls.
There is a browser plugin or software (BrowserSafeGaurd) which blocks and tampers network calls. This software has been reported as malware. Please check if you have it on your machine and remove that by following steps mentioned on http://www.tomsguide.com/us/browser-safeguard-remove-how-to,news-19273.html and try to license the software once again.
Thanks
Shikha -
Get the size of the table as per row wise.( Rows in group by clause)
Hello,
I am using ORACLE 11g Standard edition and RHEL 4.
I have a situation in which i want to know the size of the limited rows of the table.
I am moving table's rows from one table(one tablespace) to another table(another tablespace) While moving the rows I want to be sure that the size of the rows is good enough to fit in the another table's tablespace free size. So before inserting rows in another table i will check the size of rows and the free space in tablespace and perform the action as per.
Here is the senario with example :-
I have a table called MAIN_TAB which has a column as DATE_TIME which stores the systimestamp when the data was inserted. See the code below ...
select * from main_tab;
ID VALUE DATE_TIME
1 DATA 18-MAY-11 12.00.00.000000000 AM
2 DATA 18-MAY-11 12.00.00.000000000 AM
3 DATA 17-MAY-11 12.00.00.000000000 AM
4 DATA 17-MAY-11 12.00.00.000000000 AM Now i will fire a group by date_time query to know how many rows for each systimestamp.
select trunc(date_time),count(id)
from MAIN_TAB
group by trunc(date_time)
DATE_TIME COUNT(ID)
17-MAY-11 2
18-MAY-11 2So now you can see i have 2 rows for 17th and 18th May. I want to know what is the size of the data for 17th and 18th May in MB. I know how to get the size of the whole table but i want only the limited rows size as per date.
So the question is how can i get the size of a table's 2 rows data ???
Provide me some guidance.
If the question is not clear to you , let me know ....
Thanks in advance ...Thanks Pravan for your reply. But Its still not so usefull for me. Can you please give some clear idea about what you wanna say ??
I fired the DBA_TABLES view for my table i.e. 'MAIN_TAB' The AGV_ROW_LEN column showed 0 but that does not mean that my table has no data it, for sure it has 4 rows in it and consists of some data . . . . .
Please clarify what i can do to get the size of rows related to that particular date ......
thanks. -
When I try to create a group from the address book, when I drag over the names from the contact list, the names duplicate in the address book.
Hi cavu10horses,
Thanks for using Apple Support Communities. This article has instructions for changing a contact's photo using a photo from iPhoto's Faces feature:
Contacts: Add or change contact pictures
http://support.apple.com/kb/PH11580
Select a contact or your own card, and then double-click the picture well.
Select a picture:
Drag an image to the picture well.
Click Camera to take a picture.
If you have pictures in iPhoto, click the Faces button to use a face from iPhoto.
If the contact is linked (it’s in multiple accounts, but displayed only once in Contacts) and has multiple account pictures, click Linked.
Click Edit to edit the picture.
To zoom in and out of the picture, drag the slider. Drag the picture to change which part of it is visible.
To rotate the picture, hold down the Option key while you click and drag the picture.
To apply special effects, click the Effects Gallery button and choose an effect.
Click Done.
Cheers,
- Ari -
How can I disable the Auto Recent Contact Group in email
The email app automatically selects a recent group of contacts instead of the primary contact. This is extremely frustrating and very strange, IMO. Why would the default be to list the group instead of the primary contact you are searching for first?
Example:
Compose New Email
Start typing a contacts name int eh To: field
the list Autopopulates with recently emailed groups before the main contact.
Is there a way to disable this "feature". I know I can "Remove from Recents" but this is actually very tedious.
Thanks!
-JoeIf you only want to select from saved contacts, then tap the Plus ( + ) sign on the right of the address bar to bring up your actual contacts list instead of using this method.
You can still type a few letters into the search box at the top of the contact list to find your contact quickly.
Peter
Soluble Apps -
Index of the Headings in the Table - Group row number 1. 1.1
I need to see the data as below in the grouping table
Index of the Headings in the Table.
1 Heading
1.1 Sub Heading
1.1.1 Detail Heading1
1.1.2 Detail Heading2
etc..
kindly help me on the expression
ShanmugaRajHi ShanmugaRaj,
Suppose my Heading field is SalesTerritoryGroup, Sub Heading field is SalesTerritoryCountry, Detail Heading field is CalendarYear. Please refer to the following expression:
=Runningvalue(Fields!SalesTerritoryGroup.Value,countdistinct,"DataSet2") & " " &
Fields!SalesTerritoryGroup.Value
=Runningvalue(Fields!SalesTerritoryGroup.Value,countdistinct,"DataSet2") & "." &
Runningvalue(Fields!SalesTerritoryCountry.Value,countdistinct,"SalesTerritoryGroup") & " " &
Fields!SalesTerritoryCountry.Value
=Runningvalue(Fields!SalesTerritoryGroup.Value,countdistinct,"DataSet2") & "." &
Runningvalue(Fields!SalesTerritoryCountry.Value,countdistinct,"SalesTerritoryGroup")
& "." & Runningvalue(Fields!CalendarYear.Value,countdistinct,"SalesTerritoryCountry")
& " " & Fields!CalendarYear.Value
If you have any questions, please feel free to let me know.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support
The Report is very slow in rendering now after this logic.. Could you suggest on making it faster
ShanmugaRaj -
Been using the same template to send a weekly newsletter for a year or two but now with a recent update to Thunderbird the group name is rejected when I try to send the message:
With a group name in Bcc field, when I press "Send" and try to send the message, I get this alert: "[group name] is not a valid e-mail address because it is not of the form user@host. You must correct it before sending the e-mail."This has been reported as [https://bugzilla.mozilla.org/show_bug.cgi?id=1060901 Bug #1060901]. If you have an account on Bugzilla, please consider voting for that issue.
Several other people have sent in the same support request as you, noting this happened after they upgraded to version 31.1.
The exact error message is: XXXX is not a valid e-mail address because it is not of the form user@host. You must correct it before sending the e-mail.
'''This happens in Thunderbird 31.1.0 when your mailing list description includes several words separated by spaces.'''
Although not ideal, these workarounds should let you use your mailing lists until a proper fix is implemented:
* While composing an email open the address book and select the list you are trying to send to, highlight all the names in the list and drag them to the To: box. This uses your existing data without modifying it.
* Replacing the blanks " " between the words in such lists' descriptions with an underscore "_". This requires modifying your mailing list(s) description(s).
* Downgrade to a previous version and disable automatic updates (Windows) -
Get the icon for the current row selected
Hi !!
I am using jdeveloper 11.1.1.5
I had dragged and dropped my ApplBusFunVO as a af:tree
My Output will look like this
Supplier Balance
Supplier Document Details
Purchase order
Purchase ReceiptsMy af:tree doesnt contains the Parent
My Scenario:
When my user clicks the current node of the tree!! an icon should appear before the current node is selected
For Eg: If my user clicks the Purchase Order then my output should like this
Supplier Balance
Supplier Document Details
==>Purchase order
Purchase ReceiptsThe Symbol ==> Represent the icon! that appears before the purchase order!!Hi
<af:tree value="#{bindings.SalesPeople.treeModel}" var="node"
selectionListener="#{bindings.SalesPeople.treeModel.makeCurrent}"
rowSelection="single" id="t4" fetchSize="35">
<f:facet name="nodeStamp">
<af:group>
<af:image id="cl3" source="#{reference_to_image_url}"
rendered="#{check_if_current_row}"/>
<af:outputText id="ot2" value="#{node}"/>
</af:group>
</f:facet>http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_image.html
As mentioned in a previous answer to this very same question, the tree is a stamped component which means that you need to partially refresh the tree component to show the icon. You can us the selectionListener (override the current setting to use a managed bean setting the current row - calling the same EL) to determine the new selected row key and then use the rendered option to determine (using a managed bean reference) if the current rendered node (#{node} is accessible from a managed bean at render time) is the selected node.
The side effect is that upon tree node selection the tree will "flicker"
Frank -
Enable or Disable LOV based on the organization_id
Hi,
I am working on apps forms, in this i have requiremnet - i need to add an Lov to a field.
Suppose we are having 3 organizations like 'org1', 'org2' and 'org3'.
When 'org1' users open the form, i need to enable the LOV for the feild.
When 'org2' users open this form, i need to disable the LOV for the feild(means, the field needs to display without LOV).
I written LOV query as
SELECT description
FROM mtl_txn_request_headers
WHERE organization_id=:parameter.org_id
GROUP BY description.
Please help me on this requirement and also let me know where i need to write the code.Show_lov is a function which returns true or false, depending on how the user finished the lov. So it would be:
IF :parameter.ORG_ID IN (265,266) THEN
IF SHOW_LOV('DESCRIPTION') THEN
NULL;
END IF;
ELSE
NULL;
END IF;Anothe solution for your problem would be to disable the Lov at the item using:
SET_ITEM_PROPERTY('BLOCK.TEXTITEM', LOV_NAME, '');
Maybe you are looking for
-
Running iTunes through an external drive
I recently changed the path in itunes pref's to be able to play through my external hard drive to save space on my laptop. Trouble is, I noticed that all of the .m4a music files play but none of the .mp3 files show up in itunes. I can click on a trac
-
Group & alternative account number field
hi, 1) i do not see group account number field in FS00, FSS0 or FS01/02/03 but i can see alternative account no. i know this alternative acc no is meant for country specific. why i cannot see this group acc number field? 2) why i do not see country s
-
I am stuck again, really tried hard, to no avail
Dear applescript genius, I have had help, came a long way, but got stuck again. I am still facing a lot of problems, but this one is now top 1 prio for me. I am trying to automate creating a new event in facebook. When you click Create Event on your
-
FCP HD 4.5 not recognizing video playback
Recently I upgraded my operating system to 10.4.8 from 10.3 on both my G5 and powerbook. I use FCP HD 4.5 on both. Now FCP will not recognize a firewire connection either in log and capture or recording video out. This problem started after the Tiger
-
Unknown contacts and appointments after upgrade, what happened?
I traded in my 4 for the new 5 the other day and after backing the 4 up to the cloud i setup my new 5. After it was finished i had a large number of unknown people and appointments on my phone. I have noticed also that some of my known contacts inf