Passing string value to form over args.Parm

Hi,

I'm taking QueryFilter from the grid with vendor account in it - specificly - "N00207, N00840"

but then i pass it and call element.args().parm() and add it as a queryBuildRage i get "N00207\,\ N00840"

how to remove \ symbols from it ? and from where does it appear ?

code is for sending range:

    Args args = new args();
    Query q = MARPurchPlanTable_ds.queryRun().query();
    QueryFilter qf;
    int i;

    for (i = 1; i <= q.queryFilterCount(); i++)
    {
        qf = q.queryFilter(i);

        if(qf.field() == 'PrimaryVendor')
        {
            args.parm(qf.value());
        }
    }

    if(chkAllSites.checked())
    {
        new MenuFunction(menuItemDisplayStr(FormName), MenuItemType::Display).run(args);
    }
    else
    {
        TableName.Site = fltrSite.valueStr();
        args.record(TableName);
        new MenuFunction(menuItemDisplayStr(FormName), MenuItemType::Display).run(args);
    }


Receiving:

 qbrVendor = qbdsPurchPlanTable.addRange(fieldnum(TableName, PrimaryVendor));

 qbrVendor.value(queryValue(element.args().parm()));

Related
Recommended