Solved

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

Posted on 2001-08-29
4
2,100 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
4 Comments
 
LVL 22

Expert Comment

by:CJ_S
Comment Utility
Is the init() method public?

Regards,
CJ
0
 
LVL 1

Author Comment

by:Sekans
Comment Utility
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
Comment Utility

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
Comment Utility
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A short article about a problem I had getting the GPS LocationListener working.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now