Need help with database extension

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Need help with database extension

    Hi all,

    I read the DW Help and couple articles on the Macromedia site, but I could not
    make sense of what is the relationship of Dreamweaver and Database. What I
    want is to be able to connect to a database (MS SQL or ACCESS) within a command
    extension and be able to do query, and manipulate the results. Is it possible?
    Do DW API has such functions? Are there example codes?

    Thank you very much,

    --yeudoi



    yeudoi Guest

  2. Similar Questions and Discussions

    1. Webassist Database search extension 1.4.1
      I am using WebAssist Data search wizard 1.4.1 with MS Access 2003, on Dreamweaver 8. And I am getting the error: "While executing OnClick in...
    2. DM6.0 Extension Manager v1.2.107 not d/l newer extension
      Hi Folks, I have not been on line due to back surgery and recovery (ouch, yes it still hurts) I have tried to down load some newer navigation aids...
    3. Is .dcr extension = Director file extension ?
      I'm a newbie and saw some files on a website ending in .dcr... 1 - Is the .dcr file type a Macromedia Director file? 2 - Does it take the...
    4. Passing database info to page allow user input then pass into another database
      Hi I really am going crazy! I'm using VBScript, ASP, and SQL My page reminds me of a shopping cart but looking at shopping cart examples has not...
    5. Another user has modified the contents of this table or view; the database row you are modifying no longer exists in the database;
      Hi, I am testing a trigger that and I am getting this error message saying "Another user has modified the contents of this table or view; the...
  3. #2

    Default Re: Need help with database extension

    yeudoi wrote:
    > Hi all,
    >
    > I read the DW Help and couple articles on the Macromedia site, but I could not
    > make sense of what is the relationship of Dreamweaver and Database. What I
    > want is to be able to connect to a database (MS SQL or ACCESS) within a command
    > extension and be able to do query, and manipulate the results. Is it possible?
    > Do DW API has such functions? Are there example codes?
    The DW API does have some DB interaction calls using the MMDB object. However, the exposed call that can get you results from, DB MMDB.showResultset(), pops up a dialog with the results in it. The same dialog that is popped up when the user presses the Test button on the Recordset dialog. So, you don't actually get the results to be able to manipulate them.

    If the DB you have to access can be connected to via a remote server (could even be localhost), you can try to use the MMHttp object and have your server side pages run code that accesses the db and provides the results either as text, or as a file.


    --
    Danilo Celic
    | Extending Knowledge, Daily [url]http://CommunityMX.com/[/url]
    danilocelic *TMM* Guest

  4. #3

    Default Re: Need help with database extension

    Hi Danilo :
    yeudoi Guest

  5. #4

    Default Re: Need help with database extension

    Hi Danilo :

    Would you please point to some sample codes for DB connection and query?
    To connect to a database, does user has to create a ODBC DNS and open
    connection thru dialog?

    Thank you very much,

    --yeudoi


    yeudoi Guest

  6. #5

    Default Re: Need help with database extension

    yeudoi wrote:
    > Hi Danilo :
    >
    > Would you please point to some sample codes for DB connection and query?
    > To connect to a database, does user has to create a ODBC DNS and open
    > connection thru dialog?
    I don't have any code for using MMDB to pull query info, as I've not used it before specifically because you don't get the data yourwelf, it just pops up in its own dialog and you can' manipulate it. The connection to a db is is defined by a connections file (or by a datasource name in the case of a CF page I'd guess). I suppose that you could create your own connection file and work with that.

    As for working with MMHttp to hit a remote server, the only code I've seen is code that I wrote for a series of articles (commercial):
    [url]http://www.communitymx.com/search.cfm?searchbox=mmhttp[/url]

    Parts 3 and 4 may be most useful for what it seems like you're talking about.

    You can write me off list and we can talk more about what you want your extension to do.

    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
    danilocelic *TMM* Guest

  7. #6

    Default Re: Need help with database extension

    Hi Danilo,

    Thank you very much for your suggestion. I use MMHttp objects, and it works.
    The articles help me a lot in understand the MMHttp API functions. Since the
    database, server files manipulation is done with server side scripting (ASP in
    my case), it simplifies the usage of DW Extension API.

    I have another question: is there a limit to the size of file, or text when
    using MMHttp?

    Thank you again,

    --yeudoi


    yeudoi Guest

  8. #7

    Default Re: Need help with database extension

    yeudoi wrote:
    > Thank you very much for your suggestion. I use MMHttp objects, and it works.
    > The articles help me a lot in understand the MMHttp API functions. Since the
    > database, server files manipulation is done with server side scripting (ASP in
    > my case), it simplifies the usage of DW Extension API.
    Glad that worked out for you.
    > I have another question: is there a limit to the size of file, or text when
    > using MMHttp?
    I've not run into any issue with file size or text size, however, I've
    not tried it with more than a couple of hunder lines of text in the file.

    If you anticipate a larger file/data, then you should probably look at
    this blog post about how to show a "busy" cursor to the user while they
    are waiting for DW to finish:
    [url]http://www.communitymx.com/blog/index.cfm?newsid=192[/url]

    Or you can use the getFileCallback() function to return operation to the
    user while your http call is going on.


    --
    Danilo Celic
    | Extending Knowledge, Daily [url]http://CommunityMX.com/[/url]
    danilocelic *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139