Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
marinab
Contributor
Contributor

How to get MetaAttributes using Qliksense.netsdk 16.9.0

I understand that in previous version 15.6.2 it was automatically included as part of the object layout (GetLayout() / GetLayoutAsync().
But now I am using .net8 therefore I upgraded the package to 16.9.0 and see that I am missing these sections in my final xml.

Or is there a way to make sdk 15.6.2 version to work and connect properly with .net8?

Labels (3)
3 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Can you post a bit of code sample to show where you are having trouble? I'm using 16.9.0 with Net8 without issue.

-Rob

marinab
Contributor
Contributor
Author

I know that previously sections like MetaAttributes ,Info, Cells was given by default  when we did 
sheet.GetLayoutAsync();
genericObject = await app.GetGenericObjectAsync(cell.Name);
and then just .PrintStructure();
Now these sections are not available by default.

Øystein_Kolsrud
Employee
Employee

I'm not totally sure I understand what you are referring to, but in earlier versions of the .NET SDK, properties of the layout structure of the client objects were promoted directly to the corresponding object. So you could for instance write like this:

ISheet sheet;
var cells = sheet.Cells;

These properties were deprecated, then removed, as they hid the fact that access to the property would trigger a GetLayout call in the background which caused some confusion. In newer version you need to explicitly go through the Layout property to access those properties. Like this:

ISheet sheet;
var cells = sheet.Layout.Cells;