OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: Martin Iturbide on January 11, 2018, 05:39:23 pm

Title: How to list the OBJECTID names on WPS ?
Post by: Martin Iturbide on January 11, 2018, 05:39:23 pm
Hi

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 OID       ObjectID.

What was the easy way to know the ObjectIDs on the objects of the desktop for example. Any Script or Utility suggestion is welcome.

I know it should be easy but I just forgot about it.

Regards
                                                                         
Title: Re: How to list the OBJECTID names on WPS ?
Post by: Pete on January 11, 2018, 07:10:03 pm
Hi Martin

You may find getobj.cmd useful. From the comments, which include use instructions, included in getobj.cmd:-

/* Description                                                        */
/*   GETOBJ creates a list containing the data for all objects in a   */
/*   folder (and it's sub folder). For each object the title, the     */
/*   class, the setup string and the location is shown.               */
/*   GETOBJ can also create a REXX program with SysCreateObject calls */
/*   to recreate the objects.                                         */
/*                                                                    */
  http://hobbes.nmsu.edu/download/pub/os2/dev/rexx/gbj111.zip


Regards

Pete
Title: Re: How to list the OBJECTID names on WPS ?
Post by: ak120 on January 11, 2018, 07:19:36 pm
I forgot which was the way to see the "ObjectID" of a folder or program on the WPS desktop.
In the case that one desktop object contains several folder or program objects.
Code: [Select]
/* 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
Title: Re: How to list the OBJECTID names on WPS ?
Post by: Martin Iturbide on January 11, 2018, 10:06:59 pm
Thank you.

Both ways worked great.

I found a way to find that information one by one by checking the properties inside "file" (check attachment), but your ways are a lot faster and better.

Regards
Title: Re: How to list the OBJECTID names on WPS ?
Post by: David McKenna on January 11, 2018, 10:36:01 pm
Martin,

  Yet another way is to right-click the object, go to 'Properties', then the 'Icon' tab and at the bottom click 'Details...'

Regards
Title: Re: How to list the OBJECTID names on WPS ?
Post by: Martin Iturbide on January 12, 2018, 05:11:47 pm
Thanks for your help. I wrote this down on the Wiki (http://www.os2world.com/wiki/index.php/Getting_ObjectID_in_WPS_Objects) to don't forget about it on the future.

Regards