dbTalk Databases Forums  

Strange behaviour in SET_REPORT_OBJECT_PROPERTY

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss Strange behaviour in SET_REPORT_OBJECT_PROPERTY in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nick048
 
Posts: n/a

Default Strange behaviour in SET_REPORT_OBJECT_PROPERTY - 02-26-2008 , 07:09 AM






Hi,

I need to run a report from a Form.
The Report Parameter are stored in a table and with this parameters I
want to set the report properties

Now if I use this statement (this is an example):

SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT,
MYTABLE.REP_DESFORMAT);


the property is set correctly.

But If I use this code:

DECLARE PR$Format VARCHAR2(100);
......
BEGIN
SELECT REPORT_DESFORMAT
INTO PR$Format
FROM MYTABLE
WHERE ........
SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT, PR$Format);
........
END;


the parameter is not set.

And so for the others parameters. I do not understand this curious
behaviour.

Can anyone help me ?

Greetings...
Gaetano

Reply With Quote
  #2  
Old   
shakespeare
 
Posts: n/a

Default Re: Strange behaviour in SET_REPORT_OBJECT_PROPERTY - 02-27-2008 , 11:58 AM







"nick048" <nicosia.gaetano (AT) moonsoft (DOT) it> schreef in bericht
news:e75b09e8-75db-42b5-9618-be91723981a9 (AT) p25g2000hsf (DOT) googlegroups.com...
Quote:
Hi,

I need to run a report from a Form.
The Report Parameter are stored in a table and with this parameters I
want to set the report properties

Now if I use this statement (this is an example):

SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT,
MYTABLE.REP_DESFORMAT);


the property is set correctly.

But If I use this code:

DECLARE PR$Format VARCHAR2(100);
.....
BEGIN
SELECT REPORT_DESFORMAT
INTO PR$Format
FROM MYTABLE
WHERE ........
SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT, PR$Format);
.......
END;


the parameter is not set.

And so for the others parameters. I do not understand this curious
behaviour.

Can anyone help me ?

Greetings...
Gaetano
Are you sure the select statement returns one and only one value? No
exceptions?

Shakespeare




Reply With Quote
  #3  
Old   
shakespeare
 
Posts: n/a

Default Re: Strange behaviour in SET_REPORT_OBJECT_PROPERTY - 02-27-2008 , 11:58 AM




"nick048" <nicosia.gaetano (AT) moonsoft (DOT) it> schreef in bericht
news:e75b09e8-75db-42b5-9618-be91723981a9 (AT) p25g2000hsf (DOT) googlegroups.com...
Quote:
Hi,

I need to run a report from a Form.
The Report Parameter are stored in a table and with this parameters I
want to set the report properties

Now if I use this statement (this is an example):

SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT,
MYTABLE.REP_DESFORMAT);


the property is set correctly.

But If I use this code:

DECLARE PR$Format VARCHAR2(100);
.....
BEGIN
SELECT REPORT_DESFORMAT
INTO PR$Format
FROM MYTABLE
WHERE ........
SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT, PR$Format);
.......
END;


the parameter is not set.

And so for the others parameters. I do not understand this curious
behaviour.

Can anyone help me ?

Greetings...
Gaetano
Are you sure the select statement returns one and only one value? No
exceptions?

Shakespeare




Reply With Quote
  #4  
Old   
shakespeare
 
Posts: n/a

Default Re: Strange behaviour in SET_REPORT_OBJECT_PROPERTY - 02-27-2008 , 11:58 AM




"nick048" <nicosia.gaetano (AT) moonsoft (DOT) it> schreef in bericht
news:e75b09e8-75db-42b5-9618-be91723981a9 (AT) p25g2000hsf (DOT) googlegroups.com...
Quote:
Hi,

I need to run a report from a Form.
The Report Parameter are stored in a table and with this parameters I
want to set the report properties

Now if I use this statement (this is an example):

SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT,
MYTABLE.REP_DESFORMAT);


