Solved

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

Posted on 2001-08-29
4
2,154 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# Error - Add Failed 12 94
Reccomended programming language for client-server applications 12 132
asp Google Map 2 33
programming a polycom voip phone 3 33
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

821 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