Need suggestion to group rows with multiple layer hierarchy

Hi,

I’d like suggestion about the right way to manage my data. I would like to group it in a table view, like the hierarchy of the data suggests :

  • rows type F are “familly”
  • rows type O are “article”

There are 5 layers of familly : ACT, F1, F2, F3 and F4 to categorize articles.

I can’t find a way to group it properly. Any idea ?

Thanks

Solved Solved
0 16 597
1 ACCEPTED SOLUTION

Thanks for the quick feedback @CHRISTOPHE_CHANDELIE. Let me briefly explain how to do it on your own.


DATA :: SLICE


Initially create a slice of your main table with the below expression:

ISNOTBLANK([OUVRAGE])

UX :: TABLE VIEW


In your Table UX, rather than the read_only table, assign the slice that you have created above.


DATA :: COLUMNS


Expand the column structure for your read_only table. You need to add 6 Virtual columns to this table with below expressions.
N.B.: Please edit the table name (TestData) in the LOOKUP expressions as per your table schema and column structure

VC#1
Name: SEARCH_STRING
AppFormula: [ACT]&[F1]&[F2]&[F3]&[F4]

VC#2
Name: _ACT_
AppFormula:

LOOKUP(
	[_THISROW].[ACT]&"000000000000","TestData","SEARCH_STRING","LIBELLE"
)

VC#3
Name: _F1_
AppFormula:

LOOKUP(
	[_THISROW].[ACT]&[_THISROW].[F1]&"000000000","TestData","SEARCH_STRING","LIBELLE"
)

VC#4
Name: _F2_
AppFormula:

LOOKUP(
	[_THISROW].[ACT]&[_THISROW].[F1]&[_THISROW].[F2]&"000000","TestData","SEARCH_STRING","LIBELLE"
)

VC#5
Name: _F3_
AppFormula:

LOOKUP(
	[_THISROW].[ACT]&[_THISROW].[F1]&[_THISROW].[F2]&[_THISROW].[F3]&"000","TestData","SEARCH_STRING","LIBELLE"
)

VC#6
Name: _F4_
AppFormula:

LOOKUP(
	[_THISROW].[ACT]&[_THISROW].[F1]&[_THISROW].[F2]&[_THISROW].[F3]&[_THISROW].[F4],"TestData","SEARCH_STRING","LIBELLE"
)

UX :: TABLE VIEW


Open your table view and Group By in order:

ColumnName Order
_ACT_ Ascending
_F1_ Ascending
_F2_ Ascending
_F3_ Ascending
_F4_ Ascending
_RowNumber Ascending

Hope it’s explanatory enough. Enjoy.

View solution in original post

16 REPLIES 16

Can you please share a copy or part of this data as a spreadsheet? I would like to test a couple of things in my community demo app

Sure I could How could I do so ?

You can open this gSheet, copy&paste pls. Thnx.

@CHRISTOPHE_CHANDELIE
Which column is your Key column in this table?

Actually I did not find the perfect one to be the key. I let the row number for now, it is a read only table.

Gotcha

@CHRISTOPHE_CHANDELIE
You want to grouping be like this?

> TYPE
	> ACT
		> F1
			> F2
				> F3
					> O
						> F4
							> F5

F type lines are family. I think It is more something like :

> ACT
	> F1
		> F2
			> F3
					> F4
						> F5
                                                                 > O

For example, for the article 3P60001500 (OUVRAGE column) row number 5 :

Familly 1 ACT = MENUS TRAVAUX (row number 2)
Familly 2 F1 = FORAGES DANS PAROIS VERTICALES (row number 3)
Familly 3 F2 = DANS STRUCTURE CREUSE (row number 4)
Familly4 F3 = null
Familly5 F4 = null
Article = Forage Ø 20 mm (row number 5)

Gotcha…Need to think a bit for this…will get back to you @CHRISTOPHE_CHANDELIE

@CHRISTOPHE_CHANDELIE
Can you check if this is what you want to do with the Table Grouping? From in my Community Sample App below, click on the Deck View item of your name.

Hi Levent,

Thanks Yes it looks good for grouping and hierarchy. But there is another issue. The column “LIBELLE” (means description) should be used for display, for articles as weel as familly. Navigation based on codes looks tough. I suppose it gets more complex.

Hi @CHRISTOPHE_CHANDELIE
Sync the app in my prior post and please check if the new grouping fits the purpose. Please feedback if it’s OK, so that I’ll explain to you how to do it on your own app.

Hi @LeventK Yes this looks just perfect.

Thanks for the quick feedback @CHRISTOPHE_CHANDELIE. Let me briefly explain how to do it on your own.


DATA :: SLICE


Initially create a slice of your main table with the below expression:

ISNOTBLANK([OUVRAGE])

UX :: TABLE VIEW


In your Table UX, rather than the read_only table, assign the slice that you have created above.


DATA :: COLUMNS


Expand the column structure for your read_only table. You need to add 6 Virtual columns to this table with below expressions.
N.B.: Please edit the table name (TestData) in the LOOKUP expressions as per your table schema and column structure

VC#1
Name: SEARCH_STRING
AppFormula: [ACT]&[F1]&[F2]&[F3]&[F4]

VC#2
Name: _ACT_
AppFormula:

LOOKUP(
	[_THISROW].[ACT]&"000000000000","TestData","SEARCH_STRING","LIBELLE"
)

VC#3
Name: _F1_
AppFormula:

LOOKUP(
	[_THISROW].[ACT]&[_THISROW].[F1]&"000000000","TestData","SEARCH_STRING","LIBELLE"
)

VC#4
Name: _F2_
AppFormula:

LOOKUP(
	[_THISROW].[ACT]&[_THISROW].[F1]&[_THISROW].[F2]&"000000","TestData","SEARCH_STRING","LIBELLE"
)

VC#5
Name: _F3_
AppFormula:

LOOKUP(
	[_THISROW].[ACT]&[_THISROW].[F1]&[_THISROW].[F2]&[_THISROW].[F3]&"000","TestData","SEARCH_STRING","LIBELLE"
)

VC#6
Name: _F4_
AppFormula:

LOOKUP(
	[_THISROW].[ACT]&[_THISROW].[F1]&[_THISROW].[F2]&[_THISROW].[F3]&[_THISROW].[F4],"TestData","SEARCH_STRING","LIBELLE"
)

UX :: TABLE VIEW


Open your table view and Group By in order:

ColumnName Order
_ACT_ Ascending
_F1_ Ascending
_F2_ Ascending
_F3_ Ascending
_F4_ Ascending
_RowNumber Ascending

Hope it’s explanatory enough. Enjoy.

@LeventK Clear enough I think. I’ll let you know otherwise. Thanks a lot for your contribution, no way I would have found it myself !

You’re very welcome, my pleasure to be helped of.

Top Labels in this Space