Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Table of Contents

Record links in Grid are records which can be opened (a new screen will be launched, related to that record).

There are now two possible options to open a selected record. “Row Double Click” or/and “Hyper Link” definitions on certain columns within the grid itself.

Row double click

In order to open a record on row double click, the EventRowChosen attribute on the Grid must be set to a client logic function. Inside this function, the ‘launchContainer’ method needs to be called in order to open a new screen.

Image Added

 

The defined function can look like this:

Code Block
akioma.openRecord = function(self) {
  var oGrid = self.controller;
  app.controller.launchContainer( {
      containerName: 'offerw',
?????????? repositionTo:???? oGrid.dataSource.dynObject.getValue('selfhdl'),
?????????? caller:???????????????? oGrid,
?????????? data:???????????????????? true
?? });
}


The HyperLink is displayed as a link on the Grid columns. Clicking on this link will open a new screen related to the selected record. 

To set a Grid column as a link column, the following attributes need to be set on that column:  SUBTYPE: LAUNCH and VisualisationType: LINK

Image Added

These settings will only set the column to be a ‘link’ column. The screen that will be opened when clicking on the link can be specified in the following ways:

  • updateRecordContainer attribute on Grid column – this is on column level, so multiple columns can open different screens
  • updateRecordContainer attribute on Grid – this is on Grid level, so if there is no screen specified on column level, it will use the one defined here
  • FolderWindowToLaunch attribute on Grid – this is on Grid level, so if there is no screen specified on column level OR in updateRecordContainer attribute, it will use the one defined here

The HyperLink columns would then look like this and will open a new screen when clicking on them.

Image Added