Document with multiple content elements - filenet-content-engine

I have documents within FileNet
Multiple content elements (both pdf's). When I open this document from ICN filmstrip view, I can scroll down to see both documents. If I double-click the document, it opens in a viewer and I can see both of them side by side.
Multiple content elements (excel and tiff). When I open this document from ICN filmstrip view, I can only see excel being rendered but not tiff. If I double-click the document, it opens in a viewer and I can see both of them side by side.
any idea what's happening here?

The Document object in FileNet has a MimeType property and the content items themselves have a ContentType property. IIRC if not explicitly specified otherwise, the document's MimeType is the same as the ContentType of its first content element. I imagine the filmstrip view only evaluates the MimeType of the document, while the using Open, the ContentTypes are being evaluated individually.
This means the filmstrip view thinks there are two Excel files, but the second content element has a non-Excel format.

Related

How to extract the currently visible text only from a UIWebView

I am loading a XHTML file in a uiwebview and paginating its content by dividing its content in columns by using "-webkit-column" property.
I need to find out the currently visible text on a uiwebview not the entire one( the entire text can be easily found by using "document.body.innerText" property)
I tried using "elementFromPoint" to find the currently visible text but its not working.
Can anybody help in finding out this.

How to make a DIV get Voiceover focus when it doesn't contain any focusable HTML?

I have an email client application, and I'm changing the way we show attachments for an email. Previously we had them up at the top of the email viewer in a scrollable list; now we're moving them so that they're displayed as a list at the bottom of the email content. For reasons related to the UIWebView control, it was necessary for me to implement these attachments as HTML code that is programmatically appended to the HTML of the original email (instead of doing them like a normal person would, where each attachment is just a UIView in iOS).
I'm now trying to configure accessibility for these HTML elements and running into some problems. Each "attachment" consists of a button-like background which is actually constructed from 3 images: one for the left side of the button, one for the right side of the button, and a middle portion which is stretchable (this allows the button to stretch in width without distorting the edges). There's also a paper clip image and a right-arrow image laid out on the "button", and two sub-DIVs for displaying the file name and its size.
The problem is that I want to make the outer DIV that encompasses all of these sub-elements to be the only thing that is focusable by Voiceover, and I want to be able to control what is announced by Voiceover for this DIV (so that I can include the file name, its size, whether or not it's currently downloading etc.). However, it seems that the only things Voiceover wants to focus are the three-subimages that make up the button background (and they're announced by their filenames) and the two sub-DIVs that show the filename and the file size. If I hide all of these sub-elements from Voiceover by setting aria-hidden="true", then nothing gets focused at all. If I set aria-hidden="false" on the outer DIV, the DIV is still not focused.
Is there any way to make a DIV focusable by Voiceover even when it doesn't contain any inner HTML content that Voiceover would focus on its own? I think I could hack a solution where I stretch a completely transparent PNG over the DIV and make that the only inner element with aria-hidden="false", but even then I'm not sure how to get Voiceover to read something other than the file's name.
Update: OK, it seems I can sort of achieve this by adding role="button" on my DIV while keeping all of the sub-elements aria-hidden="true". The entire DIV is now focusable, but it still announces itself as a "button" (I'd like it to say "attachment" instead as the type, but I can live with "button" if necessary). The main problem I'm now encountering is that Voiceover seems to ignore the aria-label property, and instead reads out any text that is contained in my sub-DIVs. Is there any way I can get Voiceover to read the aria-label property that I explicity set instead?

Adding multipage printing to Windows 8 ListView App

I have an app with a ListView showing a list of summary items.
I've added print support, but I'm stuck on splitting my content into different pages.
I can add multiple pages, but I don't know how to split my content into pages based on page size.
Currently I have a xaml user control for my print content with a bound ItemsControl in it. I'd either like to bind to a list of just the items that will fit on the page, or move the top visible item position up based on the page number.
I'm not sure which is the best approach and I'm not sure how to do either.
The only paging example I could find in the docs was for a rich text block, which relies on the RichTextBlockOverflow control. I don't think that will help me.

UIWebView locating text by touch

Would like to capture a touch on a UIWebView, map that to the relevant HTML text and insert a hyperlink into the HTML at that point.
Found a very nice reference to cleanly capture touches on UIWebView at:
http://mithin.in/2009/08/26/detecting-taps-and-events-on-uiwebview-the-right-way/
I've implemented it and it works very well.
Also found a very nice reference to search and highlight text in a UIWebView at:
http://www.icab.de/blog/2010/01/12/search-and-highlight-text-in-uiwebview/
I've implemented it [for a search feature] and it works very well.
But I can't quite make the intellectual jump from touch position [not text search] to a specific word in the UIWebView. Obviously this can be done, since touch-and-hold on a UIWebView triggers a "Copy or Define" popup which obviously knows the specific word you've pointed at.
The individual text nodes that JavaScript decodes from the DOM have no offsetLeft or offsetTop or offsetWidth or offsetHeight; I understand these need to be derived from the parent node.
But the individual text nodes can consist of many lines of text, depending on what the HTML source looks like. Potentially a single text node can contain an entire paragraph of text, hardly the one word that I'm trying to spot.
Can anyone suggest how "Copy or Define" can be so clever? Thanks.

Unable to edit content using admin part

I have to support a website developed in umbraco. I am totally new to this and this is am working on this for the very first time. My requirement is very straight-I need to edit the content of a webpage. When I too the page it opened with two tabs - Main Content and Properties. In the main content tab I can edit the Title, Banner image, Content header etc, but not the content of the page. It doesn't give any rich textbox to edit the content. I have uploaded the view of one of the page.
I need urgently need to edit the content.Please help with this.
The screenshot implies that the content should be under the "Content" headline in the right screen, but depending on how the documenttype for the frontpage i created, the content could be made up by sub nodes. try folding out the tree to see.
If it dos-nt make sence you can see what documentype a node is made on and what template it uses to display it by clicking the Properties tab. Then go to the Settings Tab in the bottom and see what that documenttype contains and how its displayed in the template

Resources