List with filtered tabs

Fommo
Member Posts: 138
Hello
In the classic client I have developed a subform with multiple tableboxes presenting a table with different rowtypes.
The table looks for example like this:
MESSAGE_ID | LINE_NO | NAME | C00 | C01 | C02 | C56 | I01
1 1 | Header | Ver1 | Inv1 | | Finally |
1 2 | Posting | | 2640 | EUROPE | | 0
1 3 | Posting | | 5210 | EUROPE | | 1
To visualize the lines to the user I have placed the tableboxes on top of eachother and then I have buttons controlling which of the tableboxes to be shown. In the code for each button I also filter the table so that only the specified rowtype (NAME field) is shown. This makes it possible to show only the significant fields for each row type (as you can see in the example C00 is only used on header line) and I can also give the field more descriptive names (C01 on Header row is the invoioce number, but on Posting rows it's used for G/L Account). :-k
So, the question is... Does anyone know how to realize this in RTC? I haven't found any way to filter the repeater group or anything like that. Sure I can create multiple groups and specifiy the names for each row type, but still I will see ALL rows in every tab/group. ](*,)
I hope someone have an idea about this, since I dont wanna create separate pages for each row type. Of course that would solve it, but it would be quite expensive.
Best regards
/Simon
In the classic client I have developed a subform with multiple tableboxes presenting a table with different rowtypes.
The table looks for example like this:
MESSAGE_ID | LINE_NO | NAME | C00 | C01 | C02 | C56 | I01
1 1 | Header | Ver1 | Inv1 | | Finally |
1 2 | Posting | | 2640 | EUROPE | | 0
1 3 | Posting | | 5210 | EUROPE | | 1
To visualize the lines to the user I have placed the tableboxes on top of eachother and then I have buttons controlling which of the tableboxes to be shown. In the code for each button I also filter the table so that only the specified rowtype (NAME field) is shown. This makes it possible to show only the significant fields for each row type (as you can see in the example C00 is only used on header line) and I can also give the field more descriptive names (C01 on Header row is the invoioce number, but on Posting rows it's used for G/L Account). :-k
So, the question is... Does anyone know how to realize this in RTC? I haven't found any way to filter the repeater group or anything like that. Sure I can create multiple groups and specifiy the names for each row type, but still I will see ALL rows in every tab/group. ](*,)
I hope someone have an idea about this, since I dont wanna create separate pages for each row type. Of course that would solve it, but it would be quite expensive.
Best regards
/Simon
0
Comments
-
True.
I'm not by my computer right now, but I think I get what you mean. I'll try this later and we'll see if it solves it.
Thanks for the suggestion.0 -
Ok, i'm looking forward to your feedback :thumbsup:
oh, you probably want to work with filtergroup(4) also, which is the one that manages the subformlinkproperty. In this way you can make nav work totally as expected0 -
Now I have had the time to look at this a little more.
However, I can't get it working like in the classic client.
I can get the filter working, but only if I repeat the subpage part for each row type on the header page. With other words, I have to use the same set of columns for all the row types.
I can still not accomplish having different columns with different names depending on the row type. I see now that my example lines were poorly formatted, but I wanted to illustrate that for example C00 and C56 should only be shown on header line, and in that view it should be called "VerNumber' and 'BookingType':
MESSAGE_ID | LINE_NO | NAME_ | C00 | C01 | C02____ | C56__ | I01
1__________| 1______ | Header | Ver1 | Inv1 | ______ | Finally |
1_________ | 2______ | Posting | ____| 2640 | EUROPE | ______| 0
1_________ | 3______ | Posting | ____| 5210 | EUROPE | ______| 1
Is this possible to accomplish?
If I put all row types within the same subpage (using repeater) I get the possibility to set the column headers and only show the columns that are relevant, BUT I can't specifiy which rowtypes to show on which repeater.
The suggested code for CurrPage.mypagepartname.FORM.SETTABLEVIEW(mysourcetable) can only be used on header page to filter the complete subpage, not the repeater sections. And I can't find a way to set filter code on the repeaters.
So, did I misunderstand your idea or is it possible to do this?
Best Regards
/Simon0 -
Yeah, I do have 5 fixed rowtypes.
And it's true that I can accomplish the correct filtering for only showing the lines of a specific rowtype on each of the subpages.
But, I can't choose different column names if I do like that, can I?
Is it possible to code the subpage so I hide the other groups when showing a specific rowtype? I don't seem to have access to the visible property within the subpages so I can control the visibility, or have I missed something.
Best regards
/Simon0 -
Aaah, that's right. That's the way to do it. Thanks a lot.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions