Unknown error in Genexus 15

0

Good morning guys, today I come with an error that so far I do not know what is due, nor do I know how to solve it. I work with Genexus 15 Java and I want to do a for each to my table to validate that a record already exists and when giving RUN or Buil All, this happens:

but I intentionally change the table to the for each and the error does not come out.

If someone could help me please, or this is not the way to validate if a record exists or not.

Sorry for the delay. But I do not know if I said it, but I'm just running GeneXus and I do not know yet some details.

I attach my Navigations.

Error

Ok

Greetings.

    
asked by Angel Cayhualla 29.03.2018 в 17:02
source

2 answers

1

Angel,

What it says is that to help you, the best is that we have the navigation view of your object.

But, you already said that there is a base table.

In this case, whenever there is a base table, and a for each in the same table, genexus generates a break, this is by definition.

I think what you're trying is a web that lists records, has a button to add a new record, and only adds case does not exist.

In that case, I think the best, for your case, is to do the for each in a sub.

It would be something like:

Event 'agregar'
    ...
    If ...
        Do ' verifica email'
    Endif
EndEvent

Sub 'verifica email'

    For each
    ...
    Endfor

Endsub

My suggestion is to review the topics of for each and determination of the base table.

Also the topic of the gik nomenclature, since it is not a good practice to have attributes such as "description".

    
answered by 30.03.2018 / 21:00
source
0

And if you leave the for each without transaction name?

Gx infers it only

For each    Where company ... Although it may be what Sandro says.

With regard to what Sandro says, is to see the Navigation view that you have there open.

And compare the navigations in the 2 cases.

    
answered by 30.03.2018 в 17:56