Mattersphere Developers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Admin
Admin
Posts : 122
Join date : 2018-12-17
https://mattersphere-devs.forumotion.com

You must complete the data builder” Message Empty You must complete the data builder” Message

Thu 20 Dec 2018 - 11:09
Original post by Mike Vaughan

Hi,I'm using the following method to return a string value from an extended data table.

Code:
public string defaultSchemeCommMethod()
{
    string schemeID = Convert.ToString (CurrentFile.ExtendedData["udInsurance"].GetExtendedData("schemeID"));
    string type = "Default";
    FWBS.OMS.EnquiryEngine.DataLists ds = new FWBS.OMS.EnquiryEngine.DataLists("udClientSchemes");
    FWBS.Common.KeyValueCollection dsparams = new FWBS.Common.KeyValueCollection();
    dsparams.Add("schemeID", schemeID);
    ds.ChangeParameters(dsparams);
    System.Data.DataTable dt = ds.Run(false) as System.Data.DataTable;
    foreach (System.Data.DataRow dr in dt.Rows)
    {
        type = Convert.ToString(dr["schemeDefPrec"]);
    }
    
    return type;
}

I ran the Taskflow action relating to the method and got the following error message

You must complete the data builder

Using message boxes I discovered that the error happens on this line: System.Data.DataTable dt = ds.Run(false) as System.Data.DataTable;

anyone have any idea why this is happening? cheers
avatar
Admin
Admin
Posts : 122
Join date : 2018-12-17
https://mattersphere-devs.forumotion.com

You must complete the data builder” Message Empty Re: You must complete the data builder” Message

Thu 20 Dec 2018 - 11:11
Original post by Richard Annison

It sounds like the datalist you are calling doesn't have the databuilder correctly configured. 

If you open the datalist and alter the databuilder and pass the same parameter values as your code is calling as the test values and use the Test button does it work?
avatar
Admin
Admin
Posts : 122
Join date : 2018-12-17
https://mattersphere-devs.forumotion.com

You must complete the data builder” Message Empty Re: You must complete the data builder” Message

Thu 20 Dec 2018 - 11:12
Original post by Mike Vaughan

Thanks for your replies. I just checked and the extended data table had been created but the Data List had not! 

Once that was created and the Data Builder configured correctly the error message disappeared. cheers
Sponsored content

You must complete the data builder” Message Empty Re: You must complete the data builder” Message

Back to top
Permissions in this forum:
You cannot reply to topics in this forum