refresh a form

Discussion in 'Cadence' started by SS, Jan 24, 2008.

  1. SS

    SS Guest

    I have a form in which the form fields are created dynamically based
    on the selection of one particular field.

    However I would like to know how to write the callback so that form is
    refreshed and displays the new field list.

    I am not trying to refresh the values in other fields but trying to
    get new set of fields.

    My callback creates the list of new fields but how do I pass the set
    of new fields to the currently displayed form and ask the form to
    refresh.

    thanks,
    Sriram
     
    SS, Jan 24, 2008
    #1
  2. SS

    Guest Guest

    You would use hiDeleteFields() to delete the old set of fields and
    hiAddFields() to add the new fields.

    However, if the set(s) of fields are determinate, you could always use a
    tab field or multiple scroll regions. With the tab field, use the tab to
    make the selection. with scroll regions, make only the appropriate scroll
    region visible.

    -Pete Zakel
    ()

    "Suppose for a moment that the automobile industry had developed at the same
    rate as computers and over the same period: how much cheaper and more
    efficient would the current models be? If you have not already heard the
    analogy, the answer is shattering. Today you would be able to buy a
    Rolls-Royce for $2.75, it would do three million miles to the gallon, and
    it would deliver enough power to drive the Queen Elizabeth II. And if you
    were interested in miniaturization, you could place half a dozen of them
    on a pinhead."
    -Christopher Evans
     
    Guest, Jan 28, 2008
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.