Dynamic DataGrid Issues
I have a data grid that is updated via streaming data every 5 seconds. However, when the datagrid updates, all of the user's selections/sorting gets wiped out and the data resets.
Right now the data is bound to an array directly returned from my service call, so every time it "refreshes" the bound array refreshes triggering the redraw of the grid.
How can I save the "current state" of the data grid so that when the data updates, all of the sorts/selections/whatever is saved.
And example of what im looking for is kind of like the windows task manager. Everything resorts in real time as the data updates, if you have a column sorted.
Any ideas?
Thanks for the response.
That works, but the grid data will not refresh now unless I interact with it. If I re-sort a column for instance it will give my column new values, but just sitting there it doesnt update.
I have seen code where there is a dataprovider.refresh() call, but that is not available on my dataProvider.
Any suggestions?
Similar Messages
-
Slow program response, crashes when creating titles and dynamic link issues
Dear reader,
I am now trialling Adobe CC OSX with Premiere Pro and After Effects before deciding to subscribe but I am experiencing a lot of issues while working.
I am now working on an animation, but editing raw mxf files also gives crashes and slow responses/ program refreshes.
1) Slow mouse response
2) Slow program refresh while key framing visuals
3) Rendering in PP is extremely slow when AE is open in the background, when closing AE and re-initiate the render in PP it renders super fast
4) Crashes. When I overlay titles in my time line PP regularly crashes
5) Dynamic Link issues when working combined in AE and PP where file connections in the time line get lost when the AE project has too many sequences
I am curious to find out if other people are also experiencing these issues.
I am indecisive in getting the paid yearly plan or move to FCPX instead? Or should I get a new MacPro and is this model too old?
It worked fine 2 months ago, however I was still working on FCP7. After updating it is really bad working with it...
My system consist of:
MacPro mid-2010
OSX 10.9.5 (13F34) (new installation)
2x2,66Ghz 6-core Intel Xeon
24GB DDR3 ECC
Nvidia Quadro K5000, 4GB
2x PCIe SSD 1TB
2x HDD 3TB
2x HDD 2TB
Feedback is much appreciated! Best regards, Alexanderthis does work for basic colour correction but not when trying to grade an entire suqence to achieve a specific style, applying a vingette or certain effects have to be done in after effects.
I want to try and get my whole sequence into after effects but preserve the edits and effects added in permier pro, is there any way to do this?
rich -
How can I get this example to wok with <mx:HTTPService>
insead of the inline <mx:XML> ?
Dynamic DataGrid columns
Example of how to dynamically create DataGridColumns
A completely dynamic DataGrid example.
This example uses the xml from the Flexstore example. It
examines the first product node and uses that to create the
definitions for the columns. There is some example logic to change
the columns properties.
It then instantiates the GataGrid and its columns array,
assigns the properties, and then the dataProvider, and then adds
the dataGrid to the application container.
The example is fully self-contained, since a portion of the
catalog.xml file is included in the mxml.
<?xml version="1.0" encoding="utf-8"?>
<!-- This example uses the dataProvider to build the
dataGrid columns dynamically -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical"
creationComplete="initApp()">
<mx:Script><![CDATA[
import mx.controls.dataGridClasses.DataGridColumn;
import mx.controls.DataGrid;
import mx.collections.XMLListCollection;
import mx.controls.Alert;
[Bindable]
private var _xlcCatalog:XMLListCollection; //the
dataProvider for the DG
//run by creationComplete
public function initApp():void
_xlcCatalog = new XMLListCollection(xmlCatalog.product);
//wrap the XML product nodes in an XMLListCollection
buildDG(); //creates the dataGrid
}//initApp
private function buildDG():void
var aColumnDef:Array = getColumnDefArray(); //returns a
noraml array of objects that specify DtaGridColumn properties
var oColumnDef:Object;
var dg:DataGrid = new DataGrid; //instantiate a new DataGrid
var dgc:DataGridColumn;
var aColumnsNew:Array = dg.columns
var iTotalDGWidth:int = 0;
for (var i:int=0;i<aColumnDef.length;i++) { //loop over
the column definition array
oColumnDef = aColumnDef
dgc = new DataGridColumn(); //instantiate a new
DataGridColumn
dgc.dataField = oColumnDef.dataField; //start setting the
properties from the column def array
dgc.width = oColumnDef.width;
iTotalDGWidth += dgc.width; //add up the column widths
dgc.editable = oColumnDef.editable;
dgc.sortable = oColumnDef.sortable
dgc.visible = oColumnDef.visible;
dgc.wordWrap = oColumnDef.wordWrap;
aColumnsNew.push(dgc) //push the new dataGridColumn onto the
array
dg.columns = aColumnsNew; //assign the array back to the
dtaGrid
dg.editable = true;
dg.width = iTotalDGWidth;
dg.dataProvider = _xlcCatalog; //set the dataProvider
this.addChild(dg); //add the dataGrid to the application
}//buildDG
//uses the first product node to define the columns
private function getColumnDefArray():Array
//Alert.show("colcount:" + xmlCatalog.toXMLString());
var aColumns:Array = new Array();
var node0:XML = xmlCatalog.product[0]; //get the first
"product" node
var xlColumns:XMLList = node0.children(); //get its child
nodes (columns) as an XMLList
var xmlColumn:XML
var oColumnDef:Object;
for (var i:int=0;i<xlColumns.length();i++) { //loop over
the xmlList
xmlColumn = xlColumns;
oColumnDef = new Object();
oColumnDef.dataField = xmlColumn.localName(); //make the
dataField be the node name
switch (oColumnDef.dataField) { //conditional column
property logic
case "name":
oColumnDef.width = 80;
oColumnDef.sortable = false;
oColumnDef.visible = true;
oColumnDef.editable = false;
oColumnDef.wordWrap = false;
break;
case "description":
oColumnDef.width = 200;
oColumnDef.sortable = false;
oColumnDef.visible = true;
oColumnDef.editable = false;
oColumnDef.wordWrap = true;
break;
case "price":
oColumnDef.width = 40;
oColumnDef.sortable = true;
oColumnDef.visible = true;
oColumnDef.editable = true;
oColumnDef.wordWrap = false;
break;
case "image":
oColumnDef.width = 100;
oColumnDef.sortable = false;
oColumnDef.visible = false;
oColumnDef.editable = false;
oColumnDef.wordWrap = false;
break;
default:
oColumnDef.width = 50;
oColumnDef.sortable = true;
oColumnDef.visible = true;
oColumnDef.editable = false;
oColumnDef.wordWrap = false;
break;
aColumns.push(oColumnDef);
return aColumns; //return the array
}//getColumnDefArray
]]></mx:Script>
<mx:XML id="xmlCatalog">
<catalog>
<product productId="1">
<name>Nokia 6010</name>
<description>Easy to use without sacrificing style,
the Nokia 6010 phone offers functional voice communication
supported by text messaging, multimedia messaging, mobile internet,
games and more</description>
<price>99.99</price>
<image>assets/pic/Nokia_6010.gif</image>
<series>6000</series>
<triband>false</triband>
<camera>false</camera>
<video>false</video>
<highlight1>MMS</highlight1>
<highlight2>Large color display</highlight2>
</product>
<product productId="2">
<name>Nokia 3100 Blue</name>
<description>Light up the night with a
glow-in-the-dark cover - when it's charged with light you can
easily find your phone in the dark. When you get a call, the Nokia
3100 phone flashes in tune with your ringing tone. And when you
snap on a Nokia Xpress-on™ gaming cover*, you'll get
luminescent light effects in time to the gaming
action.</description>
<price>139</price>
<image>assets/pic/Nokia_3100_blue.gif</image>
<series>3000</series>
<triband>true</triband>
<camera>false</camera>
<video>false</video>
<highlight1>Glow-in-the-dark</highlight1>
<highlight2>Flashing lights</highlight2>
</product>
<product productId="3">
<name>Nokia 3100 Pink</name>
<description>Light up the night with a
glow-in-the-dark cover - when it's charged with light you can
easily find your phone in the dark. When you get a call, the Nokia
3100 phone flashes in tune with your ringing tone. And when you
snap on a Nokia Xpress-on™ gaming cover*, you'll get
luminescent light effects in time to the gaming
action.</description>
<price>139</price>
<image>assets/pic/Nokia_3100_pink.gif</image>
<series>3000</series>
<triband>true</triband>
<camera>false</camera>
<video>false</video>
<highlight1>Glow-in-the-dark</highlight1>
<highlight2>Flashing lights</highlight2>
</product>
<product productId="4">
<name>Nokia 3120</name>
<description>Designed for both business and pleasure,
the elegant Nokia 3120 phone offers a pleasing mix of features.
Enclosed within its chic, compact body, you will discover the
benefits of tri-band compatibility, a color screen, MMS, XHTML
browsing, cheerful screensavers, and much more.</description>
<price>159.99</price>
<image>assets/pic/Nokia_3120.gif</image>
<series>3000</series>
<triband>true</triband>
<camera>false</camera>
<video>false</video>
<highlight1>Multimedia messaging</highlight1>
<highlight2>Animated screensavers</highlight2>
</product>
<product productId="5">
<name>Nokia 3220</name>
<description>The Nokia 3220 phone is a fresh new cut
on some familiar ideas - animate your MMS messages with cute
characters, see the music with lights that flash in time with your
ringing tone, download wallpapers and screensavers with matching
color schemes for the interface.</description>
<price>159.99</price>
<image>assets/pic/Nokia_3220.gif</image>
<series>3000</series>
<triband>false</triband>
<camera>true</camera>
<video>false</video>
<highlight1>MIDI tones</highlight1>
<highlight2>Cut-out covers</highlight2>
</product>
</catalog>
</mx:XML>
</mx:Application>It should work the same way.
What problem are you having?
Tracy -
Dynamic DataGrid with Preferred columns
Hi all,
I want to populate a dynamic DataGrid with User Preferred
columns (ex : EmpId,First Name and Phone). Each time columns may
change based on User Selection in Preferences Page so columns
should not hard code. I'm able to see data for EmpId, First Name
but I want to see the Inner tag data of "Phone" as a Field.
Sample XML ....
<emp>
<empId>1002</empId>
<firstName>Smith</firstName>
<lastName>John</lastName>
<address>
<city>Ohio>
<phone>433-234-322</phone>
<zip>60003</zip>
</address>
</emp>
Thanks.To display nested data, you must use a labelFunction. I have
several labelFunction examples on cflex.net.
You can assign a function reference to the column's
labelFunction property in the column generation code.
Tracy -
Configuring a Static WCF Port to Behave as a Dynamic Port Issue
I have WCF-Basich send port and i have developed a custom pipeline where i am resetting the "BTS.OutboundTransportLocation" based
on the input message received .So, for different message , i am setting the different value to the "OutboundTransportLocation"
by writing in context and hence making my wcf basic send port dynamic.
Issue : it seems value of "OutboundTransportlocation" is not resetting properly and using the old value set during first time.For
e.g. if first time i reset the correct url in the outboundtransport location and if second time if i set the wrong url/different url, it takes the previous url while sending the message.However,All
logging (BTS HAT and such) all seem to indicate all works fine.
Only after restarting the host it takes the latest one or correct one .It seems
"WCF BasicSend port is using caching and does not react well to changing in url's 'in flight'.
What is the solution for this ?
ManishHi Manish,
Please set IsDynamic property to true in your custom code. :) :) :)
Regards,
Parashu.
parashuram -
Crystal Report Dynamic connection issue ORA-04043 Database Vendor Code 4043
HI All,
Ii am getting dynamic connection issue with Crystal Report 2008 and Business View Manager, i have Oracle database,
i have done following steps
1 Creating Dynamic Connection (including two connection XDC & YDC)
2. Creating Data Foundation (Common object available in both connection ie. stored procedure)
3. Creating Business View (with selected number of elements in business element, like firsta name, lastname)
I have verified database connectivity from Business view manager, both the connection are working fine bringing different number of rows from two different schemas (different schema but same objects in two schemas)
4. Database connectivity to different database schemas
5. Connectivity from Crystal Report (done the connectivity from the repository to business view )
6. Report Connectivity with first schema shows records
7 Report Connectivity with second schemas shows error
as follows Failed to retrive data from the database & on clicking of detail i get following error
Crystal Reports
Database Connector Error: 'ORA-04043: object HR.EXCEPTION_REPORT_SUB1_PROC [Database Vendor Code: 4043 ]'
Q first of all i need to know if dynamic connection using business view manager and crystal report technically possible or not, if yes then please let me know the solution, since we did verified with SQL database and ite work with two different database.
Q if not possible then are there any options to resolve dynamic deployment of crystal report over multiple schemas with crystal report 2008
Any help or suggestion will be appriciated, hope some one might have got similar issue
Thanks in advance
Edited by: smunir on Jul 12, 2011 9:18 AM
Edited by: smunir on Jul 12, 2011 9:41 AM
Edited by: smunir on Jul 12, 2011 9:43 AMHi,
When i use same credentials in Tod or sqlplus it works perfect and gives appropriate results. But when i use same credentials using business view manager, the very first connection works but the second connection does not work
Please suggest!
Regards,
<<smunir>> -
Hi all,
Instead of define an variable as external (due to size limitation), I decided to use session.getInstanceData to obtain the value in an instance variable. While things works well on my environment, it does not work out in the QA environment. The following is how I do it:
DynamicObject instanceData =
session.getInstanceData(instanceInfo.getId());
Map dataMap = instanceData.asMap();
//Get screening result
String resultStr = "";
boolean hasResult =
dataMap.containsKey("screeningResults");
if (hasResult){
Object resultValue =
dataMap.get("screeningResults");
resultStr = resultValue.toString();
I have also log the content of screen result inside the activity:
logMessage("leaving ... "+this.activity.name +" with screening results="+ this.screeningResults);
At my environment, I can see the content pass from the engine back to PAPI. However, on QA environment, I see the content show on the engine log (due to the logMessage) but PAPI gets empty string back.
At first I thought it is due to the "Max Instnace Size limitation", so I upped the limit to 2000kb, but it still doesn't solve the issue. So anyone got any idea what did I do wrong or forgot to handle? Thanks!
MatthewCan I create dynamic object?Depends what you mean by "dynamic object." That term is not part of standard Java parlance, AFAIK.
-
ADF Table dynamic rendering issue with Transient VO
Hello All,
JDeveloper : Studio Edition Version 11.1.1.2.0 Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
ADF Business Components 11.1.1.55.36
Java(TM) Platform 1.6.0_11
Oracle IDE 11.1.1.2.36.55.36
SOA Composite Editor 11.1.1.2.0.12.16
Versioning Support 11.1.1.2.36.55.36
My page header and lines section. Header section is designed using af:panelFormLayout and lines section is constructed using af:table. Header and Lines regions are on two different Transient VOs which has no queries and updatable option in all the attributes set to always. As per the requirement after some condition, i will have to disable few column items in the lines table. For this, i have created new Transient attribute (SpecEditMode) of type Boolean in lines transient VO and i set this attribute value to Boolean.TRUE or Boolean.FALSE based on the condition. I set read only property to all af:inputText fields as #{bindings.SpecEditMode.inputValue}.
Here is the my lines table layout structure
af:panelBox
-> af:panelCollection
->-> af:table.
I have one input text box to get number of rows to be added to line in the af:panelBox toolbar and a GO button to create the rows. Here is the steps to get my issue
1. Create new rows in the Lines Transient VO based on the user input.
2. Perform business logic and lock the rows created above (set the read only propery to true using expression #{bindings.SpecEditMode.inputValue})
3. Rows created in step one gets locked when the layout gets refreshed.
4. Repeat the step 1 and now all the locked rows becomes unlocked.
To debug further on this, i drag and drop the SpecEditMode attribute as a column in the same table to verify the values during runtime. SpecEditMode attribute value for Rows created in step 1 are true which is supposed to lock the row.[But not locked the rows] and for all the newly created rows in step 4 are false.
Eventhough the SpecEditMode attribute values are correct, the fields are not locked after the first time.
Could you let me know if i am missing anything? Very much appreicate any pointers/inputs. Kindly suggest if there is any other better way to achieve the expected functionality.
Thanks
Annadurai.When i set the read only property to #{row.bindings.SpecEditMode.inputValue}, the dynamic behaviour is works just fine.
-
Jdev 11.1.1.5 - JDK 1.6_31
I have put a dynamic region on a page with 4 taskflows defined as the regions. Each taskflow is a train.
I have a bean that controls the loading (the default bean) with a load for each screen.. ie public .. myRegion1, etc... in addition to the getDynamicTF that is created by default.
public TaskFlowId getDynamicTaskFlowId() {
return TaskFlowId.parse(taskFlowId);
public String myjobFlow() {
taskFlowId = "/WEB-INF/myJobstaskFlowCall.xml#myJobstaskFlowCall";
return null;
Everything works fine - the pages load and all is OK - until I select a tab in one of the regions.
This will cause the generation of the event to get the taskflow from the bean. (getDynamicTaskFlowId)
because the bean is backing scoped - it does not know the current taskflow (lost when the bean is destroyed)
I tried to change the scope - but I get a controller error saying the backingBeanScope.DynamicRegionBean cannot be found!
can anyone tell me the location of the controller file - or how to change the scope - or how to get around this issue.Hi,
instead of using backingBeanScope use viewScope..
and change expression wherever necessary like
in page and more important in pageDef file..
like
from
backingBeanScope.bean to viewScope.bean
Hope this helps.. -
Hi,
Am rendering a jsp with a set of fields, whose tagIds have been given dynamically.
That is,
tagId="strRemarks_${container.item.strFollowupCode}"
where,
${container.item.strFollowupCode} -> is a dynamic value that will get populated when the jsp is rendered.
(NOTE: The values are getting populated properly and getting rendered well on the screen)
But, when this is done, am getting couple of javascript issues in the browser as given below:
*netui_tagIdNameMap is not defined -- ...Instance_4{pageFlow.lstBarrierPgFour[0].lstBarrierList[6].lstRecos[0].lstFollowu...*
*missing ; before statement -- netui_tagIdNameMap.isSelectd_D.7.1.5="portletInstance_4{pageFlow.lstBarrierPgFou...*
Need some help in resolving these js issues. Let me know if i had done anything wrong on my part.
Thanks
Giri
Edited by: Giri on May 4, 2012 1:17 AM
Edited by: Giri on May 4, 2012 1:19 AMHi Anony,
Thank you for your question.
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
Regards,
Charlie Liao
TechNet Community Support -
Dynamic datagrid rowHeight and itemRenderer problem
Hi guys,
Long time listener; first time caller....
I have had a look around the forums here and i can see there are a lot of similar issues to the one i'm currently having but not so many solutions. Not sure if i'll have any better luck with my question but here goes...
My issue is to do with the row height of a datagrid row not matching up properly with the height of the custom iterm renderer used on a column.
The item renderer consists of an HBox containing an image and a textArea. The image will not always be present and the text area can contain a couple of words or many lines of text.
I have overridden the measure function of the item render in which i am manually setting the HBox's height and measuredHeight.
Problem is that i have to find some way of triggering a redraw of the datagrid AFTER if have set the item renderers height, but i dont seem to be able to directly access the in-line renderer from the parent class.
If anyone could throw any suggestions my way it would be greatly appreciated!
thanks '
DaveOk so here's the sample code...
****Renderer*****
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox
horizontalAlign="
left" verticalAlign="
middle" horizontalGap="
0"verticalGap="
0"xmlns:mx="
http://www.adobe.com/2006/mxml" horizontalScrollPolicy="
off"verticalScrollPolicy="
off"width="
100%" height="
100%"resize="measure()"
borderColor="
green"borderStyle="
solid"
>
<mx:Metadata>[
Event(name="gridRowHeightChange", type="flash.events.Event")]
</mx:Metadata>
<mx:Script>
<![CDATA[
import mx.events.ResizeEvent;
import flash.events.Event;
Bindable] public var showLocalPartImage:Boolean = false;
override public function set data(value:Object):void
super.data = value;
lblPartNum.text = data.label;}
override protected function measure():void
super.measure();
if(lblPartNum.text != "" && lblPartNum.width > 0) {
lblPartNum.validateNow(); lblPartNum.mx_internal::getTextField().autoSize = TextFieldAutoSize.LEFT;
lblPartNum.height =
this.height = measuredHeight = lblPartNum.mx_internal::getTextField().height;
dispatchEvent(
new Event("gridRowHeightChange")); }
]]>
</mx:Script>
<mx:Image id="imgLocal" horizontalAlign="center" verticalAlign="middle" visible="false" width="{0}"/>
<mx:TextArea id="lblPartNum" width="{this.width - imgLocal.width - 4}" height="100%" editable="false" verticalScrollPolicy="off" />
</mx:HBox>
****EndRenderer*****
****DataGrid****
public function measureGrid(event:Event):void{
shoppingCart.removeEventListener(DataGridEvent.COLUMN_STRETCH, measureGrid);
shoppingCart.invalidateList();
shoppingCart.addEventListener(DataGridEvent.COLUMN_STRETCH, measureGrid);
<mx:DataGrid id="shoppingCart"width="
100%" height="100%"dataProvider="
{_order.orderItems}"allowMultipleSelection="
true"sortableColumns="
true"variableRowHeight="
true"doubleClickEnabled="
true"doubleClick="selectPartHandler(event)"
paddingRight="
5"editable="
false"
>
<mx:columns>
<mx:DataGridColumn width="22" minWidth="20" sortable="false" editable="false"/>
<mx:DataGridColumn width="22" minWidth="20" sortable="false" editable="false"/>
<mx:DataGridColumn minWidth="240" width="270" dataTipField="description" dataField="description" headerText="Description"editable="
false" wordWrap="true">
<mx:itemRenderer>
<mx:Component>
<controls:DescriptionShoppingCartRenderer showLocalPartImage="
{!(outerDocument.displayUnderline)}" gridRowHeightChange="{outerDocument.measureGrid(event)}">
</controls:DescriptionShoppingCartRenderer>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
****EndDataGrid****
Unfortunately the whole code is much too large to fit in here, but here are the main working parts.
I hope this helps.
What i am getting when running this is strange. When i run the first time and when i resize a column, the row height is incorrect, but then when i just click the 'column stretch' arrow (ie the space between the column headers) and dont actually resize at all, the row heights re-calculate and they fit perfectly.
This makes me think that i need to trigger this event manually AFTER the itemRenderer has been calculated.
EDIT: forgot to add the measureGrid function -
Dynamic Link issues between Pr and Ae
Hey Guys -
We have had issues with our dynamic link since the last update to Premiere CC 45 days ago. Two different iMacs, one 2010 and the other late 2012 are both having these issues. Regardless of system, we weren't having the issue before the most recent update.
The issue we are having is as follows:
If we create a composition in Ae and bring it into Pr using dynamic link, it's completely fine, you can see it in the Source window as you should. But as soon as we drop it on the timeline in a sequence, it requires us to render both in Pr and back in Ae before it will display in the sequence. And ironically, you don't have to render the exact dynamic linked composition back in Ae, but any old render of any of your compositions will then allow you push through the stumbling render in Pr and so you can display the composition on the Pr timeline.
The problem furthers when you begin to edit again and have to redo the entire rendering process if you make one move anywhere on your timeline. We've found this renders dynamic link useless as it's more time effective to just render out the composition in Ae everytime you make a change than have to deal with these troubles. Really frustrating as we love DL and used it constantly before the most recent Pr update.
And as an FYI, we are not doing big effects, these are simple lower thirds and titles that we are doing here. Very little processing power required.
Is there any fix in the works or is anyone else struggling with this? Seems too ironic that two separate systems are dealing with the same issue...I had the same issue with dynamic link...the files would become unlinked and required a manual re-linking of each clip. Mostly happened with MXF media from my Panasonic P2 camera, Here is a workaround that so far has worked:
1. Use Raylight (I use this software all the time when I edit with fcp 7) to create a QT reference file from MXF media. It's super quick too...takes about 15 seconds to generate the aliases from a 64 GB card with tons of clips.
2. Import these QT ref files into PP CC and edit like normal. It seems to trick the software into thinking you are working with .MOV files and not MXF media which seem to be problematic in Premiere/After Effects.
Hope this helps.... -
Dynamic Parameter Issue - Crystal XI
I've been working in 9 and 10 for a couple of years, and have recently moved to 11 to create some reports for a client. I have an issue with creating a dynamic parameter in Crystal 11 - it won't allow me to select dynamic (as in the radio button is grayed out). I've searched through the options, created RDO and DAO connections to both the Access database and the Xtreme Sample database, all to no avail. Any thoughts or suggestions?
Thanks!
IanAfter searching, I stumbled across the answer in this document: [XI Features by Version|http://www.businessobjects.com/pdf/products/crystalreports/crxi_feat_ver_ed.pdf]
It strikes me as a little odd, in the Comprehensive formating and Design Control section it lists "Parameter fields" as available for all versions, but in the Report Viewing and Interaction section it lists "Dynamic and Cascading Prompts" as available only in Developer and Pro ... it even identifies at the end of the document that "Dynamic and Cascading Prompts can be viewed, but cannot be designed in the Standard Edition".
So, this begs the next question, if I create a report using parameters based on a database column in Crystal 10, then open it in Crystal XI, will the dynamic prompts work? I may have to try... -
Dynamic accordion with dynamic datagrid
I’m trying to create a dynamic accordion with embedded
datagrids in each accordion area. I have the base working but have
2 problems I can’t seem to figure out.
Bases; the accordion uses a repeater and vbox with a custom
component from a webservice result set to create the accordion. The
custom component has another webservice that gets a value from the
repeater to pass it to the custom component.
My 2 problems:
1. how do I prevent the custom component from running the
webservice until the accordion item is clicked or the area is
visible? Otherwise I end up will a bunch of queries hitting the DB
and if there is several items for the accordion and many items from
the datagrid its slower.
2. how can I get the datagrid query to refresh when the
accordion item is clicked? Because the data may change I am not
able to see the updated data unless I reload the entire
application.
1 thing I did try. With the tab control you can use the
show() event and the data will refresh just fine, but with the
accordion, the show() event does not seem to fire. Its as if they
are all visible.
Any help here would be much appreciated, I’ve been
racking my brain for days now and I sure it is something simple
that I am missing. Thanks in advance.
See the example code below.
the application code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute"
width="100%"
height="100%"
initialize="ws.getMethod1.send()"
xmlns:output="com.comp.*">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
[Bindable]
public var thisWsdl:String = '
http://localhost/webservice/service.cfc?wsdl';
]]>
</mx:Script>
<mx:WebService id="ws"
wsdl="{thisWsdl}"
useProxy="false"
showBusyCursor="true"
fault="Alert.show(event.fault.faultString, 'Error');"
concurrency="multiple" requestTimeout="30">
<mx:operation name="getMethod1">
<mx:request>
<param1>{param1data}</param1>
<param2>{param2data}</param2>
<param3>{param3data}</param3>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:Accordion width="100%" height="100%"
fillColors="[#808080, #808080]">
<mx:Repeater id="rp"
dataProvider="{ws.getMethod1.lastResult}">
<mx:VBox label="{String(rp.currentItem.catname)}"
backgroundColor="#C0C0C0" width="100%" height="100%"
paddingRight="10">
<output:comp catid="{rp.currentItem.catid}"/>
</mx:VBox>
</mx:Repeater>
</mx:Accordion>
</mx:Application>
the component code:
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%"
height="100%"
focusIn="ws.getMethod.send()"
horizontalAlign="center"
backgroundColor="#FFFFFF">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
[Bindable]
public var thisWsdl:String = '
http://localhost/webservice/service.cfc?wsdl';
[Bindable]
public var catid:int;
]]>
</mx:Script>
<mx:WebService id="ws"
wsdl="{thisWsdl}"
useProxy="false"
showBusyCursor="true"
fault="Alert.show(event.fault.faultString, 'Error');"
concurrency="multiple" requestTimeout="30">
<mx:operation name="getMethod2">
<mx:request>
<catid>{catid}</catid>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:DataGrid id="itemGrid"
dataProvider="{ws.getMethod2.lastResult}" width="700"
height="250">
<mx:columns>
<mx:DataGridColumn width="100" dataField="itemid"
headerText="Item Id"/>
<mx:DataGridColumn wordWrap="true" dataField="itemname"
headerText="Item Name"/>
</mx:columns>
</mx:DataGrid>
</mx:VBox>Perhaps you could use the change event of the accordion, or
the show event of the child containers?
Tracy -
Hey all. I have a datagrid that has it's columns generated
dynamically based on whatever columns are in the database. I have
no problems retrieving the columns and dynamically creating my
datagrid with those columns. My problem arises not with generating
the columns but with inserting the data.
For example, I have an array that has all the columns as well
as an array that has my data. The data array is split for each
value row by row. So, assuming I have columns id and date with 3
records, the array would go [id, date, id, date, id, date]. Problem
is, I cannot figure out how to add each unique array entry JUST to
one cell, not the entire row. Is there some way where I can say
that each item in an array is just to one cell and not an entire
row/column without hard coding the column names beforehand? I
really hope this makes sense because I'm stumped!Hi,
Use array collections.
here is an example.
http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/
Rgds
JFB
Maybe you are looking for
-
Hello Experts, There is a qualifier table in which 'Due Date' is one of the field (of data type Date). Now, In Data Manager when I try the free form search by entering date in the 'Due Date' field as the filter, it does not show up any records, altho
-
Auto software update won't check automatically-have to manually check
I have a brand new macbook pro and the auto update for software updates doesn't work properly. With my old imac, all I had to ever do was to log in and it would check and find the updates. I constantly have to check for these updates myself, manually
-
Super Easy File Permission Question
M Boyle wrote:Well I would not give them Full Access on the ntfs permissions side of things. That way lies madness. Full on the share and Change on ntfs would be appropriate in most cases. But that doesn't answer your question. Think there was a very
-
My iTunes for Mac 10.5.3(64-bit) keeps crashing
My iTunes developed a recent affinity for crashing. It could be as long as 2-3 hours or as short as 5-10 minutes after I start. It's crashed a few times already this morning so I'm looking for some insight. Thanks in advance for any help. Here is the
-
DCNM v5.2(2),S104 Discovery for 6500s Very Slow
It's been discovering a 6513 for over 90 minutes. Is this an expected duration or is something likely malfunctioning or is it just the sheer # of interfaces that it must process? The Nexus 5k's that it has discovered progressed fairly quickly.