Getting nil rows from baseListView in iosGetting nil rows from baseListView in ioshttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=898327892024-03-28T11:18:22Z2024-03-28T11:18:22ZRE: Getting nil rows from baseListView in iosPrakash Kumar Singhhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=899298852017-05-26T12:16:01Z2017-05-26T12:16:01ZAny Help ??Prakash Kumar Singh2017-05-26T12:16:01ZRE: Getting nil rows from baseListView in iosPrakash Kumar Singhhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=898673302017-05-25T07:13:21Z2017-05-25T07:13:21Z<html><head></head><body><div class="quote-title">Victor Galan:</div><blockquote>Where are you executing that code?<br>rows cant be nil so the screenletview is the nil here, maybe its not yet initialized</blockquote><br><br><pre><code>
// On List item selection
func screenlet(screenlet: NewsListScreenlet,
onNewsSelectedEntry entry: NewsListScreenletEntry) {
// open page view controller
let mainStoryBoard : UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let viewController : PageViewController = mainStoryBoard.instantiateViewControllerWithIdentifier("PageViewController") as! PageViewController
let rows = (screenlet.screenletView as? BaseListView)?.rows
print("selectedrows" , rows)
// viewController.rows = rows
if let rowCount = (screenlet.screenletView as? BaseListView)?.rowCount {
viewController.rowCount = rowCount
} else {
viewController.rowCount = rows?.count ?? 0
}
viewController.selectedEntry = entry
viewController.pageType = menuItem.pageType
viewController.contentType = menuItem.friendlyURL
}
}</code></pre><br><br><br>i am using this code in viewController class from where custom screenlet is loaded</body></html>Prakash Kumar Singh2017-05-25T07:13:21ZRE: Getting nil rows from baseListView in iosVictor Galanhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=898328792017-05-24T13:44:46Z2017-05-24T13:44:46ZWhere are you executing that code?<br /><br />rows cant be nil so the screenletview is the nil here, maybe its not yet initializedVictor Galan2017-05-24T13:44:46ZGetting nil rows from baseListView in iosPrakash Kumar Singhhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=898327882017-05-24T13:37:23Z2017-05-24T13:37:23Z<html><head></head><body>Liferay Screen version : - 2.0.1<br><br>Hi<br> i am creating custom list screenlet. Screenlet is populated with list data. but when i am using below code for other functionalities .It returning nil .I am confused what is actual this return.<br><pre><c