Author Topic: How to list the OBJECTID names on WPS ?  (Read 4310 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4711
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
How to list the OBJECTID names on WPS ?
« 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
                                                                         
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Pete

  • Hero Member
  • *****
  • Posts: 1281
  • Karma: +9/-0
    • View Profile
Re: How to list the OBJECTID names on WPS ?
« Reply #1 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

ak120

  • Guest
Re: How to list the OBJECTID names on WPS ?
« Reply #2 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

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4711
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: How to list the OBJECTID names on WPS ?
« Reply #3 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
Martin Iturbide
OS2World NewsMaster
... just share the dream.

David McKenna

  • Hero Member
  • *****
  • Posts: 742
  • Karma: +24/-0
    • View Profile
Re: How to list the OBJECTID names on WPS ?
« Reply #4 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

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4711
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: How to list the OBJECTID names on WPS ?
« Reply #5 on: January 12, 2018, 05:11:47 pm »
Thanks for your help. I wrote this down on the Wiki to don't forget about it on the future.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.