the property is set correctly.

But If I use this code:

DECLARE PR$Format VARCHAR2(100);
.....
BEGIN
SELECT REPORT_DESFORMAT
INTO PR$Format
FROM MYTABLE
WHERE ........
SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT, PR$Format);
.......
END;


the parameter is not set.

And so for the others parameters. I do not understand this curious
behaviour.

Can anyone help me ?

Greetings...
Gaetano
Are you sure the select statement returns one and only one value? No
exceptions?

Shakespeare




Reply With Quote
  #5  
Old   
shakespeare
 
Posts: n/a

Default Re: Strange behaviour in SET_REPORT_OBJECT_PROPERTY - 02-27-2008 , 11:58 AM




"nick048" <nicosia.gaetano (AT) moonsoft (DOT) it> schreef in bericht
news:e75b09e8-75db-42b5-9618-be91723981a9 (AT) p25g2000hsf (DOT) googlegroups.com...
Quote:
Hi,

I need to run a report from a Form.
The Report Parameter are stored in a table and with this parameters I
want to set the report properties

Now if I use this statement (this is an example):

SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT,
MYTABLE.REP_DESFORMAT);


the property is set correctly.

But If I use this code:

DECLARE PR$Format VARCHAR2(100);
.....
BEGIN
SELECT REPORT_DESFORMAT
INTO PR$Format
FROM MYTABLE
WHERE ........
SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT, PR$Format);
.......
END;


the parameter is not set.

And so for the others parameters. I do not understand this curious
behaviour.

Can anyone help me ?

Greetings...
Gaetano
Are you sure the select statement returns one and only one value? No
exceptions?

Shakespeare




Reply With Quote
  #6  
Old   
shakespeare
 
Posts: n/a

Default Re: Strange behaviour in SET_REPORT_OBJECT_PROPERTY - 02-27-2008 , 11:58 AM




"nick048" <nicosia.gaetano (AT) moonsoft (DOT) it> schreef in bericht
news:e75b09e8-75db-42b5-9618-be91723981a9 (AT) p25g2000hsf (DOT) googlegroups.com...
Quote:
Hi,

I need to run a report from a Form.
The Report Parameter are stored in a table and with this parameters I
want to set the report properties

Now if I use this statement (this is an example):

SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT,
MYTABLE.REP_DESFORMAT);


the property is set correctly.

But If I use this code:

DECLARE PR$Format VARCHAR2(100);
.....
BEGIN
SELECT REPORT_DESFORMAT
INTO PR$Format
FROM MYTABLE
WHERE ........
SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT, PR$Format);
.......
END;


the parameter is not set.

And so for the others parameters. I do not understand this curious
behaviour.

Can anyone help me ?

Greetings...
Gaetano
Are you sure the select statement returns one and only one value? No
exceptions?

Shakespeare




Reply With Quote
  #7  
Old   
shakespeare
 
Posts: n/a

Default Re: Strange behaviour in SET_REPORT_OBJECT_PROPERTY - 02-27-2008 , 11:58 AM




"nick048" <nicosia.gaetano (AT) moonsoft (DOT) it> schreef in bericht
news:e75b09e8-75db-42b5-9618-be91723981a9 (AT) p25g2000hsf (DOT) googlegroups.com...
Quote:
Hi,

I need to run a report from a Form.
The Report Parameter are stored in a table and with this parameters I
want to set the report properties

Now if I use this statement (this is an example):

SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT,
MYTABLE.REP_DESFORMAT);


the property is set correctly.

But If I use this code:

DECLARE PR$Format VARCHAR2(100);
.....
BEGIN
SELECT REPORT_DESFORMAT
INTO PR$Format
FROM MYTABLE
WHERE ........
SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT, PR$Format);
.......
END;


the parameter is not set.

And so for the others parameters. I do not understand this curious
behaviour.

Can anyone help me ?

Greetings...
Gaetano
Are you sure the select statement returns one and only one value? No
exceptions?

Shakespeare




