How to fetch iView Properties within a Role?

Hi,
    I have Role-A. PCD path of this role is known. With this information, programmatically I should be able to fetch a few properties of all the iViews within this Role. An iView can be at any level with in this Role-A ( like RaleA- Workset-Page-iView or Role-Page-iView) . Is it possible to fetch the properties dynamically? Do we have APIs to do this? Any help is much appreciated.
Regards,
Nag.

A Good starting point is this:
Browse Roles, Folders, Pages & iViews assigned to a user: EP6 SP2
Once you get the iView object it's not difficult to get the properties.
Thanks
Prashant

Similar Messages

  • How to fetch all properties with ejb3

    I have need to fetch all properties in a Query when loading Entity EJB's in ejb3.0. This is because I'm going to detach the entities from the EntityManager, but want all the properties to be loaded. I have some entities that have simple fields that are normally fetched lazily (BLOBs and CLOBs). I also have relationships to other entities that would also normally be fetched lazily. Finally, I'm trying to do this in generic code that looks like this:
    Query q = manager.createQuery("select o from " + variableNameOfOrmClass + " o");
    List l = q.getResultList();
    So, I can't really name the relationships and do a FETCH JOIN... but rather, I just want to tell the query to "fetch all properties". I also don't want to for EAGER fetching because the majority case is that I'm not going to detach objects from the EntityManager.
    Is there a simply way to tell EJBQL (EJB3.0) to fetch all properties at the query time?

    In this forum, I asked if there is a way to fetch all properties at query time. In the other, I asked if there is a way to force a load of all unfetched properties on an entity, or better yet, a collection of entities, that I've previously queried. Similar, but not the same.

  • AppBannerExplorer - how to set iview properties?

    Hello Colleagues,
    pls find below my requirement and help me
    i wanna create a customer specific room template
    it should have banner and landing page
    for landing page i need to create a xml form , user can see the content and admin can change it.
    for lay out set can i use AppBannerExplorer? if yes what are all the properties i need to set for iview , can i go with km nav iview?
    Regards,
    Sai.

    Thank you Sandip and Ram both very much for your quick reply, .the info and the link (very good documentation.. thanks).  
    I am going to follow the documentation and do a prototype .... will let you know ... I may need your help again later...
    I tried but not it's not working (the Show Help attribute is still false), here is the coding:
    try {
      ivwObj.putAttribute("ATTRIBUTE_SHOW_HELP","true");
      ivwObj.save();
    } catch (ValidationException e) {
      e.printStackTrace();
    } catch (IOException e1) {
      e1.printStackTrace();
    Any advises?
    Thanks, Jin

  • How to change default properties when uploading role

    Hi, all.
    Our env. is like the following.
       EP 6.0 SP9 patch1
       J2EE SP9
       Windows 2003 MS SQL Server
    When we upload a role from R/3 to EP, role is correctly uploaded but the problem is the following default behavior.
    - default property of entryPoint for role is set to "false"
    - default property of GUI type for Transaction iView is dependent on the GUI support of R/3 SE93(Maintain Transaction Codes)
    Is there any way to change these default settings to some other values in EP without modification?
    What we want to do is that when we upload roles, we want to set the following values by default.
    - entryPoint = "true"
    - GUI type = "SAPGUI for Windows"
    One way would be to use Content Administration --> Multiple Property Replacement feature but we want to reduce our operation time more.
    Thanks.

    Hi Sejoon
    Even i'm in the same situation, i tried modifying transaction type in the
    com.sap.portal.appintegrator.sap.bwc.Transaction which is iview template for all the iviews created on import of roles..but it also dint work.
    yeah Multiple replacement is not the best of the option,
    let me know if u have figured out something.
    -Krishna

  • How to create a Workset in the Role

    Hello SDN,
    Could you please tell me how to create a Workset within the Role? 
    I tried to create it via right-click on the Folder of the uploaded Role and the only option is available is New Folder.  I don't see any options for Workset.
    Thanks for any helps!
    Regards,
    Niki Nguyen

    Hey Niki,
    Go to Content Admin->Portal Content.
    Select your default work folder. Right click it and select new workset.
    Create and save workset.
    After that open your role and right click on workset and select the option add to role.
    If you are not aware of the location of the role select tab search and type some keywords with *. select it and click locate in catalog.
    Hope this helps!
    Regards
    Atul Shrivastava

  • How to a ssign the iViews & Workset of the Role

    Hello gurus,
    Listed below are the procedures for organizing the reports within the Role:
    a. Create a workset for each of these folders in the role
    b. Assign the iViews/Pages currently present in the folders of the role to the newly created workset
    c. Delete the folders from the role
    d. Assign the worksets to the role
    I've created a Workset to assign the iViews, how do I assign iViews to the new Workset?
    And how do I assign the Workset to the Role?
    Thanks in advance for any helps.
    Regards,
    Niki Nguyen

    Hi Niki,
    - Open the Workset and then right click on the iView in the PCD and select "Add iView to Workset". Close the Workset.
    - Open the Role and then right click on the Workset in the PCD and select "Add Workset to Role".
    Reward Points of helpful.
    Thanks,
    Abhishek

  • Edit iview properties in delta copied role

    Hi all,
    I have created a role with a delta link to an iview. So the role only consist of this iview delta linked for an iview in the pcd.
    After this I have copied the entire role as a delta link to another location in the pcd.
    Then I have changed some attributes on the iview in the new role that is a delta link of the first role.
    When I open the new role I cannot use the "reset node" button for the iview node in the role and the reset button is inactive on some of the properties I just changed (for example description) and on others it is active.
    Can anyone tell me why this is the case or is this a bug?
    Thanks
    Regards Paw

    Hi again,
    Thanks again.
    Just to be sure if the iview, within the delta copied role, is not a delta link is it then a reference to the view of the source role or a copy of it?
    Thanks.
    Regards Paw

  • Fetching iviews not assigned to a page,workset or a role(orphaned iviews)

    Hi All,
    I need to fetch iviews,pages ,worksets ,roles that have not been assigned and are not used.The iview is not assigned to a page,workset ,role,similarly a page need not be assigned to a  page,workset,role and similarly for a workset and a role.
    Any Pointers??
    Thanks in Advance.
    Regards
    Radhika  Kuthiala

    Hi,
    i need to code regarding the same.Can anyone provide me some pointers in regards to available api's to do the same(fetching iviews not assigned to a page,workset or a role(orphaned iviews)).I am able to fetch total iviews in pcd through coding in web dynpro java.
    Regards
    Radhika

  • How to navigate to an iview with pressing a role button.

    Hi,
    When i login portal, first iview of the first role starts automatically.
    If i press other than first role, it is necessary to pres iview tab to navigate the related iview.
    I want when i press the role tab other than first role, first iview of the pressed role must be loaded automatically.
    How can i do that?
    Thanks.

    Dear CML,
    In the iview that you like open when you click in the menu option, put the iview property "Default Entry for Folder" to yes.
    Regards.

  • How to add iview to role using webdynpro

    Hi every one, Can you please tell me how to add iview to role using webdynpro code.
    Thanks
    TK

    Hi,
    could you copy / past your code ?
    if you need help on webdynpro and your beginner, try to watch the video on internet of WebBProfessor. It's really good videos !
    regards
    Fred

  • Role within a role, seperate permissions

    Hi there
    I have a role, HR, which must appear in the top level navigation. That is simple to do ... create the role, add iviews etc., mark as entry point and assign users to the role ... displays nicely.
    Now, as part of the HR section, we would like another section, namely Payroll, which is only accessible to certain people.
    I can create a new role, called Payroll, and assign certain users to that role.
    I then add the Payroll role to the HR Role ... Payroll now appears in the detailed navigation as required, but all users have access to the iviews within the Payroll role, which is not what we want.
    If I mark the Payroll role as an entry point, then it only appears in the top level navigation for users who have been assigned to the role.
    This makes me think I have the permissions configured correctly.
    What do I need to do to make detailed navigation rely on the role permissions? It would appear the permissions are being "inherited" from the parent Role, which is not what I want.
    Is there a way to get a role within a role to keep its permissions and ignore the parent permissions?
    Can I do this in the detailed navigation, or should I be trying something else?
    Should this perhaps be done at a workset level instead?
    Any help would be greatly appreciated (and no doubt points awarded)

    Thanks Marty
    I had forgotten about Merging, and that seems to have gotten me most of the way.
    I can successfully merge, and the new item only appears for the relevant users, but it merges quite high.
    I would like the merging to happen in the detailed navigation, but I can't seem to get this right.
    At the moment, I have 2 worksets, namely Home and Payroll. I set the merge properties on these 2 worksets. Home workset is then assigned to the HR Workbench role. When I log in as a user who has access to the Payroll role, then I see the HR Workbench role, and in the second level navigation, I see Home and Payroll (worksets).
    What I would like, is to have the Payroll workset appearing in the detailed navigation.
    I have tried merging on the folders in the Home workset, but still don't see anything in the detailed navigation.
    Do you know if it is possible to merge in the detailed navigation, or only top level navigation?
    Thanks for the answer ... I will reward points now

  • Room within a Role

    Hi,
      I have  a room which should be accessible to all users.So I am thinking of assigning it to a role which a user can access easily. I did this by using a url iview,But the problem is within that role the masthead and all the roles are displayed once again. I want only the room content to be displayed in that role. Can anybody tell me how to go about this?
    Regards
    Vineeth

    Hi Vineeth,
    Almost right.You have to modify the PCD ID in order to call the object via URL.
    You should replace the colon by "!3a" and each slash by "!2f".
    <b>Example</b>
    PCD ID:
    <i>pcd:portal_content/FolderA/com.sap.iview</i>
    Modified PCD-ID:
    <i>pcd!3aportal_content!2fFolderA!2fcom.sap.iview</i>
    URL prefix:
    <i>http://<portalserver>:<port>/irj/servlet/prt/portal/prtroot/</i>
    Final URL -> check with new browser instance:
    <i>http://<portalserver>:<port>/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fFolderA!2fcom.sap.iview</i>
    In earlier versions of NW you could get this URL by clicking on the preview button of an iview... And be sure to have the right security settings to execute an iView in this way.
    Hope this helps.
    Stefan

  • How to fetch some certain records at a time

    Hi everyone,
    I dont know how to fetch some records at a time,
    for some reason,there is not enouht memory.so I cant
    fethch all the records at a time.
    example, every time I only want to fetch 10
    records. Does anyone know that?
    thanks
    Krussi

    I think you may be getting setFetchSize(int) and setMaxRows(int) confused. I may have added to the confusion with my breaking out of the loop comment.
    setFetchSize(int) gives the driver a hint as to how many rows it should store in memory at a time internally, ie. within the driver. It has no real effect on how you write your program at all. Its only purpose is to limit memory usage by the driver. To limit the rows returned, use setMaxRows.
    For example, assume a result set has 20 rows and you use:
    rs.setFetchSize(5);
    while (rs.next()) {
       System.out.println("Rows: " + (++count));
    }  You still get a count from 1 to 20. However, internally the driver is only holding in memory 5 records at a time, after the 5 returned it will discard those and get the next 5. So instead of holding 20 rows, its only holding 5 at a time. If you change rs.setFetchSize(5) to rs.setMaxRows(5) you will only get a count from 1 to 5, the rest are silently discared and rs.next() returns false.
    Check your documentation to see if your driver supports the method. I believe many drivers don't. If not, I believe there is no way around multiple queries. Even if there is no rowid, as long as you order your queries you should be able to start again where you left off.
    Disclaimer: Both drivers I commonly use do not implement setFetchSize(int). Someone let me know if I've fudged something here.
    Good Luck

  • How to fetch data for the Change Request in PROCESS_EVENT

    Hi All,
    I need to write some custom logic on Save/Submit button. For this I am planning to enhance the PROCESS_EVENT method of class CL_USMD_CR_MASTER. Within this method I need to access runtime data of the change request currently being processed.
    I am going to create a post-method exit for this PROCESS_EVENT method. Is this correct?
    I have heard we have APIs in MDG which can be used to fetch data, however I do not know how to use the same.
    Can someone please help me with sample code how to fetch the runtime data of the Change Request
    Thanks in advance.
    Regards,
    Vanessa

    What MDG domain are you working on? What you are trying to do is called "reuse mode" enhancement and you do NOT want to tinker with the FPM feeder classes in this case. SCN document Configuration and Enhancement of SAP Master Data Governance contains many examples on how to achieve this.
    This is a how-to document for MDG-M reuse mode enhancement: Extend MDG-M Data Model by a New Entity Type (Reuse Option)
    This is a how-to document for MDG-C/S reuse mode enhancement: SAP How-To Guide: Extend the MDG Business Partner - Node Extension (Reuse Option)
    Keep in mind, these examples are mainly for additional "master data" fields. If you need additional fields that are not master data but are more related to the Change Request itself, you should use this how-to document: Enhancement of the User Interface Building Block for Change Requests
    Again, all of these documents can be found on the first document I referenced above. I suggest that you bookmark it.

  • How can I create cursors within the cursor?

    How can I create cursors within the cursor?
    Table1 2001 - 2007 data
    Account_no
    Account_eff_dt
    No_account_holder
    Num
    Seq_Num
    Value1
    Value2
    Table2_Historical (doesn't have Num as a field) 1990 - 2000 data
    Account_no
    Account_eff_dt
    No_account_holder
    Seq_Num
    Value1
    Value2
    Table3_06
    Account_no
    Account_eff_dt
    No_account_holder
    Num
    My result table should be:
    Table_result_06
    Account_no
    Account_eff_dt
    No_account_holder
    Num
    Value1_min (the minimum value for the minimum of record_sequence)
    Value2_max (the maximum value for the maximum of record_sequence)
    I have to get data from Table1 and Table2_Historical. If one account was open in 1998 and is still effective, the minimum value of that account is in the Table2_Historical.
    Let's say I open a cursor:
    cursor_first is
    select * from table3_06;
    open csr_first
    loop
    fetch cursor_first into
    v_Account_no
    v_Account_eff_dt
    v_No_account_holder
    v_Num
    EXIT WHEN csr_first%NOTFOUND;
    How can I open a second cursor from here that will get the Seq_Num from Table1
    csr_second
    select Seq_Num from Table1 where
    v_Account_no = Account_no
    v_Account_eff_dt <= Account_eff_dt
    v_No_account_holder=No_account_holder
    v_Num = Num
    How does it works???
    Thanks a lot

    Thanks so much for replying back. Here is what I am trying to do.
    I have to create a table for each year 2002, 2003, 2004, 2005, 2006 that has all the account numbers that are active each year plus some other characteristics.
    Let’s say I will create Table_result_06. This table will have the following fields. The account number, account effective date, Number of the account holder and the field Num (The primary key is a combination of all 4 fields), the beginning look of value 1 in 2006, the last look of value 1 in 2006.
    Table_result_06
    Account_no key
    Account_eff_dt key
    No_account_holder key
    Num key
    Value1_min (the minimum value for the minimum of record_sequence)
    Value2_max (the maximum value for the maximum of record_sequence)
    All the active account numbers with the Account_eff_dt, No_account_holder and Num are in the Table3. As such I can build a query that connects Table3 with table Table1 on all 4 fileds, Account_no, Account_eff_dt, No_account_holder, Num and find the Value1_min for the min of req_sequence in 2006 and Value1_max for the max of req_sequence in 2006. Here my problem starts.
    Table 1 doesn’t have a new entry if nothing has changed in the account. So if this account was open in 1993 and nothing has changed I don’t have an entry in 2006 but this doesn’t mean that this account doesn’t exist in 2006. So to find the minimum value I have to go back in 1993 and find the max and min for that year and that will be max and min in 2006 as well.
    As such I have to go to Table_2 historical and search for min and max. But this table doesn’t have the field NUM and if I match only on the Account_no, Account_eff_dt and No_account_holder I don’t get a unique record.
    So how can I connect all three tables, Table 1 for max and min, if it doesn’t find anything will go to table 2 find the two values and populate Table_result_06.
    Thanks so much again for your hep,

Maybe you are looking for

  • How do I find iBooks author file size? want to stay under 1gb.

    I am wondering if there is anything like Get Info for the iOS. May be obvious but I have not found it. TIA.

  • Retrieve URL from database and navigate through command button

    I am new to ADF and Jdeveloper. In our database we store the URLs to our help/FAQ webpage in a table. What I would like to do is retrieve this URL from the database and code a command button to navigate the user to this URL but I am not sure how to a

  • Passing of objects to methods

    pl go thru this code... public class A{ public static void main(String args[]) { A aa = new A(); StringBuffer a = new StringBuffer("One"); StringBuffer b = new StringBuffer("Two"); aa.swap(a,b); System.out.println("a is "+ a +" b is " + b); void swap

  • Double Clicking on .indd file opens wrong version of InDesign - Windows 7

    Every time I try to just double click on the file to open it opens with InDesign CS5.5. I have CC installed and just went through a whole process online with Adobe Support about removing previous versions using the Cloud tool. I removed all but CC 20

  • Need Help - Using 6OGB iPod

    I am using my iPod for the first time. iTunes indicates that my iPod update is complete, but my ipod flashes "Do not disconnect." I have tried clicking on the eject button, but a screen aprrears indicating that it cannot eject, because "it contains f