How to retrieve list of iviews in a folder in pcd through webdynpro -- ASAP

Hello,
The requirement is to build an application in webdynpro which can retrieve the names of the iviews present in a specific folder.
Can anyone help me out in this regard as to how to approach.
Thanks
*points are rewarded

Hi,
Here is the excellent document / blog written by one of my colleague. i hope with this you will solve you issues
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401
oh... sorry.... but its not using Web dynpro.
check this
Retreive a list of workets, iViews, pages from Roles
regards,
Pradeep
Edited by: pradeep bondla on Jul 15, 2008 6:52 AM

Similar Messages

  • How to read list of all files in folder on application server?

    How to read list of all files in folder on application server?

    Hi,
    First get the files in application server using the following function module.
        CALL FUNCTION 'RZL_READ_DIR_LOCAL'
          EXPORTING
            name     = loc_fdir
          TABLES
            file_tbl = int_filedir.
    Here loc_fdir contains the application server path.
    int_filedir contains all the file names in that particular path.
    Now loop at int_filedir.
    OPEN DATASET int_filedir-name FOR INPUT IN TEXT MODE ENCODING  DEFAULT MESSAGE wf_mess.
    MESSAGE wf_mess.
        IF sy-subrc = 0.
          DO.
            READ DATASET pa_sfile INTO wf_string.
            IF sy-subrc <> 0.
              EXIT.
    endif.
    close datset int_filedir-name.
    endloop.

  • How to retrieve List contents?

    Yes! I've searched the forum already, but I see no clear answer or maybe it's just that I'm new to Java and can't quite understand everything...
    Somewhere on the application a List is filled with data. Now say I want to print the contents of this List, (not the object reference), how do I do it? I know how to loop it with hasNext and stuff, but I don't know how to view its real data! Is there a simple way to do it?
    I've tried using methods like Iterator, listIterator, toString, get etc... but no joy :(
    I don't even know if that's how it's done! Please help! Thanks in advance

    List myList = new ArrayList();
    myList.add("Hello");
    myList.add("World!");
    for(Object o : myList) {
    System.out.println(o.toString());
    }A couple of side note on the above in case the OP sees it:
    The toString() call on 'o' is redundant, as println(Object) will implicitly invoke the toString() method on the parameter.
    To just print the contents of a List, it would be more simple to just do:
    System.out.println(myList);
    Again, the toString() method is implicitly invoked (on the ArrayList object in this case), which is implemented to iterate over itself, returning a String containing each element's toString().

  • How to retrieve personal folders created in email folder list

    I have previously created personal folders in the email directory & saved invoices etc. in it under company names.
    Our computer was recently repaired & everything had to be backed up & resaved onto it again.
    When we got it back there were no personal folders in the email directory any more. When I rang the company who fixed the computer, they said there were no folders saved, therefore none for them to retrieve & put back onto our computer.
    There are some very important files in these folders - Is there any way to find them?

    re:'' When I rang the company who fixed the computer, they said there were no folders saved,''
    As you do not say whay they were 'fixing', I'm not sure what they did to the computer. If they reinstalled the OS, then the computer was wiped clean and everything was deleted.
    If they only backed up standard Windows folders then they would not have backed up anything any other program (not Windows) data, is stored in '''Appdata Roaming''' folders.
    Appdata folders are hidden by default, but the technicians should have known this, as it is standard.
    It sounds like they did not backup your Thunderbird profile or any emails.
    I have come across 'technicians' who have no idea that non Windows applications store data in the Appdata folder. Hence why it is always a good idea to do all your backups yourself.
    You could ask to see what files they backed up, but it is possible they have not kept that information. If they still have that information, then you need to look for any files saved in this directory:
    C:\Users\Windows user name\AppData\Roaming\Thunderbird\Profiles\Profile name\
    If they did not save your Profile and you have not kep a copy/backup of your own Profile, then you have a problem.
    Therefore, the two questions you need to ask the people who fixed the computer are:
    '''Q1: '''Did they completely wipe the computer and reinstall the OS?
    If yes, then you know there is nothing hidden on the computer as it was wiped clean.
    '''Q2:''' Can they supply a copy of all the folders and files they backed up?
    If yes, then you could look to see if they actually did backup this location:
    C:\Users\Windows user name\AppData\Roaming\Thunderbird\Profiles\Profile name\
    This would prove if they backed those files up and also if they did back them up whether they really were empty.
    '''Q3: '''More specifically - Did they backup Appdata\Roaming folders?
    If they failed to backup that location, then you have lost that information and may wish to take it further with them. I do not know what the contractual agreement was with them, but if they lost your data and they were supposed to have backed everything up, then you may have recourse.
    I suggest you check the T's & C's to see if they do not accept any loss of data as this is something deemed as your responsibility. If they claim to backup all your files, then files and folders in that location should have been backed up. Then they could prove that those files and folders were empty.

  • How to retrieve sharepoint list data and show it on excel-addin using C#

    Hi,
    we have a sharepoint list where all students are present. we wanted to get the data from the list and show it via excel addin (VSTO) (something like save,retrieve buutons) . we have some more business logic which need to be performed before the data is retrieved
    . once data is shown on excel , user modifies it and update/save the record back to sharepoint.
    can you please give some samples and suggest any links to start with development.
    Thanks
    chaitu

    Hi chaituatp,
    For this requirement, I would suggest you to get familiar with how to create VSTO applications, and how SharePoint object model works. Here are some sample code about this:
    How to: Retrieve List Items using JavaScript:
    http://msdn.microsoft.com/en-us/library/hh185007(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/ee534956(v=office.14).aspx
    VSTO application show data in datagridview:
    http://stackoverflow.com/questions/16926275/simple-example-of-vsto-excel-using-a-worksheet-as-a-datasource
    Thanks,
    Qiao
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Qiao Wei
    TechNet Community Support

  • How to retrieve full flash solution from WSP if not than how to retrieve ascx files from Template folder in SharePoint 2013 ?

    How to retrieve ascx file from the Template folder in SharePoint2013
    My issue is, I have WSP only so I changed into zip and got my all web parts and also one dll file after that decrypted dll and got some C# code
    mixing with some system generated code but not ascx file that is for front-end part. So my question is how we can retrieve full flash solution if not, at least ascx files So if we were on SharePoint 2010 we could have got those file from __Template__
    folder but It’s on SharePoint 2013 and not able to get ascx.
    If we can do so, than will be easy to get the task to be done
    Suggestions would highly be appreciated. Thanks in Advance.
    Ashish

    Hi Amit,
    you can not move specific changes from Dev to production.
    but you can follow this process to make your workflow as it is as in Dev:
    Create a new workflow on the new list in Product.
    Create at least one step, one condition and one action in this workflow.
    1. In Dev server open your .xomal file as XML and copy the entire contents.
    2.In Production server Open your .xoml file as XML and Paste the entire contents
    3. repeat this operation for the xoml.rules file
    4.Double click the .xoml file for the new workflow to open the workflow in the Workflow Designer and click Check Workflow to verify no errors and then click Finish to ensure the workflow is saved.
    Whenever you need to make changes apply the same.
    Please Mark Answer and Vote me if it will to resolve your issue

  • How to retrieve the system used in an iview?

    hello,
    i'm currently having trouble retrieving the proper attribute of an iview to retrieve the system used by it.
    it seem like the strings identifying the system in the iview differ in some iviews.
    using either:
    myIView.getAttribute(IAttriView.PORTAL_SYSTEM)
    or
    myContext.getAttributes("").get("System").get().toString()
    produce errors.
    while get("System") sometimes provides the correct system alias the attribute is none existant for other iviews where the string would be "Systemalias".
    IAttriView.PORTAL_SYSTEM doesn't seem to work at all.
    i did implement fail safe code if the attribute isn't present, however i don't know how to retrieve the system attribute without doing a case switch or something similar for all the different strings, which i would prefer not to do.
    also, is there an easy way to retrieve all iviews which use a specific system without parsing the whole pcd and checking the attributes?

    Prerequisite : Create the System Alias for the systems used in the application.
    Use the below code to retrieve the system details:
            HashMap mapattr = new HashMap();
            HashMap map = new HashMap();
            IUser user = WDClientUser.getCurrentUser().getSAPUser();
            IPrincipal principal = (IPrincipal)user;
            ArrayList list = UMFactory.getSystemLandscapeWrappers();
            ISystemLandscapeWrapper systemLandscape = (ISystemLandscapeWrapper)list.get(0);
            //Portal System ALias name
            ISystemLandscapeObject landScapeObject = systemLandscape.getSystemByAlias("<system alias name>");
            IUserMappingData userMapping = (IUserMappingData) UMFactory.getUserMapping().getUserMappingData(landScapeObject,principal);
            userMapping.enrich(map);
            mappedUserId = map.get("user").toString(); // String "UserId"
            mappedPassword = map.get("mappedpassword").toString(); //String "Password" 
         catch(Exception e)
              e.printStackTrace();
              wdComponentAPI.getMessageManager().reportException("Exception during retrieving the User Details - " + e.getMessage(),true);
    Thanks & Regards,
    Amar Bhagat Challa

  • How to get the whole list of Iview Templates

    Hi,
    when I navigate:
    Portal Content -> Content Provided by SAP -> Templates -> Iview Templates
    I get a long list of templates including Url Iviews etc
    But, when I try to create my own Iview, the list of potential templates is much smaller, mainly including only the SAP related templates, BSP, Query, ITS etc.
    Does anyone know how to make the full list of Iview Templates available for the Iview creation wizard ?
    Thanks,
    Tomas.

    Hi Tomas,
    which iView templates are offerd within the iView creation wizard is determined by SystemAdmin -- Permissions -- Portal Permissions -- Applications.
    Normally, you will have to have SuperAdminRole to see/change these settings.
    Hope it helps
    Detlev
    PS: Please consider to reward points for helpful answers. Thanks in advance!

  • How to retrieve configuration list for WebDynpro component

    Hi experts,
    I have webdynpro component A with configuration AA.
    How to retrieve configurtion AA ? Is there any interface or Function module I can use?
    Also another question is how to get webdynpro configuration of WebDynpro application.
    Thanks.
    best regards,
    Vincent

    Hi Abhi,
    Yes , this is possible.
    But I want to get configuration dynamically.
    Input parameter : WebDynpro compoenent name
    Output Parameter: List of WebDynpro Configuration
    Is this possible?
    Vincent

  • How to retrieve datas from database to dropdown list in jsp

    hai.
    please tell me how to retrieve a perticular field list from database to a drop down list using jsp. i am new to jsp. i am doing employee management system. in that i need to edit employee's details as like.
    so that i want to display employee id's in a drop down list. i want to retrieve from database and display.
    please help me in this .
    advance thanks.

    Hello friendz,
    If tht is the i wud suggest if guyz can go wid AJAX...
    try to make use of xmlHttp Object and generate a new dependent drop down by using a property from a bean->servlet->VIEW(FORM)
    else save the form state in a session and then refersh it. once all in again.
    i had a similar problem which i solved in the following way
    Hi friend,
    I had a similar situation and i tried to solve it by using XmlHttpRequest Object(used in AJAX).
    U can checkout the below example just for further reference delete
    UserForm.jsp:
    ==========
    <head>
    <script>
    var xmlHttp
    function showState(str)
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
    alert ("Browser does not support HTTP Request")
    return
    var url="getState.jsp"
    url=url+"?count="+str
    url=url+"&sid="+Math.random()
    xmlHttp.onreadystatechange=stateChange
    xmlHttp.open("GET",url,true)
    xmlHttp.send(null)
    function stateChange()
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
    document.getElementById("state").innerHTML=xmlHttp.responseText
    </head>
    <body>
    <select name='country' onchange="showState(this.value)">
    <option value='india>india</option>
    </select>
    <br>
    <div id='state'>
    <select name='state' >
    <option value='-1'>pickone</option>
    </select>
    </div>
    </body>       
    getState.jsp
    ============
    <%@page language="java" import ="java.util.Hashtable" import ="java.util.Set" %>
    <%
    String country=request.getParameter("count");
    response.setContentType("text/html");
    response.setHeader("Cache-Control","no-cache");
    try{
    Hashtable ht = (Hashtable)session.getAttribute("<ATTRIBUTE_NAME>");
    String buffer="<select name='state'><option value='-1'>Pick One</option>";
    Set s=ht.keySet();
    Object keys[]=s.toArray();
    int size=keys.length;
    for(int i=0; i < size;i++){
    buffer=buffer+"<option value='"+ht.get(keys).toString()+"'>"+ht.get(keys).toString()+"</option>";
    buffer=buffer+"</select>";
    response.getWriter().println(buffer);
    catch(Exception exp){
    response.getWriter().println(exp);
    %>

  • How to retrieve Task Lists from All Subsites to the Parent Site and display in Grid view using CAML Query

    How to retrieve Task Lists from All Subsites to the Parent Site and display in  Grid view using CAML Query + object model

    do u just want task list or items under task list for all subsites
    for items use spsitedataquery ref
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx use recursive to get it from alll subsite under site collection
    for tasklist only u can a simply use a for loop to find in all subsite
    Manish Sati

  • Inadvertent click over 'clear list' crashed the list of downloaded files.How to retrieve that list?

    I was downloading the Firefox -5 update yesterday(07-07-2011),
    while the process was going on,the 'clear list' tab situated in the left side lower corner was pressed by me inadvertently causing disappearance of the list of all other completed,incomplete and
    failed downloaded files.The problem is how to retrieve the aforesaid
    list of the downloaded files.Can the downloaded files themselves
    also be crashed due to this mistake?If it is so,which is the way to
    retrieve those files also?

    Sorry again for the Windows menu paths, on Linux use Edit > Preferences instead of Firefox/Tools > Options as I've posted before.
    I never told you to disable settings in that part to the history settings, you did that yourself ([[/questions/897299#answer-276610]]).<br />
    I told you to check the settings in "Clear history when Firefox closes"
    Did you try to delete the downloads.sqlite file in case there is a problem with the file?
    Did you check the permissions for all files in the Firefox Profile Folder?
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • TS4009 I store important info in my notes app that I refer daily to. Some of my notes have 'disappeared' from my notes list and I cannot find them. Any ideas how to retrieve my lost notes?

    I store important info in my notes app on my Iphone 4S that I refer to daily. Some of my notes have 'disappeared' from my notes app.  Any ideas how to retrieve my lost notes. I am up to date on my software. All notes are  backed up to Icloud. I have approximately 74 notes on my iphone  but Icloud is showing only 15!

    Hi iPheariPhoPad,
    Welcome to Apple Support Communities.
    It sounds like there’s an issue with Settings, the Notes app entry isn’t showing up as expected. Take a look at the article linked below and try restarting your iPhone 3GS.
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    If that doesn’t do it, try restoring your iPhone as shown in this article:
    Use iTunes to restore your iOS device to factory settings - Apple Support
    Take care,
    -Jason

  • How to retrieve 2 values from a table in a LOV

    Hi
    I'm pretty new to APEX. I try to retrieve two values from a table using a LOV. I have a table named DEBIT with then columns SITE, NAME and KEY
    I want to display NAME to the user in a list. When the user select an item from the list, I want to retrieve the data of the SITE and KEY column of this item in order to launch an SQL command based on this two values.
    How to retrieve thes two values whant the user chooses an item from the list ?
    I apologize for my english, being french.
    Regards.
    Christian

    Christian,
    From what I understood about your requirement, you want a 'select list with submit' which displays "NAME" and based on the value selected, you want to get the corresponding values for "SITE" and "KEY" from the table.
    <b>Step 1: Create a select list with submit, say P1_MYSELECT </b><br><br>
    Use something like this in the dynamic list of values for the select list: <br>
    SELECT NAME display_value, NAME return_value
    FROM DEBIT<br><br>
    <b>Step 2: Create a page process of type PL/SQL block. Also create 2 hidden items P1_KEY and P1_SITE. </b><br><br>
    In the PL/sQL, write something like:
    DECLARE
      v_key DEBIT.KEY%TYPE;
      v_site DEBIT.SITE%TYPE;
      CURSOR v_cur_myvals IS
              SELECT KEY, SITE
              FROM DEBIT
              WHERE NAME = :P1_MYSELECT;
    BEGIN
      OPEN v_cur_myvals;
      LOOP
              FETCH v_cur_myvals
              INTO  v_key,v_site;
              EXIT WHEN v_cur_myvals%NOTFOUND;
    :P1_KEY := v_key;   
    :P1_SITE := v_site; 
      END LOOP;
      CLOSE v_cur_myvals;
    END; <br><br>
    Then you can use these values for whatever purpose you need to.
    Hope this helps.

  • 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 ();                     
                ..........

Maybe you are looking for

  • How to retrieve all users in a specific group

    Hi, I am using SunOne directory server. Can someone please post a sample code that illustrates how to fetch all the list of users in a particular group. 1) Let's say I want to find all the users in a group called "marketing". The root context is dc=m

  • Which file in Mail folder stores autofill sent mail addresses?

    Hi, I've been using a desktop for years and have sent a lot of emails using Apple Mail. I bought a new mbp and I want Mail on the mbp to autofill the email addresses I've previously sent an email to when I used the desktop. I know I can copy the whol

  • 13 apple ids connected with one phone number

    I've been bumping into this problem for several years now and it 's just getting worse. When Apple started Voice Pass I had to delete 69 registered products to get down to the 7 I currently own. I have always had only one email address, one password,

  • Aperture photo backup on 2 external HD's

    Hello. I would like to back up some or all of my photos on 2 external hard drives - WD My Book Essential 2TB and a WD My Passport 1TB I'm using Aperture 2.1.4 and have a library size of 244.48GB.  I'm looking for some advice / guidance on how I shoul

  • Three blinks and no USB connect

    Shuffle's not recognized in My Comp or Devices. It doesn't matter what USB port I use, same outcome. I've had the Shuffle for about 4 months now and it would sometimes not be recognized in my Belkin & Port Hub, but I'd unplug the hub and recon. it, t