Results 1 to 5 of 5

Thread: .dbGridTemplate Example Problem

  1. #1
    Join Date
    Apr 2003
    Location
    California
    Posts
    11

    .dbGridTemplate Example Problem

    When I use the "Memo Field" template example that came with "TED" (.dbGridTemplate) the EditUpdate and
    EditAdd stop working. When I comment the .dbGridTemplate line out the update and add features work again.

    The online manual did not contain information about this. Is this a full feature or for display only?



    <body onLoad="self.focus()">
    <script language="vb" runat="server">
    Sub Page_Load(Source as Object, E as EventArgs)
    Dim grid As New Tornado.Z()
    with grid
    .dbUnit = 1488
    .dbQP = "d=Nwind|th=Title=Notes Template"
    .dbMode = "type=grid| sysind=t"
    .dbsql = "Select * from Employees "
    .dbskin = "plain"
    .dbGridDisplayFlds = "0,1,2"
    .dbmemotextsize = 2048
    .dbpagesize = 5
    .dbNameMap = "fi=0|alias=Emp#,fi=1|alias=Last Name,fi=2|alias=First Name"
    .dbEditUpdateFlds = "0,1,2,15"
    .dbEditAddFlds = "0,1,2,15"
    .dbNavigationItem = "top,bottom,prev,next,add,update,delete,search,rel oad"
    .dbBookMark = "Employees; 0 "
    .dbGridTemplate = "<center>[[Grid]]<p>[[GridNav]]<P>[[GridStat]]<br>[[memo::Notes::<table

    width='54%' class=ts cellspacing='1'><tr><td class='gh'>Employees Notes</td></tr><tr><td

    class=nr>##field##</td></tr></table></center>]]"
    .ASPdbNet
    end with
    End Sub
    </script>

  2. #2
    Join Date
    Oct 2002
    Posts
    933
    I loaded the sample file and it works fine.

    1. State the product and version of your dll (tornadoinfo)

    2. Describe how it faild?


    FK

  3. #3
    Join Date
    Apr 2003
    Location
    California
    Posts
    11
    I work with Andre Larabie, we are using Tornado, Ver V3-3.25.1215.

    When the screen is opened the memo field displays correctly but when I select the "add" button or the "update" button nothing happens.

  4. #4
    Join Date
    Oct 2002
    Posts
    933
    the example "Memo Field" sample code is nothing like your listing. It has 14 lines and no edit/update. You must be modifying that.. I'll look at your code.

    FK

  5. #5
    Join Date
    Oct 2002
    Posts
    933
    you modified the display template an dyou are in charge now... you did not provide any template for edit and flter and that is why nothing shows. Look at the following... you have to indicate how to display the edit and filter. See it is added to the tail end with a <P>. You can start customizinthe look and feel.

    .dbGridTemplate = "<center>[[Grid]]<p>[[GridNav]]<P>[[GridStat]]<br>[[memo::Notes::<table

    width='54%' class=ts cellspacing='1'><tr><td class='gh'>Employees Notes</td></tr><tr><td
    class=nr>##field##</td></tr></table></center>]]<P>[[NormalUpdate]][[NormalAdd]][[NormalFilter]]"

    sinve only one o gthem will be used therefore it is OK to put them in the same place. Also make a note that you have to observe the edit rules and not to edit employeeid etc...

    FK

Posting Permissions

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