[XML Records] RecordToXml issue 

[XML Records] RecordToXml issue 

  
Forge Component
(24)
Published on 15 Jun by Ricardo Silva
24 votes
Published on 15 Jun by Ricardo Silva
Hi,

I encountered an issue while using the RecordToXml Method. I noticed that It doesnt convert the second column that is a recordlist. It used to work fine before I updated to version 9 but now its not. Its just getting the name of the recordlis(its .net name) and placing it inside the node.

Has anyone actually encountered this scenario?

Thanks,
Ron

Are you sure you are using a Record List instead of the new Platform 9 List?
Hi Killian,

I'm using the recordlist not the platform 9 list.

I actually found the issue here. When the Recordlist inside the Record is only 1, it doesnt convert the records. I did a work around to make it work, I used the RecordtoXML if the recordlist has only one row.


Really? How odd. Well, good you found a workaround.
Hi,

Can anyone tell me why the XmlToRecordList is not supporting RecordList Type (i's really Record List i'm not talking about the v9 List Type) inside a Record?

If i change the RecordList to Record it works just fine.

best regards
Hugo
It doesn't support it because support for it isn't coded yet :). It would mean recursion and all that kind of nasty stuff.
Hi Kilian,

This was already supported by the XmlRecords extension, i used it with the OS v8.0 and it worked just fine having a record list as an attribute of a record. 

So, how can it be that it isn't coded yet, i suppose it's not coded for the new type List of the v9, right?

thanks
Yes, if it worked in 8 it should work with the same record(list) with 9.
hmmm, sorry for only noticing this thread now.

This might actually be a bug. @Hugo, do you have a simple module where you can reproduce the issue? I wouldn't mind taking a look at it and seeing what might be the issue.
Hi Ricardo,

I've continued the search and solved the issue, i was using a version of the extension that didn't support the changes on the v9 data types. However there is a version of the xml records extension that was modified with that intent, version 1.5.6.

thanks for the reply.