Skip to content

Select values of field with int index collection does not make correct selections in the app #4

@vyanga

Description

@vyanga

foreach (var selectedField in currentSelection)
{
List fv = new List();
p = new List { new NxPage { Height = 100, Width = 1 } };
dataPages = destApp1.GetAppField(selectedField.Field.ToString()).GetData(p);
foreach (var dataPage in dataPages)
{
var matrix = dataPage.Matrix;
foreach (var cellRows in matrix)
{
foreach (var cellRow in cellRows)
{
fv.Add(cellRow.Text);
Console.WriteLine(cellRow.Text);
}
}

                }
           List<string> svals = selectedField.SelectedFieldSelectionInfo.Select(x => x.Name).ToList();
           foreach (String sval in svals)
           {
                ivals.Add(fv.IndexOf(sval));
            }
            ivals = new List<int> { 0 };
            destApp1.GetAppField(selectedField.Field).SelectValues(ivals, false);  //Issue here.......
            }

Even if I do ivals = new List { 0 };, and pass ivals to SelectValues, it makes some different selection in the app as compared to what appears when I build list using GetData();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions