AssetListScreenlet - how to configure app and portal?AssetListScreenlet - how to configure app and portal?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1051450982024-03-28T18:10:20Z2024-03-28T18:10:20ZRE: AssetListScreenlet - how to configure app and portal?Sarai Diazhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1051587502018-03-12T16:43:09Z2018-03-12T16:43:09Z<html><head></head><body>Hi Nicola,<br><br>I see that you set <em>autoLoad</em> property to <em>false</em> in the layout. If you do that, you have to load manually the screenlet:<br><br><pre><code>assetListScreenlet.loadPage(0);
</code></pre><br><br>Also, if you set <em>portletItemName</em> in your layout, you don't need to set it in the view, too (but it doesn't affect in this case).<br><br>Regards,</body></html>Sarai Diaz2018-03-12T16:43:09ZAssetListScreenlet - how to configure app and portal?Nicola Mezzohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1051450972018-03-12T14:02:41Z2018-03-12T14:02:41Z<html><head></head><body>Hi guys,<br><br>I'm trying the AssetListScreenlet but unfortunately I'm not able to receive the list of the assets I want (no assets to be honest).<br><br>What I did is :<br><br><ul><li>1 Put the AssetListScreenLet in a layout<br><pre><code><com.liferay.mobile.screens.asset.list.assetlistscreenlet android:id="@+id/asset_list_screenlet" android:layout_width="match_parent" android:layout_height="match_parent" liferay:autoLoad="false" liferay:cachePolicy="REMOTE_FIRST" liferay:portletItemName="portletItemName1" /></code></pre></li><li>2 Created an Activity to receive the asset <br><pre><code>public class MainActivity extends AppCompatActivity implements BaseListListener<assetentry> {
private AssetListScreenlet assetListScreenlet;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_web_content_display);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
assetListScreenlet = findViewById(R.id.asset_list_screenlet);
assetListScreenlet.setPortletItemName("portletItemName1");
assetListScreenlet.setListener(this);
}</assetentry></code></pre> <br>and overrided all the unimplemented method</li><li>3 deployed Liferay CE Screens Compatibility<br></li><li>4 saved as asset publisher template "portletItemName1" an AssetPublisher wich what I want to receive by the app.</li></ul><br><br>when I lanch the app, nothing is received (just like I try to call an asset publisher which doesn't exist).<br>Is this the right way to do