cancel
Showing results for 
Search instead for 
Did you mean: 

hierarchies

Former Member
0 Kudos

hi,

i need the output to be like this

CATAGORY

arts id address

commerce 01 st.john's college

student1 001 abc house

student2 002 '''

literature 02 ....

student1 021 ...

student2 022 ...

Science ..

Biology

student1

student2

Maths

student1

student2

can any one tell me how to do this.i followed the procedure in sdn.but getting stuck at the parameter "path".

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

well for defining the path you need to create a context attribute say "selectedElement" and map it of Java Native type.

I guess you have missed out this step of creating "selectedElement" as a context attribute. It is there in the tutorial :).

Anyway detailing the steps to be done.

To open the View Designer, double-click TreeView in the project structure.

1 Choose the Actions tab page.

2 Choose New to create a new action with the name LoadChildren and choose Next.

4. To add a new parameter, choose New. Give this parameter the name element "selectedElement" and for

Type, choose .

5. In the dialog box that appears, select Java Native Type, then choose Browse... In the

next dialog box that appears, enter IFolderContentElement .

6. Choose OK twice and Finish twice.

7. Repeat steps 3 to 6 for another action with the name Select and the parameter

selectedElement of the same type as in LoadChildren.

Once you do this then you will be able to get the value of the selected element.

Hope that helps you. Let me know if you require some help.

regards

Ravi

Former Member
0 Kudos

hi Ravi,

i tried the procedure u told.i proceeded like this:

1. created action LoadChildCatalogEntries,created parameter "element" of type IcatalogEntriesElement.

2.created another action Select with the same parameter "element" and type ICatalogEntriesElement.

then i mapped the "path" with "element" as in the document.

but i m not able to succeed.can u please tell me vr i have gone wrong.what should i do in the action event handler of Select.

thanks a lot....

Answers (1)

Answers (1)

Former Member
0 Kudos

yes