Binding Sampledata WindowsPhone - binding

I have a simple class with a property List Photos. You know by default in many sample of code you find a sampledata. Each time, it presents a simple property as a string. This sampledata is used to populate the designer and you can see the render without to compile.
So I try to find a way to have a sampledata with a List filled.
I try to use the functionnality from Blend permitting to generate data but it doesn't work with List.
You can see below the code generate. It miss the property List.
And I don't find any documentation explaning clearly the binding in details.
<ViewModels:ItemViewModel xmlns:ViewModels="clr-namespace:RssReader.ViewModels"
Description="Aliquam aenean integer quisque mauris"
Link="Maecenas vivamus"
Title="Praesent curabitur aliquam nullam phasellus"/>
My assumption is I need to add something as
<ViewModels:ItemViewModel xmlns:ViewModels="clr-namespace:RssReader.ViewModels"
Description="Aliquam aenean integer quisque mauris"
Link="Maecenas vivamus"
Title="Praesent curabitur aliquam nullam phasellus"
<Photos x:Key="strings" Type="sys:List"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:String>Photos1</sys:String>
<sys:String>Photos2</sys:String> >
</Photos>
But it's not the correct syntax. Can you provide an help to solve it.
This topic is link to the subject Databinding List<Object> WindowsPhone
Best regards,
Alexandre

Read working with Design and Runtime Data for Windows Phone.

Related

neo4j cypher parse and load XML

I am trying to load the following Equipment.XML into neo4j database -
<NetworkEntity>
<Equipment>
<Name>IPTC.net/ABC12345</Name>
<Type>CHASSIS</Type>
<SubType>Nokia 7750</SubType>
</Equipment>
<Equipment>
<Name>IPTC.net/ABC12345/Shelf-1</Name>
<Type>SHELF</Type>
<SubType>Nokia 7750</SubType>
<Associations>
<Association>
<Target>
<EntityName>IPTC.net/ABC12345</EntityName>
<EntityType>Equipment</EntityType>
</Target>
<RelationshipType>RESIDES_ON</RelationshipType>
<Features>
<Feature>
<Name>Feat1</Name>
<Value>123</Value>
</Feature>
</Features>
</Association>
</Associations>
</Equipment>
</NetworkEntity>
I have written the following cypher procedure so far -
call apoc.load.xml("file:///opt/home/neo4j/NEO4JINSTANCE1/neo4j-enterprise-3.0.1/import/Equipment.xml")
yield value as ne UNWIND ne._children AS eqs
FOREACH( eq IN eqs |
FOREACH( child IN eq["_children"] |
CREATE (:SPAEquipment {name: child["_text"]})))
RETURN *;
But it is considering each property of the Equipment tag as a separate SPAEquipment. Hence Name, Type and SubType - each is getting created as a SPAEquipment instead of three properties of the same SPAEquipment. So instead of children I should use different tags. Also I am not able to create the association between the equipments quite correctly.
So, basically I need to create the different equipments in the database with the corresponding properties and also I need to create the relationships between them.
I'm not that familiar with load_xml but I think neo4j is doing exactly what you are asking.
You have the CREATE on the child of the Equipment.
You are saying:
For each get the children,
For each _child
CREATE SPEquipment ...
What I think you want is
For each <Equipment>
CREATE (s:SPAEquipment {id:<maybe with a simple ID here>})
For each _child
set s.propertyName=child["text"]
However, I am not sure how apoc.load.xml does that
The only way I have been able to get the children is as an array of pairs (_type,_text) and I can't seem to figure out how to do anything with that.
call apoc.load.xml("file:///Volumes/Data/neo4j-enterprise- 3.0.3/import/myXML.xml") yield value as ne UNWIND ne._children AS eqs
RETURN eqs, [attr IN eqs._children WHERE attr._type IN
['Name','Type','SubType'] | [attr._type, attr._text]] as pairs
╒══════════════════════════════╤══════════════════════════════╕
│eqs │pairs │
╞══════════════════════════════╪══════════════════════════════╡
│{_type: Equipment, id: 01, _ch│[[Name, IPTC.net/ABC12345], [T│
│ildren: [{_type: Name, _text: │ype, CHASSIS], [SubType, Nokia│
│IPTC.net/ABC12345}, {_type: Ty│ 7750]] │
│pe, _text: CHASSIS}, {_type: S│ │
│ubType, _text: Nokia 7750}]} │ │
├──────────────────────────────┼──────────────────────────────┤
[...]
Note: I created id attributes on my sample, you won't have those.
I couldn't solve this issue using apoc.load.xml. apoc.load.xml breaks the structure into tree and we need to write cypher on top of it. But it was a very complex query and I failed to write it properly.
So I wrote an XSL which would parse the Equipment.xml and build the cypher queries. This is just for our internal use purpose and it's working fine.
Thanks.

Is MetroCriteriaId an integer or a string?

