Hello,
I am using GetParameterMessage to get all rows/data related to a table, but this table has more than one page in DMA. When I get the response, it just retrieves the rows that are on the first page. How can I get all the rows from the other pages?
Thank you!
As this question has now been inactive for a long time, I will close it. If you still want more information about this, could you post a new question?
Hi Gina,
It is not really recommended to use SLNET messages in general as these messages are not officially supported nor documented. In this case, I would advise you to explore our Skyline NuGet packages | DataMiner Docs, more specifically the class library, i.e. Skyline.DataMiner.Core.DataMinerSystem.
To use the class library in a protocol, install the following NuGet package: Skyline.DataMiner.Core.DataMinerSystem.Protocol.
To use the class library in an Automation script, install the following NuGet package: Skyline.DataMiner.Core.DataMinerSystem.Automation.
With this, it will allow you to query your table in two different ways:
- Method GetData | DataMiner Docs
- returns the entire contents of a partial table in one request
- Method QueryData | DataMiner Docs
- without a filter will retrieve the entire table in multiple requests (one request per page).
- with a filter will retrieve the table rows matching the filter in one request.
Kind Regards,
Jarno
You can use the GetPartialTableMesssage instead of GetParameterMessage. This allows you add the option "forceFullTable=true" (add to the Filter property).
I will repeat after Jarno and suggest against using these SLNet messages directly in code. If the main goal is to use Client Test Tools to view the table, it should work with this message. If you are trying to implement this logic in a driver or script, please take a look at the alternatives from Jarno instead.
I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer that has been most helpful for you (using the ✓ icon)?