Reply With Quote
  #8  
Old   
shakespeare
 
Posts: n/a

Default Re: Strange behaviour in SET_REPORT_OBJECT_PROPERTY - 02-27-2008 , 11:58 AM




"nick048" <nicosia.gaetano (AT) moonsoft (DOT) it> schreef in bericht
news:e75b09e8-75db-42b5-9618-be91723981a9 (AT) p25g2000hsf (DOT) googlegroups.com...
Quote:
Hi,

I need to run a report from a Form.
The Report Parameter are stored in a table and with this parameters I
want to set the report properties

Now if I use this statement (this is an example):

SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT,
MYTABLE.REP_DESFORMAT);


the property is set correctly.

But If I use this code:

DECLARE PR$Format VARCHAR2(100);
.....
BEGIN
SELECT REPORT_DESFORMAT
INTO PR$Format
FROM MYTABLE
WHERE ........
SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT, PR$Format);
.......
END;


the parameter is not set.

And so for the others parameters. I do not understand this curious
behaviour.

Can anyone help me ?

Greetings...
Gaetano
Are you sure the select statement returns one and only one value? No
exceptions?

Shakespeare




Reply With Quote
  #9  
Old   
nick048
 
Posts: n/a

Default Re: Strange behaviour in SET_REPORT_OBJECT_PROPERTY - 02-28-2008 , 04:10 AM



On 27 Feb, 18:58, "shakespeare" <what... (AT) xs4all (DOT) nl> wrote:
Quote:
"nick048" <nicosia.gaet... (AT) moonsoft (DOT) it> schreef in berichtnews:e75b09e8-75db-42b5-9618-be91723981a9 (AT) p25g2000hsf (DOT) googlegroups.com...



Hi,

I need to run a report from a Form.
The Report Parameter are stored in a table and with this parameters I
want to set the report properties

Now if I use this statement (this is an example):

SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT,
MYTABLE.REP_DESFORMAT);

the property is set correctly.

But If I use this code:

DECLARE PR$Format VARCHAR2(100);
.....
BEGIN
SELECT REPORT_DESFORMAT
INTO PR$Format
FROM MYTABLE
WHERE ........
SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT, PR$Format);
.......
END;

Yes, I have tested the values returned from statement Select.

Bye
Gaetano
Quote:
the parameter is not set.

And so for the others parameters. I do not understand this curious
behaviour.

Can anyone help me ?

Greetings...
Gaetano

Are you sure the select statement returns one and only one value? No
exceptions?

Shakespeare


Reply With Quote
  #10  
Old   
nick048
 
Posts: n/a

Default Re: Strange behaviour in SET_REPORT_OBJECT_PROPERTY - 02-28-2008 , 04:10 AM



On 27 Feb, 18:58, "shakespeare" <what... (AT) xs4all (DOT) nl> wrote:
Quote:
"nick048" <nicosia.gaet... (AT) moonsoft (DOT) it> schreef in berichtnews:e75b09e8-75db-42b5-9618-be91723981a9 (AT) p25g2000hsf (DOT) googlegroups.com...



Hi,

I need to run a report from a Form.
The Report Parameter are stored in a table and with this parameters I
want to set the report properties

Now if I use this statement (this is an example):

SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT,
MYTABLE.REP_DESFORMAT);

the property is set correctly.

But If I use this code:

DECLARE PR$Format VARCHAR2(100);
.....
BEGIN
SELECT REPORT_DESFORMAT
INTO PR$Format
FROM MYTABLE
WHERE ........
SET_REPORT_OBJECT_PROPERTY(rep_id, REPORT_DESFORMAT, PR$Format);
.......
END;

Yes, I have tested the values returned from statement Select.

Bye
Gaetano
Quote:
the parameter is not set.

And so for the others parameters. I do not understand this curious
behaviour.

Can anyone help me ?

Greetings...
Gaetano

Are you sure the select statement returns one and only one value? No
exceptions?

Shakespeare


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.