View for files and links

Can we have a view to display all the files posted and all the links pasted on the chat window (Quick access). This would be specific to each group / individual. 

You are not going to find an 'exact' match in our existing classes. The rednering HOWTO(http://otn.oracle.com/products/jdev/howtos/jsp/renderers.html) provides enough information for implementing your readonly lookup field. If you look at the first renderer in this document, it uses a static lookup list. You can easily use a secondary view object for your lookup values. Here is the code from that document:
package myrenderers;
import oracle.jdeveloper.html.ReadOnlyField;
import oracle.jbo.Row;
import oracle.jbo.AttributeDef;
import java.util.StringTokenizer;
public class ListFieldRenderer extends ReadOnlyField
public ListFieldRenderer()
public String renderToString(Row row)
setValueFromRow(row);
AttributeDef aDef = getAttributeDef();
String sAttrValue = getValue();
String sList = (String)aDef.getProperty("DISPLAY_LIST");
if(sAttrValue != null && sList != null)
StringTokenizer tokens = new StringTokenizer(sList, ",", false);
while(tokens.hasMoreTokens())
String sEntry = tokens.nextToken();
String sValue = sEntry.substring(sEntry.indexOf('=') + 1);
String sKey = sEntry.substring(0, sEntry.indexOf('='));
if(sKey.equals(sAttrValue))
return sValue;
return super.renderToString(row);

Similar Messages

  • Upload file and link to sales order in SAP via rfc (C#)

    Hello all,
    In my company we have the possibility to attach files to sales orders, e.g. pdf files with the printing details.
    These files are added by the GUI user, this works fine.
    Now we have an extra order creation stream in which a pdf file has to be added to the SO without user interaction.
    In a previous question I had a little question about the linking, that has been solved, I will post the test program later.
    I now can link front end files (pdf's in this case) to the sales orders and it works fine.
    Now we are developing a frontend in C# (build by a third party) which creates a sales order via a RFC. We also want that RFC to include the PDF file and link it to the created order.
    In the interface of the RFC I included a table with 255 char lines. That is the same as in the example program. the problem is that our partner is yet unable to fill the interface in exact the same way as the example program does, so the linked pdf file is corrupted.
    Does anyone have hints how C# should fill the interface table, or how I can change the interface?
    code snippid table declaration for pdf table:
    IT_PDF     LIKE     ZETEX_TAB_PDF
    and
    structure ZETEX_TAB_PDF consists of
    LINE     CHAR255
    the sample program (see other topic on where I got it)
    REPORT  zzfb_brc LINE-SIZE 260.
    * Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    * Written By : Ram Manohar Tiwari
    * Function   : We need to maintain links between Business Object and
    *              the attachment.Attachment document is basiclally a
    *              business object of type 'MESSAGE'.In order to maintain
    *              links, first the attachment will be crated as Business
    *              Object of type 'MESSAGE' using Message.Create method.
    *              Need to check if we can also use FM
    *              'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
    *              than using Message.Create method.
    * I took this program and removed all the parts for adding URL's and
    * notes.
    * Include for BO macros
    INCLUDE : <cntn01>.
    * Load class.
    CLASS cl_binary_relation DEFINITION LOAD.
    CLASS cl_obl_object      DEFINITION LOAD.
    PARAMETERS:
    *  Object_a
       p_botype LIKE obl_s_pbor-typeid DEFAULT 'BUS2032',    "SO
       p_bo_id  LIKE obl_s_pbor-instid DEFAULT '0000757830', "example number
    *  Object_b
       p_docty  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       p_msgtyp LIKE sofm-doctp        DEFAULT 'EXT'     NO-DISPLAY,
    *  Relationship
       p_reltyp  LIKE mdoblrel-reltype DEFAULT 'ATTA'.
    TYPES: BEGIN OF ty_message_key,
            foltp     TYPE so_fol_tp,
            folyr     TYPE so_fol_yr,
            folno     TYPE so_fol_no,
            doctp     TYPE so_doc_tp,
            docyr     TYPE so_doc_yr,
            docno     TYPE so_doc_no,
            fortp     TYPE so_for_tp,
            foryr     TYPE so_for_yr,
            forno     TYPE so_for_no,
           END OF ty_message_key.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line,
           ls_doc_content TYPE soli-line.
    * Create an initial instance of BO 'MESSAGE' - to call the
    * instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    * Upload the pdf file, for now from the frontend, in the future from
    * the server.
    DATA:
    *  dsn(40) TYPE C VALUE '/usr/sap/trans/convert/1.pdf', "server location
    l_lines TYPE i. "filelenght
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename   = 'c:tsimple.pdf'
        filetype   = 'BIN'
      IMPORTING
        filelength = l_lines
      TABLES
        data_tab   = lt_doc_content.
    * no exceptions, the file is there in this example
    clear l_lines.
    loop at lt_doc_content into ls_doc_content.
    l_lines = l_lines + 255.
    endloop.
    compute l_lines =   l_lines
                      + STRLEN( ls_doc_content ).
    ** the coding for the server input, for later
    *OPEN DATASET dsn FOR INPUT IN BINARY MODE.
    *IF sy-subrc <> 0.
    *  EXIT.
    *ENDIF.
    *READ DATASET dsn INTO ls_doc_content.
    *WHILE sy-subrc EQ 0.
    *  APPEND ls_doc_content TO lt_doc_content.
    *  READ DATASET dsn INTO ls_doc_content.
    *ENDWHILE.
    *CLEAR ls_doc_content.
    *CLOSE DATASET dsn.
    * define container to pass the parameter values to the method call
    * in next step.
    swc_container lt_message_container.
    * Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' 'Some title'.
    swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
    swc_set_element lt_message_container 'NO_DIALOG'     'X'.
    swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' 'PDF'.
    swc_set_element lt_message_container 'DocumentSize'    l_lines.
    swc_set_element lt_message_container 'DocumentContent' lt_doc_content.
    swc_call_method lo_message 'CREATE' lt_message_container.
    * Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    * Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    * Now we have attachment as a business object instance. We can now
    * attach it to our main business object instance.
    * Create main BO object_a
    DATA: lo_is_object_a TYPE sibflporb.
    lo_is_object_a-instid = p_bo_id.
    lo_is_object_a-typeid = p_botype.
    lo_is_object_a-catid  = 'BO'.
    * Create attachment BO object_b
    DATA: lo_is_object_b TYPE sibflporb.
    lo_is_object_b-instid = lv_message_key.
    lo_is_object_b-typeid = p_docty.
    lo_is_object_b-catid  = 'BO'.
    *TRY.
    CALL METHOD cl_binary_relation=>create_link
      EXPORTING
        is_object_a = lo_is_object_a
        is_object_b = lo_is_object_b
        ip_reltype  = p_reltyp.
    * Check if everything OK...who cares!!
    COMMIT WORK.

    I woudl suggest you check ORDERS05 IDOC type (ORDCHG message type).
    FM - idoc_input_ordchg

  • Role Assignment Discovery Issue for Files and Folders through Sharepoint REST services

    To preface, I am a decided Sharepoint newbie in every sense. I am trying to use the Sharepoint REST services (Sharepoint 2013) to walk the folder and file structure of my Sharepoint server and, determine as I go, the Role Assignments (and subsequently
    Permissions) on those folders and files. I'm using an Administrator credentials and I'm actually able to successfully do it but I've run into some caveats. All the caveats begin with this; when I'm examining a folder, for example:
    /_api/Web/GetFolderByServerRelativeUrl('/sites/cmisdev/Development')/ListItemAllFields
    I receive either an empty list or an error response doc when following the link supplied for ListItemAllFields.  When following that kind of link for folders, I either get:
    <d:ListItemAllFields
    m:null="true"
    />
    or an error response document that says "The object specified does not belong to a list." When I hit the /ListItemAllFields endpoint for files, I receive a response with a link for Role Assignments which subsequently also works and I get the
    info I need. So, is this a bug? Why does the link returned from Sharepoint work for files and not folders? So, google, google, google, and I discover that there is another possible way to get at the Role Assignments (and that the object does, indeed, belong
    to a list!).
    If I know the Title (or the guid) of the folder in question, I can use the following endpoint:
    /_api/Web/Lists/GetByTitle('Development')
    If I use that endpoint, I get the information I would have expected to get from following /ListItemAllFields and the subsequent Role Assignments links all work and I get what I need. If there's a bug and this is how I have to work around it, that's fine
    but I have yet to discover how to dynamically determine the Title of a given folder nor am I sure if all Titles are supposed to be unique within a given Sharepoint server. I'm assuming that the folder name as represented in the server relative URL and the
    Title may be different and this is where my newbishness may start to shine if I'm misunderstanding what a "List" is supposed to be in Sharepoint. Anyway, I did find that I could use the Properties endpoint to perhaps get the Title, for example:
    /_api/Web/GetFolderByServerRelativeUrl('/sites/cmisdev/Development')/Properties
    gives me:
    <d:vti_x005f_listtitle>Development</d:vti_x005f_listtitle>
    whose value I assume I could then supply to the /GetByTitle endpoint and be golden. However, "vti_x005f_listtitle" just sounds a little too deep to be something I should be relying on but maybe that's kosher. That's part of what I'm trying to
    find out. Also, if there is a way to use the Sharepoint REST API to discover the guid of a given object, then I could look it up in that way.
    So, in summary:
    1. Am I going about getting folder Role Assignment information in the wrong way? Based on the CSOM examples I've seen, I believe I'm doing it correctly and that the answer to #2 below is a resounding "Yes!" :)
    2. Is it a bug if I'm not able to use /ListItemAllFields on folders using the server relative url?
    3. If I'm supposed to use GetByTitle as a workaround, am I discovering that Title correctly through /Properties? Seems quite circuitous and awkward. Are Titles required to be unique throughout a given Sharepoint server?
    4. If I'm supposed to use the guid, how can I use the REST interface to discover an object's guid? Once we get down to the Role Assignments and other links, the guid appears in those links but I don't know how to discover it independently if that's the
    path I should use to get the data I described above.

    Upon further research, I'll answer my own question for the benefit of some other potential future newbie.  The answer to question number 1 above is "Not exactly.".  The server relative URLs I was using corresponded to lists (which are
    returned as a collection through /_api/web/lists).  I was treating them mentally like regular folders.  That, coupled with the fact that accessing their data as I showed above returns a ListItemAllFields link, made me think that was the way to get
    the Role Assignments just as I would for files and, as it turns out, "real" folders and sub-folders created under these lists.  That was the other problem with thinking of these lists as regular folders.  So, ListItemAllFields works on
    all files and folders in a list.  However, if you want Role Assignments for the lists themselves, you can keep track of the Titles and\or Guids from the /_api/web/lists that you're interested in (in my case, all non-hidden "document library"
    type lists) and then access those Role Assignments as I discussed in questions 3 and 4 above.  For example, from the /_api/web/lists collection from my test server, the "Development" document library Role Assignments are accessable via /_api/Web/Lists(guid'cd242eeb-aafa-4efa-aecc-9bbdf8e3d459')/RoleAssignments
    or /_api/Web/Lists/GetByTitle('Development')/RoleAssignments.

  • Folder Options - View Hidden Files and Folders

    Hello,
    On this same laptop, there seems to be an issue with *Folder Options - View Hidden Files and Folders.*
    Each time i "check" that option to View - then i go back to verify/confirm the changes done - but the checkbox is "unchecked" again. Despite clicking on Apply and Ok to save the changes! The changes are never saved..
    I have used other laptops for this same option and it all worked fine.
    Please advise whether i need to apply or amend other settings for this to work?
    Regards.

    Hi
    > Therefore, i doubt the antivirus program is the causal factor here..
    I wouldnt say so.
    I mean normally Bitdefender shouldnt cause such a problem thats right but theoretically its possible. Such security software programs are really good and necessary on every computer with internet connection but due the high security it could maybe blocks some changes from Windows.
    In my opinion its worth a try to test it without Bitdefender. Alternative you can use AntiVir (freeware) and the Windows firewall. In my opinion a really good freeware solution.

  • How to get Coverflow view for pages and keynote?

    How do I  get Coverflow view for pages and keynote? Thanks.

    Coverflow works by clicking the  Coverflow view and then selecting the file. I've checked with Pages and Keynote both work perfectly. Perhaps you would post more info.

  • My safari won't let me view a pdf link, nor can I save it as a document. How can I view these pdfs and links?

    My safari won't let me view a pdf link, nor can I save it as a document. How can I view these pdfs and links?

    Have you installed Adobe Reader and its associated plugin? AFAIK, that's the preferred if not the only way to open PDFs in an embedded view within Safari.
    http://get.adobe.com/reader/

  • Is it possible that theseproperties are only available for files and not f

    Hello All,
    I have created few properties like ReqNo (takes Integer) and ReqDate (accepts Date). 
    I have set the above 2 properties as manadatory. Created a Group and added his goug in 'allgroups' such that I see a tab wherein I can fill in these properties.
    My questions is:
    <b>Is it possible that these properties are only available for files and not for folders</b>. The reason being that even if I create a new folder, I need to fill some values in the above two mentioned properties.
    These properties need to be mandatory and cannot make them optional.
    Please help me solve this mystery.
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu

    Hi Ritu,
    If you only want the property to be available for files and not folders you only enter data into the "Document Validity Patterns" field in the Property config.
    Regards
    Paul

  • Advanced permission for files and folders

    Advanced permission for files and folders
    Hi,
    Just wanted to raise a quick query on setting a unique NTFS Security permission.
    My requirement
    A shared folder with the below listed access for users
    A group of users should be able to create, read, rename files and folders inside a shared folder.
    The group of users should not have the right to delete any folder or file from the shared folder.
    This is what I have tried. 
    Gave modify permission to the Security group.
    On Advanced permissions, denied delete subfolders and file & delete permission.
    The effective permission for a user who is member of the security group over a file inside the shared folder is as shown.
    https://onedrive.live.com/redir?resid=835A81FDD1D9D9FC!109&authkey=!AGQFP11QTFaLHQM&v=3&ithint=photo%2cpng
    But while trying to rename or modify the file, getting the below error message.
    https://onedrive.live.com/redir?resid=835A81FDD1D9D9FC%21110
    Any help to achieve my requirement would be really appreciated.
    Thanks,
    JD

    Hi JD,
    Removing delete permission from the user or group brings a limitation that the user will not be able to rename the folder. This is because of the reason that the "rename" operation is also included within the "Delete" permission.
    Thus if you want to prevent user from deleting the shared file, it's also not allowed to rename.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Desktop like view of files and folders using Swing

    I have an application for upload/download of files from a server. The application is developed using swing and it works perfectly. Currently, the files and folders are displayed in a table view(using jtable) in which the file/ folder will be displayed with icon and extension in each row.
    I need to display these files and folders in a desktop like view. How can I implement this?
    Anees

    Any sample demos or links? Thats why people give you links to the Swing tutorial. The hope is that you will actually look at the Table of Contents and read the tutorial before you post a question.
    Or you could even read the JList API to find a link to the tutorial.

  • Problems with viewing RAW files and cannot update to ACR 5.7

    Hi
    I purchased a canon 7D today, then went to take some pictures and came home to find my RAW files are not readable by Bridge or Photoshop. I have done some research and it seems that the solution would be to update. I did this. However, two of my five updates failed to install, one of which is ACR 5.7. I then looked into this and have found the best option is to manual install, but this is confusing me as the directories is says to use do not exist on my mac. I don't know what to do, can anyone help? I just want to be able to view my files in Bridge and edit in ACR and photoshop!!!!!
    Thanks.

    If you download the 5.7 camera raw update from the following link,
    the installation should be automated:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4682
    MTSTUNER

  • Can you create two separate tile views for a Promoted Links List

    I have lots of pages on my site where i want the effect of the promoted links list tile view. However, i don't want the same links to show up on every spot i use it. Is there not a way to create separate tile views so you can create filtering conditions?
    Right now i am stuck having 5 separate lists with 5 items in each because of this limitation. Am i missing something? 
    I look forward to your responses.
    ~Zach

    There is an easy way to do this.
    Add columns to the Promoted Links list.
    Add a column named Page.
    Type in name of the page on which you would like this link to appear.
    Add a column named Row.
    Create a view filtered by page name and Row. Example: Show only when Page = HomePage AND Row = 1
    Create another view filtered by page name and another Row. Example: Show only when Page = HomePage AND Row = 2.
    Go the page you would like the links to appear. Edit the Page.
    Add Promoted Links app part (still not used to the app thing) and select your view for Row 1
    Add another Promoted Links app part and select the view for Row 2.
    Lather, Rinse and Repeat.
    Tamara Bredemus SharePoint Minion...working up to Maven

  • Default values for files and columns when adding a discoverer porlet

    Hi, i'd like to know how to configure the default value for numbers of columns and files when i add a new discoverer porlet in a portal page.
    The actual default value is 10 files and 6 columns and i always have to increase it to at least 100x100.
    Is there any config file where i can change that?
    I've found a configuration.xml in $ORACLE_HOME/discoverer/config/configuration.xml
    with a section
    <!-- Discoverer Servlet configuration. Defines behaviour of both
    discoverer/plus and discoverer/viewer servlets -->
    but couldnt find a parameter for those items.
    Thanks in advance.
    Daniel Perez

    I think triggers are the best device.
    Scott

  • HT201412 I cannot open the month of March 2013 in my iPad3 calendar. I can however see it in the year view for 2013 and I can view the daily and weekly calendars for March 2013. Any ideas what has gone wrong ? Thanks

    I have a new iPad3 and have found I cannot open the month of March 2013 when I tap on it. All other months open OK ! I can see March 2013 in the yearly view and I can open the individual days, and weeks, of March 2013 but I cannot see the whole month in the monthly view. When I try to open the monthly view for March 2013 it returns me to the start screen which shows all the apps etc and closes the Calendar app. Any guidance of what is going wrong and how it can be corrected. Thanks !

    Don't worry we have to start somewhere. Feel free to post your questions here, we learn from each other.

  • I have a 500 gb hard drive partitioned for files and time machine but when i connect it to my mac only the time machine one shows up

    well as the title says i have a 500gb hard drive with 2 partitions one with time machine and one for files it worked perefectly until yesterday only the time machine partition appeared in finder, i checked disk utility and both partitions appeared but the one for files appeared in grey and when i press mount an error comes up.

    The repair shop likely replaced a major circuit board on your MacBook Pro, so Time Machine thinks that you have a "new" computer and it wants to make a new complete backup of your Mac.
    You are going to have to make a decision to either add another new Time Capsule....or USB drive to your existing Time Capsule....and in effect start over with a new backup of your Mac and then move forward again.
    For "most" users, I think this is probably the best plan because you preserve all your old backups in case you need them at some point, and you start over again with a new Time Capsule so you have plenty of room for years of new backups.
    Or, as you have mentioned, you have the option of erasing the Time Capsule drive and starting all over again. The upside is that you start over and have plenty of room for new backups. The downside is that you lose years of backups.
    Another option....trying to manually delete old backups individually....is tricky business....and very time consuming. To get an idea of what is involved here, study this FAQ by Pondini, our resident Time Capsule and Time Machine expert on the Community Support area. In particular, study the pink box.
    http://web.me.com/pondini/Time_Machine/12.html
    Once you look through this, I think you may agree that this type of surgery is not for the faint of heart.  I would suggest that you consider this only if one of the other options just cannot work for you.

  • Scan for file and report back if it exists

    Hello,
    I am new to scripting and trying to find a way to search for a supposed virus file named wsr[any two numbers]zt32.dll on a large group of computers. I'm not sure how or where to use Get-ChildItem -Path C:\Users -Filter ?zt32.dll -Recurse | export-csv
    C:\scripts\output\test.csv in this script. 
    The below script keeps erroring out when I try messing with the Test-Path options and I'm not sure where to use Get-ChildItem or whatever to get this working. Thanks
    # Edit these variables to fit your enviroment
    # Set file to be tested for, put everything after c:\
    # “c:\Users\Default” is the example path
    $filetofind = ‘wsr*zt32.dll ‘
    # Hostnames TXT Location
    $hostnamestxt = ‘C:\scripts\computernames.txt‘
    # Destination file for Online Machines
    $onlinetxt = ‘C:\scripts\output\Machines_with_file.txt‘
    # Destination file for Offline Machines
    $offlinetxt = ‘C:\scripts\output\Offline_Machines.txt‘
    # Begin Executing Script – Do Not Edit Below This Line
    $computers = get-content “$hostnamestxt”
    write-host “———————————————-”
    write-host “Scanning hostnames from $hostnamestxt…”
    write-host “———————————————-”
    foreach($computer in $computers)
    ping -n 1 $computer >$null
    if($lastexitcode -eq 0)
    if(test-path “\\$computer\c:\users\* -include $filetofind”)
    echo “$computer” | Out-File -Append “$onlinetxt”
    write-host “File FOUND on $computer”
    else
    {write-host “File NOT found on $computer”}
    else
    echo “$computer” | Out-File -Append “$offlinetxt”
    write-host “$computer is OFFLINE/DID NOT RESPOND TO PING”
    write-host “———————————————-”
    write-host “Script has completed please check output.”
    write-host “Hosts with file output location – $onlinetxt”
    write-host “Hosts that were unpingable output location – $offlinetxt”
    write-host “———————————————-”

    Although this works, it appears to be very slow. Also, the Offline machines are not getting logged. Is there a way to speed this up? I am reading about how gci is slow over UNC, but I'm going to have to research this more. Thanks
    This makes the third time you have demanded someone custom build a solution for you.  You need to step back and think about what you are doing.  The solution was provided as you asked for it.  You lack of technical experience led you to ask
    fot a now unworkable solution so you are asking for more free consulting and a new solution.
    As Bill has pointed out this should be done with AV software as just finding the fiole will accomplish nothing.  If your system is infected you need to rake more aggressive steps and you should not be trying to write a scripted solution for this kind
    of thing aunless you have the technical sjkills to understand what it is you are doing.
    All remote scan methods are very slow.  To do a local scan requires emoting to be installed and that you know how to use it,  Once remoting is installed a single line will get you the file existence.  Adding an AsJob will get you concurrent
    scanning.  You will need to learn how to use PowerShell and WMF remoting to proceed with this.  An AV scanner 2would be more valuable and it would protect you in the future.
    Also as I posted before this is a very weak construct for file scanning on a network.
    $g = get-childitem \\$computer\c$\user\*
    -recurse -ErrorActionsilentlycontinue
    |? {$_.name
    -match "wsr[0-9][0-9]zt32.dll"}
    The following will be much faster.
    $g = get-childitem \\$computer\c$\user\* -Include
    wsr*zt32.dll -recurse
    -ErrorActionsilentlycontinue
    ¯\_(ツ)_/¯

Maybe you are looking for