I understand that by using the role="treeitem" plus aria-setsize and aria-posinset you can make the screen reader announces the position of an item in a set such as "1 of 7" or "2 of 7".
Is there a way to do the same thing for other groups such as menu bar, or tab strip? We certainly don't want to enforce the "treeitem" role just to achieve this.
Thanks in advance.
If you're creating a menu bar, a logical structure to use would be an unordered list <ul>
A screenreader encountering this list would inform the user that a list of x items was present e.g. "list of 7 items", but it wouldn't inform the user of the ordinal position of each link item, so it would it would read out "Bullet: link, Bullet: blah" depending on the list contents.
If it is important for the user to be aware of the step number e.g. a list of sequential instructions, then using an ordered list would be more appropriate e.g.
<ol>
<li>Start your browser</li>
<li>Navigate to Stackoverflow</li>
</ol>
Using CSS, you could remove the numbers, or change the formatting of the ordered list. Removing the numbers would make no different to how a screenreader read out the list, so they would still hear 1, 2, 3 etc.
Related
I want to define an order intent something like "I want two pencil,one notebook, four cardbox".
In alexa build model it looks something like the following
I want {itemQuantity}{itemList}
here {itemQuantity} is defined as Amazon.number and {itemList} is defined as custom slot which could have this set of values {pencil,notebook,eraser,cardbox,sharpner}.
Now If I make the following utterance "I want three eraser" ,it worked perfectly.it returns itemQuantity as 3 and itemList as eraser.
But when I make the intent with multiple values like this "I want two pencil one notebook four cardbox". It returns me itemQuantity as 2 and itemValue as "two pencil one notebook four cardbox".
Rest of the string come entirely as itemList.
I want to get this input in form of array/list like itemQuantity = {2,1,4} itemList = {pencil,notebook,cardbox}
You can't do that in an easy way.
The simplest thing you can do is define utterances like:
I want {itemQuantity1}{item1}{itemQuantity2}{item2}...
So you have to specify in the utterance all the possibilities for the list. If you have maximum fixed length list I think it is the right way to do.
Or you can use AMAZON.SearchQueryslot (link) and process the whole phrase (that should be two pencil one notebook four cardbox) in the backend of the skill and extract the values that you need.
But in that way you have the limitation of the needed carrier phrase for that type of slot (see linked docs).
Another workaround could be catch all slots (not working 100% of the time btw) but as above you have to deal with the whole phrase in the backend and process it.
I have a question in UFT 12.
My scenario is:
1. Type text in a WebEdit. Say "GOOG"
2. When I type "GOOG" slowly, it lists out the symbols that start with "G". From this list out, I want to select the first element.
3. Once I click on the first element, the Google quotes are displayed.
My Issue:
UFT just types GOOG and doesn't show me the list that lays out for me to select the first element that starts with "G".
From the Object spy, I managed to find the first element as a web element.
I tried many different ways like childitem etc. Nothing seems to work. Please help me out.
I am not able to attach my screen shot here. This is something similar to Google suggest where you type and it suggests you so many options and go with the first option.
It seems like you're trying to automate auto-complete textbox. So you should not directly paste the string value in the textbox as we used to do for normal edit controls, instead you should split the string into separate characters and type one by one.
If if you do in such a way, then the AUT will list the matching options to pick. From there you can select the required option. Then you may use SendKeys method (** something like Down Arrow + Enter) to pick the selection.
Just a have attempt in this way - good luck!
There is a way to hide a specific object of my catalog results?
I have a configuration file that I don't want to show.
I'm filtering by id, but it seems so ugly.
from Products.CMFCore.utils import getToolByName
def search(context):
catalog = getToolByName(context, 'portal_catalog')
items = catalog()
for item in items:
if item.id != "config_file":
'do something'
If you are already hiding the object from the navigation tree, you can filter on the same property by testing for exclude_from_nav:
items = catalog()
for item in items:
if item.exclude_from_nav:
continue
# do something with all objects *not* excluded from navigation.
It is harder to filter out things that don't match a criteria. Using a test on the brain object like the above is a perfectly fine way to remove a small subset from your result set.
If you need handle a larger percentage of 'exceptions' you'll need to rethink your architecture, perhaps.
With Products.AdvancedQuery you can create advanced queries and filtering on catalog results. See also this how to.
In the general case, setting a content item's expiration date to some past date hides it from search results (so long as the user does not have the Access inactive portal content permission).
It's an easy way to hide pieces of content that should be visible to all, but that you don't want cluttering up search results e.g. a Document that serves as the homepage.
I always use 1st Jan 2001 as the date so I can easily recognise when I've used this little 'hack'.
I am trying to modify the WMSPickingList_OrderPick Report in Dynamics AX 2009.
I am attempting to move the InventDim group onto the same line as the actual Item Line, as it currently prints underneath.
I have tried manually moving the fields, in this case no data appears.
I have tried switching the parameters so that the item dimensions appear after or a part of the item number, in this case it still appears below.
I have also attemped to simply pick up the values in the Fetch statement and pass them to variables, I can see the values being picked up but on returning them in a display method no data appears?
Many thanks for your help in advance.
Go to Accounts receivables > Setups > Forms > Forms Setup
In the "General" tab > "Print item dimensions" group, Select the "Print item dimensions" as "After item number"
I am assuming it is currently set to "Under item line"
The problem with WMSPickingList_OrderPick report is the width of the design, the design doesnt have enough width to print the Inventory Dimensions, they dont appear when u put them in the same line because the columns overlap.
However, one very clean solution can be to use a Display method as datasource for the Item ID (i.e item number) and in that display method just append the dimension.
I am trying to make a View with "Top 10" nodes where the position is granted by an administrator through a CCK text field with 10 options (1 to 10 points).
I want that once an option is chosen, that option is not available in the select lists of other nodes. In other words, when an option is selected (for example "9th position") in a node, this option is removed from the list (other nodes will have all but "9th").
When a node has its position removed, that option appears as well. This can also be achieved through a special validation snippet: the options are all available but when one that is already chosen is selected it displays an error or warning.
UPDATE: it just occurred to me that another (much better) option is to have an admin page with a list of ten top nodes that can be rearranged, removed or added.
Thank you.
You are looking for the NodeQueue module. This provides the ability to create fixed lists of nodes.