Unable to Display Dynamic Object Names

Dear All,

By using handle, I am trying to find the name of PSEUDO-WIDGET, FRAME, TEXT and FIELD-GROUP type dynamic handles. I am able to get the handle type by using "Handle-name: TYPE" but not able to get name of these dynamic objects.

I am trying to get the name of these objects by using "Handle-name: NAME" and so many other attributes by referring “Object Attribute Reference“ of Appbuilder but unable to display name of these dynamic objects.

Please suggest on this.

Regards,
 

Osborne

Active Member
According to the manual the NAME attribute is available for FRAME, TEXT and FIELD-GROUP but not PSEUDO-WIDGET:
NAME attribute
A string identifier for the specified object or widget.
Data type: CHARACTER
Access: Readable/Writeable
Applies to: Asynchronous request object handle, BROWSE widget (browse, column, and cell), Buffer object handle, Buffer-field object handle, BUTTON widget, COMBO-BOX widget, CONTROL-FRAME widget, Data-relation object handle, Data-source object handle, DIALOG-BOX widget, EDITOR widget, FIELD-GROUP widget, FILL-IN widget, FRAME widget, IMAGE widget, LITERAL widget, MENU widget, MENU-ITEM widget, Procedure object handle, ProDataSet object handle, Query object handle, RADIO-SET widget, RECTANGLE widget, SELECTION-LIST widget, Server object handle, Server socket object handle, SLIDER widget, SOAP-header object handle, SOAP-header-entryref object handle, Socket object handle, SOURCE-PROCEDURE system handle, Stream object handle, SUB-MENU widget, TARGET-PROCEDURE system handle, Temp-table object handle, TEXT widget, THIS-PROCEDURE system handle, TOGGLE-BOX widget, WINDOW widget, X-document object handle, X-noderef object handle.

For any object or widget, this attribute can contain any arbitrary value that you set.
If for FRAME, TEXT and FIELD-GROUP you set using code does that work?:
Code:
Handle-name: NAME = "ObjectName".
 
Thanks for your reply Osborne!

I am getting Handle-name:NAME value as ? when doing it for FRAME, TEXT and FIELD-GROUP.

As you mentioned above, I think value for FRAME/TEXT/FIELD-GROUP needs to assigned first and then only we can get that corresponding value otherwise it will be ? only. Please suggest if my understating is correct here.

Any idea for how to retrieve PSEUDO-WIDGET name please.

Regards,
 

Osborne

Active Member
As you mentioned above, I think value for FRAME/TEXT/FIELD-GROUP needs to assigned first and then only we can get that corresponding value otherwise it will be ? only. Please suggest if my understating is correct here.
I think this could well be the case.

The documentation for PSEUDO-WIDGET seems to be none existent. As a rule a PSEUDO-WIDGET is a system handle (SESSION or CLIPBOARD or ABL status or system object), and may explain why it does not have a name. If so, then there may be no way to retrieve any name because one would never be available.
 

Osborne

Active Member
No, unfortunately not. In all these years I have never had to account for PSEUDO-WIDGET. The only thing I can think of maybe trying is PRIVATE-DATA but probably doubt you can set that or it is not available for what is effectively a system handle.
 

Cringer

ProgressTalk.com Moderator
Staff member
I doubt you'll be able to query much on a PSEUDO-WIDGET. It has been a long time since I did anything with widget handles, but I'm pretty sure there's a way of checking if a property is valid for a widget type before you use it, so you don't get these errors. I just can't remember what it is! :)
 
I doubt you'll be able to query much on a PSEUDO-WIDGET. It has been a long time since I did anything with widget handles, but I'm pretty sure there's a way of checking if a property is valid for a widget type before you use it, so you don't get these errors. I just can't remember what it is! :)

I think you are taking about CAN-QUERY(HANDLE," ").

Regards,
 
Top