Following up on this, I am currently usiing the following configuration for metadata input
Code: Select all<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 2.0//EN"
"http://www.openkm.com/dtd/property-groups-2.0.dtd">
<property-groups>
<property-group label="Document Data" name="okg:datab">
<suggestbox label="Associate 1" name="okp:datab.associate1" height="50px" width="200px" table="contact" dialogTitle="Associate"
filterQuery="select $con_id, $con_name from DatabaseMetadataValue dmv where dmv.table='contact' and lower(dmv.$con_name) like '%{0}%' order by dmv.$con_name"
valueQuery="select $con_id, CONCAT($con_name,',\r ',$con_mail,', ',$con_phone,', ',$con_address,', ',$con_mobile) from DatabaseMetadataValue dmv where dmv.table='contact' and dmv.$con_id='{0}'" />
<suggestbox label="Associate 2" name="okp:datab.associate2" width="200px" table="contact" dialogTitle="Associate"
filterQuery="select $con_id, $con_name from DatabaseMetadataValue dmv where dmv.table='contact' and lower(dmv.$con_name) like '%{0}%' order by dmv.$con_name"
valueQuery="select $con_id, CONCAT($con_name,', ',$con_mail,', ',$con_phone,', ',$con_address,', ',$con_mobile) from DatabaseMetadataValue dmv where dmv.table='contact' and dmv.$con_id='{0}'" />
<suggestbox label="Associate 3" name="okp:datab.associate3" width="200px" table="contact" dialogTitle="Associate"
filterQuery="select $con_id, $con_name from DatabaseMetadataValue dmv where dmv.table='contact' and lower(dmv.$con_name) like '%{0}%' order by dmv.$con_name"
valueQuery="select $con_id, CONCAT($con_name,', ',$con_mail,', ',$con_phone,', ',$con_address,', ',$con_mobile) from DatabaseMetadataValue dmv where dmv.table='contact' and dmv.$con_id='{0}'" />
<select label="Record Type" width="200px" type="multiple" name="okp:datab.inout">
<option label="Filing" value="Filing" />
<option label="Incoming" value="incoming" />
<option label="Outgoing" value="outgoing" />
</select>
<suggestbox label="Document type" name="okp:datab.type" width="200px" table="type" dialogTitle="Document type"
filterQuery="select $typ_id, $typ_name from DatabaseMetadataValue dmv where dmv.table='type' and lower(dmv.$typ_name) like '%{0}%' order by dmv.$typ_name"
valueQuery="select $typ_id, $typ_name from DatabaseMetadataValue dmv where dmv.table='type' and dmv.$typ_id='{0}'" />
<input name="okp:datab.date" label="Document Date" type="date"/>
</property-group>
</property-groups>
Considering this:
Code: Select all<suggestbox label="Associate 1" name="okp:datab.associate1" height="50px" width="200px" table="contact" dialogTitle="Associate"
filterQuery="select $con_id, $con_name from DatabaseMetadataValue dmv where dmv.table='contact' and lower(dmv.$con_name) like '%{0}%' order by dmv.$con_name"
valueQuery="select $con_id, CONCAT($con_name,',\r ',$con_mail,', ',$con_phone,', ',$con_address,', ',$con_mobile) from DatabaseMetadataValue dmv where dmv.table='contact' and dmv.$con_id='{0}'" />
Is there a way I can get the output from the above suggestbox into a textarea?
Basically I like to get the name, address, and other information in multiline rather than in a single line in suggestbox.
I tried with '\r' and '\n' but didn't work.
Thanks with regards,
OKMUser