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
To be documented
Hyper Link
Open Object Master Maintenance and search for the relevant object (grid/browser)
Select the ‘Instances’ tab
Select the relevant Grid Column (for this example I have choosen Sendung_ID)
In order to set the Column Value as Hyper Link for opening another screen, you should set the following attributes:
Attribute | Value | Explanation |
---|---|---|
EventEntryType | Javascript | |
EventLeaveType | Javascript | |
FolderWindowToLaunch | SendungDetailWindow | This is the Name of the actual Detail Design Form |
SUBTYPE | LAUNCH | |
VisualisationType | LINK |
The above can also be achieved from within Javascript itself by setting the following attributes:
...
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.
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
?? });
} |
HyperLink
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
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.