Home > Community > Forums > Custom IC SKILL > Custom Tool Env Variable Access

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Custom Tool Env Variable Access 

Last post Mon, Oct 15 2007 5:59 PM by archive. 2 replies.
Started by archive 15 Oct 2007 05:59 PM. Topic has 2 replies and 1538 views
Page 1 of 1 (3 items)
Sort Posts:
  • Mon, Oct 15 2007 5:59 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    Custom Tool Env Variable Access Reply

    I have created a custom Tool and registered it in $CDSHOME/tools/dfII/etc/tools. I have a large form that I want to read and write env varibles to/from it's fields. So far I have been successful reading default values into the form using envGetVal, a very brute force approach. How do I automatically update env variables upon changes to the form fields? I have tried callbacks using envSetVal however I get loading errors passing current values of a field when the form has not been created yet. Any ideas or an easier way to do any of this would be great help! Thank you, Dale


    Originally posted in cdnusers.org by jbj008
    • Post Points: 0
  • Mon, Oct 22 2007 7:20 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Custom Tool Env Variable Access Reply

    I'm a little confused when you say the callbacks are failing when the form has not yet been created? How come your callbacks are running before your form is created? When I have done this for my forms, I set the form fields this way:

    field1= list(hiCreateBooleanButton(
    ?name 'fieldName
    ?value envGetVal("customTool" "varName")
    ?buttonText "My Button Text:")
    0:0 100:30 0)

    Then my callback for the form sets all the variables using envSetVal. I could put a callback for each field if I wanted to. In either case, though, my form already exists before a callback is ever invoked.

    -Derek


    Originally posted in cdnusers.org by dmay
    • Post Points: 0
  • Mon, Oct 29 2007 2:58 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Custom Tool Env Variable Access Reply

    I don't understand either - but perhaps hiInstantiateForm() is needed?

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
Page 1 of 1 (3 items)
Sort Posts:
Started by archive at 15 Oct 2007 05:59 PM. Topic has 2 replies.