How do I create expandable lists on Appcelerator Titanium? - titanium

Is there any way to create expandable lists on Titanium? I want the ListItem to expand and show extra info when the user clicks on a dropdown icon, just like in the image below:
I'm not sure if this can be achieved in Titanium.

This should not be a Titanium specific question because there are multiple ways to create such a list in any platform, be it Titanium, native Android/iOS or any other platform.
It depends on you which way you prefer. Using ListView, you can simply create a ListView & add ListItems or child-views in a ListItem upon clicking a parent list-item, and do vice-versa on deleting or hiding the content.
You will need to take care about the clicking events when to add/when to delete or hide the content, though it will require lot of coding but it will be worth doing so because then you can understand how things behind the scenes work. It's time taking to provide you a code-base here, so I suggest you to start working on to create this feature or you can take a look here at this sample code - Expandable ListView

Related

Karate-Robot: How to scroll through a datagrid element?

I have been using the Karate framework Robot component for desktop UI automation. With it, I need to click on a button in each row item of a data grid and using click() doesn't work when the item is not in view/is offscreen. As such I'm trying to figure out how to scroll down to the items I need so I can click the button. I noticed with the driver there is an option to scroll() but I haven't been able to find one with Robot.
Is there a workaround for this or are there plans to add a scroll() function for karate-robot in the future?
Scroll certainly sounds like it may be missing from the existing API. Please do consider investigating and contributing to the code, which will just make it faster to release.
Meanwhile here are the possible workarounds:
see if using the TAB key auto-scrolls to the element
if you get a reference to the button you can call invoke() on it which is supported by a range of windows components
P.S. please do consider contributing code, the code base is actually quite simple. And here is where you can implement the Scroll pattern: link.

One custom toolbar for multiple layouts in FileMaker Pro

I have a complex Filemaker database with multiple tables and layouts. What I would like to do is to add a toolbar to each layout. This, of course in view of maintainability of my database solution.
Of course, I could create a nice row of buttons (for example in the header of the layout) and copy past this to each separate layout. However, this is not really a great solution from a maintenance pont of view (if you want to change something you need to do so multiple times).
So... is there another way?
I am looking for something similar to e.g., include in php:
<?php
include 'header.php';
?>
Is there such a thing?
Not really. It could be achieved, mostly, with a bit of extra work. There is nothing out of the box, although you might find some samples on the web.
The closest thing in FileMaker is button bar with styles. Even this will not auto-update by default across different layouts.
You can use a webviewer based on a global field.
Another solution for older versionsis to use a portal with records creating buttons and a script which will do staff depending in which row button is clicked.
I am using a Navigation Window which may be recalled by either a push button which should be on each layout (you have not to change it because it only recall the Navigation Window) and/or a Script (I use to put it at the first place, as CMD-1).
Of course, you need to manage that the Navigation Window has to be closed before the navigation and execution of the Script managed by your Toolbar while, at the other side, you may add every other navigation need ;-)
Best wishes
Carmine Iaciofano - Area

add menu tiles Xamarin Forms

I have a left expandable menu item , I would like to add to the master page a series of tiles with those menu items , like a hyperlink to the actual menu. that looks like below
what would it be the best approach to do this using Xamarin forms , not using renders or effects
Thanks
If there are a fixed number of items you can just use a grid to lay them out.
If you don't know ahead of time how many items, or the number may vary, the FlowListView plugin is probably the best bet.
https://github.com/daniel-luberda/DLToolkit.Forms.Controls/tree/master/FlowListView

Windows mobile app List view carousel

Am developing windows mobile app in 8.1. Looking for a control like List view carousel.
Only one item needs to be shown at a time. User needs to swipe to go next / previous item. Order will be highlighted in below dots
Use a flipview. Check this for more info https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh781233.aspx
You could create a control containing a Pivot with custom template for Image, header textblocks and other things you want and a LitView, also with custom template for showing which item is selected. It will need to change selected index according to pivot changes.
As Sjon wrote, nobody will code it for you so after my hints I think you should manage to build it.

How do you dynamically change the navGrid toolbar icons in jqgrid?

I currently have a a pretty standard jqgrid that I would like to change the navGrid icons dynamically. The grid shows some standard data with limited navGrid icons (like search) but if you log in to the site it will allow you do add, edit, etc. So I would like to turn on/off certain icons under certain situations. I have not been able to find any way to do this.
Look at the demo which I made for the answer. Another demo from the answer shows one how to disable/enable buttons from the navigator bar instead of show/hide there. I think it's what you can do.