Getting ObjectID in WPS Objects: Difference between revisions

From OS2World.Com Wiki
Jump to navigation Jump to search
m Martini moved page Getting ObjectID is WPS Objects to Getting ObjectID in WPS Objects without leaving a redirect
Jugbogdan (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Every object in the Workplace shell cames from an Object Class it is assigned and Object ID.  
Every object in the Workplace shell came from an Object Class and assigned to an Object ID.  
There was some discussion on the forum about how to get ObjectIDs and I'm posting the summary of it as my personal notes.
There was some discussion on the forum about how to get ObjectIDs and I'm posting the summary of it as my personal notes.


Line 5: Line 5:
I forgot which was the way to see the "ObjectID" of a folder or program on the WPS desktop.
I forgot which was the way to see the "ObjectID" of a folder or program on the WPS desktop.


For example when creating an Object on WarpIn:
For example, when creating an Object on WarpIn:
 
  CREATEOBJECT="WPFolder|Alien Blaster|<WP_APPSFOLDER>|OBJECTID=<AlienBlasterFOLDER>;"
  CREATEOBJECT="WPFolder|Alien Blaster|<WP_APPSFOLDER>|OBJECTID=<AlienBlasterFOLDER>;"
                   ▲        ▲          ▲                  ▲
                   ▲        ▲          ▲                  ▲
                   ▲        ▲          ▲                  ▲
                   ▲        ▲          ▲                  ▲
               WPSClass    Name  Parent folder ObjID      ObjectID.
               WPSClass    Name  Parent folder ObjID      ObjectID.
 
The members of the OS2World community gave me some suggestions to help me out:
The members of the OS2World community give me some suggestions:


==GETOBJ.CMD==
==GETOBJ.CMD==
This script form hobbes can help you get a report of the ObjectIDs on your system.
This script from Hobbes can help you get a report of the ObjectIDs on your system.
* http://hobbes.nmsu.edu/download/pub/os2/dev/rexx/gbj111.zip
* gbj111.zip
It uses the WPTOOLS.DLL library.  
It uses the WPTOOLS.DLL library.  


==Custom REXX Script==
==Custom REXX Script==
It was also suggested to use a REXX script like:
It was also suggested to use a REXX script like:
<PRE>
<PRE>
/* REXX */
/* REXX */
Line 36: Line 33:


==Workplace Properties==
==Workplace Properties==
I also found you can find the ObjectID on some of the File-Properties of the WPS desktop.
I also found you can find the ObjectID on "Properties → File → ATTRIBUTE →.CLASSINFO"  of the WPS object.


[[Image:ObjectID-001.png|400px]]
[[Image:ObjectID-001.png|400px]]


==Workplace Properties 2==
==Workplace Properties 2==

Latest revision as of 02:40, 25 December 2025

Every object in the Workplace shell came from an Object Class and assigned to an Object ID. There was some discussion on the forum about how to get ObjectIDs and I'm posting the summary of it as my personal notes.

ObjectsIDs

I forgot which was the way to see the "ObjectID" of a folder or program on the WPS desktop.

For example, when creating an Object on WarpIn:

CREATEOBJECT="WPFolder|Alien Blaster|<WP_APPSFOLDER>|OBJECTID=<AlienBlasterFOLDER>;"
                 ▲         ▲           ▲                   ▲
                 ▲         ▲           ▲                   ▲
             WPSClass     Name   Parent folder ObjID      ObjectID.

The members of the OS2World community gave me some suggestions to help me out:

GETOBJ.CMD

This script from Hobbes can help you get a report of the ObjectIDs on your system.

  • gbj111.zip

It uses the WPTOOLS.DLL library.

Custom REXX Script

It was also suggested to use a REXX script like:

/* REXX */
call RxfuncAdd SysLoadFuncs, RexxUtil, SysLoadFuncs
call SysLoadFuncs

call SysIni 'USER', 'PM_Workplace:Location', 'All:', 'Keys'
if RESULT \= 'ERROR:' then DO i=1 to Keys.0
      SAY Keys.i
   END
else SAY RESULT
return

Workplace Properties

I also found you can find the ObjectID on "Properties → File → ATTRIBUTE →.CLASSINFO" of the WPS object.

Workplace Properties 2

The best graphic way to get an ObjectID of only one object may be this suggestion:

  • Right-click the object, go to 'Properties', then the 'Icon' tab and at the bottom click 'Details...'