ddsSyncWithForm

Discussion in 'Cadence' started by Andrey Orlenko 1038630570, Mar 3, 2004.

  1. I am using ddsSyncWithForm SKILL-function for exec LibraryBrowser
    window. It's clear. I am getting data from LibraryBrowser and
    synchronize them with my edit form.

    But I don't now how get event when this LibraryBrowser-window closes.

    Please, help me.

    --
    Andrey Orlenko
    Ukraine, Kiev
    ICQ# 157544292
    e-mail:
    http://flying.h11.ru/
     
    Andrey Orlenko 1038630570, Mar 3, 2004
    #1
  2. Why do you need this, what do you want to do?

    Bernd
     
    Bernd Fischer, Mar 3, 2004
    #2
  3. There is button 'Create' in my program. When I click this button
    LibraryBrowser runs and I am choosing library and cell. After closing
    LibraryBrowser-window I must start other calculations, but I don't now
    how to recognize event when this window closes.

    --
    Andrey Orlenko
    Ukraine, Kiev
    ICQ# 157544292
    e-mail:
    http://flying.h11.ru/
     
    Andrey Orlenko 1038630570, Mar 4, 2004
    #3
  4. But you can check if you get
    values for your library an cell.
    If you have both values you could start your calculations?
    If there are fields for your library and cell
    in your form you can use form field calbacks therefore.

    Bernd
     
    Bernd Fischer, Mar 4, 2004
    #4
  5. Thanks!
    I tried it ... but it doesn't fulfil my needs ;))

    I need to start calculation ONLY when my form (library and cell) will be
    filled and LibraryBrowser-window will be closed.

    If I'll use algorithm "if I have both values I can start my
    calculations" then every time, when user chooses data from
    LibraryBrowser (but doesn't close window), my program must perform
    calculations, what is unnecessary.

    --
    Andrey Orlenko
    Ukraine, Kiev
    ICQ# 157544292
    e-mail:
    http://flying.h11.ru/
     
    Andrey Orlenko 1038630570, Mar 4, 2004
    #5
  6. Sounds to me as if you need a form callback (with the ?callback option
    on hiCreateAppForm() )

    In fact you probably need to provide two (for OK/Apply and Cancel).
    These should then call ddsEndSyncWithForm() - this will end the synchronisation
    of the library select with the form, and also unmap the library select
    (effectively close it).

    I'm not sure why you need to check for the library browser being closed though.
    Sure, you need to validate the form in your form callback when OK/Apply is
    pressed, but that should be independent of whether the library browser is
    closed.

    Andrew.
     
    Andrew Beckett, Mar 5, 2004
    #6
  7. Ok, thanks!
    I have made like you said.

    --
    Andrey Orlenko
    Ukraine, Kiev
    ICQ# 157544292
    e-mail:
    http://flying.h11.ru/
     
    Andrey Orlenko 1038630570, Mar 5, 2004
    #7
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.
Similar Threads
Loading...