Page tree
Skip to end of metadata
Go to start of metadata

What is a Dataview?

 

When to use a Dataview?

 

How to create a Dataview?

1. Create a new window (copy after SimpleSwatWindow).

2. Create a new dataview (copy after SimpleSwatDataview).

Both steps will be done by using the ‘New’ button from the Designer.

3. Search for your new window in the Designer (the Repository-objects Grid), then add your BE and your new Dataview.

4. Create the corresponding Links for your screen

PrimarySDO between Container -> BE

Data between BE -> Dataview

5. Now you need to edit the 'template' attribute for your Dataview. It should look like this:

generictemplate|functionsmallimage|functionname

Where 'generictemplate' specifies the template name (how the items will be displayed). You should use this name for now.

The next 2 values represent BE fields: first one will display an image, second one will display a title.

In this template we currently don't support static icons, so you would need to have a BE field that will have icons. If not, only the title will be displayed.

6. You would also need to set the EventRowChosen in Dataview in order to run your specific code when choosing (dbl-click) an item.

It will look something like this: $akioma.launchScreen(self);

Inside this function you'll need to write JS code that can e.g. launch a new container/screen.

Note

As an alternative, instead of EventRowChosen you can use EventRowSelected, which will be triggered on one click.



 

  • No labels