Hi OpenKM team,
I'm writing a Perl module for a direct access of the OpenKM service and I'm facing a strange behavior during the data transmission of a property group. Please find included the structure I've used during my test:
If I'm filling in the text property group everything is working fine:
Thanks
pldemon
I'm writing a Perl module for a direct access of the OpenKM service and I'm facing a strange behavior during the data transmission of a property group. Please find included the structure I've used during my test:
Code: Select all
<property-groups>
<property-group label="Testdata" name="okg:testdata">
<input label="test1" type="text" name="okp:testdata.test1"/>
<select label="test2" type="simple" name="okp:testdata.test2">
<option label="Foo" value="foo"/>
<option label="Bar" value="bar"/>
</select>
</property-group>
</property-groups>
If I'm filling in the text property group everything is working fine:
Code: Select all
The log file is showing that the value was inserted as expected:$soap->setPropertiesSimple(
name('{}token' => $token),
name('{}nodePath' => "/okm:root/test.txt"),
name('{}grpName' => "okg:testdata"),
name('{}properties' => \SOAP::Data->value(
name('key' => "okp:testdata.test1"),
name('value' => "Text as expected")
)
)
);
Code: Select all
If I do the same with the "simple" object, I don't face any info. The existing value seems to be overwritten but the new one is not written into the database:2013-06-10 16:18:59,189 [http-bio-0.0.0.0-8080-exec-3] INFO com.openkm.spring.LoggerListener - Authentication OK: okmAdmin
2013-06-10 16:18:59,208 [http-bio-0.0.0.0-8080-exec-2] INFO com.openkm.module.db.stuff.SetPropertiesFieldBridge - Added field 'okp:testdata.test1' with value 'Text as expected'
Code: Select all
The log info:
$soap->setPropertiesSimple(
name('{}token' => $token),
name('{}nodePath' => "/okm:root/test.txt"),
name('{}grpName' => "okg:testdata"),
name('{}properties' => \SOAP::Data->value(
name('key' => "okp:testdata.test2"),
name('value' => "foo")
)
)
);
Code: Select all
Do I've to use a special value for a simple object? I've tried several combinations of the value ("foo", "foo=true", "foo=activated", ...) but it didn't help. I'm still not able to write the property group into into the database 2013-06-10 16:21:08,123 [http-bio-0.0.0.0-8080-exec-6] INFO com.openkm.spring.LoggerListener - Authentication OK: okmAdmin
Thanks
pldemon