Hi,
In a post elsewhere it is stated “Userdata values are sent to the server with the other data of changed item.”
I’m trying to access the item text on the server side without success.
<tree id="0">
<item text="Bourne.Jason" id="Actor-1000" im0="assets/person.gif" im1="assets/person.gif" im2="assets/person.gif">
<userdata name="emp">Bourne.Jason</userdata>
<item style="color: red;" text="Weapons need to be tested" id="Backlog-3307" im0="assets/spider.gif" im1="assets/spider.gif" im2="assets/spider.gif"/>
</item>
The dataprocessor is declared and initialised:
mnutree.loadXML("model/get_actor_props.php");
myDP = new dataProcessor("model/upd_tree_props.php");
myDP.init(mnutree);
myDP.setTransactionMode("GET", false);
On a drag on drop action in the Tree the server side code traps the request and processes the GET and writes the incoming data to file:
[code]Array
(
[0] => Actor
[1] => 1013
)
Array
(
[0] => Backlog
[1] => 3219
)
Array
(
[editing] => true
[tr_id] => 3219
[tr_pid] => 1013
[tr_order] => 1
[tr_text] => Weapons need to be tested
[!nativeeditor_status] => updated
[dhxr1472280814616] => 1
)[/code]
I’m not seeing ant UserData.
What needs to be done? Ideally I would like to just send the item text and avoid using the UserData tag.
Regards