In Mac, in skype when we add users to an existing chat, by clicking '+' button on top, a beak like window appears carrying a token field like control. When an user types some name in it and a match is found then a list appears carrying user icon , status icon and his/her name. Also the width of dynamic list is same as beak window.
Can any one suggest some way to create similar control?
Thanks in advance,
Miraaj
NSTokenField.
The control for the list would be NSTableView.
Related
As example, let's say I wanted to write an app such that when the user types /movie in a channel, a list of popular movies is shown, the user selects one, and as a result a link to that movie in IMDB is inserted into the channel as text. Is something like that possible?
Many thanks.
That's possible! A slash command is the vessel for further interactivity. You can have your slash command trigger a modal (https://api.slack.com/surfaces/modals).Your modal would offer a list of options and once the user submits, your app will be notified with a view_submission payload. You can test modal payloads using the Block Kit Builder which includes options to list items.
In the Ribbon Workbench, how can I hide the "Closed as Won" button on the Opportunity form based on a text field (accountnumber) in the Account entity?
Issue description
How can I hide the "Closed as Won" button on the Opportunity form based on a text field (accountnumber) in the Account entity? Each Opportunity can have one associated Account. If the accountnumber field is blank, I want the button to be hidden. I'm assuming I should use a Value Rule, but I don't know exactly how to do this for related entities.
If this is not possible to do, what would be the best workaround?
I also have a 2nd related issue. I want to be able to hide the "Collaborate" button that is used for Teams integration, but can't seem to do that in the ribbon workbench either.
You have many solutions... just two of them:
Write a custom javascript that retrieves the value of the related account using web api (here some examples: https://butenko.pro/2018/11/13/showing-ribbon-button-based-on-the-result-of-async-operation/)
Add a text calculated field on the opportunity pointing to the accountnumber of the related account (the syntax for the calculated field is "[lookup name of the account].accountnumber". Then you can use a ValueRule on the new field
I display quote prices of stocks in one of my bots in the form of text. I would like to let the user be able to share these prices on Messenger without using Hero Cards or generic template. How can I achieve this?
UPDATE 1
How to add share button in persistent menu in addition to this?
Text messages can be forwarded by long tapping, then choosing 'forward'. There is no way to add the share button to a text message. Why not just use the generic template without an image?
In the persistent menu, only url and postback buttons are supported.
A View with expand and contract list where you show, for instance, Chats, Contacts, Groups. You click on of them and expands to a list of Chats and each element of the list is a Rectangular box with User defined image, name, status (offline, online, busy) as an image and status message.
How can i program a view as described?
thanks in advance
For such view you can use ListField.
See SO - How to customize list field in blackberry?
What is the best way to design an interface so that very long drop down values that get trucated due to size limits do not create a very bad user experience. My question is for web applications.
Could you please send your suggestions.
Thanks.
One option is to use 'type-ahead' with postback (AJAX) to reduce the size of the list.
Well, what I have done in such a case is:
Using autocomplete (so that the user can start typing and get at the intended option faster).
Have the dropdown of a fixed length like 30 chars. Now, if the value of the drop down is longer I just truncate it to 25 with a '...' at the end. A hover on this value will make the full text appear as a 'title' or similar.
You can use a another window (div?) with list/grid with paging instead of dropdown.
Its very intuitive for general users.
have a tooltip for each item in the dropdown list so when a user hovers his mouse pointer to an item, he'll still be able to see the full description of the item.
or have your dropdown width auto-resize to the longest description in the list.