Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

table view:number of entries

Hi,

I need to disable a button when I have added a single entry to my table view.

How do i check for the number of entries in a table view in order to disable the button of adding further entries.

Thanks and Regards

Shilpi

Tags:
replied

Hi,

I have not used the COUNT variable on the collection wrapper, but there is a method SIZE( ) on it as well that will tell how many entries there are. It does not matter if it is a value or model node.

if typed_context->/MyContextNode/->collection_wrapper->size( ) < 1.
*enable button
endif.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question