Results 1 to 6 of 6

Thread: Problem with MagicCell and Format

  1. #1
    Join Date
    Dec 2002
    Posts
    14

    Problem with MagicCell and Format

    Please tell me whats wrong with this format usage. It used to work with older versions.

    MyDb.dbMagicCell = "GraphicsAutoNumber,align=right,<A HREF=M:\Graphics\Format=[0000000#].#FileExtension#>Format=[0000000#].#FileExtension#</A>;"

    in the generated html it gives me this:
    <TD align=right><font Face=Arial Size=2 color=000000><A HREF=M:\Graphics\Format=[0000000ErrorFileExtensionError].pdf</A></font></TD>

    Thanks
    Les Taylor

  2. #2
    Join Date
    Oct 2002
    Posts
    933

    Tornado - Format

    there is a change in Tornado in "Format". I think the syntax is like

    #field:len:format# so in your case try -

    <A HREF=M:\Graphics\#GAN::0000000##.#FileExtension#># GAN::0000000##.#FileExtension#</A>;"

    GAN =graphicsautonumber


    I also included this examplein TED under <Magic Format> and the code is -

    <script language='vb' runat='server'>
    Sub Page_Load(Source as Object, E as EventArgs)
    Dim Mydb As New Tornado.Z()
    With Mydb
    .dbQP = "U=1|S=4|D=Nwind.mdb|M=grid"
    .dbSQL = "Select orderid from orders"
    .dbGridMagicCell = "(;,[]!|~/+{})fi=0|mac=Filename=!0:000000#!.ext"
    .dbTextHolder = "Title=MagciCell Format"
    .ASPdbNET()
    End With
    '...Note that when using a numeric format, the field wrapper # must be changed.
    '...Also note that macro can be either Field:len:Format or Field:Format.
    End Sub
    </script>
    Last edited by Frank; 01-17-2003 at 02:08 PM.

  3. #3
    Join Date
    Dec 2002
    Posts
    14

    Smile

    The problem is in Classic at this moment, but I will need this in the short futrue fot Tornado. I am sorry that I did not give you tis data in my first post.

    Thanks
    Les

  4. #4
    Join Date
    Oct 2002
    Posts
    933
    seems like at the least your field wrapper is wrong. This is same for both classic and Tornado. Change that first and see what happens.


    FK

  5. #5
    Join Date
    Dec 2002
    Posts
    14
    Thanks!!! I got it now. Here is the code.

    (;,[]!|~/+{})GraphicsAutoNumber,align=right,<A HREF=M:\Graphics\!GraphicsAutoNumber:8:Format=[0000000#]!.!FileExtension!>!GraphicsAutoNumber:8:Format=[0000000#]!.!FileExtension!</A>

    You are the greatest!

  6. #6
    Join Date
    Oct 2002
    Posts
    933
    can you try w/o the Format=[...] like ->

    (;,[]!|~/+{})GraphicsAutoNumber,align=right,<A HREF=M:\Graphics\!GraphicsAutoNumber:8:000
    0000#!.!FileExtension!>!GraphicsAutoNumber:8:00000 00#!.!FileExtension!</A>

Posting Permissions

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