Solved

PML (for PDMS) methods are not being recognized...

Posted on 2001-08-29
4
2,183 Views
Last Modified: 2012-05-07
I'm pretty new to PML so I have a learning curve ahead of me.  

I am building a simple form that has a list and a view, along with two buttons.  The list is populated from a directore, the view is populated from a folder of plotfiles, based on which item in the list is selected.  The problem is, the methods are not being recognized.  

I am able to load the form, but when I try to show it, the init() method is not found.  Any ideas?

thanks,
sekans
0
Comment
Question by:Sekans
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 6437528
Is the init() method public?

Regards,
CJ
0
 
LVL 1

Author Comment

by:Sekans
ID: 6437599
I don't know, how can I find out.  I'll post the form definition below.

setup form !!miscequi
   !!miscequi.formtitle = 'Build Misc Equipment'
   !!miscequi.initcall  = '!this.Init()'
   
   list     .equip 'Select Equipment' call '!this.LoadPlotfile()' width 20 length 15
   view     .plot plot hei 9 aspect 0.8 bord on

   button .build   'Create' at x0 ymax+1 call '!bekmiscequi.Build()'
   button .dismiss 'Dismiss' at x0 ymax+1 CANCEL
exit

define method .Init()
   !dir       = object FILE('\\pdmsws1\pdms\bek11.2ui\MiscEquipment')
   !FileList  = object ARRAY()
   !Descript  = object ARRAY()
   !FileNames = object ARRAY()
   !TmpFile   = object FILE()
   !count     = object REAL()
   
   !s = object STRING()

   !this.equip.Clear()

   !FileList = !dir.Files()
   !count = arraysize(!FileList)
   do !i from 1 to $!count
      !FileNames.Append(!FileList[$!i].Fullname())
      !s = !FileList[$!i].Entry()
      !s = !s.Before('.')
      !Descript.Append(!s)
   enddo
     
   !this.equip.dtext = !Descript
   !this.equip.rtext = !FileNames
endmethod

define method .LoadPlotFile()
   !s = object STRING()

   !this.plot.Clear()

   !dir       = object FILE('\\PDMSWS1\pdms\bek11.2ui\MiscEquipment\PlotFiles')
   !ext       = '.plt'
   
   !s = !this.equip.selection('DTEXT')

   !this.plot.add('$!dir\$!s$!ext')
   handle any
      !this.plot.add('$!dir\empty$!ext')
      $p No plot file for $!s
   endhandle
endmethod

define method .Build()
   $p Building...
   !s = object STRING()

   !s = !this.equip.selection()
   $m/$!s
$P $!s
endmethod



0
 
LVL 54

Expert Comment

by:nico5038
ID: 7489574

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts refunded
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 7528135
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question