Managing Resource Extended Attributes in Ruby

Aspose.Tasks - Extended Resource Attributes

To set Extended Resource Attributes using Aspose.Tasks Java for Ruby, simply invoke ExtendedResourceAttributes module. Here you can see example code.

Ruby Code

1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2res = project.getResources().toList().get(0)
3attribute = Rjb::import('com.aspose.tasks.ExtendedAttribute').new
4attribute.setFieldId("11")
5attribute.setValue("MyValueEA")
6attribute.setValueGuid("MyValueGuidEA")
7res.getExtendedAttributes().add(attribute)
8puts "Set extended resource attributes."

Download Running Code

Download Extended Resource Attributes (Aspose.Tasks) from any of the below mentioned social coding sites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.