Home > Community > Forums > Custom IC SKILL > Help on using ddsFileBrowseCB

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: *

 Help on using ddsFileBrowseCB 

Last post Wed, Jan 26 2011 2:55 AM by Andrew Beckett. 8 replies.
Started by LeJonT 06 Jun 2010 09:47 PM. Topic has 8 replies and 3321 views
Page 1 of 1 (9 items)
Sort Posts:
  • Sun, Jun 6 2010 9:47 PM

    • LeJonT
    • Top 500 Contributor
    • Joined on Thu, Apr 1 2010
    • Chengannur, Kerala
    • Posts 31
    • Points 485
    Help on using ddsFileBrowseCB Reply

    Hi,

    I was exploring the code below to add file browse option, which I got from a solution here in this forum.

    procedure( fileBrowser()
      let( ( field browseBtn )
        field = hiCreateStringField( ?name 'filename)
        browseBtn = hiCreateFormButton(
          ?name 'browseBtn
          ?buttonText "Browse..."
          ?callback "ddsFileBrowseCB( hiGetCurrentForm() 'filename \"\" 'directory )"
        )

        hiCreateAppForm(
          ?name    'CCSfileBrowserForm
          ?formTitle "Example Form"
          ?callback    ""
          ?fields    list(field browseBtn)
        )
        hiDisplayForm(CCSfileBrowserForm)
      )
    )

    As per the documentation, the specific function has this option:

    s_mode : The selection mode specified as a symbol with the following choices:
     'anyFile: selection is any file, whether it exists or not
     'existingFile: selection is a single file (default)
     'directory: selection must be a directory where both files and directories are displayed
     'directoryOnly: selection must be a directory where only directories are displayed
     'existingFiles: selection consists of zero or more existing files

    But, none of these options are working for me. Irrespective of the option, the file browse window shows all the files and folders. Is there anything wrong with my approach? Is there anything wrong with the filer I'm using which is simply blank?

    I'm using icfb 5.1.0.

    Regds,
    Leo

    • Post Points: 20
  • Mon, Jun 28 2010 5:37 AM

    • LeJonT
    • Top 500 Contributor
    • Joined on Thu, Apr 1 2010
    • Chengannur, Kerala
    • Posts 31
    • Points 485
    Re: Help on using ddsFileBrowseCB Reply

    Hi,

    Found that this issue is due to the tool version difference.

    LeJonT:

    As per the documentation, the specific function has this option:

    s_mode : The selection mode specified as a symbol with the following choices:
     'anyFile: selection is any file, whether it exists or not
     'existingFile: selection is a single file (default)
     'directory: selection must be a directory where both files and directories are displayed
     'directoryOnly: selection must be a directory where only directories are displayed
     'existingFiles: selection consists of zero or more existing files

    In the tool version 5.1, only the 'anyFile and 'existsingFile options are available. Rest of them are available from 6.1 version onwards.

     -Leo

    • Post Points: 20
  • Mon, Jun 28 2010 6:54 AM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,051
    • Points 15,990
    Re: Help on using ddsFileBrowseCB Reply

    Hi Leo

    Unfortunately the problem does indeed exists on IC5141. I tested "directoryOnly" option in IC614-504 and it worked fine.

    Best regards
    Quek

    • Post Points: 5
  • Tue, Jan 18 2011 8:31 AM

    Re: Help on using ddsFileBrowseCB Reply

     Hi LeJonT,

          I think you have resolved your problem, can you tell me where to find the function "ddsFileBrowserCB()", thanks

    Regards,

    zfeng

    Regards, zfeng
    • Post Points: 20
  • Tue, Jan 18 2011 8:43 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,567
    • Points 15,575
    Re: Help on using ddsFileBrowseCB Reply

     Hi Zfeng,

    Again, the function name is ddsFileBrowseCB() (no "r" after Browse). I think that this function was introduced in the USR4 release of IC5141, so if you cannot see it, you must be using an older release than this.  I recommend upgrading your installation since USR4 is very old indeed.  If you cannot do this, you will probably have to write the file browser in SKILL.  There may be pre-existing examples of this.

    Best regards,

    Lawrence.

    Filed under: ,
    • Post Points: 20
  • Wed, Jan 19 2011 4:13 AM

    Re: Help on using ddsFileBrowseCB Reply

     Hi Lawrence,

         thanks, but i don't know how to check our cadence release verison, i just know that we are using ic5141, and i can't find ddsFileBrowseCB() in finder, but when i typed ddsFileBrowseCB() in CIW, it prompt that two arguments is required, so i think my cadence can recognize this function, unfortunatly, i search this function through all the documents, but i didn't find it. so if you have some example or document about this function ,can you share it with me!

    Regrads,

    zfeng

    Regards, zfeng
    • Post Points: 20
  • Wed, Jan 19 2011 4:16 AM

    Re: Help on using ddsFileBrowseCB Reply

    Zfeng,

    Lawrence already referenced a solution with an example in your other post 

    Andrew.

    • Post Points: 20
  • Wed, Jan 26 2011 2:25 AM

    • zfengINL
    • Not Ranked
    • Joined on Wed, Jan 26 2011
    • Lyon, Rhone
    • Posts 5
    • Points 70
    Re: Help on using ddsFileBrowseCB Reply

     Hi Andrew,

         I want to registe an online support account, but why it always turns up the window " the server is unavaible, try later", can you give me a link to registe online support?

    zfeng 

    Bon travail!
    • Post Points: 20
  • Wed, Jan 26 2011 2:55 AM

    Re: Help on using ddsFileBrowseCB Reply

    Hi Zfeng,

    You should just go to http://support.cadence.com and then in the "New User" section hit the "Register Now" button. I tried that, and it got onto the next page - not sure if that's the site you used, and if so, at which point it failed? If you can elaborate that, I can get somebody to check it out.

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (9 items)
Sort Posts:
Started by LeJonT at 06 Jun 2010 09:47 PM. Topic has 8 replies.