I need to debug an extension project.
So I created a project and add reference, like 3rd method in post below.
https://www.outsystems.com/forums/discussion/16230/how-to-debug-a-net-extension/
My action has an input, type is List record.
How can I create dummy input List in test project?
You could create a new instance of the list Class, and you have an emtpy list, If you need any data in the list you could use the Append method to add data to the list. See below the code I make to append a record to the list based on the Forge component you told me,
RCCSVLoadConfigRecord dummyConfig = new RCCSVLoadConfigRecord()
{
ssSTCSVLoadConfig = new STCSVLoadConfigStructure()
ssAttrFilter = "",
ssFieldDelimiter = ",",
}
};
RLCSVLoadConfigRecordList recordList = new RLCSVLoadConfigRecordList();
recordList .Append(dummyConfig);
Hi @Pham Van Thinh ,
Can you share your extension in the post? So I can make an example based on your project
Hi @Damian Fonville !
This is my source
I develop base on https://www.outsystems.com/forge/component-overview/636/csvutil
If you call the Record constructor with null, like I wrote below, there's no need to initialize the contained Structure.
Hi Pham,
Create both a Record List and a Record of the right type. The Record List will be called RL<name in IS>RecordList (where <name in IS> is the name you gave the structure in Integration Studio), while the Record will be called RC<name in IS>Record. Make sure to call the Record construtor with (null), so the Record gets initialized. Then fill the Record with data, and use the Append method of the Record List to add the Record.