Hi There,
Just trying to help someone out here and I've looked through all the logical resources including the SCN wiki, resource.syclo.com, sybase.com (SMP 2.3 SP3 and 3.0) and can't find an example or instructions on how this really works for iOS (all examples show the External Data Property window for Windows only).
So some points about what I suspect you need to do (forgive my ignorance) -
You need an object for your attachments as a best practice with an external data property.
Key question at this point are:
- It seems you are forced to use the file system as an interim step.
- If using a BAPI from SAP, exporting RFC parameters of xstring or string are not supported hence you need to rely on tables which don't support variable length fields, hence you need to first convert files to this table of fixed length raw data with a length property to represent the file(s); which within your JAVA classes you need to disect and convert back to put them on the Agentry file system.
- The external data properties for iOS include Application Support, Documents and iOS Photo Library (guessing the last one is read-only and no idea the difference between the next two).
- Relative Path is a bit cryptic as there is no help about what this looks like on iOS for any of the above
- I can't see the link between Client File and the file object created above, but one guide refered to an SDML script to link the two but was very cryptic in terms of how it was linked.
- Every user will download the same files to different directory/filename locations in order to synchronise since typically you should archive the file from SMP after synchronisation.
In short, anyone have an updated blog/guide around this or willing to write one? I'd also be happy with some short answers to my questions/thoughts above.
Thanks for reading,
Matt
ps. Here's some of the sybase.com older doco all Windows focused: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.pubs.docset-SMP-SDK-3.0.0/doc/html/title.html