Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Access additional information

As you might realize noticed you cannot realize implement much usecases with the defined interfaces above. To let you access some further information from the flexobject you can inject a service of the type IAttachedFlexObjectInfoService.

With this service you are able to access fields of the flexobject by a contentType you provide. As an example you can retrieve all links by getting the fields of contentType “www”. Therefore call the method GetFirstFieldByContentType(”www”) within your module.

At least Finally you can also set data to the UI by using the method SetCustomFieldValue and pass the field to set (by its propertyName) and the new value. As a result you get a “Success” or some error code nested within the result class of the call.

You are also able to access client wide interfaces like the IUserService, IClientMailService or IClientAppointmentService by injecting it.

Conclusion

As you saw it is quite simple to integrate yourself into antony’s DI container and into the flexobjects' view. Suggestenions and enhancements are welcome. Let us now and write to martin@dieinfo(at)die-groupware.de.