cancel
Showing results for 
Search instead for 
Did you mean: 

Creating data dictionary type using custom java class

Former Member
0 Kudos

Hi Experts,

I have a situation involving the TableSorter mechanism as described here:

In order to do my sorting correctly, I've created my own Java class implementing the Comparable interface. Based on this class, I need to define my own data dictionary type to be used in a context/table.

However, I cannot se how this could be achieved as standard Data Dictionary elements can only be based on simple built-in types. Any ideas?

Kind regards,

Rasmus Røjkjær Ørtoft

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In short, do you want to create an attribute of your type?

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Appapparaj,

Yes, this is exactly what I want - to create a new attribute defined of a new DD type based on my own Java class.

Regards,

Rasmus

Former Member
0 Kudos

Hi,

have you tried to use the following steps while creating your attribute

1) Right click on the context

2) New->Attribute

3) Manually-> Provide a name for the attribute

4) Browse->Select java native type and select your class

regards

Ayyapparaj

Former Member
0 Kudos

Yes, off course!

Thank you, I've been too focused on creating my own type instead of just creating the attribute.

Thank you very much.

Kind regards,

Rasmus

Former Member
0 Kudos

Too fast too furious...

This actually works, however, the mechanism does not support binding the context element to a view - it seems that only built-in types are allowed here.

Any suggestions?

Former Member
0 Kudos

Hi,

Yes, an object type cannot be bound to most of the UI elements, they expects a specific data type. If you could tell the scenario where you need to bound this to a UI.

Regards

Ayyapparaj

Former Member
0 Kudos

I need to create a specific data type for table sorting. It is imperative that I control how this specific column is sorted, hency creating my own class was my best idea...

Kind regards,

Rasmus

Former Member
0 Kudos

Hi,

have you tried the table sorter class available to do this?

Their you can have your own comparator for columns. Hope this will help to make your own sorting logic to be implemented

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

Is that u want to use dictionary types to create your context ?

if it is so u can create a structure type in the dictionary and there u can have

a simple type for each attribute .

and while creating the node u can check tyhe check box crete with structure binding .

Regards,

Satya.

Former Member
0 Kudos

Hi Satya,

No, this is not what I want - see reply to Ayyapparaj.

Regards,

Rasmus

Edited by: Rasmus Røjkjær Ørtoft on Dec 19, 2008 10:09 AM