2 Replies Latest reply on Jan 23, 2013 2:58 AM by KMunichev

    File name issue when passing it from LiveCycle process to flex


      Hi all.


      I have a LC process which returns a document. For test purposes its name just hardcoded into process. I want to create a flex application that shows a window im browser with open/save buttons for that file. All works great but an original name of the file changes to something strange for unobvious (for me) reasons.


      Result of executing process at Workbench. At this point all seems to be good.


      A flex function that gets a document. All works absolutely similar to this example.


      private function resultHandler(event:ResultEvent):void { 

                         var res:Object = event.result;

                         var docRef:DocumentReference = res["OutDoc"] as DocumentReference;

                                              var urlRequest:URLRequest = new URLRequest(docRef.url);




      The result of invoking this is a next window:


      If I press open button, file opens perfectly. File extension always passes well (I tested .xlsx and .txt). But I don't know what happens with its name. It always different even if I just run my application two times in row without any modifications. I tried to set it manually by passing the name separately in another variable but didn't find any suitable methods or fields in DocumentReference class. I almost sure that solution is very easy but still didn't find it.


      Any ideas?