Selection option in Alert Box (Titanium Appcelerator) - titanium-mobile

How to add select options in Aler Dialog as shown below using Titanium Appcelerator?
I checked the documentation in this link, but there is no much reference.
is it possible in Titanium?

i think at present titanium does have the feature you shown in image....
but we can create view which looks like alert view and show....
those button shown in link are general alerts

Related

Xamarin.Forms on button click open popup with list of items

I have a button on command i need to load list from api an show in a popup. After that i need to choose one item from the list. Any suggestion how to import this? Similar like on the image!
You can use Rg.Plugins.Popup , which allows you to create custom popups as per your requirement.
Please refer: https://github.com/rotorgames/Rg.Plugins.Popup

Xamarin master detail page with static header and context menu

I need to do a master detail layout page in Xamarin which then will be used in child pages.
Please check the screenshot below:
I need to have a header part with button for notifications and a button for context menu plus a header.
What is the best approach how I can create this layout in Xamarin?
I will assume that you want to use Xamarin.Forms, instead of using Xamarin.Android and Xamarin.iOS separately.
One approach would be to use default MasterDetailPage as described here or even better to try it with Shell as described here.
Then, you would need to create your CustomNavigationPage and write a custom renderer for it.
Second approach would be to do some tricks, again creating your CustomNavigationPage with template(so that the navigation bar is always displayed) and that you change content dynamically.
Also, you would need to hide default navigation bar and attach click events to your menu button to really open up the menu.
Hope you got it clearly.
MasterDetailPage already provides nearly all functionality that you have asked for, so in some way your question isn't quite clear as you already mention MasterDetailPage. The only remaining problem I can see is how to set up a custom header, and that is than with NavigationPage.TitleView.

Buttons in a view in Dynamics 365

I am new with Dynamics 365 and are not sure of how I can achieve this.
I am looking into having some buttons in a view.
Maybe a view isn't the best way of doing it, but what I want to do is to have a list of records connected to the logged in user (similar to a view)
But on each row/record I want to have multiple buttons. These buttons can be like 'Complete' (Changes status on task and updates the view) , 'Send email'(Starts a workflow) and so on.
What are some of the ways of doing this? Either with Javascript/C#/plugin or something else.
You cannot add buttons in views/subgrids directly.
That’s when we add ribbon/command bar buttons using Ribbon workbench usually.
Create a Workflow Short Cut Ribbon Button (No Code Solution!)
Update:
There is a PowerApps Components Framework (PCF - preview) coming out soon, then we can build custom grid control with the layout/buttons we want.
This can be achieved with RibbonWorkbench. My answer does not differ much with #arun vinoth answer but just added few explanation lines.
https://ribbonworkbench.uservoice.com/knowledgebase/articles/132235-create-a-workflow-short-cut-ribbon-button-no-code
If you look at view below where I have selected number of contact and then I have a Button at top "Nominieren" which is shown and clicking on it will perform whatever action is needed.
There will be java-script on click of button, from Java script you could call Action or workflow or perform operation in Java script itself.
Link for Adding new Button : https://community.dynamics.com/crm/b/crmtipsfromadeveloper/archive/2017/07/26/know-how-add-a-ribbon-button-using-ribbon-workbench
Now when you look at image below I have no contact selected and it does not show button on Ribbon.
It might be possible. I haven't tried this but you can write JavaScript for a view column now (since CRM 2016).
If you go to a view you can double click on a view column to view its properties. There are two properties you might be interested in:
Web Resource
Function
Here's a link to an MS page that explains how to use these options to add an icon. It might be possible to create a clickable button which uses CRM's WebApi to perform some actions: Docs # Microsoft

Checkboxes in Xamarin.Forms

I’m trying to make a page in my app where a user selects from a list of choices, then presses done to submit what he has selected. I’m using Xamarin.Forms. I directly thought of using checkboxes to achieve this; but apparently Xamarin.Forms doesn’t have checkboxes . Anyone have any suggestions to achieve this?
Thanks!
If I understand you correctly you don't seem to be looking for a radiobutton but more for something like a checkbox.
I've used this package: https://github.com/messier16/Forms.Controls to use checkboxes
Make sure to call Messier16Controls.InitAll(); right after Xamarin.Forms.Init(); in your projects. Look a tht AppDelegate.cs code snippet from the sample app:
global::Xamarin.Forms.Forms.Init();
Messier16Controls.InitAll();
If you want radio buttons you can xlabs their package (https://github.com/XLabs/Xamarin-Forms-Labs/tree/master/src/Forms/XLabs.Forms/Controls/RadioButton)
I'd just use a picker, Xlabs package hasn't been updated in a while so their might be some bugs in the radiobutton
You can use XLabs as suggested by below answer or you can create you own radio buttons with image and set selected and un-selected images on tap of image
i prefer to use my own radio buttons

Sitecore: Sublayout with preview image

Can anybody tell me how to add a preview image when i am selecting a rendering while adding a component in the Page Editor? I just still have there a default sublayout icon. I have the Nicam demo site from Sitecore and there are some images, but I am not able find where I can select that.
When you go to your Sublayouts (/sitecore/Layouts/Sublayouts or Renderings) you can select yours, go to the Appearance section and go to the Thumbnail field. Click the Take Screenshot button there.
You can then select the page you want the thumbnail to be taken from in the Item field, which device to use and click Take Screenshot. After this the page will show up where you can select a section of the page to be used as the screenshot
[Update]
I decided to write a blogpost on this: Read it here

Resources