views:

89

answers:

1

I've been given a big chunk of code which eventually calls upon the SetDocsMetaInfo method from Frontpage Server Extension RPC. This is easy enough for most document uploading and property updating, except when dealing with multichoice fields. I've been scouring through MSDN and I can't find anything on how to fill in multiple values for such a field.

The general syntax for properties is something like this: [SR|default], with the type (string in this case) followed by a pipe and then the value to be written. Does anyone know the syntax for multichoice fields?

references: MSDN: SetDocsMetaInfo

+2  A: 

Did you try separating values with ;# like this: ;#Choice 1;#Choice 2;#

In webservices (Lists.UpdateListItems) that does the trick, perhaps that works in RPC too.

Erik E
with the ;# before and after the list as a whole?
notnot
Yes, and as separators between the elements.
Erik E
Doesn't work, I just keep getting the same "The underlying connection was closed: The connection was closed unexpectedly" error. I don't think I can use semicolons, since those are the delimiters between different metadata elements.
notnot
I don't have a FPPRC test project so I can't easily try it for you, but what I'd do is look with Fiddler (http://www.fiddler2.com) to see what data is going accross. If you're in C/C++/C#, make sure the \ itself is escaped in your code (\\).
Erik E