Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7920 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi Gurus!

Here is another beginer question that I am sure u know the answer to....

I have this:

<INPUT TYPE="hidden" NAME="-FORMAT" VALUE="ReportAdded.html">

<INPUT TYPE="hidden" NAME="-ERROR" VALUE="ar_failed.html">

but rather than hittng "ar_failed.html" I get "RportAdded.html not found"?

Where is that crutial "error" in my error page smile.gif

thanx

Posted

The error page is only returned if the action fails -- no ecord found, record does not exist, that sort of thing. If there is a problem with the syntax of the command passed to Web Companion then WC uses its own internal error message.

WC cannot find the error file specified. Check that the name is typed correctly (including capitalisation) and the path is correct.

Posted

OK...thanx Vaughan!

the syntax is correct and respond should be "No records found" but rather than getting (my page with this message) error page I get the msg>

-------------------------------

Fomat File could not be Found:

"Results.html page can not be found!"

-------------------------------

what could it be?

thannk you again!

Posted

It cannot find the format file! Is it in the right folder with the right name?

Posted

yes it "seems ok" it is in the right folder because if I do supply a record that I know it exists it "goes" without any problem.....find seems to be in place. Its the Login page...."look for a user...if not found to to this page but it doesn't work? frown.gif

the similar scenario is:

What I have is an unique field that users can create/add...if existing record...go to page...RecordExisits.html.....still the same problem!

it seems that very rarely -Error works. I am confused...

Posted

ok ok...I solved this error issue (lets say I did smile.gif)

how about errors on -NEW......are they possible -if Y then my Q is how to bypass the error from WC and FM and go to custom error?

eg. Unique field [somenumber] is entered by users...if this numbers exist give me my error page NOT the built in FM vague stuff

thank you guys for taking your time...

Posted

Don't confuse an FMP error with a "data entry" error, unless the data entry error is caught using field-level validation.

FMP errors are all listed in the help info for the Status(CurrentError) function. These codes can be trapped for in the -error file to produce a specific response. Validation errors are caught this way. Note however that if the -new action fails then no new record was created and there is no current record to draw field values from in the response. (This has caught me a few times.)

If you have a data entry issue where the action was completed but the user entered the wrong data (and it isn't validated or at the field level) then you need to either test for it before the form is submitted, or test the newly created record and generate a response in the format file specified to display after the action is performed.

Posted

Hi All,

When I perform data entry via a web form, I always have a calculation field which ensures that the entries for each field are valid and, if they are not valid, then I have it generate a custom error message.

This allows a far greater level of control over the accuracy of the entered data when compared to the FMP errors.

An example of an equation I use is:

If(

Length(teHeaderNameFMC) != 0 and <--Not Empty

Length(teHeaderProduct) >= 2 and <--Longer than 2

Length(teHeaderSymptom) = 3 and <--3 Long

TextToNum(teHeaderPRNumber) >= 2000000 and <--Number is greater than 2,000,000

nsErrorCount != 0 and <--Field is not 0

Count(Advised_Web::tcReportKey) <= 1, <--Not Duplicate

"No Errors Found", <--Result if All Check OK

Substitute(

If(

Length(teHeaderNameFMC) = 0, <-- Name Invalid "Error_teHeaderNameFMC

This topic is 7920 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.