FORMS 4.5 -> Graphics 2.5: Parameterlist-Problem on NT 4.0
Date: 1998/01/28
Message-ID: <6an4dk$ldd$2_at_news01.btx.dtag.de>#1/1
I want to call Oracle Graphics 2.5 out from Forms 4.5 and I have problems to recognize the parameterlist in the graphics-part.
I use Oracle Forms 4.5 and Oracle Graphics 2.5 on Windows NT 4.0
The database is Oracle WGS 7.3.2.3.
I hope this are all information about the environment that are
necessary.
The coding I did is:
Forms-Module: (when-button-pressed-trigger)
-- SA_V1 and SA_V2 are text items with base table property set to
- false declare v_ReturnCode NUMBER; v_FileName VARCHAR2(80); v_ParamListID PARAMLIST;
begin
IF LENGTH(:SA_V1) > 0 and LENGTH(:SA_V2) > 0 THEN
- Interface to Oracle Graphics v_ParamListID := GET_PARAMETER_LIST('GRAFIK'); IF NOT ID_NULL(v_ParamListID) THEN DESTROY_PARAMETER_LIST(v_PAramListID); END IF; v_ParamListID := CREATE_PARAMETER_LIST('GRAFIK'); ADD_PARAMETER(v_ParamListID, 'Variable_1', TEXT_PARAMETER, :SA_V1); ADD_PARAMETER(v_ParamListID, 'Variable_2', TEXT_PARAMETER, :SA_V2);
v_FileName := :GLOBAL.PATHNAME || 'PROBEN'; Run_Product (GRAPHICS, v_FileName, SYNCHRONOUS, RUNTIME, FILESYSTEM, v_ParamListID, 'SA_CHART');
ELSE
SET_ALERT_PROPERTY('FEHLER', ALERT_MESSAGE_TEXT, 'Please insert values for
SA_V1 and SA_V2');
v_ReturnCode := SHOW_ALERT('FEHLER');
END IF;
end;
The Graphics Module is:
PROCEDURE OPEN_PROBEN IS
v_Window OG_WINDOW; v_Window_Position OG_POINT; v_Window_Height NUMBER; v_Window_Width NUMBER; v_Layer_Mercedes OG_LAYER; v_Layer_Lieferant_ohne OG_LAYER; v_Layer_Lieferant_mit OG_LAYER; v_Layer_Title OG_LAYER; v_ParamListID tool_int.ParamList; v_PType NUMBER; v_PValue VARCHAR2;
BEGIN
--Get the Values passed through the parameterlist GRAFIK
v_ParamListID := TOOL_INT.GET_PARAMETER_LIST('GRAFIK');
IF TOOL_INT.ISNULL(v_ParamListID) THEN
CREATE_ERROR_MESSAGE(1);
else
- Auslesen der Werte aus der Parameterliste
tool_int.get_parameter_attr(v_ParamListID, 'variable_1', v_ptype, v_pvalue);
:g_Anlage := v_pvalue;
tool_int.get_parameter_attr(v_ParamListID, 'variable_2', v_ptype, v_pvalue);
:g_Year := v_pvalue;
--Get the plot period out of the year value
:
When I run the application, The procedure CREATE_ERROR_MESSAGE is called, because the v_ParamListID is null after executing the GET_PARAMETER_LIST()-procedure.
I have no idea why this happens. Is it correct to write the name
of the parameterlist as I did and can Graphics know the Name
('GRAFIK').
Is there a better way to combine Forms and Graphics? My problem
is, that I have defined a chart-item in the form, the graphicsdisplay
is a large display (DIN-A 4: 8.3 inch x 11,8 inch) which
fills the whole screen and therefore should be shown without
additional forms-screen.
[Quoted] Any Help is appreciated.
Yours Sincerely
Manfred Tischendorf
/\ / a\ Manfred Tischendorf / s \ / u \ Bruehlstr. 2 / k \ D 74379 Ingersheim / r \ Deutschland / Germany \a / \ / Tel.: +49 7142 9800-[Tel.Nr.] \ / Fax: +49 7142 9800-29 \____/ E-Mail: [E-Mail-Name]_at_arkusa.de \ / WWW: http://www.arkusa.de/ \/ -----------------------------------------------------------Received on Wed Jan 28 1998 - 00:00:00 CET