The Google documentation for the GeoPerformance report is a little confusing. On the one hand it says that MetroCriteriaId is of Type Integer but in the Notes it says Name of the metro as a string.
Do anyone know which one is correct, or do I just suck it and see?
It doesn't seem to matter what it is, Int or String, as even in 80812-line report the field is empty. The report definition I used is below and I got data for everything except MetroCriteriaId. Dead field? No idea.
<reportDefinition xmlns="https://adwords.google.com/api/adwords/cm/v201406">
<selector>
<fields>AccountCurrencyCode</fields>
<fields>AccountDescriptiveName</fields>
<fields>AccountTimeZoneId</fields>
<fields>AdFormat</fields>
<fields>AdGroupId</fields>
<fields>AdGroupName</fields>
<fields>AdGroupStatus</fields>
<fields>AdNetworkType1</fields>
<fields>AdNetworkType2</fields>
<fields>AverageCpc</fields>
<fields>AverageCpm</fields>
<fields>AveragePosition</fields>
<fields>CampaignId</fields>
<fields>CampaignName</fields>
<fields>CampaignStatus</fields>
<fields>CityCriteriaId</fields>
<fields>Clicks</fields>
<fields>Conversions</fields>
<fields>Cost</fields>
<fields>CostPerConversion</fields>
<fields>CostPerConversionManyPerClick</fields>
<fields>CountryCriteriaId</fields>
<fields>Ctr</fields>
<fields>CustomerDescriptiveName</fields>
<fields>Date</fields>
<fields>DayOfWeek</fields>
<fields>Device</fields>
<fields>ExternalCustomerId</fields>
<fields>Impressions</fields>
<fields>IsTargetingLocation</fields>
<fields>LocationType</fields>
<fields>MetroCriteriaId</fields>
<fields>Month</fields>
<fields>MonthOfYear</fields>
<fields>MostSpecificCriteriaId</fields>
<fields>PrimaryCompanyName</fields>
<fields>Quarter</fields>
<fields>RegionCriteriaId</fields>
<fields>ValuePerConversion</fields>
<fields>ValuePerConversionManyPerClick</fields>
<fields>ViewThroughConversions</fields>
<fields>Week</fields>
<fields>Year</fields>
<dateRange>
<min>20140601</min>
<max>20140630</max>
</dateRange></selector>
<reportName>Custom Geo Performance Report</reportName>
<reportType>GEO_PERFORMANCE_REPORT</reportType>
<dateRangeType>CUSTOM_DATE</dateRangeType>
<downloadFormat>TSV</downloadFormat>
</reportDefinition>

Javadoc: using #link to link to a description of an interface

I am a technical writer who is editing the Javadoc comments written by our developers. One of the comments was like
/**
* Lorem ipsum dolor sit amet.
* {#link SomeInterface}
*/
When submitted to Jenkins, the build failed with an error like "Unresolved link/see tag" so I made the following change:
/**
* Lorem ipsum dolor sit amet.
* {#link com.example.foo.SomeInterface}
*/
I thought that would have fixed the problem (changing to a fully-qualified interface name), but it is still failing with the same error message.
In reading http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#link the first sentence says
Inserts an in-line link with visible text label that points to the documentation
for the specified package, class or member name of a referenced class.
which specifically says "referenced class" and does not include "interface". How can I #link to the description for a public interface?

The given key was not present in the dictionary. System.Collections.Generic.KeyNotFoundException

I am facing Key not found exception while using the filtering in the Syncfusion Essential Grid.Please review the code and give me solution for that problem.
[KeyNotFoundException: The given key was not present in the dictionary.]
System.Collections.Generic.Dictionary`2.get_Item(TKey key) +10715241
Syncfusion.Shared.Mvc.LocalizationBase.GetLocalizedString(String key) +63
Syncfusion.Mvc.Tools.DatePickerLocalizationString.get_closeText() +49
Syncfusion.Mvc.Tools.jQueryDatePickerControl.OnInitScriptProcessed(String script) +1772
Syncfusion.Mvc.Tools.jQueryUIControl.RegisterControlInitScript() +142
Syncfusion.Mvc.Tools.jQueryUIControl.Render() +62
<div class="sample-panel-margin" style="width: 100%;">
#(Html.Syncfusion().Grid<EndDateResult>("Grid1")
.ActionMode(ActionMode.JSON)
.Datasource((IEnumerable<EndDateResult>)ViewData["data"])
The cause of this issue is due to the lacking of resource file for Date picker control. We have provided the common resource file for English; you can customize it based on the culture and use it in your sample.
Resource file: http://www.syncfusion.com/downloads/support/directtrac/115429/CommonResource.en-GB.resx-2059309917.zip
Please let us know if you need any further assistance.
Regards,
Abdul Matin M

Abstract type not valid in Exchange web services FindItem request

I'm trying to use EWS to search a Task folder on Exchange 2010. I'm trying to limit the due dates of the Tasks returned, but unfortunately there's no equivalent to the CalendarView for the Task folder, so I have to use a FindItem search.
I'm using Java, Axis2 and I prepare the query like this:
// fiType is, obviously, a FindItemType
RestrictionType rType = fiType.addNewRestriction();
IsGreaterThanOrEqualToType igtoretType = IsGreaterThanOrEqualToType.Factory.newInstance();
igtoretType.addNewFieldURI().setFieldURI(UnindexedFieldURIType.TASK_DUE_DATE);
igtoretType.addNewFieldURIOrConstant().addNewConstant().setValue(dateFormat.format(begCal.getTime()));
IsLessThanOrEqualToType iltoretType = IsLessThanOrEqualToType.Factory.newInstance();
iltoretType.addNewFieldURI().setFieldURI(UnindexedFieldURIType.TASK_DUE_DATE);
iltoretType.addNewFieldURIOrConstant().addNewConstant().setValue(dateFormat.format(endCal.getTime()));
SearchExpressionType[] seArr = new SearchExpressionType[2];
seArr[0] = igtoretType;
seArr[1] = iltoretType;
AndType aType = rType.addNewAnd();
aType.setSearchExpressionArray(seArr);
Unfortunately, I get this error:
org.apache.axis2.AxisFault: La demande a échoué lors de la validation du schéma : L'élément 'http://schemas.microsoft.com/exchange/services/2006/types:SearchExpression' est abstrait ou son type l'est.
Roughly translated from French, it means that the query failed because the type SearchExpression is abstract, or it's type is.
After searching, I found this article explaining how to modify the types.xsd file to take care of this. However, even after applying the modifications, I still get the same error.
I'm at a loss as to how to go about solving this. Any help would be appreciated.
Another option is EWS Java API by Microsoft...

Resources