on 08-02-2022 11:48 AM
Hi,
EDIT: Due to trying to view how each dimension interacts with each other without any measures turned on, the code fails to execute properly without any measures.
I'm trying to get only the dimension members or rows currently in my table (and not all the dimension members from the model e.g. the User IDs present in the table when the table is filtered on another dimension). How would you go about achieving this?
I have read about using getDataSelections, getResultSet, or get ResultMember, yet all of these return empty arrays or undefined. One of the SAP help pages said something about this being a consequence of lazy load?
Any help will be greatly appreciated.
Many Thanks
Tristan
Hello tristan123
The loading can be controlled by settings, see this blog
If the table is loaded, you should be able to use getResultSet()
For example, this code populates a drop-down with the values in the rows of the tablefunction onlnitialization(): void
var resultSet = Table_1.getDataSource().getResultSet();
var MyTable=ArrayUtils.create(Type.string);
for (var i=0;i< resultSet.length; i++)
{
MyTable.push(resultSet[i]["COUNTRY"].id);
Dropdown_1.addItem(MyTable[i]);
};
When you execute, the drop-down will have the values set.Thanks
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.