AVEVA Community
AVEVA Community
  • Site
  • User
  • Site
  • Search
  • User
PDMS "Lessons Learned"
  • AVEVA World
  • PDMS/E3D Forum
  • PDMS "Lessons Learned"
  • Cancel
PDMS "Lessons Learned"
Troubleshooting PML2........help needed
  • Forums
  • Resources
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Replies 9 replies
  • Subscribers 1 subscriber
  • Views 6 views
  • Users 0 members are here
Options
  • Share
  • More
  • Cancel
Related

PML2........help needed

shrikant M
shrikant M over 16 years ago
 
  • Sign in to reply
  • Cancel
  • shrikant M
    shrikant M over 16 years ago
    Hi...
    I am new to PML2 and creating a new macro...
    I have a boolean variable for which value can be True or false..
    I could able to get the same on the form. but whenever i open the form nex time  the value gets vanished.

    eg... if i cahnged a value of the variable to true i want it tobe true even when i open the form for the no of times and unless some user changes it to false....

    Please suggest


    Thank you in advance
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • john pitchers
    john pitchers over 16 years ago
    You should ask this in the PML1 PML2 forum.
    You will find lots of help and guidance there.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shrikant M
    shrikant M over 16 years ago
    As a regular user i dont have access to PML and PM2 forums.Hence i was not able to write in the same.:(
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • john pitchers
    john pitchers over 16 years ago
    So join up for premium membership. It pays to keep the forum going.
    It is not expensive.
    There are people on this forum who seem to only give help and guidance and pass on their knowledge to others. These people have who have joined up so why not those who only want or need that help.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • gAdZ
    gAdZ over 16 years ago
    don't put a "!this.callback" in constructing the form.

    "!this.callback" function is executed whenever the form is active. Thus, when you put value (e.g. !this.callback = '!this.initialize()') to it, everytime it is active, !this.initialize() will be executed.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • gAdZ
    gAdZ over 16 years ago
    hope you get what i mean.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shrikant M
    shrikant M over 16 years ago
    no...i dont exactly....

    But i changed the Boolean Attrib to text and it worked ok....
    I think it is not possible for Boolean variable :(
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Admin
    Admin over 16 years ago
    You need to be more specific, is it a form gadget, ie a text gadget. if so you need to set its value to TRUE in the .init() method;

    after you have defined the form you need an initialization method to set required values;

    define method .init()
     !this.text.val = |default|
    endmethod

    if it just a simple variable you can create a member in the form definition;

    member .formmember is boolean

    then in the initialisation method

    !this.formmember = TRUE

    hope this helps.

    Bobthebasset
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • avwf_de_ding
    avwf_de_ding over 16 years ago
    We have a section for PML/PML2, there are a lot of stuff there. Although I know $15 a year could be a lot of money for someone, I would highly suggest you be a subscriber.

    It goes a long way supporting the server and keep this site running.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel