After allocation of USRP, by inserting the appropriate code in the waveform xml file, I connect dataShort_out of USRP to DataConverter input port, such as DataShort but monitoring this port we can find nothing althought the allocation seems work fine. from monitor port panel appears: Call/s = about 30; MB/s = 0; Element/s = 0; Average queue dept = 2% Time=0;
Appended find the sad.xml of my waveform:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE softwareassembly PUBLIC "-//JTRS//DTD SCA V2.2.2 SAD//EN" "softwareassembly.dtd">
<softwareassembly id="DCE:c679e5d8-3193-4a96-9cdb-9f28135f63c9" name="usrp_test_waveform">
<componentfiles>
<componentfile id="DataConverter_6b5c2ee8-0e91-4ed0-af3b-2677f27c21ed" type="SPD">
<localfile name="/components/DataConverter/DataConverter.spd.xml"/>
</componentfile>
<componentfile id="TuneFilterDecimate_4552fe55-6bd9-4fd2-b0ce-ba184199263e" type="SPD">
<localfile name="/components/TuneFilterDecimate/TuneFilterDecimate.spd.xml"/>
</componentfile>
<componentfile id="AmFmPmBasebandDemod_16af112f-1335-424c-a4d6-972c63f1bd43" type="SPD">
<localfile name="/components/AmFmPmBasebandDemod/AmFmPmBasebandDemod.spd.xml"/>
</componentfile>
<componentfile id="multiply_const_ff_abfee3c0-41de-42a3-b3ae-b2ba1a2fca50" type="SPD">
<localfile name="/components/gnuhawk/gr/multiply_const_ff/current/multiply_const_ff.spd.xml"/>
</componentfile>
<componentfile id="AudioSink_2e8025e4-743f-4387-b129-bb15a4e1992b" type="SPD">
<localfile name="/components/AudioSink/AudioSink.spd.xml"/>
</componentfile>
</componentfiles>
<partitioning>
<componentplacement>
<componentfileref refid="DataConverter_6b5c2ee8-0e91-4ed0-af3b-2677f27c21ed"/>
<componentinstantiation id="DataConverter_1" startorder="4">
<usagename>DataConverter_1</usagename>
<findcomponent>
<namingservice name="DataConverter_1"/>
</findcomponent>
</componentinstantiation>
</componentplacement>
<componentplacement>
<componentfileref refid="TuneFilterDecimate_4552fe55-6bd9-4fd2-b0ce-ba184199263e"/>
<componentinstantiation id="TuneFilterDecimate_1" startorder="5">
<usagename>TuneFilterDecimate_1</usagename>
<findcomponent>
<namingservice name="TuneFilterDecimate_1"/>
</findcomponent>
</componentinstantiation>
</componentplacement>
<componentplacement>
<componentfileref refid="AmFmPmBasebandDemod_16af112f-1335-424c-a4d6-972c63f1bd43"/>
<componentinstantiation id="AmFmPmBasebandDemod_1" startorder="1">
<usagename>AmFmPmBasebandDemod_1</usagename>
<findcomponent>
<namingservice name="AmFmPmBasebandDemod_1"/>
</findcomponent>
</componentinstantiation>
</componentplacement>
<componentplacement>
<componentfileref refid="TuneFilterDecimate_4552fe55-6bd9-4fd2-b0ce-ba184199263e"/>
<componentinstantiation id="TuneFilterDecimate_2" startorder="2">
<usagename>TuneFilterDecimate_2</usagename>
<findcomponent>
<namingservice name="TuneFilterDecimate_2"/>
</findcomponent>
</componentinstantiation>
</componentplacement>
<componentplacement>
<componentfileref refid="multiply_const_ff_abfee3c0-41de-42a3-b3ae-b2ba1a2fca50"/>
<componentinstantiation id="multiply_const_ff_1" startorder="3">
<usagename>multiply_const_ff_1</usagename>
<findcomponent>
<namingservice name="multiply_const_ff_1"/>
</findcomponent>
</componentinstantiation>
</componentplacement>
<componentplacement>
<componentfileref refid="DataConverter_6b5c2ee8-0e91-4ed0-af3b-2677f27c21ed"/>
<componentinstantiation id="DataConverter_2" startorder="0">
<usagename>DataConverter_2</usagename>
<findcomponent>
<namingservice name="DataConverter_2"/>
</findcomponent>
</componentinstantiation>
</componentplacement>
<componentplacement>
<componentfileref refid="AudioSink_2e8025e4-743f-4387-b129-bb15a4e1992b"/>
<componentinstantiation id="AudioSink_1" startorder="6">
<usagename>AudioSink_1</usagename>
<findcomponent>
<namingservice name="AudioSink_1"/>
</findcomponent>
</componentinstantiation>
</componentplacement>
</partitioning>
<assemblycontroller>
<componentinstantiationref refid="DataConverter_2"/>
</assemblycontroller>
<connections>
<connectinterface id="usrpAllocation">
<usesport>
<usesidentifier>dataShort_out</usesidentifier>
<deviceusedbyapplication usesrefid="DCE:18964b3d-392e-4b98-a90d-0569b5d46ffe"/>
</usesport>
<providesport>
<providesidentifier>dataShort</providesidentifier>
<componentinstantiationref refid="DataConverter_2"/>
</providesport>
</connectinterface>
<connectinterface id="connection_1">
<usesport>
<usesidentifier>dataFloat_Out</usesidentifier>
<componentinstantiationref refid="TuneFilterDecimate_1"/>
</usesport>
<providesport>
<providesidentifier>dataFloat_In</providesidentifier>
<componentinstantiationref refid="AmFmPmBasebandDemod_1"/>
</providesport>
</connectinterface>
<connectinterface id="connection_2">
<usesport>
<usesidentifier>fm_dataFloat_out</usesidentifier>
<componentinstantiationref refid="AmFmPmBasebandDemod_1"/>
</usesport>
<providesport>
<providesidentifier>dataFloat_In</providesidentifier>
<componentinstantiationref refid="TuneFilterDecimate_2"/>
</providesport>
</connectinterface>
<connectinterface id="connection_3">
<usesport>
<usesidentifier>float_out</usesidentifier>
<componentinstantiationref refid="multiply_const_ff_1"/>
</usesport>
<providesport>
<providesidentifier>dataFloat</providesidentifier>
<componentinstantiationref refid="DataConverter_1"/>
</providesport>
</connectinterface>
<connectinterface id="connection_4">
<usesport>
<usesidentifier>dataFloat_Out</usesidentifier>
<componentinstantiationref refid="TuneFilterDecimate_2"/>
</usesport>
<providesport>
<providesidentifier>float_in</providesidentifier>
<componentinstantiationref refid="multiply_const_ff_1"/>
</providesport>
</connectinterface>
<connectinterface id="connection_5">
<usesport>
<usesidentifier>dataFloat_out</usesidentifier>
<componentinstantiationref refid="DataConverter_2"/>
</usesport>
<providesport>
<providesidentifier>dataFloat_In</providesidentifier>
<componentinstantiationref refid="TuneFilterDecimate_1"/>
</providesport>
</connectinterface>
<connectinterface id="connection_6">
<usesport>
<usesidentifier>dataShort_out</usesidentifier>
<componentinstantiationref refid="DataConverter_1"/>
</usesport>
<providesport>
<providesidentifier>audio_in</providesidentifier>
<componentinstantiationref refid="AudioSink_1"/>
</providesport>
</connectinterface>
</connections>
<usesdevicedependencies>
<usesdevice id="DCE:18964b3d-392e-4b98-a90d-0569b5d46ffe" type="usesUSRP">
<propertyref refid="DCE:cdc5ee18-7ceb-4ae6-bf4c-31f983179b4d" value="FRONTEND"/>
<propertyref refid="DCE:0f99b2e4-9903-4631-9846-ff349d18ecfb" value="USRP"/>
<structref refid="FRONTEND::tuner_allocation">
<simpleref refid="FRONTEND::tuner_allocation::tuner_type" value="RX_DIGITIZER"/>
<simpleref refid="FRONTEND::tuner_allocation::allocation_id" value="usrpAllocation"/>
<simpleref refid="FRONTEND::tuner_allocation::center_frequency" value="102500000"/>
<simpleref refid="FRONTEND::tuner_allocation::bandwidth" value="320000"/>
<simpleref refid="FRONTEND::tuner_allocation::sample_rate" value="250000"/>
<simpleref refid="FRONTEND::tuner_allocation::group_id" value=""/>
<simpleref refid="FRONTEND::tuner_allocation::rf_flow_id" value=""/>
</structref>
</usesdevice>
</usesdevicedependencies>
</softwareassembly>
I tried to reproduce the issue in REDHAWK 1.9 without any luck. I simplified your waveform by removing all connections and components from the waveform except the first DataConverter component. I also kept the USRP_UHD allocation and the connection between the USRP_UHD and the DataConverter. This focuses on the USRP_UHD device without introducing potential issues from the components that were removed. In my testing, data flows from the USRP_UHD device through the DataConverter as expected. Monitoring the USRP_UHD's dataShort_out port yields the following:
Calls/s: 0.9
MB/s: 0.9
Elements/s: 460,000
Average Queue depth: 0%
Time: 0
Which port did you monitor? These values are reasonable considering the sample rate chosen is 250 kHz and each sample is composed of two short int Elements.
I suggest you simplify your waveform as I have done and see if the issues continue. Make sure you are starting the waveform after it's been launched. Monitor the USRP_UHD's dataShort_out port and compare the results with what I've posted above. If the values are similar, the issue you're having is likely a result of one of the components you've removed.
Some additional information about your environment may also help identify the problem. What versions are you using (OS, Redhawk, FrontendInterfaces, USRP_UHD, etc.). What model of USRP are you using?
Related
I have been given complex requirements for a line chart. Here it is mocked-up manually in Excel:
Using Cognos Analytics 11.0.13, but plan to upgrade to 11.1.7 soon.
I want to draw a line chart with two lines. Using the samples data from Cognos, the chart will show Revenue as the measure, Date along the x-axis, and Order Method Type as the line color. At this point, which colors are used is not critical. Also, show all days even if there is no data. Sounds simple so far.
The tricky bits:
If it's a weekend the line should be dashed, otherwise it should be solid.
If Region is Americas, the marker should be green, otherwise it should be red.
Can this be done natively in Cognos, or am I looking at developing a Custom Control using d3?
Here's the current state of the attempt:
<report xmlns="http://developer.cognos.com/schemas/report/14.3/" expressionLocale="en" useStyleVersion="11.4">
<drillBehavior/>
<layouts>
<layout>
<reportPages>
<page name="Page1">
<style>
<defaultStyles>
<defaultStyle refStyle="pg"/>
</defaultStyles>
</style>
<pageBody>
<style>
<defaultStyles>
<defaultStyle refStyle="pb"/>
</defaultStyles>
</style>
<contents>
<v2_combinationChart maxHotspots="10000" name="Combination chart1" refQuery="output">
<v2_combinationTypeTooltips/>
<v2_legend>
<v2_legendPosition>
<v2_legendPreset/>
</v2_legendPosition>
<v2_legendTitle refQuery="output">
<v2_chartTextContents>
<v2_automaticText/>
</v2_chartTextContents>
<style>
<defaultStyles>
<defaultStyle refStyle="lx"/>
</defaultStyles>
</style>
</v2_legendTitle>
<style>
<defaultStyles>
<defaultStyle refStyle="lg"/>
</defaultStyles>
</style>
</v2_legend>
<v2_commonAxis>
<v2_ordinalAxis>
<v2_axisTitle refQuery="output">
<v2_chartTextContents>
<v2_automaticText/>
</v2_chartTextContents>
<style>
<defaultStyles>
<defaultStyle refStyle="at"/>
</defaultStyles>
</style>
</v2_axisTitle>
<v2_axisLine lineWeight="0"/>
<v2_axisLabels>
<style>
<defaultStyles>
<defaultStyle refStyle="al"/>
</defaultStyles>
</style>
</v2_axisLabels>
<v2_labelControl/>
</v2_ordinalAxis>
<chartNodes>
<chartNode>
<chartNodeMembers>
<chartNodeMember refDataItem="Date">
<chartContents>
<chartTextItem>
<dataSource>
<memberCaption/>
</dataSource>
</chartTextItem>
</chartContents>
<sortList>
<sortItem refDataItem="Date" sortOrder="ascending"/>
</sortList>
<propertyList>
<propertyItem refDataItem="Region"/>
</propertyList>
</chartNodeMember>
</chartNodeMembers>
</chartNode>
</chartNodes>
</v2_commonAxis>
<v2_topLeftAxis>
<v2_combinationChartTypes>
<v2_line lineDisplayType="lineAndMarkers">
<v2_linePalette markerSize="5pt">
<v2_linePaletteEntries>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#8599D3">
<v2_linearGradient>
<v2_gradientColor gradientColor="#8599D3"/>
<v2_gradientColor colorPosition="100" gradientColor="#5876AE"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#8599D3"/>
<v2_gradientColor colorPosition="100" gradientColor="#5876AE"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#E3AE6C">
<v2_linearGradient>
<v2_gradientColor gradientColor="#E3AE6C"/>
<v2_gradientColor colorPosition="100" gradientColor="#CD854E"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#E3AE6C"/>
<v2_gradientColor colorPosition="100" gradientColor="#CD854E"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#839862">
<v2_linearGradient>
<v2_gradientColor gradientColor="#839862"/>
<v2_gradientColor colorPosition="100" gradientColor="#6C7F56"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#839862"/>
<v2_gradientColor colorPosition="100" gradientColor="#6C7F56"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#B7C873">
<v2_linearGradient>
<v2_gradientColor gradientColor="#B7C873"/>
<v2_gradientColor colorPosition="100" gradientColor="#AFB885"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#B7C873"/>
<v2_gradientColor colorPosition="100" gradientColor="#AFB885"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#8484A8">
<v2_linearGradient>
<v2_gradientColor gradientColor="#8484A8"/>
<v2_gradientColor colorPosition="100" gradientColor="#525E7E"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#8484A8"/>
<v2_gradientColor colorPosition="100" gradientColor="#525E7E"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#C0CCED">
<v2_linearGradient>
<v2_gradientColor gradientColor="#C0CCED"/>
<v2_gradientColor colorPosition="100" gradientColor="#B0C2E5"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#C0CCED"/>
<v2_gradientColor colorPosition="100" gradientColor="#B0C2E5"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#8C5580">
<v2_linearGradient>
<v2_gradientColor gradientColor="#8C5580"/>
<v2_gradientColor colorPosition="100" gradientColor="#794067"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#8C5580"/>
<v2_gradientColor colorPosition="100" gradientColor="#794067"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#C789BC">
<v2_linearGradient>
<v2_gradientColor gradientColor="#C789BC"/>
<v2_gradientColor colorPosition="100" gradientColor="#BB72BC"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#C789BC"/>
<v2_gradientColor colorPosition="100" gradientColor="#BB72BC"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#D5BAEF">
<v2_linearGradient>
<v2_gradientColor gradientColor="#D5BAEF"/>
<v2_gradientColor colorPosition="100" gradientColor="#C29FD1"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#D5BAEF"/>
<v2_gradientColor colorPosition="100" gradientColor="#C29FD1"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#83683F">
<v2_linearGradient>
<v2_gradientColor gradientColor="#83683F"/>
<v2_gradientColor colorPosition="100" gradientColor="#604926"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#83683F"/>
<v2_gradientColor colorPosition="100" gradientColor="#604926"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#DCB05A">
<v2_linearGradient>
<v2_gradientColor gradientColor="#DCB05A"/>
<v2_gradientColor colorPosition="100" gradientColor="#C09C52"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#DCB05A"/>
<v2_gradientColor colorPosition="100" gradientColor="#C09C52"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#F4DF9E">
<v2_linearGradient>
<v2_gradientColor gradientColor="#F4DF9E"/>
<v2_gradientColor colorPosition="100" gradientColor="#E4CF87"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#F4DF9E"/>
<v2_gradientColor colorPosition="100" gradientColor="#E4CF87"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#5F8A8C">
<v2_linearGradient>
<v2_gradientColor gradientColor="#5F8A8C"/>
<v2_gradientColor colorPosition="100" gradientColor="#537579"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#5F8A8C"/>
<v2_gradientColor colorPosition="100" gradientColor="#537579"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#96C4B2">
<v2_linearGradient>
<v2_gradientColor gradientColor="#96C4B2"/>
<v2_gradientColor colorPosition="100" gradientColor="#89B0A0"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#96C4B2"/>
<v2_gradientColor colorPosition="100" gradientColor="#89B0A0"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#CBE8E7">
<v2_linearGradient>
<v2_gradientColor gradientColor="#CBE8E7"/>
<v2_gradientColor colorPosition="100" gradientColor="#BDD6D5"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#CBE8E7"/>
<v2_gradientColor colorPosition="100" gradientColor="#BDD6D5"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#AE6564">
<v2_linearGradient>
<v2_gradientColor gradientColor="#AE6564"/>
<v2_gradientColor colorPosition="100" gradientColor="#875352"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#AE6564"/>
<v2_gradientColor colorPosition="100" gradientColor="#875352"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#D88C6F">
<v2_linearGradient>
<v2_gradientColor gradientColor="#D88C6F"/>
<v2_gradientColor colorPosition="100" gradientColor="#C47D61"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#D88C6F"/>
<v2_gradientColor colorPosition="100" gradientColor="#C47D61"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#E3C9B0">
<v2_linearGradient>
<v2_gradientColor gradientColor="#E3C9B0"/>
<v2_gradientColor colorPosition="100" gradientColor="#D2B2A5"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#E3C9B0"/>
<v2_gradientColor colorPosition="100" gradientColor="#D2B2A5"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#848484">
<v2_linearGradient>
<v2_gradientColor gradientColor="#848484"/>
<v2_gradientColor colorPosition="100" gradientColor="#555555"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#848484"/>
<v2_gradientColor colorPosition="100" gradientColor="#555555"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#a4a4a4">
<v2_linearGradient>
<v2_gradientColor gradientColor="#a4a4a4"/>
<v2_gradientColor colorPosition="100" gradientColor="#909090"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#a4a4a4"/>
<v2_gradientColor colorPosition="100" gradientColor="#909090"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
<v2_linePaletteEntry>
<v2_lineFill defaultColor="#C7C7C7">
<v2_linearGradient>
<v2_gradientColor gradientColor="#C7C7C7"/>
<v2_gradientColor colorPosition="100" gradientColor="#c1c1c1"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#C7C7C7"/>
<v2_gradientColor colorPosition="100" gradientColor="#c1c1c1"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
</v2_linePaletteEntries>
</v2_linePalette>
<v2_conditionalLinePalette showInLegend="hide">
<v2_lineAdvancedCondition>
<v2_lineCases>
<v2_lineCase>
<v2_conditionalPaletteEntryLabel>
<v2_automaticLabel/>
</v2_conditionalPaletteEntryLabel>
<reportCondition>_day_of_week ([output].[Date],1) in (6,7) and [output].[Order method type]='E-mail' and [output].[Region] = 'Americas'</reportCondition>
<v2_linePaletteEntry lineStyle="dash">
<v2_lineFill defaultColor="#198545">
<v2_color color="#8599D3"/>
</v2_lineFill>
<v2_pointPaletteEntry markerShape="circle">
<v2_fillEffect defaultColor="#198545">
<v2_solidColor color="blue"/>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
</v2_lineCase>
</v2_lineCases>
</v2_lineAdvancedCondition>
<v2_lineAdvancedCondition>
<v2_lineCases>
<v2_lineCase>
<reportCondition>_day_of_week ([output].[Date],1) in (6,7) and [output].[Order method type]='Telephone' and [output].[Region] = 'Americas'</reportCondition>
<v2_linePaletteEntry lineStyle="dash">
<v2_lineFill defaultColor="#198545">
<v2_color color="#E3AE6C"/>
</v2_lineFill>
<v2_pointPaletteEntry markerShape="circle">
<v2_fillEffect defaultColor="#198545">
<v2_solidColor color="blue"/>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry>
</v2_lineCase>
</v2_lineCases>
</v2_lineAdvancedCondition>
</v2_conditionalLinePalette>
<chartNodes>
<chartNode>
<chartNodeMembers>
<chartNodeMember refDataItem="Order method type">
<chartContents>
<chartTextItem>
<dataSource>
<memberCaption/>
</dataSource>
</chartTextItem>
</chartContents>
</chartNodeMember>
</chartNodeMembers>
</chartNode>
</chartNodes>
</v2_line>
</v2_combinationChartTypes>
<v2_axis>
<v2_axisTitle refQuery="output">
<v2_chartTextContents>
<v2_automaticText/>
</v2_chartTextContents>
<style>
<defaultStyles>
<defaultStyle refStyle="at"/>
</defaultStyles>
</style>
</v2_axisTitle>
<v2_axisLine lineWeight="0"/>
<v2_axisRange>
<v2_automaticRange/>
</v2_axisRange>
<v2_axisLabels>
<style>
<defaultStyles>
<defaultStyle refStyle="al"/>
</defaultStyles>
</style>
</v2_axisLabels>
<v2_majorGridlines lineWeight="0" lineColor="#CCCCCC"/>
</v2_axis>
</v2_topLeftAxis>
<style>
<defaultStyles>
<defaultStyle refStyle="ch"/>
</defaultStyles>
<CSS value="width:1054px;height:365px"/>
</style>
<noDataHandler>
<contents>
<block>
<contents>
<textItem>
<dataSource>
<staticValue>No Data Available</staticValue>
</dataSource>
</textItem>
</contents>
<style>
<CSS value="padding:16px;"/>
</style>
</block>
</contents>
</noDataHandler>
<v2_defaultChartMeasure refDataItem="Revenue"/>
</v2_combinationChart>
</contents>
</pageBody>
</page>
</reportPages>
</layout>
</layouts>
<queries>
<query name="source">
<source>
<model/>
</source>
<selection>
<dataItem aggregate="total" name="Revenue">
<expression>[Sales (query)].[Sales].[Revenue]</expression>
<XMLAttributes>
<XMLAttribute output="no" name="RS_dataType" value="2"/>
<XMLAttribute output="no" name="RS_dataUsage" value="2"/>
<XMLAttribute output="no" name="RS_isCurrency" value="true"/>
</XMLAttributes>
</dataItem>
<dataItem aggregate="none" rollupAggregate="none" name="Date">
<expression>[Sales (query)].[Time].[Date]</expression>
<XMLAttributes>
<XMLAttribute output="no" name="RS_dataType" value="4"/>
<XMLAttribute output="no" name="RS_dataUsage" value="0"/>
</XMLAttributes>
</dataItem>
<dataItem aggregate="none" rollupAggregate="none" name="Day of the week">
<expression>[Sales (query)].[Time].[Day of the week]</expression>
<XMLAttributes>
<XMLAttribute output="no" name="RS_dataType" value="1"/>
<XMLAttribute output="no" name="RS_dataUsage" value="0"/>
</XMLAttributes>
</dataItem>
<dataItem aggregate="none" rollupAggregate="none" name="Order method type">
<expression>[Sales (query)].[Order method].[Order method type]</expression>
<XMLAttributes>
<XMLAttribute output="no" name="RS_dataType" value="3"/>
<XMLAttribute output="no" name="RS_dataUsage" value="0"/>
</XMLAttributes>
</dataItem>
<dataItem name="Region" aggregate="none" rollupAggregate="none">
<expression>[Sales (query)].[Retailers].[Region]</expression>
<XMLAttributes>
<XMLAttribute name="RS_dataType" value="3" output="no"/>
<XMLAttribute name="RS_dataUsage" value="0" output="no"/>
</XMLAttributes>
</dataItem>
<dataItem name="join" aggregate="none">
<expression>'a'</expression>
</dataItem>
</selection>
<detailFilters>
<detailFilter>
<filterExpression>[Order method type] in ('E-mail','Telephone')</filterExpression>
</detailFilter>
<detailFilter>
<filterExpression>[Date]<= 2010-02-28</filterExpression>
</detailFilter>
</detailFilters>
</query>
<query name="date">
<source>
<model/>
</source>
<selection>
<dataItem aggregate="none" rollupAggregate="none" name="Date">
<expression>[Sales (query)].[Time].[Date]</expression>
<XMLAttributes>
<XMLAttribute output="no" name="RS_dataType" value="4"/>
<XMLAttribute output="no" name="RS_dataUsage" value="0"/>
</XMLAttributes>
</dataItem>
<dataItem aggregate="none" rollupAggregate="none" name="Day of the week">
<expression>[Sales (query)].[Time].[Day of the week]</expression>
<XMLAttributes>
<XMLAttribute output="no" name="RS_dataType" value="1"/>
<XMLAttribute output="no" name="RS_dataUsage" value="0"/>
</XMLAttributes>
</dataItem>
<dataItem name="join" aggregate="none">
<expression>'a'</expression>
</dataItem>
</selection>
<detailFilters>
<detailFilter>
<filterExpression>[Date]<= 2010-02-28</filterExpression>
</detailFilter>
</detailFilters>
</query>
<query name="dimensions">
<source>
<joinOperation>
<joinOperands>
<joinOperand cardinality="1:1">
<queryRef refQuery="source"/>
</joinOperand>
<joinOperand cardinality="1:1">
<queryRef refQuery="date"/>
</joinOperand>
</joinOperands>
<joinFilter>
<filterExpression>[source].[join] = [date].[join]</filterExpression>
</joinFilter>
</joinOperation>
</source>
<selection>
<dataItem name="Date" aggregate="none" rollupAggregate="none">
<expression>[date].[Date]</expression>
</dataItem>
<dataItem name="Day of the week" aggregate="none" rollupAggregate="none">
<expression>[date].[Day of the week]</expression>
</dataItem>
<dataItem name="Order method type" aggregate="none" rollupAggregate="none">
<expression>[source].[Order method type]</expression>
</dataItem>
<dataItem name="Region" aggregate="none" rollupAggregate="none">
<expression>[source].[Region]</expression>
</dataItem>
</selection>
</query>
<query name="output">
<source>
<joinOperation>
<joinOperands>
<joinOperand cardinality="0:1">
<queryRef refQuery="source"/>
</joinOperand>
<joinOperand cardinality="1:1">
<queryRef refQuery="dimensions"/>
</joinOperand>
</joinOperands>
<joinFilter>
<filterExpression>[source].[Date] = [dimensions].[Date] and [source].[Order method type] = [dimensions].[Order method type] and [source].[Region] = [dimensions].[Region]</filterExpression>
</joinFilter>
</joinOperation>
</source>
<selection>
<dataItem name="Date" aggregate="none" rollupAggregate="none">
<expression>[dimensions].[Date]</expression>
<XMLAttributes>
<XMLAttribute name="RS_dataType" value="4" output="no"/>
<XMLAttribute name="RS_dataUsage" value="0" output="no"/>
</XMLAttributes>
</dataItem>
<dataItem name="Day of the week" aggregate="none" rollupAggregate="none">
<expression>[dimensions].[Day of the week]</expression>
</dataItem>
<dataItem name="Order method type" aggregate="none" rollupAggregate="none">
<expression>[dimensions].[Order method type]</expression>
<XMLAttributes>
<XMLAttribute name="RS_dataType" value="3" output="no"/>
<XMLAttribute name="RS_dataUsage" value="0" output="no"/>
</XMLAttributes>
</dataItem>
<dataItem name="Region" aggregate="none" rollupAggregate="none">
<expression>[dimensions].[Region]</expression>
</dataItem>
<dataItem name="Revenue" aggregate="total" rollupAggregate="automatic">
<expression>[source].[Revenue]</expression>
<XMLAttributes>
<XMLAttribute name="RS_dataType" value="2" output="no"/>
<XMLAttribute name="RS_dataUsage" value="2" output="no"/>
</XMLAttributes>
</dataItem>
</selection>
</query>
</queries>
<XMLAttributes>
<XMLAttribute output="no" name="RS_CreateExtendedDataItems" value="true"/>
<XMLAttribute output="no" name="listSeparator" value=","/>
<XMLAttribute output="no" name="decimalSeparator" value="."/>
<XMLAttribute output="no" name="RS_modelModificationTime" value="2015-11-25T21:38:24.820Z"/>
</XMLAttributes>
<modelPath type="FM">/content/folder[#name='Samples']/folder[#name='Models']/package[#name='GO sales (query)']/model[#name='model']</modelPath>
</report>
Using the legacy charts, you can use a conditional pallete on the measure. The following example uses the day_of_week field to apply it to the date. I used the properties property to ensure the day_of_week is included in the query given its not projected.
<report xmlns="http://developer.cognos.com/schemas/report/15.5/" expressionLocale="en" useStyleVersion="11.6">
<drillBehavior/>
<layouts>
<layout>
<reportPages>
<page name="Page1">
<style>
<defaultStyles>
<defaultStyle refStyle="pg"/>
</defaultStyles>
</style>
<pageBody>
<style>
<defaultStyles>
<defaultStyle refStyle="pb"/>
</defaultStyles>
</style>
<contents><v2_combinationChart maxHotspots="10000" name="Combination chart1" refQuery="Query1">
<v2_combinationTypeTooltips/>
<v2_legend>
<v2_legendPosition>
<v2_legendPreset/>
</v2_legendPosition>
<v2_legendTitle refQuery="Query1">
<v2_chartTextContents>
<v2_automaticText/>
</v2_chartTextContents>
<style>
<defaultStyles>
<defaultStyle refStyle="lx"/>
</defaultStyles>
</style>
</v2_legendTitle>
<style>
<defaultStyles>
<defaultStyle refStyle="lg"/>
</defaultStyles>
</style>
</v2_legend>
<v2_commonAxis>
<v2_ordinalAxis>
<v2_axisTitle refQuery="Query1">
<v2_chartTextContents>
<v2_automaticText/>
</v2_chartTextContents>
<style>
<defaultStyles>
<defaultStyle refStyle="at"/>
</defaultStyles>
</style>
</v2_axisTitle>
<v2_axisLine lineWeight="0"/>
<v2_axisLabels>
<style>
<defaultStyles>
<defaultStyle refStyle="al"/>
</defaultStyles>
</style>
</v2_axisLabels>
<v2_labelControl/></v2_ordinalAxis>
<chartNodes><chartNode><chartNodeMembers><chartNodeMember refDataItem="Date"><chartContents><chartTextItem><dataSource><memberCaption/></dataSource></chartTextItem></chartContents></chartNodeMember></chartNodeMembers></chartNode></chartNodes></v2_commonAxis>
<v2_topLeftAxis>
<v2_combinationChartTypes>
<v2_line>
<v2_linePalette markerSize="5pt">
<v2_linePaletteEntries><v2_linePaletteEntry>
<v2_lineFill defaultColor="#8599D3">
<v2_linearGradient>
<v2_gradientColor gradientColor="#8599D3"/>
<v2_gradientColor colorPosition="100" gradientColor="#5876AE"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#8599D3"/>
<v2_gradientColor colorPosition="100" gradientColor="#5876AE"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#E3AE6C">
<v2_linearGradient>
<v2_gradientColor gradientColor="#E3AE6C"/>
<v2_gradientColor colorPosition="100" gradientColor="#CD854E"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#E3AE6C"/>
<v2_gradientColor colorPosition="100" gradientColor="#CD854E"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#839862">
<v2_linearGradient>
<v2_gradientColor gradientColor="#839862"/>
<v2_gradientColor colorPosition="100" gradientColor="#6C7F56"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#839862"/>
<v2_gradientColor colorPosition="100" gradientColor="#6C7F56"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#B7C873">
<v2_linearGradient>
<v2_gradientColor gradientColor="#B7C873"/>
<v2_gradientColor colorPosition="100" gradientColor="#AFB885"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#B7C873"/>
<v2_gradientColor colorPosition="100" gradientColor="#AFB885"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#8484A8">
<v2_linearGradient>
<v2_gradientColor gradientColor="#8484A8"/>
<v2_gradientColor colorPosition="100" gradientColor="#525E7E"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#8484A8"/>
<v2_gradientColor colorPosition="100" gradientColor="#525E7E"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#C0CCED">
<v2_linearGradient>
<v2_gradientColor gradientColor="#C0CCED"/>
<v2_gradientColor colorPosition="100" gradientColor="#B0C2E5"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#C0CCED"/>
<v2_gradientColor colorPosition="100" gradientColor="#B0C2E5"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#8C5580">
<v2_linearGradient>
<v2_gradientColor gradientColor="#8C5580"/>
<v2_gradientColor colorPosition="100" gradientColor="#794067"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#8C5580"/>
<v2_gradientColor colorPosition="100" gradientColor="#794067"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#C789BC">
<v2_linearGradient>
<v2_gradientColor gradientColor="#C789BC"/>
<v2_gradientColor colorPosition="100" gradientColor="#BB72BC"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#C789BC"/>
<v2_gradientColor colorPosition="100" gradientColor="#BB72BC"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#D5BAEF">
<v2_linearGradient>
<v2_gradientColor gradientColor="#D5BAEF"/>
<v2_gradientColor colorPosition="100" gradientColor="#C29FD1"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#D5BAEF"/>
<v2_gradientColor colorPosition="100" gradientColor="#C29FD1"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#83683F">
<v2_linearGradient>
<v2_gradientColor gradientColor="#83683F"/>
<v2_gradientColor colorPosition="100" gradientColor="#604926"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#83683F"/>
<v2_gradientColor colorPosition="100" gradientColor="#604926"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#DCB05A">
<v2_linearGradient>
<v2_gradientColor gradientColor="#DCB05A"/>
<v2_gradientColor colorPosition="100" gradientColor="#C09C52"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#DCB05A"/>
<v2_gradientColor colorPosition="100" gradientColor="#C09C52"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#F4DF9E">
<v2_linearGradient>
<v2_gradientColor gradientColor="#F4DF9E"/>
<v2_gradientColor colorPosition="100" gradientColor="#E4CF87"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#F4DF9E"/>
<v2_gradientColor colorPosition="100" gradientColor="#E4CF87"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#5F8A8C">
<v2_linearGradient>
<v2_gradientColor gradientColor="#5F8A8C"/>
<v2_gradientColor colorPosition="100" gradientColor="#537579"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#5F8A8C"/>
<v2_gradientColor colorPosition="100" gradientColor="#537579"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#96C4B2">
<v2_linearGradient>
<v2_gradientColor gradientColor="#96C4B2"/>
<v2_gradientColor colorPosition="100" gradientColor="#89B0A0"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#96C4B2"/>
<v2_gradientColor colorPosition="100" gradientColor="#89B0A0"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#CBE8E7">
<v2_linearGradient>
<v2_gradientColor gradientColor="#CBE8E7"/>
<v2_gradientColor colorPosition="100" gradientColor="#BDD6D5"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#CBE8E7"/>
<v2_gradientColor colorPosition="100" gradientColor="#BDD6D5"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#AE6564">
<v2_linearGradient>
<v2_gradientColor gradientColor="#AE6564"/>
<v2_gradientColor colorPosition="100" gradientColor="#875352"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#AE6564"/>
<v2_gradientColor colorPosition="100" gradientColor="#875352"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#D88C6F">
<v2_linearGradient>
<v2_gradientColor gradientColor="#D88C6F"/>
<v2_gradientColor colorPosition="100" gradientColor="#C47D61"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#D88C6F"/>
<v2_gradientColor colorPosition="100" gradientColor="#C47D61"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#E3C9B0">
<v2_linearGradient>
<v2_gradientColor gradientColor="#E3C9B0"/>
<v2_gradientColor colorPosition="100" gradientColor="#D2B2A5"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#E3C9B0"/>
<v2_gradientColor colorPosition="100" gradientColor="#D2B2A5"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#848484">
<v2_linearGradient>
<v2_gradientColor gradientColor="#848484"/>
<v2_gradientColor colorPosition="100" gradientColor="#555555"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#848484"/>
<v2_gradientColor colorPosition="100" gradientColor="#555555"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#a4a4a4">
<v2_linearGradient>
<v2_gradientColor gradientColor="#a4a4a4"/>
<v2_gradientColor colorPosition="100" gradientColor="#909090"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#a4a4a4"/>
<v2_gradientColor colorPosition="100" gradientColor="#909090"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry><v2_linePaletteEntry>
<v2_lineFill defaultColor="#C7C7C7">
<v2_linearGradient>
<v2_gradientColor gradientColor="#C7C7C7"/>
<v2_gradientColor colorPosition="100" gradientColor="#c1c1c1"/>
</v2_linearGradient>
</v2_lineFill>
<v2_pointPaletteEntry>
<v2_fillEffect>
<v2_linearGradient>
<v2_gradientColor gradientColor="#C7C7C7"/>
<v2_gradientColor colorPosition="100" gradientColor="#c1c1c1"/>
</v2_linearGradient>
</v2_fillEffect>
</v2_pointPaletteEntry>
</v2_linePaletteEntry></v2_linePaletteEntries></v2_linePalette>
<v2_conditionalLinePalette showInLegend="hide"><v2_lineAdvancedCondition><v2_lineCases><v2_lineCase><v2_conditionalPaletteEntryLabel><v2_automaticLabel/></v2_conditionalPaletteEntryLabel><reportCondition>_day_of_week ([Query1].[Date],1) in (6,7) and [Query1].[Order method type]='E-mail'</reportCondition><v2_linePaletteEntry lineStyle="dash"><v2_lineFill defaultColor="#198545"><v2_color color="#8599D3"/></v2_lineFill><v2_pointPaletteEntry><v2_fillEffect defaultColor="#198545"><v2_solidColor color="#198545"/></v2_fillEffect></v2_pointPaletteEntry></v2_linePaletteEntry></v2_lineCase></v2_lineCases></v2_lineAdvancedCondition><v2_lineAdvancedCondition><v2_lineCases><v2_lineCase><reportCondition>_day_of_week ([Query1].[Date],1) in (6,7) and [Query1].[Order method type]='Telephone'</reportCondition><v2_linePaletteEntry lineStyle="dash"><v2_lineFill defaultColor="#198545"><v2_color color="#E3AE6C"/></v2_lineFill><v2_pointPaletteEntry><v2_fillEffect defaultColor="#198545"><v2_solidColor color="#198545"/></v2_fillEffect></v2_pointPaletteEntry></v2_linePaletteEntry></v2_lineCase></v2_lineCases></v2_lineAdvancedCondition></v2_conditionalLinePalette><chartNodes><chartNode><chartNodeMembers><chartNodeMember refDataItem="Order method type"><chartContents><chartTextItem><dataSource><memberCaption/></dataSource></chartTextItem></chartContents></chartNodeMember></chartNodeMembers></chartNode></chartNodes></v2_line>
</v2_combinationChartTypes>
<v2_axis>
<v2_axisTitle refQuery="Query1">
<v2_chartTextContents>
<v2_automaticText/>
</v2_chartTextContents>
<style>
<defaultStyles>
<defaultStyle refStyle="at"/>
</defaultStyles>
</style>
</v2_axisTitle>
<v2_axisLine lineWeight="0"/>
<v2_axisRange>
<v2_automaticRange/>
</v2_axisRange>
<v2_axisLabels>
<style>
<defaultStyles>
<defaultStyle refStyle="al"/>
</defaultStyles>
</style>
</v2_axisLabels>
<v2_majorGridlines lineWeight="0" lineColor="#CCCCCC"/>
</v2_axis>
</v2_topLeftAxis>
<style>
<defaultStyles>
<defaultStyle refStyle="ch"/>
</defaultStyles>
<CSS value="width:5000px"/></style>
<noDataHandler>
<contents>
<block>
<contents>
<textItem>
<dataSource>
<staticValue>No Data Available</staticValue>
</dataSource>
</textItem>
</contents>
<style>
<CSS value="padding:16px;"/>
</style>
</block>
</contents>
</noDataHandler>
<v2_defaultChartMeasure refDataItem="Revenue"/></v2_combinationChart></contents>
</pageBody>
</page>
</reportPages>
</layout>
</layouts>
<queries><query name="Query1"><source><model/></source><selection><dataItem aggregate="total" name="Revenue"><expression>[Sales (query)].[Sales].[Revenue]</expression><XMLAttributes><XMLAttribute output="no" name="RS_dataType" value="2"/><XMLAttribute output="no" name="RS_dataUsage" value="2"/><XMLAttribute output="no" name="RS_isCurrency" value="true"/></XMLAttributes></dataItem><dataItem aggregate="none" rollupAggregate="none" name="Date"><expression>[Sales (query)].[Time].[Date]</expression><XMLAttributes><XMLAttribute output="no" name="RS_dataType" value="4"/><XMLAttribute output="no" name="RS_dataUsage" value="0"/></XMLAttributes></dataItem><dataItem aggregate="none" rollupAggregate="none" name="Day of the week"><expression>[Sales (query)].[Time].[Day of the week]</expression><XMLAttributes><XMLAttribute output="no" name="RS_dataType" value="1"/><XMLAttribute output="no" name="RS_dataUsage" value="0"/></XMLAttributes></dataItem><dataItem aggregate="none" rollupAggregate="none" name="Order method type"><expression>[Sales (query)].[Order method].[Order method type]</expression><XMLAttributes><XMLAttribute output="no" name="RS_dataType" value="3"/><XMLAttribute output="no" name="RS_dataUsage" value="0"/></XMLAttributes></dataItem></selection><detailFilters><detailFilter><filterExpression>[Order method type] in ('E-mail','Telephone')</filterExpression></detailFilter><detailFilter><filterExpression>[Date]<= 2010-02-28</filterExpression></detailFilter></detailFilters></query></queries><XMLAttributes><XMLAttribute output="no" name="RS_CreateExtendedDataItems" value="true"/><XMLAttribute output="no" name="listSeparator" value=","/><XMLAttribute output="no" name="decimalSeparator" value="."/><XMLAttribute output="no" name="RS_modelModificationTime" value="2013-01-08T15:32:22.123Z"/></XMLAttributes><modelPath>/content/folder[#name='Samples_LG_DQ']/folder[#name='Models']/package[#name='GO Sales (query)']/model[#name='model']</modelPath></report>
I am using iReport 5.6 and when I set conditional formatting for cells in a table preview in iReport works ok
When I save as xls document the table is shown the cells are colored and values are in the cells but they (values) are not displayed. If I set cell color to normal I can see the values. Any ideas how to fix it. Either in Excel or iReport (preferably)?
my xml
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="test_tabelegrafi" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
<property name="ireport.zoom" value="1.4641000000000006"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="92"/>
<style name="table" lineSpacing="Single">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF" lineSpacing="Single">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF" lineSpacing="Single">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF" lineSpacing="Single">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="barva_rdeca" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF" lineSpacing="Single" pattern="">
<conditionalStyle>
<conditionExpression><![CDATA[$F{count} > 100]]></conditionExpression>
<style mode="Opaque" backcolor="#FF0000" fill="Solid" lineSpacing="Single"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[$F{count} <= 100]]></conditionExpression>
<style mode="Opaque" backcolor="#00CC33" fill="Solid" lineSpacing="Single"/>
</conditionalStyle>
</style>
<subDataset name="New Dataset 2">
<queryString>
<![CDATA[select
o_teacher,
o_class,
o_location,
count(*)
from outputs_txt
where o_date between '2014-05-30' and '2014-06-30' and o_class != '' and o_location is not null
group by o_teacher, o_class,o_location
order by o_class,o_teacher
limit 10]]>
</queryString>
<field name="o_teacher" class="java.lang.String"/>
<field name="o_class" class="java.lang.String"/>
<field name="o_location" class="java.lang.String"/>
<field name="count" class="java.lang.Long"/>
</subDataset>
<subDataset name="Graf">
<queryString>
<![CDATA[select
o_teacher,
o_class,
o_location,
count(*)
from outputs_txt
where o_date between '2014-05-30' and '2014-06-30' and o_class != '' and o_location is not null
and o_location IN ('tel1','tel2', 'tel3')
group by o_teacher, o_class,o_location
order by o_class,o_teacher
limit 10]]>
</queryString>
<field name="o_teacher" class="java.lang.String"/>
<field name="o_class" class="java.lang.String"/>
<field name="o_location" class="java.lang.String"/>
<field name="count" class="java.lang.Long"/>
</subDataset>
<queryString>
<![CDATA[select
o_teacher,
o_class,
o_location,
count(*)
from outputs_txt
where o_date between '2014-05-30' and '2014-06-30' and o_class != '' and o_location is not null
group by o_teacher, o_class,o_location
order by o_class,o_teacher
limit 10]]>
</queryString>
<field name="o_teacher" class="java.lang.String"/>
<field name="o_class" class="java.lang.String"/>
<field name="o_location" class="java.lang.String"/>
<field name="count" class="java.lang.Long"/>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="79" splitType="Stretch">
<staticText>
<reportElement x="154" y="0" width="234" height="38"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font size="14"/>
</textElement>
<text><![CDATA[TESTNI REPORT TABEL IN GRAFOV]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band height="287" splitType="Stretch">
<componentElement>
<reportElement key="table" style="barva_rdeca" stretchType="RelativeToBandHeight" x="0" y="0" width="555" height="118"/>
<jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">
<datasetRun subDataset="New Dataset 2">
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
</datasetRun>
<jr:column width="90">
<jr:columnHeader style="table_CH" height="30" rowSpan="1">
<staticText>
<reportElement x="0" y="0" width="90" height="30"/>
<textElement lineSpacing="Single"/>
<text><![CDATA[o_teacher]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="table_TD" height="20" rowSpan="1">
<textField>
<reportElement x="0" y="0" width="90" height="20"/>
<textElement lineSpacing="Single"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{o_teacher}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="90">
<jr:columnHeader style="table_CH" height="30" rowSpan="1">
<staticText>
<reportElement x="0" y="0" width="90" height="30"/>
<textElement lineSpacing="Single"/>
<text><![CDATA[o_class]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="table_TD" height="20" rowSpan="1">
<textField>
<reportElement x="0" y="0" width="90" height="20"/>
<textElement textAlignment="Center" lineSpacing="Single"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{o_class}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="90">
<jr:columnHeader style="table_CH" height="30" rowSpan="1">
<staticText>
<reportElement x="0" y="0" width="90" height="30"/>
<textElement lineSpacing="Single"/>
<text><![CDATA[o_location]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="table_TD" height="20" rowSpan="1">
<textField>
<reportElement x="0" y="0" width="90" height="20"/>
<textElement textAlignment="Center" lineSpacing="Single"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{o_location}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="90">
<jr:columnHeader style="table_CH" height="30" rowSpan="1">
<staticText>
<reportElement x="0" y="0" width="90" height="30"/>
<textElement lineSpacing="Single"/>
<text><![CDATA[count]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="table_TD" height="20" rowSpan="1">
<textField>
<reportElement style="barva_rdeca" x="0" y="0" width="90" height="20"/>
<textElement textAlignment="Center" lineSpacing="Single" markup="none"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{count}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:table>
</componentElement>
<bar3DChart>
<chart>
<reportElement positionType="Float" x="0" y="141" width="555" height="146"/>
<chartTitle/>
<chartSubtitle/>
<chartLegend/>
</chart>
<categoryDataset>
<dataset>
<datasetRun subDataset="Graf">
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
</datasetRun>
</dataset>
<categorySeries>
<seriesExpression><![CDATA[$F{o_location}]]></seriesExpression>
<categoryExpression><![CDATA[$F{o_teacher}]]></categoryExpression>
<valueExpression><![CDATA[$F{count}]]></valueExpression>
</categorySeries>
</categoryDataset>
<bar3DPlot>
<plot/>
<itemLabel/>
<categoryAxisFormat>
<axisFormat/>
</categoryAxisFormat>
<valueAxisFormat>
<axisFormat/>
</valueAxisFormat>
</bar3DPlot>
</bar3DChart>
</band>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band splitType="Stretch"/>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band splitType="Stretch"/>
</pageFooter>
<summary>
<band height="42" splitType="Stretch"/>
</summary>
</jasperReport>
The only solution I could find was that after export I selected the cells in Excel and changed type to Numeric or smth other then custom.
In application one FXML is loaded into tha AnchorPane of the other FXML. The problem is that the AnchorPane Constraints (exactly Bottom one) of ListView don't want to work during resizing.
The code of the file which is loaded:
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.net.*?>
<?import java.util.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.paint.*?>
<AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="-1.0" prefWidth="-1.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2">
<children>
<HBox cache="true" cacheHint="SPEED" fillHeight="true" minHeight="-1.0" prefHeight="-1.0" prefWidth="1280.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
<TabPane id="navPane" cache="true" cacheHint="SPEED" maxWidth="-1.0" minHeight="-1.0" minWidth="-1.0" prefHeight="-1.0" prefWidth="420.0" rotateGraphic="false" side="LEFT" tabClosingPolicy="UNAVAILABLE" tabMaxHeight="1.7976931348623157E308" tabMinHeight="30.0" HBox.hgrow="NEVER">
<tabs>
<Tab closable="true" text="Untitled Tab 1">
<content>
<AnchorPane id="AnchorPane" fx:id="homePane" cache="true" cacheHint="SPEED" maxHeight="-1.0" maxWidth="-1.0" minHeight="-1.0" minWidth="-1.0" prefHeight="-1.0" prefWidth="-1.0" style="-fx-background-color: red;">
<children>
<StackPane id="navPaneHeaderPane" cache="true" cacheHint="SPEED" prefHeight="35.0" prefWidth="200.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
<AnchorPane id="navPaneHeaderPane" cache="true" cacheHint="SPEED" prefHeight="200.0" prefWidth="200.0" style="" />
<Label id="navPaneHeaderString" cache="true" cacheHint="SPEED" text="Label" StackPane.alignment="CENTER" />
</children>
</StackPane>
<TextField cache="true" cacheHint="SPEED" prefHeight="30.0" prefWidth="294.0" AnchorPane.leftAnchor="28.0" AnchorPane.rightAnchor="28.0" AnchorPane.topAnchor="55.0" />
<Separator cache="true" cacheHint="SPEED" prefWidth="200.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="100.0" />
<ListView fx:id="listView" cache="true" cacheHint="SPEED" minHeight="-1.0" minWidth="-1.0" pickOnBounds="true" prefHeight="-1.0" prefWidth="-1.0" AnchorPane.bottomAnchor="15.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="120.0" />
</children>
</AnchorPane>
</content>
</Tab>
<Tab text="Untitled Tab 2">
<content>
<AnchorPane id="Content" cache="true" cacheHint="SPEED" minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
</content>
</Tab>
</tabs>
</TabPane>
<AnchorPane cache="true" cacheHint="SPEED" prefHeight="200.0" prefWidth="200.0" HBox.hgrow="ALWAYS">
<children>
<TableView cache="true" cacheHint="SPEED" prefHeight="700.0" prefWidth="860.0" AnchorPane.bottomAnchor="14.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="0.0">
<columns>
<TableColumn prefWidth="75.0" text="Column X" />
<TableColumn prefWidth="75.0" text="Column X" />
</columns>
</TableView>
</children>
</AnchorPane>
</children>
<stylesheets>
<URL value="#../../../../skins/default.css" />
</stylesheets>
</HBox>
</children>
</AnchorPane>
The code of the file where the above FXML is loaded:
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.net.*?>
<?import java.util.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.paint.*?>
<?scenebuilder-preview-i18n-resource ../lang/ru_RU.properties?>
<AnchorPane id="AnchorPane" fx:id="mainStage" cache="true" cacheHint="SPEED" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1280.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2" fx:controller="UI.PrimaryStageController">
<children>
<StackPane fx:id="toolbarStack" alignment="CENTER_LEFT" cache="true" cacheHint="SPEED" prefHeight="100.0" prefWidth="1280.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="100.0" AnchorPane.topAnchor="0.0">
<children>
<FlowPane fx:id="toolbarPane" cache="true" cacheHint="SPEED" maxHeight="-Infinity" minHeight="-Infinity" prefHeight="100.0" prefWidth="1280.0" style="">
<children>
<Button id="fileButton" fx:id="selectorButton" cache="true" cacheHint="SPEED" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" onAction="#openSelector" prefHeight="100.0" prefWidth="100.0" text="%selectorButton" />
<Button fx:id="fileButton" cache="true" cacheHint="SPEED" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" onAction="#openFileMenu" prefHeight="100.0" prefWidth="100.0" text="%fileButton">
<stylesheets>
<URL value="#../../skins/default.css" />
</stylesheets>
</Button>
<Button fx:id="toolsButton" cache="true" cacheHint="SPEED" mnemonicParsing="false" onAction="#openToolsMenu" prefHeight="100.0" prefWidth="100.0" text="Button" />
<Button fx:id="helpButton" cache="true" cacheHint="SPEED" mnemonicParsing="false" onAction="#openHelpMenu" prefHeight="100.0" prefWidth="100.0" text="Button" />
</children>
</FlowPane>
</children>
</StackPane>
<AnchorPane fx:id="contentPane" prefHeight="-1.0" prefWidth="-1.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="100.0" />
<Button cache="true" cacheHint="SPEED" mnemonicParsing="false" onAction="#closeApp" prefHeight="100.0" prefWidth="100.0" text="%exitButton" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
</children>
<stylesheets>
<URL value="#../../skins/default.css" />
</stylesheets>
</AnchorPane>
The first FXML is loaded into the AnchorPane with fx:id = "contentPane". For reasons I don't know ListView fx:id = "listView" doesn't resize during window resizing. Any ideas?
P.S. I use JavaFX 8
I've used an Excel file as datasource for building report with iReport. The xls file contains dates yyyy-MM-dd format.
I've set the Date field class to java.sql.Date and I click on preview in iReport. There is an error: Unable to get value for field 'Date' of class 'java.sql.Date'.
I have tried with java.util.Date too. Do you have any ideas?
It is quite simple.
I've xls file (birhdays.xls) like this:
The datasource definition (in iReport) is:
As you can see from the image above I've set yyyy-MM-dd format for date field in DS definition.
The date field definition in jrxml file:
<field name="Birthday" class="java.util.Date"/>
The full jrxml file:
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="excel_ds" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b0f82d57-325b-4c30-b635-f464851e0a47">
<queryString>
<![CDATA[]]>
</queryString>
<field name="Name" class="java.lang.String"/>
<field name="Birthday" class="java.util.Date"/>
<columnHeader>
<band height="20" splitType="Stretch">
<staticText>
<reportElement uuid="cd75f6d9-1781-4938-bf24-178b6663bcd1" x="0" y="0" width="147" height="20"/>
<box leftPadding="10">
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true" isItalic="true"/>
</textElement>
<text><![CDATA[Name]]></text>
</staticText>
<staticText>
<reportElement uuid="5d4c21f1-9afd-40c7-ade0-6fcc0b3d8373" x="147" y="0" width="100" height="20"/>
<box leftPadding="10">
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true" isItalic="true"/>
</textElement>
<text><![CDATA[Birthday]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="20" splitType="Stretch">
<textField>
<reportElement uuid="82f5a338-ef5d-4838-8cd0-c2544af3a73d" x="0" y="0" width="147" height="20"/>
<box leftPadding="10">
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement/>
<textFieldExpression><![CDATA[$F{Name}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="e6eb6f83-b8f3-42fd-b116-02db2322b6a5" x="147" y="0" width="100" height="20"/>
<box leftPadding="10">
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement/>
<textFieldExpression><![CDATA[$F{Birthday}]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>
And the result will be (via preview in iReport):
Note:
I've used iReport 5.1.0
I need help to change my progressBar's style at runtime (Windows Phone).
Any example?
Is that possbile?
Thanks!
Style on XAML:
<phone:PhoneApplicationPage.Resources>
<ControlTemplate x:Key="PhoneProgressBarSliderThumb" TargetType="Thumb">
<Rectangle Fill="{TemplateBinding Foreground}" Height="24" IsHitTestVisible="False" Width="24"/>
</ControlTemplate>
<Style x:Key="PhoneProgressBarSliderStyle" TargetType="Slider">
<Setter Property="Maximum" Value="3000"/>
<Setter Property="Minimum" Value="0"/>
<Setter Property="Value" Value="0"/>
<Setter Property="Opacity" Value="0"/>
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Slider">
<Grid IsHitTestVisible="False">
<Grid x:Name="HorizontalTemplate">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<RepeatButton x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" Grid.Column="0" Height="0" Template="{x:Null}"/>
<Thumb x:Name="HorizontalThumb" Grid.Column="1" Foreground="{TemplateBinding Foreground}" Height="24" IsTabStop="False" Template="{StaticResource PhoneProgressBarSliderThumb}"/>
<RepeatButton x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Grid.Column="2" Height="0" Template="{x:Null}"/>
</Grid>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ProgressBarStyle1" TargetType="ProgressBar">
<Setter Property="Height" Value="30"/>
<!--<Setter Property="Foreground" Value="{StaticResource PhoneAccentBrush}"/>
<Setter Property="Background" Value="{StaticResource PhoneAccentBrush}"/>-->
<Setter Property="Foreground" Value="YellowGreen"/>
<Setter Property="Background" Value="Blue"/>
<Setter Property="Maximum" Value="100"/>
<Setter Property="IsHitTestVisible" Value="False"/>
<Setter Property="Padding" Value="{StaticResource PhoneHorizontalMargin}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ProgressBar">
<Grid>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Determinate"/>
<VisualState x:Name="Indeterminate">
<Storyboard Duration="00:00:04.4" RepeatBehavior="Forever">
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="IndeterminateRoot">
<DiscreteObjectKeyFrame KeyTime="0">
<DiscreteObjectKeyFrame.Value>
<Visibility>Visible</Visibility>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DeterminateRoot">
<DiscreteObjectKeyFrame KeyTime="0">
<DiscreteObjectKeyFrame.Value>
<Visibility>Collapsed</Visibility>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Value" Storyboard.TargetName="Slider1">
<EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="1000">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseOut" Exponent="1"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<LinearDoubleKeyFrame KeyTime="00:00:02.0" Value="2000"/>
<EasingDoubleKeyFrame KeyTime="00:00:02.5" Value="3000">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseIn" Exponent="1"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00.2" Storyboard.TargetProperty="Value" Storyboard.TargetName="Slider2">
<EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="1000">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseOut" Exponent="1"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<LinearDoubleKeyFrame KeyTime="00:00:02.0" Value="2000"/>
<EasingDoubleKeyFrame KeyTime="00:00:02.5" Value="3000">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseIn" Exponent="1"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00.4" Storyboard.TargetProperty="Value" Storyboard.TargetName="Slider3">
<EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="1000">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseOut" Exponent="1"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<LinearDoubleKeyFrame KeyTime="00:00:02.0" Value="2000"/>
<EasingDoubleKeyFrame KeyTime="00:00:02.5" Value="3000">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseIn" Exponent="1"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00.6" Storyboard.TargetProperty="Value" Storyboard.TargetName="Slider4">
<EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="1000">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseOut" Exponent="1"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<LinearDoubleKeyFrame KeyTime="00:00:02.0" Value="2000"/>
<EasingDoubleKeyFrame KeyTime="00:00:02.5" Value="3000">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseIn" Exponent="1"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00.8" Storyboard.TargetProperty="Value" Storyboard.TargetName="Slider5">
<EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="1000">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseOut" Exponent="1"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<LinearDoubleKeyFrame KeyTime="00:00:02.0" Value="2000"/>
<EasingDoubleKeyFrame KeyTime="00:00:02.5" Value="3000">
<EasingDoubleKeyFrame.EasingFunction>
<ExponentialEase EasingMode="EaseIn" Exponent="1"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Slider1">
<DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
<DiscreteDoubleKeyFrame KeyTime="00:00:02.5" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00.2" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Slider2">
<DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
<DiscreteDoubleKeyFrame KeyTime="00:00:02.5" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00.4" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Slider3">
<DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
<DiscreteDoubleKeyFrame KeyTime="00:00:02.5" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00.6" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Slider4">
<DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
<DiscreteDoubleKeyFrame KeyTime="00:00:02.5" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00.8" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Slider5">
<DiscreteDoubleKeyFrame KeyTime="0" Value="1"/>
<DiscreteDoubleKeyFrame KeyTime="00:00:02.5" Value="0"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Grid x:Name="DeterminateRoot" Margin="{TemplateBinding Padding}" Visibility="Visible">
<Rectangle x:Name="ProgressBarTrack" Fill="{TemplateBinding Background}" Height="24" Opacity="0.1"/>
<Rectangle x:Name="ProgressBarIndicator" Fill="{TemplateBinding Foreground}" HorizontalAlignment="Left" Height="24"/>
</Grid>
<Border x:Name="IndeterminateRoot" Margin="{TemplateBinding Padding}" Visibility="Collapsed">
<Grid>
<Slider x:Name="Slider1" Foreground="{TemplateBinding Foreground}" Style="{StaticResource PhoneProgressBarSliderStyle}"/>
<Slider x:Name="Slider2" Foreground="{TemplateBinding Foreground}" Style="{StaticResource PhoneProgressBarSliderStyle}"/>
<Slider x:Name="Slider3" Foreground="{TemplateBinding Foreground}" Style="{StaticResource PhoneProgressBarSliderStyle}"/>
<Slider x:Name="Slider4" Foreground="{TemplateBinding Foreground}" Style="{StaticResource PhoneProgressBarSliderStyle}"/>
<Slider x:Name="Slider5" Foreground="{TemplateBinding Foreground}" Style="{StaticResource PhoneProgressBarSliderStyle}"/>
</Grid>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</phone:PhoneApplicationPage.Resources>
My .cs:
progBar.Style = (Style)this.Resources["ProgressBarStyle1"];
STYLE WAS FOUND ON INTERNET <<<<<