IDK : How to retrieve the kd document's icon

Hello.
I am using ALUI G6 portal and IDK.
I want to list all the documents from a specific kd folder and display their icon (this icon is based on the content type) using the IDK.
When performing a search, I can get the icon URL using :
ISearchResult.getFieldAsString(PlumtreeField.ICON_URL)
Is it possible to retrieve this same information from an IDocumentManager ?
Thanks for your help.

Hello Joel.
Thanks for your reply.
Indeed I can limit the PortalSearchRequest, and if it's not possible to display the documents icon using the IDocumentManager then I will use it.
The truth is I don't like to use a feature to perform something it wasn't designed to : I want to use the PortalSearchRequest if the user needs to perform a search. I do know where the documents are, therefore no need to search.
However, most of times the end justifies the means, so I'm pretty sure I will surrender to the PortalSearchRequest.
Ideas and opinions are welcome.

Similar Messages

  • I set up my new iPad, then deleted the Pages documents on my old iPad, but this had the effect of deleting them on my new iPad too because they are synced. How do I retrieve the deleted documents?

    I set up my new iPad, then deleted the Pages documents on my old iPad, but this had the effect of deleting them on my new iPad too because they are synced. How do I retrieve the deleted documents?

    Sorry no. That's how it works.
    Check if you still have an old backup and do a restore otherwise it's gone.

  • How do i retrieve the word document format

    I write a java program which writes a word document in to a BLOB in oracle database. and i retrieve the word document from the database and flush the output to a word document in local path. i do get the output and the word document is saved to my local path, but when i try to open the document it opens ina junk format which cannot be read.. how to preserve the format of the document??
    here is the sample code..
    I open a connection.......
    File fileIn     =     new File("C://input.doc");
    FileInputStream     finput     =     new FileInputStream(fileIn);
    BufferedReader br     =     new BufferedReader(new InputStreamReader(finput,"Cp1252"));
    String lStrDoc_name     =     "1011";
              Conn.setAutoCommit(false);
              String lStrQuery     =     "insert into TESTPDF (" +"DOC_NAME,"+"DOCUMENT,"+"DOC_URL) "+" values(?,?,?)";
              pStmt = Conn.prepareStatement(lStrQuery);
              pStmt.setString(1,lStrDoc_name);
              pStmt.setBlob(2,newblob);
              pStmt.setString(3,"C://testing.doc");
              pStmt.executeUpdate();
              pStmt.close();
              Conn.commit();
              Statement     st     =     Conn.createStatement();
              ResultSet rs= st.executeQuery("select DOCUMENT from TESTPDF where DOC_NAME = " + lStrDoc_name + " for update");
              if(rs.next())
                   oracle.sql.BLOB blob=((oracle.jdbc.driver.OracleResultSet)rs).getBLOB(1);
                   System.out.println("BLOB-------->"+blob);
                   OutputStream outbb=blob.getBinaryOutputStream();
                   for(int i = 0; i < fileIn.length(); i++) {
                        outbb.write(br.read());
                   outbb.flush();
              rs.close();
              Conn.commit();
    Later i read the blob and store my output...
    the code is as follows....
    String lStrQuery     =     null;
              String lStrDoc_Name     =     "1011";
              String lStrDoc_Url     =     null;
              Blob newBlob     =     null;
              InputStream     fInput     =     null;
              BufferedReader br     =     null;
              FileOutputStream     fOutput     =     null;
              lStrQuery     =     "Select * from TESTPDF where DOC_NAME=" +lStrDoc_Name;
              try {
                   pStmt     =     Conn.prepareStatement(lStrQuery);
              } catch (SQLException e2) {
                   // TODO Auto-generated catch block
                   e2.printStackTrace();
              try {
                   rs = pStmt.executeQuery();
                   if(rs.next())
                        lStrDoc_Name     =     rs.getString(1);
                        newBlob               =     rs.getBlob(2);
                        lStrDoc_Url          =     rs.getString(3);
                        if(newBlob != null)
                             fInput = newBlob.getBinaryStream();
              } catch (SQLException e3) {
                   // TODO Auto-generated catch block
                   e3.printStackTrace();
              String lStrOutputFileName     =     "C://"+lStrDoc_Name+"testing.doc";
              try {
                   fOutput     =     new FileOutputStream(lStrOutputFileName);
              } catch (FileNotFoundException e5) {
                   // TODO Auto-generated catch block
                   e5.printStackTrace();
                   byte b;
                   try {
                        while ((fInput.read()) > -1) {
                             b = (byte) fInput.read();
                             fOutput.write(b);
                   } catch (IOException e4) {
                        // TODO Auto-generated catch block
                        e4.printStackTrace();
    The word document is stored in my local path.. but iwas not able to read the document. it opens in some ascii format..
    Your help is appreciated..

    BufferedReader br = new BufferedReader(new InputStreamReader(finput,"Cp1252"));Preserving the format would include not mangling it by using a Reader to read it. If you want to preserve it byte for byte then only use InputStream and OutputStream.

  • How to findout the clearning document number based on the reference

    Hi all
    we  need to findout the clearning document number based on the reference number in financial transaction code.
    basically we know how to retrieve the data from table level using BKPF without non primary key as XBLNR but
    we  want to know is this any function module to retrieve the document number based on the reference number like XBLNR.
    Please confirm.
    Thanks
    K.Gunasekar

    you can get it from BSAD too. but again its not a primary key

  • How to retrieve the multiple rows data on PDF form in a web service method using WSDL DataConnection

    How to retrieve the multiple rows data on PDF form in a web service method using WSDL DataConnection.
    I have a multiple rows on PDF form. All rows have 4 textfields. I want to submit the multiple rows data to a method defiened in webservice.
    Unable to retrieve the data in multiple rows within webservice method.

    Hi Paul,
    I'm now able to save the retrieved xml in a hidden text field and create dynamic table, and I'm able to fill this table from the XML, but the problem is that I could not find the correct way to loop on the xml, what I'm trying to say, the table will have number of rows with the data of the first row only, so can you tell me the right way to loop on the xml!
    this is my code
    TextField1.rawValue=xmlData.document.rawValue;
    xfa.datasets.data.loadXML(TextField1.rawValue, true, false);
    for(var i=0; i<count; i++)
    xfa.form.resolveNode("form1.P1.Table1.Row1["+i+"].Num").rawValue = xfa.datasets.data.record.num.value;
    xfa.form.resolveNode("form1.P1.Table1.Row1["+i+"].Name").rawValue = xfa.datasets.data.record.name.value;
    Table1.Row1.instanceManager.addInstance(true);
    Thanks
    Hussam

  • "How to retrieve deleted Pages document."

    How to retrieve deleted Pages document? Thanks.

    If you have a Mac that is signed into your account and you are using Time Machine to back up your Mac, you can recover the deleted document using Time Machine.  Otherwise, without a backup souce there is no way to recover it.

  • How to retrieve the stacks icon on the dock?I accidentally put it in the trash.

    how to retrieve the stacks icon on the dock?i accidentall put it in the trash.

    Find the folder it linked to in the Finder and drag that to the right of the Dock's divider line. It'll most likely be either the Downloads or Documents folder in your home folder, which is accessible from the Finder's Go menu.
    (79141)

  • How to retrieve the values from a table if they differ in Unit of Measure

    How to retrieve the values from a table if they differ in Unit of Measure?

    If no data is read
    - Insure that you use internal code in SELECT statement, check via SE16 desactivating conversion exit on table T006A. ([ref|http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa0122493111d182b70000e829fbfe/frameset.htm])
    If no quanity in result internal table
    - There is no adqntp field in the internal table, so no quantity is copied in itab ([ref|http://help.sap.com /abapdocu_70/en/ABAPINTO_CLAUSE.htm#&ABAP_ALTERNATIVE_1@1@]).
    - - Remove the CORRESPONDING, so quantity will fill the first field adqntp1.  ([ref|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_WA.htm])
    - - Then loop at the internal table and move the quantity when necessary to the 2 other fields.
    * Fill the internal table
    SELECT msehi adqntp
      INTO TABLE internal table
      FROM lipso2
      WHERE vbeln = wrk_doc1
        AND msehi IN ('KL','K15','MT').
    * If required move the read quantity in the appropriate column.
    LOOP AT internal_table ASSIGNING <fs>.
      CASE <fs>-msehi.
        WHEN 'K15'.
          <fs>-adqnt2 = <fs>-adqnt1.
          CLEAR <fs>-adqnt1.
        WHEN 'MT'.
          <fs>-adqnt3 = <fs>-adqnt1.
          CLEAR <fs>-adqnt1.
      ENDCASE.
    ENDLOOP.
    - You could also create another table with only fields msehi and adqntp and then collect ([ref|http://help.sap.com/abapdocu_70/en/ABAPCOLLECT.htm]) the data to another table.
    Regards,
    Raymond

  • How to Retrieve the Selected Values from selectOrderShuttle using ADF 11g

    Hi Every One,
    Does anyone has idea how to retrieve the selected Items using shuttle and Order of the items using 'SelectOrderShuttle' component ?
    Thanks

    shuttle's valuechangeevent would fire when you shuttle items back and forth.
        public void selectOrderShuttle1_valueChangeListener(ValueChangeEvent valueChangeEvent) {
            ArrayList list = new ArrayList(Arrays.asList(valueChangeEvent.getNewValue()));
            if (list != null){
                for (int i=0; i<list.size(); i++) {
                    int l = list.size()-1;
                    val = list.get(l).toString(); //returns , delimited string
                    if (val != null){
                        val = val.replaceAll("[\\[\\]]", "");
                        StringTokenizer st = new StringTokenizer (val, ",");
                        int nto = st.countTokens ();
                        for (int j = 0; j < nto; j++)
                            String token = st.nextToken ();                     
                ..........

  • How to clear the open documents in case if document currency and local curr

    Hi,
        Can anyboday advise how to clear the open document of a particular vendor for a particular company code. Here the issue is that balace is netted to Zero in the document currency but not in the local currency. The document was posted in Currency CAD and the local currency is GBP.
    When i check the FBL1N, there is it showing net balance is ZERO, but document is still in open
    status. I tried using Transaction code F-44, but it is not allowing me.
    Can anyboday advise how to perform this. Points will be awarded.
    Regards,
    Sree.

    Hi,
    In the Company code global parameters(OBY6),select the check box "NO FOREX RATE DIFF.WHEN CLEARING IN LC"
    and try clearing again.(You can have a F1 help on the check box to see what exactly it is).
    Hope this will resolve
    Assign points if useful
    Thanks
    Aravind
    Edited by: Aravind Aitipamula on May 22, 2008 1:36 AM

  • CIN: How to check the material document posted without excise invoice

    Hi Guru,
    Please advise how to check the material document posted without excise invoice.
    I have tried tcode J1I7 but it seems start to collect the excise invoice first and then material document.
    But my case is to find the material document WITHOUT excise invoice for internal tracking purpose.
    At the moment we start from tcode MB51 to get the list of material document and check in J_1IEXCHDR / J_1IEXCDTL
    Best regards,
    Pakorn

    Hi,
    Try creating a Query in Tcode SQVI by combining tables MKPF and J_1IEXCHDR/J_1IEXCDTL for your requirement.
    Check these threads how to create Query.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6018c1ae-8c44-2d10-6ea9-c3fad2c82880?QuickLink=index&…
    http://ptgmedia.pearsoncmg.com/images/9780672329029/samplechapter/0672329026_CH03.pdf
    Regards
    Binoy

  • To retrieve the PRT document (a PDF file) and insert the doc in PM order

    Hello guys,
    I have a challenging task in from printing as follows,
    By using TC: IW3D we get print preview of PM Order Set (PM Print Program: YIPRJT01), currently the PRT document number prints in the PM Order. Now we have to insert the PRT documents (a PDF file) into the PM Order set rather than printing the PRT document number ( By using TC: IW33 by going OPERTIONAL TAB we will get the PRT document(a PDF file))
    The requirement is to retrieve the PRT document (a PDF file) and insert the document in PM  order set with out navigating separately by using the TC: IW33.
    If you run the script in the print preview we can able to see PM the order set along with the PRT document (a PDF file).
    Thanks & Regards
    Vishnu

    I'm also trying to print PRT document with shop papers and still not able to do so. I selected "P" for print on the control key and it should print but still didn't print.
    If I understand it right, I think you are trying to do the same.
    Have you resolved this issue ?
    Thank you,
    Sam

  • How to retrieve the vendor number during creation of Purchase Order?

    Dear SAP experts,
    For our Purchase Orders, during PO creation (t-code ME21 or ME21N) we want to achieve the following:-
    1) default the delivery address to our plant A address if the vendor is local and
    2) default the delivery address to our plant B address if the vendor is foreign.
    At the moment, we are trying to use the user exit enhancement "MMDA0001" to achieve the above.
    The problem is how to retrieve the vendor number from the screen so we could pass the vendor number to ZXM06U32 to check the ktokk field in LFA1 table in the whether the vendor is foreign or local.
    Thank you in advance.
    Regards,
    Alex

    u can do one thing, create 2 partner function, like 1 for local, and second for import vendor.
    or make 2 batch  n activate vendor batch and make mandatory field from SPRO. 
    then goto SHD0, and do one by one step. first time take 1st requirement and second time take second . like that make two variant .
    i dont know how much it will be helpful. bt i want to suggest smth like that only.
    or, go for ABAPER help
    thanks
    nisha

  • My music files etc were all located on my old laptop which was stolen. I have just plugged my iphone in to my new computer and it has deleted all my files. Has anybody got any ideas on how to retrieve the files?

    My music files etc were all located on my old laptop which was stolen. I have just plugged my iphone in to my new computer and it has deleted all my files. Has anybody got any ideas on how to retrieve the files?

    WINDOWS?
    Connect the iPod to your PC. If iTunes starts syncing (ie erasing) your music automatically, hit the X in the upper right hand corner of iTunes display, to the left of the search box, to stop it.
    In Control Panel, Portable Media Devices, double-click your iPod.
    In the Tools menu -> Options, in the View Tab, check "Show hidden files and folders."
    Navigate to the Music folder. On my 'pod, the full path is
    Portable Media Devices\NAME of IPOD (F:)\iPod_Control\Music
    Select all the music folders, and drag and drop them into a folder on your hard drive, or directly into iTunes.
    And you're done! The iPod music folder structure is strange and inexplicable, but once you move your files into iTunes you can set it to automatically organize your folder by artist and album to clean that up. (To do this, in iTunes Edit menu, choose Preferences and in the Advanced tab, check "Keep iTunes Music Folder organized."
    might be out of date worth a try

  • How to retrieve the data from SAP-BAPI by using VB Code

    Hi ,
    I am new to BAPI.
    V have created an application in Visual Basic with the following fields
    EmpNo , EmpName, Addr1, Addr2, City and Phone (Only for Test)
    We have written the code for SAVING the data into SAP. Already we have
    constructed a table with the respective fields in SAP.
    For that we ourself created our own BAPI Structure / Function Group /
    Function Module/ Business Object - RELEASED related elements.
    1)Established the connection successfully.
    2)Stored the data into SAP Successfully and v r in need of
    3)HOW TO RETRIEVE THE DATA FROM SAP (USING GETLIST.....GETDETAIL....)
    Following is the code :
    'BAPI Structure  : ZBAPIEMP
    'Function Group  : ZBAPIEMP
    'Function Module : ZBAPI_EMP_CREATEFROMDATA
    'Business Object : ZBAPIEMP
    'Function Module : ZBAPI_EMP_GETLIST
    Dim bapictrl As Object
    Dim oconnection As Object
    Dim boEmp As Object
    Dim oZEmp_Header As Object
    Dim oImpStruct As Object
    Dim oExpStruct As Object
    Dim oreturn As Object
    Dim x As String
    Private Sub Form_Load()
    Set bapictrl = CreateObject("SAP.BAPI.1")
    Set oconnection = bapictrl.Connection
    oconnection.logon
    Set boEmp = bapictrl.GetSAPObject("ZBAPIEMP")
    Set oZEmp_Header = bapictrl.DimAs(boEmp, "CreateFromData", "EmployeeHeader")
    Set oImpStruct = bapictrl.DimAs(boEmp, "GetList", "EmployeeDispStruct")
    End Sub
    Private Sub cmdSave_Click()
        oZEmp_Header.Value("EMPNO") = txtEmpNo.Text
        oZEmp_Header.Value("EMPNAME") = txtEmpName.Text
        oZEmp_Header.Value("ADDR1") = txtAddr1.Text
        oZEmp_Header.Value("ADDR2") = txtAddr2.Text
        oZEmp_Header.Value("CITY") = txtCity.Text
        oZEmp_Header.Value("PHONE") = txtPhone.Text
        boEmp.CreateFromData EmployeeHeader:=oZEmp_Header, Return:=oreturn
        x = oreturn.Value("Message")
        If x = "" Then
            MsgBox "Transaction Completed!..."
        Else
            MsgBox x
        End If
    End Sub
    Private Sub cmdView_Click()
    End Sub
    COULD ANYBODY GUIDE ME, HOW TO RETRIEVE THE DATA FROM BAPI, FOR THE WRITTEN CODE.

    I didn't seen any other answers but here's how it's been done previously in our organization for a custom BAPI. In this example, we give material and language to return the part description. It's not specific to your project but may give you ideas..
    -Tim
    Option Compare Database
    Dim SAPLOGIN As Boolean
    Dim FunctionCtrl As Object
    Dim SapConnection As Object
    Sub SAPLOGOUT()
    On Error GoTo LogoutFehler
        SapConnection.logoff
        SAPLOGIN = False
    Exit Sub
    LogoutFehler:
        If Err.Number = 91 Then
            Exit Sub
        Else
            MsgBox Err.Description, vbCritical, "Fehler-Nr." & CStr(Err.Number) & " bei SAP-Logout"
        End If
    End Sub
    Function SAPLOG() As Boolean
    'Verbindungsobjekt setzen (Property von FunctionCtrl)
       Set FunctionCtrl = CreateObject("SAP.Functions")
       Set SapConnection = FunctionCtrl.Connection
    'Logon mit Initialwerten
       SapConnection.Client = "010"
       SapConnection.Language = "EN"
       SapConnection.System = "PR1"
       SapConnection.SystemNumber = "00"
       'SapConnection.Password = ""
       SapConnection.GroupName = "PR1"
       SapConnection.HostName = "168.9.25.120"
       SapConnection.MessageServer = "168.9.25.120"
         If SapConnection.Logon(0, False) <> True Then  'Logon mit Dialog
             Set SapConnection = Nothing
             DoCmd.Hourglass False
             MsgBox "No connection to SAP R/3 !"
             SAPLOGIN = False
             SAPLOG = False
             Exit Function
          End If
        SAPLOG = True
    End Function
    Function MatDescr(MatNr As String)
    Dim func1 As Object
    Dim row As Object, X As Integer, ErsteNr As String
    Dim DatensatzZähler As Long
    Dim RowField(1 To 50, 0 To 1) As String, RowLine As Long
        If Not SAPLOGIN Then
            If Not SAPLOG() Then
                MsgBox "No connection  to SAP !", 16
                SAPLOGOUT
                Exit Function
            End If
        End If
    ' Instanziieren des Function-Objektes
    Set func1 = FunctionCtrl.Add("Z_BAPI_READ_MAKT")
    ' Export-Paramter definieren
    func1.exports("MATNR") = MatNr
    func1.exports("SPRAS") = "EN"
    DoEvents
    If Not func1.call Then
        If func1.exception <> "" Then
            MsgBox "Communication Error with RFC " & func1.exception
        End If
        DoCmd.Hourglass False
        SAPLOGOUT
        Exit Function
    Else
      MatDescr = func1.imports("MAKTX")
    End If
    If MatDescr = "" Then
        MatDescr = "PART NO. NOT FOUND"
    End If
    End Function

Maybe you are looking for

  • Maximum file size for importing into Premiere Pro CS6

    Hi, I'm considering recording raw video, no compression at 720p, 30 fps for 20-30 min.  This woudl result in a file that is close to 80 Gbytes.  I'm wondering what the maximum file size for importing into premiere Pro is and if I need to split this f

  • Tables for Transformation's

    Hi friends, I'm using BI 7.0  and some DataSource's are mapped like DatsSource <>Infosource and some are DataSource<>Datataget in Transformations, now I want to know what are tables which are having all mapping details in BI 7.0 Need Tables for : Dat

  • Browser problems in Yosemite

    I bought a new 15-inch MacBook Pro Retina (2,5ghz, 16gb memory) a week or so ago and I'm having incredible trouble with browsers. I use Chrome, but since switching to the new machine from an older 15-inch MacBook Pro running Mavericks, it has been vi

  • Package AIR app as Appx for Windows Store

    Has anyone successfully packaged as AIR app as an Appx (or similar) to submit to the Windows Play Store? The process looks relatively straight forward (To make a Metro Appx Package from scratch, you must first -), but not so fast... The first step is

  • Oracle Procedure + Object

    Hi, how it's possible to get an user defined Oracle Object with a procedure? Always I get the failure: Unsupported Oracle data type USERDEFINED encountered. my code: string sSQL = "begin beleg_read(out_beleg,in_stapel_nr);end;"; OracleParameter p1 =