Other OutSystems sites...
OutSystems Website
About Agility Blog
OutSystems Network
Login
Signup
Forums
Academy
Forge
Ideas
Forums
›
Technology & Integration
›
Can't append to a RecordList in an extension?
Can't append to a RecordList in an extension?
Justin James
Rank: #23
Posted on 2011-01-03
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Hello -
Weirdest problem... I have an extension where the output for the Actions are Recordlist, and the record definition is a structure defined in the Extension as well. So in general, my code works like this:
for each (item in a list of things...)
create an instance of the structure...
populate it with data...
call the Append method of the output record list...
repeat
The problem is with the call to Append(). It is not taking the structure, saying that it does not implement IRecord. This has happened with every Action I'm defining. It is Integration Studio 5.1.0.24, in case that matters.
I've done this with other extensions with no problems... seems like I found a bug?
J.Ja
Gonçalo Gaiolas
Rank: #26
Posted on 2011-01-03
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Hey Justin,
Any way you can post the actual code you're using, or the extension itself that reproduces the problem? It would really help to track down the behavior.
Best regards,
Goncalo
Justin James
Rank: #23
Posted on 2011-01-03
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
GFI_MAX.xif
Concalo -
Sure, there's nothing special about it at the moment, it's attached.
The fundamental problem is that the structure created implements ISimpleRecord; in older versions, ISimpleRecord counts as an IRecord, but in 5.1.0.24, ISimpleRecord is *not* considered an IRecord. I've compared it to an extension I made on the older platform that works fine.
Either that, or something went horribly wrong when I re-targeted the project to .NET 3.5?
J.Ja
Rank: #216
Posted on 2011-01-03
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
I
'm
having the same
problem
Gonçalo Gaiolas
Rank: #26
Posted on 2011-01-03
thumbs_up_ico
1
thumbs_down_ico
0
reply
post_link_ico
Justin,
Haven't been able to try experiment myself, but just as an example try initializing like this:
RCGFIMAXServerRecord serverRecord = new RCGFIMAXServerRecord(null);
Then after all your current initializations you can append like this:
serverRecord.ssSTGFIMAXServer = server;
ssServers.Append(serverRecord);
In my VS, this did not generate compilation errors and I think it might solve it.
Let me know if that helps,
Goncalo
Justin James
Rank: #23
Posted on 2011-01-03
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Goncalo -
That will do it, thanks! Looking back at my other extension which works fine, that was what I did there, but it just wasn't too clear from my code what I was doing differently...
J.Ja
Frank J
Rank: #154
Posted on 2011-01-04
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
He shoots - Score! :)
Quick Reply
Notify me by email when someone answers to my post
attachment
Choose File
No file chosen
Submit
Login to reply
Something on your mind?
Login to Start a Discussion
Top Forums Posters
Gonçalo Martins
Ricardo Silva
Charles Colaço
Richard Pearson
Davide Marquês
Statler & Waldorf
Justin James
David Chen
JD
Robert Chanphakeo
See leaderboard
Online Training
On-demand video lessons to help you learn at your own pace.
Learn More