Controling a dataProvider result using a mx:HSlider...
Hi
Hi I am a basic Flex 2 application showing the results and
times for races and the individual runners in each race etc….
within my application I am using a remote object acting as my
dataProvider communicating with ColdFusion and a CFC file
containing different functions for the different races:
<mx:RemoteObject id="RO_dataprovider"
destination="ColdFusion" source="myCFC">
<mx:method name="getDataStruct" result="handleResult_
getDataStruct (event)" fault="Alert.show(event.fault.message)"/>
</mx:RemoteObject>
With the following actionScript:
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
[Bindable]
public var structResult:Object;
public function handleResult_ getDataStruct
(event:ResultEvent):void {
structResult=event.result as Object;
]]>
</mx:Script>
I have various dataGrids and charts (lineCharts, barCharts,
pieCharts etc) in the application – all using this same
dataProvider:
<mx:DataGrid id="cfcs_dg" width="100%"
dataProvider="{structResult.RACE1}">
<mx:columns>
<mx:DataGridColumn headerText="Competitor"
dataField="comp"/>
<mx:DataGridColumn headerText="Start Time"
dataField="starttime"/>
<mx:DataGridColumn headerText="End Time"
dataField="endtime"/>
<mx:DataGridColumn headerText="Total Time"
dataField="totaltime"/>
</mx:columns>
</mx:DataGrid>
and:
<mx:LineChart id="race1_lc"
dataProvider="{structResult.RACE1}" width="100%">
<mx:horizontalAxis>
<mx:CategoryAxis dataProvider="{structResult.RACE1}"
categoryField="totaltime"/> </mx:horizontalAxis>
<mx:series> <mx:LineSeries yField="totaltime"
displayName="Total Time Taken"/> </mx:series>
</mx:LineChart>
<mx:Legend dataProvider="{race1_lc}"/>
As you can imagine – if a race has lets say 400+ races
in it (like a marathon for example) then a lot of data is going to
be displayed within the charts (which is what I want) therefore
making them complicated and in some cases complex and difficult to
read / understand….
However – I thought that I could include something to
control (allow the user to control) the data and amount to view at
one time that is coming from the dataProvider.
In this case I want to control the total time
“totaltime” entity so for example the user can choose
to only show data for the racers that finished the race within 60
seconds – therefore not showing any of the slower times or
data etc….
I also thought a nice solution / possibility to this would be
to somehow (and this is my problem) link my dataProvider to a
slider or timeline: e.g. <mx:Hslider/> and control the
“totaltime” displayed at any one time in the graphs /
dataGrids using this slider.
So my question is: is this actually possible to do, and if so
could anyone give me some advice about how to go about doing it
– or point me in the right direction???
Much appreciated,
Thanks,
Jon.
hi Jon,
I faced the similar situation , only difference being, I was
using webservice instead of Coldfusion as my dataprovider. This
weservice was storing the data in XMl form. I had 2 options
1. Use a filter function on the fetched XML
2. use a querry in the webservice so that filtered data is
collected.
If your data is coming in XML format, then you can filter out
required data using a function.
I did something like this
<mx:HSlider width="124" tickInterval="5" labels="[0,120]"
id="totExp" values="0" maximum="120" snapInterval="5"
showTrackHighlight="true"
change="shoot();"
toolTip="Total Experience in months" />
Here shoot is the function which has the code to filter data
from the file.
I hope this may give you a lil bit of direction.
Rahul
Similar Messages
-
How to binding incoming xml node list to the tree control as dataProvider
Recently, I faced into one issue: I want to binding incoming xml node (it's not avaliable at start) list to the tree control as a dataProvider.
Since the incoming xml node list is not avaliable at beginning but I needs to bind it to the tree, so I create one virtual one in the xml, and prepare to remove it before the tree is shown. (ready for the actual node adding). But It did not work.
Please see the presudo-code here:
1. Model layer(CsModel.as)
public class CsModel
[Bindable]
public var treeXML:XML=<nodes><car label="virtualOne" id="1">
</car></nodes>;
(Here, I want to build binding relationship on the <car/> node,
one 'virtual/stub' node is set here with lable="virtualOne".
But this node will be deleted after IdTree
control is created completely.)
[Bindable]
public var treeData:XMLList =new XMLListCollection(treeXML.car);
2. view layer(treePage.mxml)
private var _model:CsModel = new CsModel();
private function addNode():void
var newNode:XML=<car/>;
newNode.@label="newOne";
newNode.@id=1;
_model.treeXML.appendChild(newNode);
private function cleanData():void
delete _model.treeXML.car;
<mx:VBox height="100%" width="100%">
<mx:Button label="AddNode" click="addNode()" />
<mx:Tree id="IdTree" labelField="@label"
creationComplete="cleanData()"
dataProvider="{_model}"/>
</mx:VBox>
3. Top view layer (App.Mxml)
<mx:application>
<treePage />
</mx:application>
For method: cleanData(),It's expected that when the treePage is shown, we first delete the virutalOne to provide one 'clear' tree since we don't want show virtualOne to the user. The virutalOne node just for building the relationship between treeData and treeXML at beginning. But the side effect of this method, I found, is that the relationship between treeXML and treeData was cut off. And this leads to that when I added new node (by click the 'addNode' button) to the xmlXML, the xmlData was not affected at all !
So Is there any other way to solve this issue or bind the incoming xml node list to the xmlListCollection which will be used as Tree control's dataProvider ?If u want to display the name : value then u can do like this
<xsl:eval>this.selectSingleNode("name").nodeName</xsl:eval> : <xsl:value-of select="name" /> -
Parallel Processing : Unable to capture return results using RECIEVE
Hi,
I am using parallel processing in one of my program and it is working fine but I am not able to collect return results using RECIEVE statement.
I am using
CALL FUNCTION <FUNCTION MODULE NAME>
STARTING NEW TASK TASKNAME DESTINATION IN GROUP DEFAULT_GROUP
PERFORMING RETURN_INFO ON END OF TASK
and then in subroutine RETURN_INFO I am using RECEIVE statement.
My RFC is calling another BAPI and doing explicit commit as well.
Any pointer will be of great help.
Regards,
Deepak Bhalla
Message was edited by: Deepak Bhalla
I used the wait command after rfc call and it worked additionally I have used Message switch in Receive statement because RECIEVE statement was returing sy-subrc 2.Not sure what's going on here. Possibly a corrupt drive? Or the target drive is full?
Try running the imagex command manually from a F8 cmd window (in WinPE)
"\\OCS-MDT\CCBShare$\Tools\X64\imagex.exe" /capture /compress maximum C: "\\OCS-MDT\CCBShare$\Captures\CCB01-8_15_14.wim" "CCB01CDrive" /flags ENTERPRISE
Keith Garner - Principal Consultant [owner] -
http://DeploymentLive.com -
I see that you can control which form is used based on security roles, but can you control it based on other field values? I'd like a new record to use a different form until a given status is updated. I have a status of draft and active. So
it would be nice if I could use form1 for those in draft, form2 for those that are active. But I only see where you can control that via the security roles.
I can code all of this via JavaScript, but having the ability to use two separate forms would be nice. Is that even possible.
Best regards,
Jon Gregory RothlanderHello,
Recheck following article - http://gonzaloruizcrm.blogspot.com/2014/11/avoiding-form-reload-when-switching-crm.html
Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
My blog -
ActiveX controls not downloaded when using Internet Explorer 10
We have many legacy applications developed using ASP and VB(InterDev). Our organization is moving to use Internet Explorer 10 in the near future.
We had a IE10 compatibility testing for our legacy applications and we observed that the applications using ActiveX controls are not working. Applications works perfectly fine with the older version of Internet Explorer.
We looked for the various workarounds but we did not find any.
Some application does nothing when we click on a button to generate the report but some applications throws the below error:
<div id="x_x_imcontent"> <div style="font-size: 9pt; direction: ltr;">"ActiveX
control failed to load! -- This control is required to use the Address Book and Attachment features. Please check your browser security settings and/or contact PC Support to install the digitally signed control."</div>
</div>
We will be glad if we get any assistance on this issue.Hi,
Please post your ActiveX feature testing scripts to the IE Web Developer forum.
(f12>Debug tab, search for ActiveX.... you should be able to find code blocks where you are feature testing for your ActiveX controls eg var ourcontrol=new ActiveX('foobar');
these code blocks will be the origin of the error messages that are injected into the page. (you can also search for where the "ActiveX control failed to load" string is in your code.)
http://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=iewebdevelopment
IE10 has ActiveX filtering.... a blue circle with a line through it appears in the Address bar if any ActiveX content is blocked by Tools>ActiveX filtering.
IE10 has Enhanced protected Mode turned on by default in the Internet and Restricted Zones. I assume that you are mapping your test domain to the Intranet zone (where EPM is turned off by default and x32 bit controls are used.... if not you should see information
bars asking for permission to run the 32bit activeX controls)
Ensure you are using the Default IE security settings, (and also that you have applied the new admx files to your GPO and GPEdit control panels....)
Tools>Internet Options>Security tab, click "Reset all zones to default".
Ensure your test environment maps to the Intranet Zone (File>Properties) and that Enhanced Protected Mode is turned off for that zone (Security tab of Internet Options)
Ensure that your ActiveX controls are enabled (Tools>Manage Addons>Show all Addons) and that they have the correct permissions..... find them in the Addons manager and then click the item in the list to display their properties and permissions... at
the bottom of the Addons Properties there is a textarea with "You have approved this addon to run in the follow websites"... you testing and production domains should be listed.
For the best solutions/answers you should probably open a support ticket at support.microsoft.com so a support engineer can access your testing environment and do some tests.
Regards.
Rob^_^ -
Reading Payroll Results using PNPCE
Hi All,
As far as reading infotypes/master data is concerned, I am comfortable using "PNPCE" instead of logical database "PNP".
Can any one tell me how can I read payroll results using "PNPCE". Since Get payroll event is not available in pnpce.Hi khalid,
1. U want the remuneration (monthly salary )
2. U won't get it DIRECTLY from any table.
(Its stored in cluster format)
3. Use this logic and FM.
DATA: myseqnr LIKE hrpy_rgdir-seqnr.
DATA : mypy TYPE payin_result.
DATA : myrt LIKE TABLE OF pc207 WITH HEADER LINE.
SELECT SINGLE seqnr FROM hrpy_rgdir
INTO myseqnr
WHERE pernr = mypernr
AND fpper = '200409'
AND srtza = 'A'.
IF sy-subrc = 0.
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
EXPORTING
clusterid = 'IN'
employeenumber = mypernr
sequencenumber = myseqnr
CHANGING
payroll_result = mypy
EXCEPTIONS
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
error_reading_archive = 8
error_reading_relid = 9
OTHERS = 10.
myrt[] = mypy-inter-rt.
READ TABLE myrt WITH KEY lgart = '1899'.
4. the internal table myrt
will contain what u require.
regards,
amit m. -
Two very different results using the same settings (H.264 / Quicktime Pro)
I’m a bit confused, I have used Quicktime Pro (v7.1) to encode DV into H.264 for iPod and this particular video is 18 minutes long and came out looking very good with the following settings;
VIDEO: H.264 at 200kbps, Baseline Profile, 25fps, Auto Key Frames, 320x240 or 640x480, Multipass Best quality encoding.
AUDIO: AAC Audio at 96kbps, 24kHz sampling freq, Stereo.
However here is the twist…
When I use the same exact settings to encode just the 30 second opener (from the 18 minute video) the encoded opener looks bad and blocky!
Why? Same settings would make you assume that you should get a same or similar result, or am I wrong?
The reason I have tried encoding this 30 second opener is that I am trying to work out which settings work best on the iPod (another issue) and I don’t want to spend hours test encoding the full 18 minute video, as you know H.264 is SLOW to encode!
So can anyone help in regard to two very different results using the same settings?
Regards,
J
PC Windows XPAlvin,
Is it a commercially-released or home-burned CD?
If it's commercially-released, try "encouraging" the recalcitrant computer by using the iTunes Advanced menu > Get CD Track Names command when it shows Audio CD.
If it's home-burned, you will find that only the computer that actually burned the disc will know what's on it. The information won't be transferred to another computer.
Let us know which, if either, of these situations applies to you. -
Version Control with JDeveloper application using ClearCase
My team is evaluating J Developer to see if
it matchs our requirement. We want
to know how we will be able to use Clearcase
as version control tool with our Java or JSP application developed using JDeveloper.
We understand that J Developer will help us
to create a zip file for deployment. Do we need to check in/out that zip file, zip/unzip the zip file, look for the file
that we want to change, and then make change to it?
If so how Clear Case knows which files in that zip file has been changed and what changes have been made?
Currently, we use Clearcase to check in/out
every single file, one at a time. We don't know how it will work with a zip file.
Sincerely,
KhanhAlex,
There are two parts to this answer.
You can hook up any version control system
to JDeveloper using various JDeveloper
extension mechanisms including adding items
to the tools menu or complete wizards.
On OTN, you can find an CustomAddins which provides a way to integrate to any version control system by editing some batch files to point to their "put" and "get" type tools. This is meant as a simple starting point.
Starting with JDeveloper 3.2, you will be able to take advantage of the intergrated source control feature that integrates Oracle Repository's source control features into JDeveloper.
I hope this helps,
-John -
Can I Control the Pulse offset using the Counter Out?
Hello Everyone.
I am trying to generate the Pulse as below;
I have seen and understood an example to generate a pulse waveform "GenDigPulseTrain_Continuous".
However, I can not control the offset of the pulse train.
Although the function gives me "initial delay(The amount of time in seconds to wait before generating the first pulse)",
I can not shift "t_dead" cycle.
/*01.Frequency Control*/
// The units to use to define pulse frequency.
m_pTaskWrite->COChannels.CreatePulseChannelFrequency(vecstrings[0]/*LPCTSTR counter*/,
"PWM_C0_CH_HIGH"/*LPCTSTR nameToAssignChannel*/,
DAQmxCOPulseFrequencyUnitsHertz,
DAQmxCOPulseIdleStateHigh,
dDeadTime,
m_nFncFrequency/*frequency*/,
prDuty.second/*dutyCycle*/);
// The units to use to define pulse frequency.
m_pTaskWrite->COChannels.CreatePulseChannelFrequency(vecstrings[1]/*LPCTSTR counter*/,
"PWM_C0_CH_LOW"/*LPCTSTR nameToAssignChannel*/,
DAQmxCOPulseFrequencyUnitsHertz,
DAQmxCOPulseIdleStateLow,
dDeadTime/**2 + (prDuty.second *dCycleTime)*/,
m_nFncFrequency/*frequency*/,
prDuty.second/*dutyCycle*/);
Please let me know how I solve this problem.
Thank youDear Zl,
Counting pulses is much easier with the FP-QUAD-510 or FP-CTR-500, but can be done with the FP-AI-110. You can't directly count the pulses with a FP-AI-110, but you can do it in software. Bring in the data by doing a normal read. Then, using shift registers, if the previous voltage is less than .8V (low) and the current voltage is more than 2.5 (high), increase the pulse count. I have attached a program that shows what to do with the data once you bring it in. I took the data from an array outside the while loop, but your data will be brought in one point at a time inside the while loop. One thing to take note of, since Fieldpoint brings in data at 1 kS/s, this will only work with pulses slower than 500 Hz. The farther the duty cycle is away from 50% duty cycle, the slower the signal must be in order to catch the pulses correctly. Please let me know if you have any questions. Have a great day!
Sincerely,
Marni
PS- Please only post question once.
Attachments:
pulsecount.vi 22 KB -
Looping payroll results using pnpce ldb
hii experts,
Can anybody tell me how can v loop payroll results using pnpce ldb..plz provide me the syntax...or any reference report
program.Hi First Using Get peras event read the RGDIR results as below
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
persnr = p_pernr
IMPORTING
molga = p_molga
TABLES
in_rgdir = p_rgdir
EXCEPTIONS
no_record_found = 1
OTHERS = 2.
Get the Cluster ID based on the molga value of the employee using T5001 table
Then Based on the RGDIR results loop retrive the payroll results below
LOOP AT gt_rgdir INTO wa_rgdir WHERE fpbeg LE wa_dates-endda AND fpend GE wa_dates-endda
AND srtza EQ c_a
AND payty EQ c_space.
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
EXPORTING
clusterid = wa_t500l-relid
employeenumber = pernr-pernr
sequencenumber = wa_rgdir-seqnr
read_only_international = 'X'
CHANGING
payroll_result = gt_result
EXCEPTIONS
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
error_reading_archive = 8
error_reading_relid = 9
OTHERS = 10. -
How to control PO Release strategy using WorkFlow
please tell me how to control PO Release strategy using WorkFlow.
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on May 31, 2011 9:35 AMHi,
Yes they are same unless you differentiate by using
1> Purchasing Document Category i.e CEKKO -BSTYP
A..... Request for Quotation
F......Purchase Order
K......Contract
L......Scheduling Agreement
So if you just create a characteristics for CEKKO-BSTYP then maintain its values only for F so it will not be applied to RFQ -
Controlling Agilent E4438C ESG using NI-VISA GPIB
Hii all,
I am controlling Agilent E4438C ESG using NI VISA GPIB...Whenever i want to set the amplitude and frequency, i will send it the commands....but when i want to capture the information i am unable to do it....
I gone through the VISA GPIB user and programing manual ..there is various functions such as ibwrt etc..How can i use those commands in the LabVIEW...
One thing more ..i wanna to know, the commands vary according to the instrument type..
If yes from where i can get those commands for Agilent E4438C ESG....
Puneet
CLA 2014
CCVID 2014You should download the driver. The main search page is at http://sine.ni.com/idnetwork/. Just enter 4438 into the search field and you will find the driver.
Your comment about capturing the information is not clear. What exactly do you want to read back from the instrument? You should spend some time reading the programming manual for the instrument. When you find the query (a command terminated with a '?") you want to issue, you would see if it exists in the driver. If it does, just execute the driver function. If it doesn't, then you do a VISA write of that command and then do a VISA Read.
p.s. The programming manual is available from the vendor.
Message Edited by Dennis Knutson on 02-13-2008 09:18 PM -
How to get the best results using the refine edge tool?
how to use the sliders in the refine edge tool? how do you get the best results using the fine edge tool?
You should ask in the forum for the (un-named) program you are using
The Cloud forum is not about using individual programs
The Cloud forum is about the Cloud as a delivery & install process
If you will start at the Forums Index https://forums.adobe.com/welcome
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll -
Two different results using one query
Hi Friends
Oracle version that I am using is : Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
I have a scenario where one account can be related to two customers. Hence, in table have many rows for one account. Here’s the sample data:
Account_ID | product_code | cust_id | relationship_code | entity_code
1111 | ABC | 1234 | SOL | CUST
1111 | ABC | 2222 | ZZZ | LINK
1111 | ABC | 4455 | ABC | LINK
2222 | ABC | 7890 | SOL | CUST
2222 | ABC | 5678 | ZZZ | LINK
3333 | JFK | 5878 | TST | CUST
3333 | JFK | 3254 | PRI | CUST
3333 | JFK | 3299 | PRI | CUST
4444 | JFK | 2535 | SOL | CUST
4444 | JFK | 4565 | SOL | CUST
5555 | DEF | 6666 | PRI | CUST
5555 | DEF | 6667 | TST | CUST
5555 | DEF | 9667 | TST | CUSTIn this scenario, I need two outputs differently:
Output 1: When an account has relationship_code = ‘SOL’ then take the least cust_id
1111 | ABC | 1234 | SOL | CUST
2222 | ABC | 5678 | ZZZ | LINK
4444 | JFK | 2535 | SOL | CUST Output 2: else take the highest cust_id
3333 | JFK | 5878 | TST | CUST
5555 | DEF | 9667 | TST | CUSTHow can I get this result using one query?Not sure what you mean. Works OK:
SQL> with t as (
2 select 1111 account_ID,'ABC' product_code,1234 cust_id,'SOL' relationship_code,'CUST' entity_code from dual union all
3 select 1111,'ABC',2222,'ZZZ','LINK' from dual union all
4 select 1111,'ABC',4455,'ABC','LINK' from dual union all
5 select 2222,'ABC',7890,'SOL','CUST' from dual union all
6 select 2222,'ABC',5678,'ZZZ','LINK' from dual union all
7 select 3333,'JFK',5878,'TST','CUST' from dual union all
8 select 3333,'JFK',3254,'PRI','CUST' from dual union all
9 select 3333,'JFK',3299,'PRI','CUST' from dual union all
10 select 4444,'JFK',2535,'SOL','CUST' from dual union all
11 select 4444,'JFK',4565,'SOL','CUST' from dual union all
12 select 5555,'DEF',6666,'PRI','CUST' from dual union all
13 select 5555,'DEF',6667,'TST','CUST' from dual union all
14 select 5555,'DEF',9667,'TST','CUST' from dual union all
15 select 6666,'XYZ',8877,'SOL','CUST' from dual
16 )
17 select account_ID,
18 product_code,
19 cust_id,
20 relationship_code,
21 entity_code
22 from (
23 select account_ID,
24 product_code,
25 cust_id,
26 relationship_code,
27 entity_code,
28 case max(case relationship_code when 'SOL' then 1 else 0 end) over(partition by account_ID)
29 when 1 then dense_rank() over(partition by account_ID order by cust_id)
30 else dense_rank() over(partition by account_ID order by cust_id desc)
31 end rnk
32 from t
33 )
34 where rnk = 1
35 /
ACCOUNT_ID PRO CUST_ID REL ENTI
1111 ABC 1234 SOL CUST
2222 ABC 5678 ZZZ LINK
3333 JFK 5878 TST CUST
4444 JFK 2535 SOL CUST
5555 DEF 9667 TST CUST
6666 XYZ 8877 SOL CUST
6 rows selected.
SQL> SY. -
Poll - Which Version Control Software Do You Use With LabVIEW?
I wish the forums had a poll feature. I created a poll in the developer community - Which Version Control Software Do You Use With LabVIEW?
http://decibel.ni.com/content/polls/1818
Edit: I just saw that there already is a poll for that
http://decibel.ni.com/content/polls/1050
=====================
LabVIEW 2012julieann wrote:
You can use a source control provider to share files among multiple users, improve security and quality, and track changes to shared projects. Use LabVIEW with third-party source control providers so you can check out files and track changes from within LabVIEW. See info. here.
Looks suspiciously like someone trying to increase hits on their blog. A coincidence that it was posted the same day as the blog post?
Message has been reported to the moderator. Laura can decide whether or not it's appropriate.
Maybe you are looking for
-
Having had recently a problem with my credit card with itunes (the only place I ever used that particular card), and several fraudulent charges, I no longer wish to give my credit card information to itunes or any other apple outfit. Can we pay for i
-
"cannot resolve symbol" in a Timer !!!Please Help!!!
I am doing a program for a class which involves timers. I am using JCreator and when i try to construct a new timer, the compiler points to the "new" in the line: Timer T1=new Timer(interval, ActionListener); ^ This is what it looks like and the erro
-
How can i record what my speakers hear?
Hi guys just wondering if you can help, at college not long ago we had adobe audition on the Windows pc's and you could record what the speakers were playing is there a way of doing that in logic, just i have a project to do and i want to record some
-
Why do we have to pay to upgrade? WTH
Not only have the iTunes song prices went up but now we have to pay to upgrade? Maybe I've been out of the loop...But i'd really like to know why are users having to pay for it. And at $9.99?
-
SET several attributes at once
hai all.. I have function module which gives me values for 3 of my attributes....Now my problem is..Do i have any way by which i can call the functionmodule only once and set the values to all three attributes(instead of calling FM for three times).I