Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have installed the Qlik SDK from NuGet v16.3.0 - I have been following though some examples to get values from fields:
var fields = application.GetAppFields();
foreach (var field in fields)
{
textSB.AppendLine("Field Name: '" + field.Name + "'");
var p = new List<NxPage> { new NxPage { Height = 5, Width = 1 } };
var dataPages = field.GetData(p);
}
However "Field" class defined does not have a GetData method - what am i missing.
How do I get all the values of the field via the SDK ???
You're probably looking at an outdated example. Where did you find it? That method was removed in version v16.0.1 of the SDK:
REMOVED: Removed deprecated promoted methods associated with property structure content of engine objects. Deprecated since v13.18.0.
And the "GetAppFields" method returns instances of "IAppField" not "Field". You'll find the documentation here:
If you simply want to retrieve all field values, then you can use this method:
You're probably looking at an outdated example. Where did you find it? That method was removed in version v16.0.1 of the SDK:
REMOVED: Removed deprecated promoted methods associated with property structure content of engine objects. Deprecated since v13.18.0.
And the "GetAppFields" method returns instances of "IAppField" not "Field". You'll find the documentation here:
If you simply want to retrieve all field values, then you can use this method: