c# - SharePoint List- OData - Is it possible to acces the Choices in a Choice column? -


i'm in process of writing dynamic odata client connects sharepoint 2010 server.

i able access list , it's related columns. if it's choice column able access possible choices have been defined. possible?

i've been trying find information want feeding /listdata.svc/$metadata iedmmodel. can't figure out might though.

here's i've started with, can loop through entities in model, , through respective properties. can see choice column's show type entity.

example: have column named aquisition_type, "donation","purchase","tax sale" possible choices.

assuming isn't dead end, pointers appreciated.

foreach ( iedmentitytype type in model.schemaelementsacrossmodels().oftype<iedmentitytype>())         {             str_test += "\n" + type.fullname();              foreach (iedmproperty property in type.properties())             {                 //my choice columns of type entity                 if (property.type.isentity())                 {                     str_test += "\t" + property.name + " - " + property.type.typekind().tostring() + " - " + property.propertykind.tostring() + "\n";                  }                 //my primative column types here                 else                 {                     str_test += "\t" + property.name + " - " + property.type.typekind().tostring() + " - " + property.propertykind.tostring() + "\n";                 }             }          } 

partial solution... can find information want within lists.asmx soap service.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -