PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Changing the Screen_ID$ property of a Nomads Object  (Read 441 times)

Peter.Higgins

  • Diamond Member
  • *****
  • Posts: 100
    • View Profile
Changing the Screen_ID$ property of a Nomads Object
« on: December 29, 2020, 02:22:53 PM »
I am exploring if the same object nomads program can be used to display both a dialog and a child window (suffixed with a "C").  Will the process() method accept an parameter in Object Nomads because the below seems to be using the Dialog? 

-}x=new("EPCVEW")
-}?X'*
BT_Excel(),BT_Exit(),BT_First(),BT_Last(),BT_Next(),BT_Prev(),ChangePoNumber(),C
hangeProfile(),CloseWindow(),GETNAME$(),GETVARIABLE$(),GetClass$(),GetQry$(),Get
Type$(),JUMPTO(),OnExit(),PROCESS(),PanelCompleted(),PanelInitialized(),PostLoad
(),PreLoad(),REFRESHSCRN(),SCREEN_ID$,SCREEN_LIB$,SetFilter(),SetQry(),SetSecuri
tyCode(),_Parent,
-}x'screen_id$="EPCVEWC"
Error #88: Invalid/unknown property name
-}x'PROCESS("EPCVEWC","EDI.EN")
-}DROP OBJECT X
-}

Mike King

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3582
  • Mike King
    • View Profile
    • PVX Plus Technologies
Re: Changing the Screen_ID$ property of a Nomads Object
« Reply #1 on: December 29, 2020, 03:18:54 PM »
Technically the object could however there is no functionality to allow you to override the type of output to be used.

While I have not tried this, you might be able to fake it out by creating your panel as a Dialog, then create another "Window" panel which does nothing other than embed the Dialog panel.  You should then be able to select which type of output based on the panel name.