Recursive parent, limit view

Hello,I am trying to setup report in which people will be able to see their details - themselves & their subordinates. At the moment I am able to generate report as below (digit in second column shows level in hierarchy):
Thing is that I would like to set limits on the report, for example for 'Harmacinska' to see only her, and her subordinates (Korybut - Sowa), and have no clue how to do so.
Tried to set filter on report level, to restrict data in first column to 'Harmacinska' only - but it limited data to one line only (no subordinates); same result when trying to do so using tablix filters. Any advices? If there is anyone who managed to have
limited wievs in similar (with recursive parent) report, let me know please how to achieve that.
regards
Tomasz

If the level column value is returned by your back end query, then filter it there. If you are pulling this data from a relational database using TSQL, the query might look like:
SELECT
User_Name,
User_ID,
Manager_ID,
Level
FROM tbl_OrgStructure
WHERE
Level < 3
Will need details of your query in order to give specific recommendations. Also, if this example is close to what you have, you can allow the user to select the depth easily using a parameter (Level < @Level).
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek.

Similar Messages

  • Recursive Parent Child relationship in JPA

    @Entity
    @Table(name = "OBJECTCATEGORY")
    public class ObjectCategory implements Serializable {
         @Id
         private String categoryId;
         private String categoryName;
         private String description;
         private static final long serialVersionUID = 1L;
         @ManyToMany(fetch = FetchType.EAGER)
         @JoinTable(name = "MAP_CATEGORY", joinColumns = @JoinColumn(name = "CATEGORYID"), inverseJoinColumns = @JoinColumn(name = "OBJECTID"))
         private List<MapC> mapList = new ArrayList<MapC>();
    // Recursion
         @OneToMany(fetch = FetchType.LAZY, mappedBy = "fqQuesCatagory")
         List<ObjectCategory > categoryList = new ArrayList<ObjectCategory>();
         @ManyToOne
         @JoinColumn(name = "PARENTCATEGORY")
         private ObjectCategory fqQuesCatagory
    // Recursion
         public FqQuesCatagory() {
              super();
         public String getCategoryname() {
              return this.categoryname;
         public void setCategoryname(String categoryname) {
              this.categoryname = categoryname;
         public String getDescription() {
              return this.description;
         public void setDescription(String description) {
              this.description = description;
         public List<MapC> getMapList() {
              return faqList;
         public void setFaqList(List<MapC> faqList) {
              this.mapList = mapList ;
         public String getCategoryid() {
              return categoryId;
         public void setCategoryid(String categoryid) {
              this.categoryid = categoryId;
         public List<ObjectCategory> getFqCategoryList() {
              return categoryList;
         public void setFqCategoryList(List<ObjectCategory> categoryList) {
              this.categoryList = categoryList;
         public ObjectCategory getFqQuesCatagory() {
              return fqQuesCatagory;
         public void setFqQuesCatagory(ObjectCategory fqQuesCatagory) {
              this.fqQuesCatagory = fqQuesCatagory;
    Doesn't SAP JPA support recursive parent-child relationship (highlighted by "// Recursion"). The same model works in TopLink perfectly.

    Sorry for the delayed update..
    I see an issue in the WSNavigator. I have a method in my EJB exposed as a web service. This method has a single argument, which is a serializable class containing a few string variables and the above-mentioned Entity with suitable getters and setters for all the class variables.
    When I try to select this operation under the WSDL in the Webservice Navigator, I get a stack overflow error. I think it is because WD4J run-time is not able to build the nested tree. Not sure though...I've attached the stack trace below:
    Cannot send an HTTP error response [500 "Application error occurred during the request procession." (details: java.lang.StackOverflowError
    at java.lang.String.lastIndexOf(String.java:1496)
    at java.lang.String.lastIndexOf(String.java:1458)
    at com.sap.dictionary.runtime.StringUtil.getPackageName(StringUtil.java:143)
    at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:179)
    at com.sap.tc.webdynpro.progmodel.context.DictionaryHandler._getScalarType(DictionaryHandler.java:447)
    at com.sap.tc.webdynpro.progmodel.context.DictionaryHandler.getDataType(DictionaryHandler.java:159)
    at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.init(DataAttributeInfo.java:447)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.addAttribute(NodeInfo.java:746)
    at com.sap.tc.webdynpro.progmodel.context.NodeInfo.addAttribute(NodeInfo.java:759)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder.createParameterNodeInfo(DWSContextBuilder.java:984)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder.access$400(DWSContextBuilder.java:88)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForComplexType(DWSContextBuilder.java:1591)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForTypeObject(DWSContextBuilder.java:1574)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createElementObject(DWSContextBuilder.java:1763)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createFieldObject(DWSContextBuilder.java:1681)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.intWithStructureFields(DWSContextBuilder.java:1671)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createComplexTypeObject(DWSContextBuilder.java:1660)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForComplexType(DWSContextBuilder.java:1615)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForTypeObject(DWSContextBuilder.java:1574)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createElementObject(DWSContextBuilder.java:1763)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createFieldObject(DWSContextBuilder.java:1681)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.intWithStructureFields(DWSContextBuilder.java:1671)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createComplexTypeObject(DWSContextBuilder.java:1660)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForComplexType(DWSContextBuilder.java:1615)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForTypeObject(DWSContextBuilder.java:1574)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createElementObject(DWSContextBuilder.java:1763)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createFieldObject(DWSContextBuilder.java:1681)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.intWithStructureFields(DWSContextBuilder.java:1671)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createComplexTypeObject(DWSContextBuilder.java:1660)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForComplexType(DWSContextBuilder.java:1615)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForTypeObject(DWSContextBuilder.java:1574)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createElementObject(DWSContextBuilder.java:1763)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createFieldObject(DWSContextBuilder.java:1681)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.intWithStructureFields(DWSContextBuilder.java:1671)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createComplexTypeObject(DWSContextBuilder.java:1660)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForComplexType(DWSContextBuilder.java:1615)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForTypeObject(DWSContextBuilder.java:1574)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createElementObject(DWSContextBuilder.java:1763)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createFieldObject(DWSContextBuilder.java:1681)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.intWithStructureFields(DWSContextBuilder.java:1671)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createComplexTypeObject(DWSContextBuilder.java:1660)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForComplexType(DWSContextBuilder.java:1615)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForTypeObject(DWSContextBuilder.java:1574)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createElementObject(DWSContextBuilder.java:1763)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createFieldObject(DWSContextBuilder.java:1681)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.intWithStructureFields(DWSContextBuilder.java:1671)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createComplexTypeObject(DWSContextBuilder.java:1660)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForComplexType(DWSContextBuilder.java:1615)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForTypeObject(DWSContextBuilder.java:1574)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createElementObject(DWSContextBuilder.java:1763)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createFieldObject(DWSContextBuilder.java:1681)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.intWithStructureFields(DWSContextBuilder.java:1671)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createComplexTypeObject(DWSContextBuilder.java:1660)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForComplexType(DWSContextBuilder.java:1615)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.buildContextForTypeObject(DWSContextBuilder.java:1574)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createElementObject(DWSContextBuilder.java:1763)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.createFieldObject(DWSContextBuilder.java:1681)
    at com.sap.esi.esp.wsnavigator.helper.DWSContextBuilder$DInputParams.intWithStructureFields(DWSContextBuilder.java:1671)
    Any thoughts on this will be highly appreciated.
    BR.

  • Problem with saving Parent - Child  View Objects in ADF 11g.

    Hi Every one,
    I have a requirment, something like I will be displaying some data on my jsff screen based on one Transient View Object. Whenever user clicks on Save button, I have to do following steps in my AMImpl.
    -> Preapre dynamically Parent View Object Rows based on some logic
    -> Prepare dynamically Child View object Rows and invoke insertRow method on respective child view object.
    When I say commit() First Parent ViewObject data need to be saved and then Child View object data has to be saved. I am having Parent - Child Key relation ship btw these two ViewObjects. Some how I am populating the Parent Primary key in the Child View Object. Please suggest me If there is any other alternative to this.
    Thanks

    I got the solution, Enabling the check box option for Master - Detail Entity association (CompositionAssociation -> Cascade Update Key Attributes) resolved the issue.
    Thanks

  • List subfolders in parent folder view

    Hi all,
    in a XY workspace i have simple folder hierarchy created in Teaming 2.1: 3 subfolders (SF1, SF2, SF3) are in parent folder (PF). When i click on PF in navigation bar, content of PF folder is displayed. Problem is, there are just File entries displayed but not subfolder displayed. I could enter subfolders only by clicking on + sign in navigation tab. Is there any possibility to modify folder view to display subfolders together with file entries?
    Thanks in advance,
    Stanley

    sbocinec,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Change the permission That limit viewing

    Hi, my sister have downloaded a book from Archambeault with adobe digital edition id.
    She Made i mistake n'y clicking " to be viewed by only one device."
    Nos she would Like to transfert her ebook on her ebook reader but the ebook reader can not read it.
    Is there a way to change the permission that limit the book to be viewed on only one device ( the computer).? Her ebook reader does not ask her adobe id !
    Thanks

    No way to change permissions, I am afraid.
    She could ask the publisher if they will let her redownload another copy: they have no obligation to do that but apparantly some are helpful.
    She could try a drm stripper (search google for epubee). 
    Probably technically against the t&cs under which she bought the book, and may be illegal in some countries (not UK or US).

  • Calling parent's view inbound plug from modal window?

    Hi,
    I have a window A with a view ("the parent") that calls another window B as a modal one. This window B uses own buttons for actions, no standard ones (OK, Yes, No ...). The problem is that the actions in window B are changing the content in window A. I want  that after closing the modal window B a specific inbound plug of the view of the other window A is called (where a refreshing mechanism is available). How to do that? I tried with the - at other posts - suggested method of exit-plugs, but that didn't work (because outbound and requested inbound plug belong to different windows ???).
    Thanks for your help,
    Alexander

    Hi,
    thanks for your reply. My problem was that in my popup window no standard buttons are available, so that the SET_ON_CLOSE_ACTION can't be used (cf. documentation it only works with the CANCEL-Button). But with this hint I was able to find another solution (which was by the way explained in another thread answered by you 8-) ): I have to create an event in the component controller and fire this event from my window B. Then I have to subscribe a method of window/view A to that event which does the required refreshing. [trigger event from "child" webdynpro;.
    Best regards,
    Alexander

  • Relation with parent components view with child component

    Hi All,
    Can a view controller of  one component can use his child component with the component usage declaration?
    Regards
    Chandra
    Edited by: Chandra Sekhara on Jan 4, 2008 4:26 AM

    Ok got it.
    Nothing much you have to do.
    (1)Go to C1's used component and add C2 as used component.
    (2)It will give you two options manual or CreateOnDemand, if you do not need any kind of values to initiate the C2's view then choose 2nd one.
    If you need some iteration before initiating the view then use manual option.
    you need to write this statement to create the compoment:-
    wdThis.wdGet<used component name>ComponentUsage().createComponent();
    (3) Now go to the window of C1 and embed interfaceview, when you click on this you will get C2's interface view.
    (4) If you want some methods or events to be declared then declare in C2's component controller and copy it to the interface controller.
    Now run your application

  • Get-mailbox storage limit view

    I currently use this command to view the mailbox limits on the Exchaneg Server. I need to know what other commands to add in PowerShell so I can also view what the issue warning and prohibit send are at. thanks.
    Get-mailbox |Get-MailboxStatistics| select DisplayName,Database,TotalItemSize,ItemCount,storagelimitstatus | export-csv C:\mailboxsizes.csv -

    Hi Badlands
    For Quota on Individual
    Get-Mailbox | Select-Object Displayname,Database,@{Name='TotalItemSize'; Expression={[String]::join(";",((Get-MailboxStatistics -identity $_.identity).TotalItemSize))}},@{Name='ItemCount'; Expression={[String]::join(";",((Get-MailboxStatistics -identity
    $_.identity).ItemCount))}},IssueWarningQuota, ProhibitSendQuota | export-csv -path "c:\mailboxsizes.csv"
    For Quota on Database
    Get-Mailbox | Select-Object Displayname,Database,@{Name='TotalItemSize'; Expression={[String]::join(";",((Get-MailboxStatistics -identity $_.identity).TotalItemSize))}},@{Name='ItemCount'; Expression={[String]::join(";",((Get-MailboxStatistics -identity
    $_.identity).ItemCount))}}, @{Name='IssueWarningQuota'; Expression={[String]::join(";",((Get-MailboxDatabase -identity ($_.identity).DataBase).IssueWarningQuota))}},@{Name='ProhibitSendQuota '; Expression={[String]::join(";",((Get-MailboxDatabase -identity
    ($_.identity).DataBase).ProhibitSendQuota))}} | export-csv -path "c:\mailboxsizes.csv"
    Cheers
    Zi Feng
    Zi Feng
    TechNet Community Support

  • PacmanDeps - recursive package dependency viewer

    Based on Pacman Dependency Tree I created pacmanDeps. If anyone is interested in the dependencies of his packages; now you can easily view it
    Features:
    Pass one or multiple packagenames to seeo, of pass nothing to see all packages installed
    Detects dependency-loops (use `pacmanDeps>/dev/null` to see only dep-loops)
    Has an internal cache to speedup the process of looking up dependencies
    Uses some colors; easy to modify in the head of the script
    ToDo:
    Fix branch and leaves visual
    Download: (updated - this is version 0.2)
    http://archlinux.spider007.net/pacmanDeps/pacmanDeps.sh
    Any feedback welcome

    nice work!
    [damir@Asteraceae cvsARCH]$ ./deptree_spider.sh readline
    readline
    +---glibc
    +---ncurses
    +---glibc
    funny output - it seems that glibc is listened 2ce ... but the second one is from ncurses
    [damir@Asteraceae cvsARCH]$ ./deptree_spider.sh cups
    cups
    +---libpng
    +---glibc
    +---zlib
    +---glibc
    +---libtiff
    +---gcc
    +---binutils
    +---glibc
    +---glibc
    +---libjpeg
    +---glibc
    +---zlib
    +---glibc
    +---openssl
    +---glibc
    +---pam
    +---db
    +---gcc
    +---binutils
    +---glibc
    +---glibc
    +---glibc
    +---filesystem
    +---bash
    +---glibc
    +---readline
    +---glibc
    +---ncurses
    +---glibc
    +---glibc
    seems that this bug is not always reproducable
    one more thing: please end your script with "exit 0" and name it with the extension .sh

  • Limit View of Related Documents

    Is there a way to prevent users from seeing the PO number under Related Documents that is generated on the SAP side if the PO is still on hold in SAP?
    We are on SRM 7.0 and use the classic scenario.  Our process is that when free text orders are approved and transferred to SAP, the appropriate buyer will convert the requisition over into a PO and put it on hold.  That way, they can group all of  their orders together and place with the vendors.
    Monique

    only when the PO is still on hold by the Purchasing Department (buyer) until it is actually saved. Is there any way to put that logic in to ignore incomplete PO's?
    I wouldn't know how you realize "on hold by the Purchasing Department (buyer) until it is actually saved" technically. Maybe some indicator in table EKKO/EKPO? Your logic would have to read (through some RFC FM) across the system boundary for such indicator and determine if to show the PO number in "related document" list or not. You'd have to implement the logic according to your requirement. What I had suggested was the place to put in the logic. That would not eliminate the PO line from Related Document list, just that the PO number link would not be there.

  • Create a tree with recursive call for sub-rows

    Hello,
    I would like to create a generated menu dynamically created from values returned by sql.
    Structure is as follow :
    Menu
      |
      +-- MenuItem <--+
             |        |
             +--------+I can't know the maximum depth of the menu.
    How can I create a dynamic tree for ADF to display a tree or a hierarchical view properly without having to define a ViewLink / level ? (i.e. without hardcoding the maximum depth)
    I created a simple Application Module with VO:
    MenuVO
      + MenuItemVO (using VL1 between MenuItem and Menu)
          + SubMenuItemVO (using VL2 between MenuItem and MenuItem, father / child link)Using the Oracle BC Navigator to test this, I can see that a dynamic tree is available, how can I have it in a JSP page ?
    Using the hierarchy viewer component it's possible, but how can I do this with an ADF Tree ?

    You can easily create a recursive tree level rule on the MenuItemVO via a parent/child view link (get rid of SubMenuItemVO). Look at this example http://www.oracle.com/technetwork/developer-tools/adf/learnmore/32-tree-table-from-single-vo-169174.pdf
    The only difference is your recursion is going to be at MenuItemVO level.
    Edited by: 948181 on 2012/07/31 4:07 PM

  • SSRS Recursive Hierarchy for Bill of Material

    OK, here we go. I have been absolutely unable to find an answer anywhere after extensive searching so I will ask this here.
    First of all, I am trying to create an SSRS report for a Bill of Materials (product structure) with parent child recursive grouping to enable drill down to multiple levels. For the most part, I have achieved the goal of doing this with a proper CTE stored
    procedure and including a parent recursive reference to the Child group. Here is my result set of the CTE and the grouping settings:
    This produces a very pretty report that allows for drill down to levels with indents and levels and everything! Just one problem..... By grouping on the Component to get the recursive technology to work, the result set of my CTE which has 37 rows gets truncated
    down to 32 due to multiple rows getting merged because part numbers can be the same while used on more than one part. In this case, see rows 30 and 34. The child (component) is PLA331. Because they are the same part number but used with different parents,
    one of them gets eliminated and the result of my report looks like this:
    PLA331 should be listed under SA-0482 but it is not due to the grouping of the part PLA331. How do I get all of the results to display even if I am grouping on the component? I have tried removing 'Hide Duplicates' and it does nothing.
    BOMs are a very important part of a business so I am actually quite shocked that I am the only one having this structure issue. Perhaps everybody else doesn't have the same part listed on multiple levels of a BOM? Or a lot of people THINK they have the correct
    BOM structure but are unaware of this little problem?
    Thanks,
    Sayslah

    Hi Sayslah,
    Based on your description, I create a similar report in my test environment. However, I cannot reproduce the same issue as your post.
    Please refer to the steps below to check if there is something different. I create a dataset with three fields: Component, Parent, Qty.
    1. Add a table in the report body.
    2. In the Row Group dialog box, add Parent Group: [Component].
    3. Setting Component Group with Recursive parent: Component.
    4. Add Qty field in the table.
    You can refer to the screenshot below:
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Table View in View-based Application

    Hi.
    I want to use an UITableView in a View-based Application.
    All examples I found are for Navigation-based Applications.
    I Found only one example for View-based Applications, but it create all components himself without the Interface-Builder.
    I search an example with Interface-Builder.
    My main problem is, when i create a view with Interface-Builder, the controller class does not inherit from UITableViewController.

    GrinderFX wrote:
    I want to use an UITableView in a View-based Application.
    Hi, and welcome to the Dev Forum!
    Firstly, I would point out that you don't need to use UITableViewController to control a table view. The table view controller is just more convenient. So for example, you could simply drag a table view from the library in IB and drop it onto your view. Then you could hook up the table view's dataSource and delegate outlets to the File's Owner. Then you would add the data source and delegate protocols to the @interface of your UIViewController subclass and add the required data source and delegate methods to the @implementation.
    I mention the above because building your table view that way is very instructive. If you want to learn more about table views in general I would recommend Chapter 8 of +Beginning iPhone Development: Exploring the iPhone SDK by Mark and LaMarche+, which includes 3 table view projects that don't involve a navigation controller.
    My main problem is, when i create a view with Interface-Builder, the controller class does not inherit from UITableViewController.
    Returning to your specific question, IB allows you to change the class of an object. Here are the steps to use the View-Based Application template as you described (In the following I'm using Grinder as the name of the project; e.g. the app delegate class is named GrinderAppDelegate, and the view controller subclass is named GrinderViewController):
    1) _Change parent of view controller subclass in your code_
    In GrinderViewController.h, you only need to change the superclass from UIViewController to UITableViewController:
    @interface GrinderViewController : UITableViewController {
    However it will be easier later on if you make new files from the UITableViewController file template:
    a) Ctrl-click on GVC.h and GVC.m in the Groups & Files tree; select Delete->Also Move to Trash;
    b) Ctrl-click on Classes; select Add->New File->iPhone OS->Cocoa Touch Classes;
    c) Select UITableViewController subclass from the right center panel and click Next;
    d) File Name: GrinderViewController.m; check Also create GrinderViewController.h;
    e) Make sure the name for these new files is exactly the same as the ones you deleted; if you make a mistake here, delete the new files and start over, because that name must be the same in several other files;
    f) Click Finish; the replacement files should now appear under Classes.
    2) _Change the view controller class in IB_
    a) Double click on MainWindow.xib under Resources in the Groups & Files tree;
    b) Make sure the MainWindow.xib window is open by selecting Window->Document from the IB menu;
    c) Locate the View Mode switch, upper-left, in the xib window, and select the Center position;
    d) The xib window should now be displaying two columns with small icons on the left;
    e) Select the Grinder View Controller icon;
    f) Select Edit-Delete to delete that icon;
    g) Select Tools->Library from the menu, and expand Controllers in the Library Panel;
    h) Drag a Table View Controller to the xib window and drop it right under the app delegate icon;
    i) Select Tools->Identity Inspector from the menu to open the Grinder View Controller Identity Panel (the new Table View Controller should still be selected in the xib window);
    j) Under Class Identity, select Grinder View Controller from the list; tab out of the Class field to be sure the selection is recorded;
    k) Ctrl-Click on Grinder App Delegate and connect the view controller outlet (ctrl-drag) to Grinder View Controller;
    l) Expand GVC in the xib window and delete the Table View icon (since we want it in the other xib file);
    m) Reselect the GVC icon and open the Grinder View Controller Attributes panel;
    n) Under View Controller, select GrinderViewController from the NIB Name list;
    o) In the Table View Controller IB Editor window, select GrinderViewController.nib to open the other xib file;
    p) Make sure the GrinderViewController.xib window is open in small icon mode as in steps b-d above;
    q) The class of the File's Owner should be GrinderViewController;
    r) Delete the View icon;
    s) Drag a Table View from the Library to where the View icon was;
    t) Ctrl-click on File's Owner and connect (ctrl-drag) it's view outlet to the Table View;
    u) Ctrl-click on Table View: connect both the dataSource and delegate outlets to File's Owner;
    v) File->Save both xib files.
    3) _Make some rows in the table view and test_
    a) Open GrinderViewController.m in Xcode;
    b) Add the commented lines (be sure to use the correct line for your target OS);
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 20; // <-- change to more than zero
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
    cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
    // Configure the cell
    // add this line for OS 2.x
    cell.text = [NSString stringWithFormat:@"Row %d", indexPath.row];
    // add this line for OS 3.0
    // cell.textLabel.text = [NSString stringWithFormat:@"Row %d", indexPath.row];
    return cell;
    c) Build and Go.
    I should add that the procedure might be a little easier if you start with the Window-Based Application Template. But the above is good practice in editing xib files.
    Hope that's helpful!
    - Ray

  • Create a private view for Task List in SharePoint 2013

    I have a Task List, How can I Create a Private View that every user can see Only his Tasks, and Sync it to his outlook (sync only his tasks) , no one can see or sync tasks not assigned to him?

    Hi,
    According to your post, my understanding is that you wanted to limit view permission on particular users in SharePoint.
    There is no out of the box way to achieve it in SharePoint.
    CodePlex has a good tool SharePoint 2013 Column & View Permission, it have some features as below, we can use it.
    Features:
    Column Permission
    - Hide or Read Only Columns in a List Forms (New/Edit/Display)
    - Hide Columns in Views
    - Hide Columns in Alert Me Emails
    - Specify the permission for Users, SharePoint Groups or Active Directory Groups
    View Permission
    - Disable Views
    - Automatically Disable Views in Custom WebPart Zones
    - Specify the permission for Users, SharePoint Groups or Active Directory Groups
    More information: https://sp2013columnpermission.codeplex.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • ForEach iterator in parent child relation

    Hi,
    How can i use forEach to iterate parent child view object. Issue it is only able to fetch value of parent vo not child view object values, if I use af:iterator instead of af:forEach it works perfectly. So there is no issue with data.
    But I am not able to iterate child VO.
    <af:forEach items="#{bindings.testVO.rangeSet}"
    var="parent" varStatus="parentRow" >
    <af:outputText value="#{parent.Name}"/> -- it works fine prints value
    <af:forEach items="#{parentRow.childVO.rangeSet}"
    var="child" varStatus="childRow" >
    <af:outputText value="#{child.subject}"/> ---> It doesn't work
    </af:forEach>
    </af:forEach>
    If i use iterator it works fine... But I have to use forEach to generate dynamic id for each component in forEach Loop

    I tried to use af:iterator first but the problem is it is not able to handle dynamic id generation for each component:
    <af:iterator value="#{bindings.companyVO.collectionModel}"
    var="company" varStatus="companyStatus"
    rows="#{bindings.companyVO.rangeSize}">
    <af:iterator value="#{company.employeeVO}"
    var="employee" varStatus ="employeeStatus">
    <af:outputLabel id="emp${companyStatus.index}${employeeStatus.index}" value="#{employeee.empId}"/> ->>> here id is always emp it is not able to get index value and if i used the same code in forLopp it works it is able to fetch dynamic id based on index like emp12 emp13 emp14 etc...
    </af:iterator>
    </af:iterator>

Maybe you are looking for