Just can't send a TT to appserver...

Posted by OctavioOlguin on 08-Mar-2017 21:41

I'm really annoyed  with this:

I have a TT1 defined (with a DS embracing it).

Then I define another TT2 like TT1.

Then down the process I populate TT2, debug it showing some value of some fileds on screen, and call a remote procedure on appserver 11.3.

The thing is that the TT1 is definen by an include, and used on both procedures, the calling one and remote callee... but on calling, I put the TT2 on the parameters....

the receiving procedure does the following, defining the name of the parameter as TT1 on this side (because the include is defined that way)

DEFINE INPUT  PARAMETER Accion          AS CHARACTER NO-UNDO.           // "PUT" o "GET"
DEFINE INPUT  PARAMETER pQuery          AS CHARACTER NO-UNDO.           // =GET=
DEFINE INPUT-OUTPUT PARAMETER table   FOR tt1.        // =GET&PUT=

and vôila, the TT1 it is empty on appserver side!!!

I also tested with the dataset parameter..
Also to note, the TT1 and TT2, (on paper, identical to each other) had a BLOB field.

So, what I'm missing?

Posted by Peter Judge on 09-Mar-2017 07:58

If you do not populate TT1 there will be no data in it.
 
Defined is not populated.
 

All Replies

Posted by Peter Judge on 09-Mar-2017 07:58

If you do not populate TT1 there will be no data in it.
 
Defined is not populated.
 

Posted by OctavioOlguin on 09-Mar-2017 09:18

Kind of I don't understand....

let me say it other way...

at client side

I define TT1, and TT2..

Put a record on TT2.

When calling remote appserver, I use TT2 as INPUT-OUTPUT parameter (being remote it is sent by value... didn't?)

over there, FIND FIRST on this remote TT, (It has a BLOB)...

Got IT!!

Got error (12307) -about not having a BEFORE.-TABLE-

The problem, is that this error was cougth, but missreported...

I put a return before the remote procedure cracked, and the calling procedure's:

CATCH e1 AS Progress.Lang.AppError:

           DO i = 1 TO e1:NumMessages:

               MESSAGE e1:GetMessage(i)

                   VIEW-AS ALERT-BOX BUTTONS OK TITLE "App Error".

           END.

END CATCH

catched it now.. before It wasn't capturing...or somehow trhowed another error...

Thanks...  I'll analyze this, and report back..

This thread is closed