Oct
12
2010

Minor Update to XPO_EasyFields (beta)

User Rating: / 0
PoorBest 

Hi Guys,

As per a previous post, I mentioned about not being able to use XPO_EasyFields with Attributes as there is a compiler restriction that you must use Constant expressions. The FieldsClass however is not Constant, it is a static class that is created and new OperandProperty classes returned.

So I trialled out the idea of having XPO generate Constants in the FieldsClass and it sort of works.

Basically XPO_EasyFields (when you enable the option in the Options window) will generate a <MyProperty>FieldName constant of String which returns the <MyProperty> name.

PLEASE NOTE:

  1. You have to reference the FieldsClass NOT the Fields property
  2. It appears when using it in Attributes you have to specifically specify the full namespace, therefore 
    <ProjectNamespace>.<ObjectNamespace(if any)>.<Object>.FieldsClass.<MyProperty>FieldName

 

So here is a link to the build, let us know what you think, is this something useable or not? I have used it a bit in my project and I am still 50/50 on it.

Download the new version here

Add comment

Although I believe your free to say what you want, please don't abuse either myself or other peoples, be constructive.


Security code
Refresh

Latest Comments

My Twitter

Follow me on twitter