AWS lex bot...created "slottypes" like "coffetype" "coffeesize" but can't use them in the bot creation - amazon-lex

In the construction of the bot, I should be able access the slotypes I created. but I can't see them. There are videos that they we can create slot types and use them in building intents. Even though my slot type exists I can't access them while I am building the Utterances

In order to reference the slot types within an intent's utterances, you need to have added those slot types to slots within the intent.
Please take a look at this example where I have a slot called quantity of type AMAZON.Number. I can then reference the quantity slot within any utterance that I have.

Reegz's answer was very good and seemed to cover everything so I apologize if I am repeating things.
You've created your own custom slots already, however, you must include them in the intent you want to use them with.
You must do this before you add them to Utterances. Otherwise they will not appear in the drop-down.
Add the slots to the intent by going to the Slots section of your intent:
Click on the Add slot button on the top right corner of this section.
Create a name for the slot, this is similar to setting a variable name for an object. This name is also how you will access the Slot.
You may need to click save on the intent in order to see changes in the slot drop-down.
Now when you go to add a new Utterance, your custom slot should appear:
Let me know if you have anymore questions. I hope this helps you.

Related

TFS 2015 Alert for Changes in Team/Group send to me

as the title describes i want an alert that sends me an email whenever a change happens to a work item that is assigned to one of my Team Members. Beware this is not a Project Team, it is a specific Group.
As i would understand this: I need an alert under My Alerts since only me needs to be informed but when I try the Assigned to Field with my group, it doesn't work with contains operator and the in group operator isn't shown.
Kind Regards
Christian
contains operator means when Assigned to Field has the value you specify in filter, the alert will be triggered.
The only way to achieve your requirement is to add multiple Assigned to clauses and group them with Or like the screenshot below:

How to use values from one section of view dynamically in a different section before submit?

We have a need where sections could be added and removed dynamically in one screen which need to be used in a different section in the same screen dynamically before submit.
Adding/removing, binding is the easier part which I have done, but the part I am struggling with is not seeing the values from the earlier section that get entered in the later section which the values are referenced/used again.
There is no value in the backing bean for the first section which when used later in the other section show blank which makes sense as submit has not occurred, but how to use the values entered in first sections that should be available in the model to be used in the later section?
Example:
Primary family member - adds other family members in the first section.
The primary and secondary family members should show in different subscriptions/memberships that they could be a part of and all this is on the same form.
I have a hard time explaining the issue, hopefully you have understood and are able to suggest a solution? I hope I dont have to define and use valuechangelisteners to each field.
We are using JSF2, Richfaces 4 and omnifaces.

How can I tell Capybara to find the 1st, 2nd, or 3rd button?

I have a subscription screen in my app. There are 5 different choices, and therefore 5 different buttons. It's data-driven so there could be 1 or 10 or whatever. n choices.
In writing a request spec, I find that I do not know how to point to these. I know I can set match: :first as an argument to the click_button message, but is there another way that I can arbitrarily call one of these?
Capybara provides an all method. This method returns an instance of Capybara::Result. This class includes Enumerable and thus provides methods like #[].
all(selector)[n] will return n-th element on the page conforming to locator. It will be an instance of Capybara::Node::Element that you can use freely using methods like click, set, etc.
A disadvantage is that all doesn't wait for elements to appear. If you need it, you can use synchronization like:
page.should have_css('#id') # wait for some element that appears at the same time or after the element that you click at the next row
all(locator)[n].click
Luckily you have a couple different options. You can call by thr nth child, you can do (.class)[2] , or if you're looking for a first, you canme element = first (.css) and then interact with the element bysaying something like element.click. If you're doing the page object model, you definitely should define your objects anyway

TFS - auto increment number field in a WITT (e.g. Bug's)

Is there a way to auto increment a number field in a WITT (e.g. Bug). We've got a requirement that we want contiguous Bug ids (note - not its actual id but a separate field).
Can this field be done unique per collection OR unique per project (thus duplicates would occur in the collection).
---edit
I've no idea how to tackle this, but I'm wondering if I could use a globalist, e.g. bug creation triggers the adding (replacement) of a value to the list?
There is no way to do this directly through the WIT platform. You would need to write some sort of custom service to do this for you on the creation of a new bug.
My answer goes into the same direction like aaronbjorks one.
Create a webservice that gets alerted if a new bug is created, then just write down the bug ID in a database with an identity column. On the workitem you can create a custom control, that gets the identity for that bug from the database and displays it somewhere.
A possible workaround would be exporting your items query to Excel and let it update the IDs upon Publish. Make sure once an ID was assigned, tag it as FROZEN.

How to sort data as I want in a VirtualExplorerTreeview (VirtualShellTools)

This is probably a very "dumb" question for whoever knows VirtualShellTools but I only started using it and couldn't find my answer in the demos' code. Please note that I'm also unfamiliar with virtualtreeview.
I use a VirtualExplorerTreeview to display a directory structure, linked with a VirtualExplorerListview to display a certain type of files in the selected directory as well as specific informations about them
I've been able to point them at the right place, link them as I wanted, filter everything in the listview, and looking at the demos I have a pretty good idea about how to add my own columns and draw it to display my custom data.
My issue lies with the Treeview: I would like to sort the directories displayed in the order I want; specifically, I want "My Docs" and other folder to appears first, then drives, then removable media. Looking in the TNamespace property I found how to distinguish them (Directory and Removable properties), but I don't know how to implement my own sort/what event I need. I tried CompareNode but that doesn't even seem to be called.
If you want to do everything yourself, then set toUserSort in the TVirtualExplorerTree.TreeOptions.VETMiscOptions property. That causes the control to just use the DoCompare method inherited from the virtual tree view, and that should call the OnCompareNodes event handler.
A better way is to provide a custom TShellSortHelper. Make a descendant of that class and override whichever methods you need. Create an instance of that class and assign it to the tree's SortHelper property. (The tree takes ownership of the helper; free the old one, but not the new one.) If the items are being sorted on a column that that class doesn't know how to compare, then handle the tree's OnCustomColumnCompare event.
To help you figure out exactly which methods you need to override or events you need to handle, set a breakpoint in TCustomVirtualExplorerTree.DoCompare and step through to see what gets called in various situations.

Resources