Anyone been able to get the sap.ca.ui.FileUpload control working with a Gateway OData service?

Hi,
I have been trying to get the sap.ca.ui.FileUpload control working with an OData Gateway service, specifically /IWPGW/TASKPROCESSING which is the service used by both Fiori Approve Requests and the Unified Inbox.
I have looked at the sample application in the Explored at SAPUI5 Explored
I have managed to replicate that and get it to work, but as soon as I switch it from a JSONModel to an ODataModel I get javascript errors from within the setModel method of the control. I have redefined that method and corrected the errors, which enables me to get a bit further, but then I hit more errors, and other strange behaviour.
Either I am doing something completely wrong, or to me it appears as if this control is still extremely buggy and maybe either not designed to work with an ODataModel, or just hasn't been tested using an ODataModel. I'm hoping it is my mistake.
So has anybody out there successfully managed to use this control connecting it to a Gateway OData service? If so please share your experience.
Thanks,
Brad

Hi Pauline,
Same issue I had, I switched to using a sap.m.list and handling the press as follows:
attachmentsList.bindItems(workItemPath + "/Attachments", new sap.m.StandardListItem({
                           type: sap.m.ListType.Active,
                           title: "{FileName}",
                           description: "{CreatedByName}",
                           icon: "sap-icon://doc-attachment",
//                         counter: "{FileSize}",
                      info: {path : "CreatedAt", formatter: dateTimeFormatter},
                      tap: function(oEvent){
                            var oContext = oEvent.getSource().getBindingContext();
                            var media_src = oContext.getProperty().__metadata.media_src;
                            sap.m.URLHelper.redirect(media_src, true);
                    }), new sap.ui.model.Sorter("CreatedAt", true));
So sap.m.URLHelper.redirect(media_src, true); is what loads the attachment.
See the full function handler:
function(oEvent){
function(oEvent){
              var oContext = oEvent.getSource().getBindingContext();
              var media_src = oContext.getProperty().__metadata.media_src;
        sap.m.URLHelper.redirect(media_src, true);
This should be enough if you only want to list and display the attachments, then you don't really need the FileUploader control as that is more advanced and handles upload, display, change and deletion of files.
I only needed to upload and display files, so I used a list to display it and created a separate upload button using the sap.ui.unified.FileUploader control.
Hope that helps.
Cheers,
Brad

Similar Messages

  • Has anyone been able to get a book's internal bookmark hyperlinks working when exporting the book as PDF?

    When a PDF-version of a book is viewed within Preview, bookmark hyperlinks do not work, but they do work on iPad.
    In this support page, Apple states that hyperlinks should work.
    Has anyone got a successful workaround that doesn't involve adding hyperlinks, one by one, via Preview?
    Cheers,
    Tim

    Hi Ken.
    By "Preview", I refer to the Apple Preview app on my iMac; 'Preview' displays the PDF but the hyperlinks within the PDF will not link through to their respective pages throughout the book. Each hyperlink displays underlines, and the 'hyperlink' mouse icon displays when hovering over a hyperlink. It's just that the links won't work. There are hundreds of bookmarks, so adding these manually from within 'Preview' is not a viable option.
    Any thoughts?
    Tim

  • Anyone know how to get the Nik Collection of plugins to work with PSCC?

    As above..

    Info from Nik:
    From Nik:
    On a Windows:
    1. Make sure all versions of Photoshop are closed.
    2. Run the Nik Collection installer from the file you received via email and downloaded. If you no longer have this file, you may email customer support ([email protected]) to have the file sent to you again.
    3. During the installation process when you get to the Host Application window, you will notice a plus sign to add an install location. Click that button and navigate to C:\Program Files\Adobe\Photoshop CC\Plug-Ins\.
    4. Complete the installation, then open Photoshop CC to ensure that the plug-ins have successfully been installed.
    On a Macintosh:
    1. Make sure all versions of Photoshop are closed.
    2. Run the Nik Collection installer from the file you received via email and downloaded. If you no longer have this file, you may email customer support ([email protected]) to have the file sent to you again.
    3. During the installation process when you get to the Host Application window, you will notice a plus sign to add an install location. Click that button and navigate to Mac HD|Applications|Adobe Photoshop CC|Plug-Ins and paste the Google folder into this location.
    4. Complete the installation, then open Photoshop CC to ensure that the plug-ins have successfully been installed.

  • TS1424 has anyone not been able to get the installer to properly load and get a message like: This installer is intended for 32 bit versions of windows. Please download and install 64 bit iTuines installer instead? and even if you uninstall and reinstall

    Has anyone not been able to get the iTunes installer to load properly and get a message like this: This iTunes installer is intended for 32 bit versions of windows. Please download and install 64 bit iTunes installer instead. I have tried repeatedly to get this to load, I have uninstalled iTunes completely and reinstalled and still get the same message. I have windows XP and a brand new ipod touch which I am trying to load.

    Yes, it's come up a number of times. If you look to the right under "more like this", you'll find threads that may offer useful suggestions.
    Regards.

  • I am getting a security code invalid error? everytime I try to download a app or update my current apps? I looked online and a few people are having the same issues anyone been able to get this resolved? Thanks

    I am getting a security code invalid error everytime I try to download a app or update my current apps? I looked online and a few people are having the same issues anyone been able to get this resolved? It's not just on Iphones either it's on all apple devices. I've called Apple customer service. I've wrote a complaint online as well so far no good.
    Any help would be much appreciated Love to all and thanks!

    I have done that thousands of times for my security code. Doesn't work and I have called the bank and they say no problem with my card. I have also tried useing different cards all together with no luck idk what else to do? Help!

  • Has anyone been able to get a repair/proper fix from Apple for their LCD?

    The more I use my Macbook Pro while traveling the more i notice the 'sparkly/grainy' display. Compared to the White/Black Macbook it is obviously noticable what i'm talking about - especially on white backgrounds. My question is - has anyone been able to get a proper repair/fix for this common problem for the Core 2 Duo 15" Macbook Pro's?
    I normally have my Macbook Pro connected to an external display but when i do take it along when I travel it stands out more and more every time.
    Is Apple going to issue a 'recall/repair' for their customers who bought their Macbook Pro's? What am I to do here, When i need to use my laptop when I travel I can't take the annoyance of using this LCD screen.
    C2D 2.16 2GB   Mac OS X (10.4.8)  

    Yes, I can CLEARLY see it, it's like wearing glasses that are filthy. The laptop is one week old and I could see it from after the 802.11n upgrade. This is not all that zoomed, really. To me it looks like a video memory problem, not a LCD problem. The problem is the same if I connect an external DELL monitor. Also very visible there. Also very visible if I change resolutions or number of colours. The main reason I believe it's a video memory thing is that when I move a window, it changes from white to, well... yellow and red. Check out: http://niklas.saers.com/MBP/MG8665.jpg That is why I am unsure if this is the kind of grain you are talking about. Can you confirm that this is the kind of problem you guys are seeing?
    PS, I use a Canon 20D with a 100mm f/2.8 macro lens.

  • Has anyone been able to get a mouse scroll wheel to work with a scrolling text box in authorware?

    Has anyone been able to get a scroll wheel to work with a
    scrolling text box in authorware? Is there any way to attach the
    hardware of a scroll wheel to a scrolling text in a piece? Sure
    would make things easier for the reader.

    I doubt it. Maybe using the WinCtrls.u32? But after a few
    tries years
    ago (before the WinCtrols.u32), I'd pretty much given up.
    Erik
    edwin e wrote:
    > Has anyone been able to get a scroll wheel to work with
    a text box in authorware?
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - eLearning
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    Authorware Tips!

  • Has anyone been able to get a canon mp 780 to scan in lion

    Has anyone been able to get a canon mp 780 to scan in lion. I have tried everything and nothing works.
    Image capture won`t recognize my printer either.

    People who need to SCAN & PRINT without a compatible driver from their manufacturer can use Apple's very basic "PRINT & SCAN" utility in System Preferences:
    Click the Apple menu ( ), and then click System Preferences .
    Click Print & Scan ( ).
    Click Scan , and then click Open Scanner .
    Click Show Details . The details of the scan display, including options to modify scan settings such as output type.Figure 2: Example of the Show Details scanning screen
    Change any settings as necessary, and then click Scan .
    The next window looks like this:
    Hope this helps

  • Has anyone been able to solve the forgotten recovery password?

    Has anyone been able to solve the forgotten recovery password?

    Rmattich wrote:
    I'm having the same issue.  The password is unavailable and I can't uncheck the encrypt password checkbox.  I don't care about the existing backups... I understand why without the password, the existing backups would be useless. I don't understand why I can't just  delete the existing backups, uncheck the box and move on. -- Is this a bug or something?  I have the phone, I am able to unlock and use the phone, why can't I reset the backup password in iTunes.
    You can do what you want, but you must erase your phone to do it. Just restore the phone using iTunes and set it up as a New phone. As it is new you can install whatever content you want to, then make an unencrypted backup of it.
    The reason you can't change your mind once you have an encrypted backup is to protect your private data. If it was possible to uncheck Encrypt Backup, then back up your phone, anyone who stole or found your phone could do this and thus have access to your private data from the new backup.

  • I have not been able to get the built-in iPhone 4S keyboard dictation to work. I talk into it, then tap "Done", then the phone "thinks" for a few seconds (the purple dots pulse and I see the network icon on the top bar spinning) and then nothing happens.

    I have not been able to get the built-in iPhone 4S keyboard dictation to work. I talk into it, then tap "Done", then the phone "thinks" for a few seconds (the purple dots pulse and I see the network icon on the top bar spinning) and then nothing happens.
    Siri is wroking fine

    I am experiencing exactly the same problem, today, and a reset, of all settings, did nothing to correct it.  Any suggestions would be welcome.  While dictation in all apps is out, Siri is working fine also. 

  • Qosmio F750-10N and Win8.1 - haven't been able to get the right BT drivers

    Hi,
    Since upgrading my HDD and installing Windows 8(.1), I haven't been able to get the right Bluetooth drivers for my Qosmio F750-10N.
    If I go through the download drivers section of the site, the drop down boxes for Language and region seem to be faulty so it won't show me any drivers.
    Tried installing a generic Toshiba Bluetooth stack but it doesn't seem to be able to recognise my actual Bluetooth device. Also tried going through the Atheros site without much luck.
    Please could someone help or possibly post a link to a download mirror.
    Thanks very much.

    Hi
    First of all it seems that Win 8.1 is not supported for Qosmio F750.
    Therefore I could be difficult to get BT working
    However, as far as I know the Qosmio F750-10N was equipped with an Atheros AR9285 WLan/BT combo card.
    This means that one module shares the WLan and BT and you need to install the Atheros BT Filter driver.
    Beside the BT filter installation you have to install the Toshiba System Driver for Win 8.1
    This system driver needs to be installed before BT filter driver.
    But as I said: Win 8.1 is not supported for this Qosmio unit and you will not find Win 8.1 drivers in the F750 driver download section.
    But you should try the drivers released for other, newer Qosmio series; i.e. X870
    Good luck

  • I recently bought a new macbook pro and set it up using the migration assistant and my mac mini.  I can't get the text message forwarding feature to work with both computers.

    I recently bought a new macbook pro and set it up using the migration assistant from my mac mini.  I can't get the text message forwarding feature to work with both computers.  It keeps saying that I only have 2 devices setup, my iPad and my macbook pro.  When I mess with the setting on my mac mini, it goes from saying that that is one of the devices to my macbook pro being the 2nd device.  I think that something happened as a result of my using the migration assistant and now it thinks that my macbook pro and my mac mini are one and the same computer.  Any ideas?

    Thanks, Sig.
    The old computer is a 2.6 Ghz Intel Core 2 Duo
    The new one is a 2.3 GHz intel core i7
    In going over this, thanks to "tallking it out" with you, I did discover the Text Edit problem.  Because I've still been unable to get the new computer text size (fonts or whatever) to match the old computer, I did not notice that the curser is now different--the line midway down the curser has to be placed on the line I am working upon, otherwise the edits go elsewhere on the page.  Now, with a bit of difficulty, I am able to get Text Edit to work correctly.
    If you have any ideas as to why my menu bar and Text Edit type are still so slow, I'd love to have them. 
    (I went through the process you suggested earlier, re my Trackpad preferences, and found no improvement.)

  • I am having difficulty: we are running a windows server 2003 - mail and outlook support 2007 and upwards, how do I get the brand new apple machines to work with the 2003 version of server

    I am having difficulty: we are running a windows server 2003 - mail and outlook support 2007 and upwards, how do I get the brand new apple machines to work with the 2003 version of server

    I may be way out, but do you know about this product, would it help integrate the Macs for you.
    https://www.thursby.com/sites/default/files/images/ADmitMacv8_SPD.pdf

  • I can not get the flash player plug in to work with Internet Explorer

    I can not get the flash player plug in to work with Internet Explorer

    Zoltan71 wrote:
    I just bought this computer. My Internet Explorer is version 11.0.1
    I have the box checked to Install new version automatically, but it has not done any upgrading.
    I can't get the computer to update anything as far as I can see.
    The flash plug in does work with the Crome browser but it will not work with Internet explorer.
    I looked in the manage add-ons and it says enabled.
    I also went into the safety tab and deselected
    Active X filtering.
    Restarted and still does not work.
    I need help.....
    Chrome uses a different and separate plug-in.
    There are things about IE you need to know, especially 11. Specifically:
    "User-Agent Strings"
    That doesn't mean a lot, I'm sure, but it's the root of your problems, and Flash Player has nothing to do with it.
    Microsoft "rewrote" the User-Agent Strings for the abomination they call their latest and greatest browser. User-Agent Strings are what websites use to identify the browser you're using and provide the proper content for it's browser engine, like ActiveX stuff, and Flash or HTML5 video. Thanks to the geniuses in Redmond, WA, the User-Agent Strings for IE11 (which has a Trident engine), ID it as either "Gecko" (Firefox) or "Webkit" (Chrome). Problem is: when the site the directs to the content for one of these two engines, the Trident engine in IE can't intepret it and the site then sees IE as an "unidentified" browser.
    The problem with an unidentified browser is that the plug-ins in that browser aren't recognized either, so even though you're up to date, it says you need the latest Flash Player when you use IE11. YouTube... has converted to HTML5 video so if it doesn't detect Flash Player, it can display HTML5 (MP4) video which requires no plug-in to play. Facebook can't do that, because HTML5 doesn't apply to games... only video.
    Microsoft has no plans to "fix" the mess they've created because they think it's a great idea to block you out of the websites you visit.
    They recommend using "Compatibility View" and pretending that you're using an older verison of IE... Problem with that is that it's seen limited success, and you have to enable it for EVERY page that has problems... individually.
    I'm not big on "pretending" so I recommend actually using another browser.
    Firefox (from Mozilla)
    Opera (from Opera)
    Safari (from Apple)
    Chrome (from Google)
    ANY of those will work where IE11 won't, with the Flash Player Plug-in (For all other browsers), and Chrome doesn't even need that because it has its own Flash Player plugin built in.

  • Does the new command 2 binary format work with Apple Push Notification Service? I receive an invalid response status code of 128.

    Does the new command 2 binary format work with Apple Push Notification Service? I am sending 2 messages with the same payload to 2 different devices. None of the messages display on either of the devices. It seems that at least 3 should have been displayed. For my first device, I received a response with an invalid status code of 128 and the message identifier is 2 indicating that the first message was OK. However no message was displayed on the phone. For the second device, I did not receive any error response, but no message was displayed on the device.
    Does ANS perform any validation on the message identifier? The Local and Push Notification Programmin Guide says the message identifier is:
    An arbitrary, opaque value that identifies this notification. This identifier is used for reporting errors to your server.
    I know that the device tokens are valid because the same tokens work when I use the legacy basic or enhanced formats. The phones display the messages correctly when I send to ANS using the old ANS message format.
    Here is the data and the response:
    Sent to ANS: 2 0 0 0 158 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 2 4 0 4 83 7 119 141 5 0 1 5 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 3 4 0 4 83 7 119 141 5 0 1 5
    ANS returned an error: 8 128 0 0 0 2
    Sent to ANS: 2 0 0 0 158 1 0 32 4 239 182 26 13 237 170 136 41 243 181 57 120 208 135 19 101 102 212 70 55 244 251 255 160 125 82 9 10 143 72 17 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 5 4 0 4 83 7 119 147 5 0 1 5 1 0 32 4 239 182 26 13 237 170 136 41 243 181 57 120 208 135 19 101 102 212 70 55 244 251 255 160 125 82 9 10 143 72 17 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 6 4 0 4 83 7 119 147 5 0 1 5
    ANS did not return a response.

    Hello, can you please help me ?
    You specified sample payload here:
    TerrellFromLockhart wrote:
    I finally got this to work. The picture in the Programming Guide is very confusing. The solution was to prefix every message's frame data with command 2 and that messsage's frame data length. Here is a sample:
    ANS frame: 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 2 4 0 4 83 7 199 195 5 0 1 10 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 3 4 0 4 83 7 199 195 5 0 1 10 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 4 4 0 4 83 7 199 195 5 0 1 10
    About to read response at Thu Feb 20 15:40:20 CST 2014
    SocketTimeoutException
    2 - is clearly command
    0 0 0 77 - frame length
    1 - item Id
    what's 0 32 ? According to this page https://developer.apple.com/library/ios/documentation/NetworkingInternet/Concept ual/RemoteNotificationsPG/Chapters/Commu…
    Item id  should be followed by item length. But item length is obviously greater than 32 because device token's length is 32. Can you please explain why 0 32 were used? and do you have any insight on item id meaning ?

Maybe you are looking for

  • How to have a value survive logout and destruction of the session

    Hi, Currently I'm facing the following challenge: For a customer we are building a webcenter portal app (version 11.1.1.6). Depending on where you come from, customer wants to have different styles and template. I have done this by adding a URL param

  • How do I download my 2nd library to my ipod

    How do I download my 2nd library to my ipod

  • Trouble loading images in Lightroom 2

    I am using lightroom 2 and have had no trouble loading (Raw format) images from my Cannon 50D but I picked up the Cannon G12 and lightroom 2 will not accept images from the G12 in Raw format. It will accept them as jpegs. Any ideas where the problem

  • IPC with JSR 168 portlets and WebLogic Portal 9.2.3

    I have seen examples in this forum indicating that you can implement IPC in JSR 168 portlets by doing the following: 1. Fire a custom event in the processAction() method of one portlet. 2. Handle the custom event in another portlet that is listening

  • Pop up menu moves from browser to browser

    How do I fix this problem? I the pop up menu I made keeps moving depending on what browser I open it with when I am done. What can be done about this? Is there a way to anchor the menu so that it is in the same place regardless of what it is opened i