close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problem with Detail/Update pages for some records

Thread begun 4/10/2010 11:06 am by daniel402139 | Last modified 4/15/2010 2:47 pm by Eric Mittman | 1992 views | 3 replies |

daniel402139

Problem with Detail/Update pages for some records

First time post on this site. Hope I can get my problem fixed.

I'm using the DataAssist extension and having some problems. I use the DataAssist Wizard to generate these pages:

Search, Detail, Update, Results

Everything seems to work perfectly with all the functionality working, except for the following two problems:

1. When I try to view a detail page, the link does not work. The field that I am trying to link on is a 15-digit number. By default, the wizard declares the variables below as "double" data type, and the the link does not work. When I change the data type from "double" to "decimal" as shown below, the linking works:

$query_WADAtblproperties = sprintf("SELECT * FROM tblproperties WHERE Roll = %s OR ( -1= %s AND Roll= %s)", GetSQLValueString($ParamRoll_WADAtblproperties, "decimal"),GetSQLValueString($ParamRoll2_WADAtblproperties, "decimal"),GetSQLValueString($ParamSessionRoll_WADAtblproperties, "decimal"));

Does this fix that I somehow discovered make sense? Should I need to be playing around with the data types after the wizard has created the pages? I don't know if making this change is somehow causing my second problem.

2. The second problem is that the links to the Detail and Update pages are working only intermittently at best. For example,

- some records link correctly to the correct Detail and Update pages;
- some records result in 'No Record Found', but should be finding records; and
- some records link to the wrong Detail and Update pages. Although the correct record number is shown in the URL, the resulting WADADetailsContainer displays data from a different record. i.e. record 1 shown in URL, but record 2 details displayed in container.

Those are my two problems. If someone can help me figure these out I would be eternally grateful. Kind regards,

Dano

Sign in to reply to this post

Eric Mittman

The second problem that you are having may very well be related to the first problem and the change that you have made.

When I do a test on this I can see that my query sets the data type to match the key column that I select in the wizard. In my test my key column was of type int and this is the type of data used in the query on the details page. What is the column that you choose as the key column in the wizard for this table and what is it's datatype in your db? I wonder if updating it to work with a varchar would resolve this problem.

Please post back with this info so we can look into this issue further.

Sign in to reply to this post

daniel402139

Thanks for the comment Eric. I changed my data type from Double to Decimal and that did not work. Then I followed your suggestion and changed the data type to Varchar(15) and this did the trick. Everything works perfectly when the proper data type is used. I appreciate you steering me in the right direction.

Sign in to reply to this post

Eric Mittman

I'm very glad to hear that, let us know if you have any further questions or run into any issues.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...