I am sorry this post is quite long.
I have read this question "Expand only some of the categorized columns in a viewPanel upon opening" and try to apply the solution to my case, but it does not work (I think maybe it is different case or I use it incorrectly). Therefore I would to seek your advice/suggestion on my question.
I have one form, one view, one xpage and one custom control.
I paste the custom control to the xpage for testing the result.
In the custom control, I put a view from Container Controls to display the data stored in the view.
I would like to show the source code of the custom control here to let you know what I am planning to do.
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:viewPanel rows="30" id="viewPanel1">
<xp:this.facets>
<xp:pager partialRefresh="true" layout="Previous Group Next"
xp:key="headerPager" id="pager1">
</xp:pager>
</xp:this.facets>
<xp:this.data>
<xp:dominoView var="view1" viewName="TestView">
</xp:dominoView>
</xp:this.data>
<xp:viewColumn columnName="ItemNumber" id="viewColumn1">
<xp:viewColumnHeader value="Item Number" id="viewColumnHeader1">
</xp:viewColumnHeader>
</xp:viewColumn>
<xp:viewColumn columnName="ItemDescription" id="viewColumn2">
<xp:viewColumnHeader value="Item Description"
id="viewColumnHeader2">
</xp:viewColumnHeader>
</xp:viewColumn>
<xp:viewColumn columnName="PreviousItems" id="viewColumn3">
<xp:viewColumnHeader value="Previous Items"
id="viewColumnHeader3">
</xp:viewColumnHeader>
</xp:viewColumn>
</xp:viewPanel>
</xp:view>
I can imagine the viewPanel will look like a table with 3 columns which are Item Number, Item Description and Previous Items.
I would like to ask is it possible to have multiple expand/collapse rows in the viewPanel?
Currently, I am not able to post a picture to show my imagination of the table here, therefore I would like to describe it row by row.
A. For the first row, it will look like as normal row, I mean it will have Item Number, Item Description and Previous Items to show
B. For the second row, I would like to specify the First category. That row will be able to expand or collapse.
C. If I expand the First category (that is in the third row), there will be a sub-category (it belongs to the First category). That row will be able to expand or collapse. Item Number and Item Description only will display in the third row because it is a sub-category (in order not to get confuse, I may say this sub-category is sub-category1), so it will not have Previous Items.
D.If I expand the sub-category1 (the fourth row), the item will display in Item Description and it will have Previous Items. It is because it is an actual item that belongs to the First category and the sub-category1.
E. The fifth row will show the item similar to the fourth row.
F. In the sixth row. there will be another sub-category (in order not to get confuse, I may say this sub-category is sub-category2). This sub-category2 will show Item Number and Item Description and no Previous Items.
G. If expand the sixth row, that is in the seventh row, it will display in Item Description and it will have Previous Items. It is because it is an actual item that belongs to the First category and the sub-category2.
H. In the eighth row, I would like to specify the Second category. That row will be able to expand or collapse.
I. If expand the eighth row, there will a sub-category in the ninth row. (it belongs to the Second category and I may call this sub-category is sub-category3 )
J. If expand the ninth row, there will be an actual item show in tenth row and that item belongs to the Second category and the sub-category3.
K. In the tenth row, there will be another sub-category (sub-category4), it is belong to the Second category. It will be able to expand or collapse.
L. In the next row there will be an actual item that belongs to the Second category and the sub-category4.
That's all for my description of the result that the table will look like.
According to my description above, there will be 6 places to expand/collapse which are the First category, Second category, sub-category1, sub-category2, sub-category3 and sub-category4.
If it is possible to have multiple expand/collapse rows in the viewPanel, how to do it ?
It is because I input data in the form and show in xpage, the result is the table (viewPanel) shows the data by each row and cannot expand/collapse.
I should be grateful if you would give advice or suggestion on this issue.
I apologize that my post is quite long.
Thank you very much.
Yours sincerely,
beginner
Just try putting the categories in the Lotus Notes view. The component PanelView transforms the Notes View categories to expand/collapse sections in web.
Related
I want to compare row value of a column with different rows of one other column in Spotfire.
Requirement is whenever Issue ID is on Hold, its childIds also need to be on hold. Seems to be a quick fix however I am stuck around this
Please refer the screenshot
Thanks in Advance!!
If you go to the Add Data Tables section, and select the name of the original data table in the section titled "From Current Analysis", you can add a second Data Table based off the original data.
Then go to Edit, Data Table Properties, and go to the Column Matches tab -- delete the current column matches (Presumably it matched "Issue ID" to "Issue ID" etc), and then add a new Column Match where your original table has "Issue ID" selected, and the other has "Parent ID" selected.
At this point, you can make a cross table based off of the original table, where Issue ID and Parent ID are along the Vertical Axis. In your aggregate, add the following code (substituting the name of your second table where it says "Parent"):
If(Max([Status]) is null, Max([Parent].[Status]), Max([Status]))
I have a list of 500+ entries with customer data and we possibly want to change the ID number for the customers, and to make it easier to work with I wanted to create an interactive spreadsheet that display one customer at the time.
So in a new spreadsheet I want to display the customer from the first row, and then have a button that change the references in the cells to instead display the values from the second row, then the third row etc.
Please have a look at the attached pictures since I think they will explain the desired outcome better, and let me know if you don't understand what I mean.
Thank you in advance for your input!
BR,
Eric
Customer list
Interactive part with buttons
Expanding on my comment. From the Developer tab, choose "Insert" and pick the Spin Button from the list. Put it on your second sheet. Then right click the Spin Button you just added and go to Format Control. In Cell Link pick a cell on the second sheet (somewhere you can hide it). The you can use this value an in Index() formula to look up values from the other page.
As an example, I have three rows and two columns that I want to "Display row-by-row using a button". These are in A1:B3. I am displaying values in Column E using the formula shown in column F. Which are based on the value 2 which was chosen by hitting the up/down button on the Spin Button.
If I hit the "Up" button on the Spin Button that yellow cell changes automatically to 3 and the formulas adjust:
I have a table with two columns, the first column has the neighbourhood name, and the second column contains a tree species. The table contains tens of thousands of rows (ie. there are multiple trees of each species in each neighbourhood) I need to know the number of different tree species in each neighbourhood. I got as far as using a pivot table to summarize and count the trees occurring in each neighbourhood, but the information that I am looking for is even more simple than this. How many unique tree species occur in each neighbourhood. I am using excel 2011 for mac. Can someone help me figure out the best way to do this?
With a PivotTable, one column for ROWS and the other for COLUMNS (either for Count of VALUES) you should only need to count the entries (either by row or by column, depending upon whether trees or neighbourhoods, and which you chose where).
If you don't want Pivot Tables, try the SubTotals feature as described by "rob" here: https://superuser.com/a/405569
You can also do this with the Subtotal feature.
Click the Data tab in Excel's ribbon toolbar
Click the Sort button and sort by your category column
Click the Subtotal button and fill in the dialog as appropriate, then click OK For example...
At each change in: Category
Use function: Sum
Add subtotal to: Cost of Goods Sold
i.e. have column titles in row 1, sort by neighbourhood, and subtotal "for each change in neighbourhood, use the count function and add the subtotal to trees"
I am creating an excel spreadsheet and I just want to know whether is it possible to update one column on selection of an item in another column.
ex: I have a list Country in A column and list of States in B column. can you please let me know when I select a Country in A only those states belongs to A Should be listed in B.
Can anyone advice me how to do this ?
If I get your problem exactly, what you need is a simple filter.
Select your table and put a filter (under Home tab, Sort & Filter).
Check the country you want to see the states of (click the little grey box with black arrow for the A column).
After that, only those states that belong to the country you selected should be visible.
Now, if the state is wrong, it means your original data is wrong.
I have a list of sales people and a list of their sale revenues in two separate columns. How do I use an advanced filter or other sorting means to find the max of the sale revenue column and then have the formula output be the corresponding sales person?
Referencing this page:
http://www.techonthenet.com/excel/formulas/max.php
In this example, assuming column A was your list of salespeople and column B was your list of sales revenues...
=Max(B2:B6)
in any empty cell would return the highest sales revenue from column B.
I figured it out.
You first need to set a criteria. In the link's example, you would first (off to the side) make a small column that had a title of Value, then right under that put in the function =Max(B2:B6). Then click the "Advanced Filter" button. The data range would be the entire database, A1:B6. The criteria range is the new two row column you just made of Value and the Max formula. Then select and output range that will be big enough to hold your filtered data. in this case, a 2x2 grid will be enough. (Make sure to click the copy to new cell option at the top.)
The resulting filter will be the Date of the Max Value.
This is my first answer post on this site, so please let me know if I formatted it wrong.