**HANDLE is not a settable attribute for STREAM widget. (405

Posted by Nithila Pillai on 19-Feb-2017 12:39

Hi,

I've the situation to get stream handle from global variable to use/refer the stream. Unfortunately
below logic doesn't work and raises an error "**HANDLE is not a settable attribute for STREAM widget. (4052)"
(knowledgebase.progress.com/.../Can-a-static-stream-handle-attribute-be-assigned-to-an-existing-stream-object)

Code Snippet:
DEF SHARED STREAM <Stream Name>.

< Get stream handler using persistent proc>

STREAM <Stream Name>:HANDLE = <streamHandle>.

Could you pls suggest if there any workaround to achieve this?

Thanks.

All Replies

Posted by Mike Fechner on 19-Feb-2017 15:06

Stream handles are not used to assign them to a static stream.
 
You need to use the STREAM-HANDLE option of the various output statements. Like
 
PUT STREAM-HANDLE hStream 42.
 
Instead of
 
PUT STREAM stream1 42.
Von: Nithila Pillai [mailto:bounce-nithila@community.progress.com]
Gesendet: Sonntag, 19. Februar 2017 19:41
An: TU.OE.Development@community.progress.com
Betreff: [Technical Users - OE Development] **HANDLE is not a settable attribute for STREAM widget. (4052)
 
Update from Progress Community
 

Hi,

I've the situation to get stream handle from global variable to use/refer the stream. Unfortunately
below logic doesn't work and raises an error "**HANDLE is not a settable attribute for STREAM widget. (4052)"
(knowledgebase.progress.com/.../Can-a-static-stream-handle-attribute-be-assigned-to-an-existing-stream-object)

Code Snippet:
DEF SHARED STREAM <Stream Name>.

< Get stream handler using persistent proc>

STREAM <Stream Name>:HANDLE = <streamHandle>.

Could you pls suggest if there any workaround to achieve this?

Thanks.

View online

 

You received this notification because you subscribed to the forum.  To stop receiving updates from only this thread, go here.

Flag this post as spam/abuse.

 

This thread is closed