Navigation problem

36 views
Skip to first unread message

Teemu Simolin

unread,
Feb 9, 2015, 3:15:55 AM2/9/15
to openlega...@googlegroups.com
Hi,

We've got a screen (TuotekuvastonYllapito) with navigation from a menu. When I select the second record from the table it somehow selects also the first record. Returning to the screen from the second screen (TuotekuvastonPerustasot) gives an error message "Current screen entity class com.tuoteluettelo.openlegacy.TuotekuvastonPerustasot$$EnhancerByCGLIB$$d1527915 wasn't matched to the requested screen entity:class com.tuoteluettelo.openlegacy.TuotekuvastonYllapito". I use navigation without target entity. What might be the problem?

Best,

Teemu

Teemu Simolin

unread,
Feb 9, 2015, 3:20:51 AM2/9/15
to openlega...@googlegroups.com
@ScreenEntity(screenType = RecordSelectionEntity.class, displayName = "Tuotekuvaston valinta")
@ScreenIdentifiers(identifiers = { 
@Identifier(row = 1, column = 20, value = "Tuotekuvaston ylläpito        "), 
@Identifier(row = 1, column = 70, value = "NYEEEFR   ") 
})
@ScreenNavigation(accessedFrom = Manufacturing.class, assignedFields = { @AssignedField(field = "menuSelection", value = "CALL NYEEEFR ''") })
public class TuotekuvastonYllapito {
    
@ScreenField(row = 4, column = 6, endColumn = 8, editable = true, sampleValue = "K20")
    private String kuvasto;
private List<TuotekuvastonYllapitoRecord> tuotekuvastonYllapitoRecords;

@ScreenTable(startRow = 7, endRow = 20, rowGaps = 2)
@ScreenTableActions(actions = { @TableAction(actionValue = "Z", displayName = "Kuvastoon", defaultAction = true, action = EnterDrilldownAction.class, alias = "kuvastoon") })
public static class TuotekuvastonYllapitoRecord {

@ScreenColumn(startColumn = 2, endColumn = 2, editable = true, selectionField = true, sampleValue = "Z", displayName = "Valinta", targetEntity = TuotekuvastonPerustasot.class)
private String valinta;
@ScreenColumn(startColumn = 6, endColumn = 8, key = true, displayName = "Kuvasto", sampleValue = "K20")
private String kuvasto;
@ScreenColumn(startColumn = 13, endColumn = 42, mainDisplayField = true, displayName = "Selite", sampleValue = "TUOTEKUVASTO K20")
private String selite;
@ScreenColumn(startColumn = 48, endColumn = 48, displayName = "Voimassa", sampleValue = "K")
private String voimassa;
@ScreenColumn(startColumn = 25, endColumn = 74, sampleValue = "", rowsOffset = 1, displayName = "Dokumentti")
private String dokumentti;
}

@ScreenField(row = 24, column = 2, endColumn = 79, fieldType = MessageField.class, sampleValue = "Selausnäppäintä ei voi käyttää.                                               ")
private String message;

Roi Mor

unread,
Feb 9, 2015, 4:16:32 AM2/9/15
to openlega...@googlegroups.com
Hi Teemu,

Please send the project with a matching trail file, so we can try to reproduce it.

Thanks

Roi Mor

unread,
Feb 9, 2015, 9:27:01 AM2/9/15
to openlega...@googlegroups.com
Teemu,

I think I see the problem. I assume you are selecting 1st row, then clicking back, and then clicking rhe 2nd row. Is that correct?

Teemu Simolin

unread,
Feb 9, 2015, 9:29:49 AM2/9/15
to openlega...@googlegroups.com
That's correct.

Teemu Simolin

unread,
Mar 3, 2015, 5:32:19 AM3/3/15
to openlega...@googlegroups.com
Hi Roi,

I just would like to remind of this problem.


-Teemu

maanantai 9. helmikuuta 2015 16.27.01 UTC+2 Roi Mor kirjoitti:

Roi Mor

unread,
Mar 3, 2015, 6:16:29 AM3/3/15
to openlega...@googlegroups.com
Teemu,

It seems that the product works fine in this manner, meaning doesn't send 2 selections when clicking back and doing another selection.
The product doesn't clear other selection, as it's not considered correct in some cases.
I believe the problem is in the host application, meaning upon host back to the list, the previous selection is not cleared from the screen.
Using a custom navigation to manually reset this field should work.

Teemu Simolin

unread,
Mar 3, 2015, 6:29:18 AM3/3/15
to openlega...@googlegroups.com
Thanks Roi,

I noticed that the problem is indeed in the host application.
Reply all
Reply to author
Forward
0 new messages