Oracle - Significado de sentencia SRW.USER_EXIT

 
Vista:

Significado de sentencia SRW.USER_EXIT

Publicado por lucke (5 intervenciones) el 09/04/2013 15:53:42
Hola,
Quisiera saber para que se utiliza la sentencia SRW.USER_EXIT. Estoy modificando un report y tengo que modificar esta sentencia. He buscado mucha información a cerca de esta sentencia, pero no logro entender del todo su significado y como utilizarla. Espero me puedan orientar un poco.
Saludos
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

Significado de sentencia SRW.USER_EXIT

Publicado por Luis Pablo (235 intervenciones) el 15/04/2013 18:09:44
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Suppose you have a user exit named STORE to which you want 
** to pass salary values from Report Builder.  To do so, you 
** could write the following formula.  
*/
 
FUNCTION FOO RETURN BOOLEAN IS
BEGIN
IF :SAL >= 0 THEN
   SRW.REFERENCE(:SAL);
   SRW.USER_EXIT('STORE SAL');
ELSE
   SRW.MESSAGE(100, 'FOUND A NEGATIVE SALARY. CHECK THE
 EMP TABLE.');
END IF;
EXCEPTION
    WHEN SRW.UNKNOWN_USER_EXIT THEN
         SRW.MESSAGE(200, 'STORE USER EXIT WAS UNKNOWN.
                     CHECK IF IT''S LINKED.');
    WHEN SRW.USER_EXIT_FAILURE THEN
         SRW.MESSAGE(200, 'STORE USER EXIT FAILED.
                     CHECK ITS CODE.');
 
RETURN(TRUE);
END;
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Significado de sentencia SRW.USER_EXIT

Publicado por Luis Pablo (235 intervenciones) el 15/04/2013 18:10:37
Description

This procedure calls the user exit named in user_exit_string. It is useful when you want to pass control to a 3GL program during a report's execution.
Syntax
SRW.USER_EXIT (user_exit_string CHAR);

Parameters

user_exit_string: Is the name of the user exit you want to call and any columns or parameters that you want to pass to the user exit program.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar