How to return a "OUT" parameter in Genexus Ev3 U1 Smartdevices?

Asked

Viewed 217 times

0

Develop with Genexus Smart Devices Ev3 U1 for Android.

I intend to develop a screen Father that by clicking a button opens the screen Son, where the user selects an item in a grid and returns to the Parent by displaying the clicked item.

But does not return the "out" parameter of the Child.

See how I’m trying:

in the Panel "Father" there is a button with the event below:

Event 'Adicionar Lugar'
Composite
pnPromptCota.Call(&addLugVCOTA_COTACODIGO)
TextblockLugarDs.Caption = &addLugVCOTA_COTACODIGO.ToString()
Interop.Msg('&addLugVCOTA_COTACODIGO= '+&addLugVCOTA_COTACODIGO.ToString().Trim())
EndComposite
Endevent

In the Panel "Son" (Selection Prompt) has a grid with Tap event:

parm(
    out: &VCOTA_COTACODIGO
    );


Event VCOTA_COTACODIGO.Tap
&VCOTA_COTACODIGO = VCOTA_COTACODIGO
SDActions.Return()
Endevent

But when returns brings zero code (in "Interop.Msg....").

For me there is no logic, it seems all right, just as I would in Web programming with Genexus.

What can I change to make OUT return?

I await return. Thank you!

Note: I’ve tried only "Return" instead of "Sdactions.Return()" and it doesn’t work either.

1 answer

1

In some app I did something similar to what you mention. It was based on this example. From what I saw in your case the most important difference is that you use the event "tap" (Event VCOTA_CODIGO.Tap) and in the example (and in my case) was configured as "default action" of the "grid". Suddenly, you can try to implement it as in the example.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.