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

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

Recommended Posts

Posted

This is absolutely driving me insane...

For some reason, my form won't find my -format page. It says "format file could not be found" I cannot understand why?

I checked the file name (numerous times) and I typed it correctly.

The format file does work because I get to it fine when I click on a link in some other page. Basically, summarylist.html list out all the record and I click on the reference number on the list which basically gives me a more detailed information regarding the record that was clicked. summarydetails.html is the format file in summarylist.html form which contains the information of the record in a web form so that they can update the record. When I click update, It produces an error of format file not found.

The format file is the same page they they are in

<form name="SummaryUpdateForm" method="post" action="FMPro">

<input type="hidden" name="-db" value="Summary_">

<input type="hidden" name="-lay" value="SummaryMain">

<input type="hidden" name="-format" value="summaryforms/summarydetail.html">

<input type="hidden" name="-error" value="summaryforms/summary_error.html">

<input type="hidden" name="-RecID" value="[FMP-CurrentRecID]">

<input type="hidden" name="-edit">

<table border="0" cellpadding="3" cellspacing="0">

<tr>

<td width="100" class="td-dark">Issue No.</td>

<td class="td-normal">[FMP-field: nl_refnum]</td>

</tr>

<tr>

<td width="100" class="td-dark">ASW Asset</td>

<td class="td-normal"><input type="text" size="15" name="asw_assetnum" value="[FMP-field: asw_assetnum]"></td>

</tr>

<tr>

<td class="td-dark">Date Created</td>

<td class="td-normal">[FMP-field: date_created]</td>

</tr>

<tr>

<td class="td-dark">Date Modified</td>

<td class="td-normal">[FMP-field: date_modified]</td>

</tr>

<tr>

<td class="td-dark">Edition</td>

<td class="td-normal">[FMP-ValueList: edition_type] <input type="radio" name="edition_type" value="[FMP-ValueListItem]" [FMP-ValueListChecked] onClick="if(this.checked){clearNormalEditions();}">[FMP-ValueListItem] &nbsp;[/FMP-ValueList]</td>

</tr>

<tr>

<td class="td-dark">Standard Edition Types</td>

<td class="td-normal">[FMP-ValueList: normal_edition_type]<input type="checkbox" name="normal_edition_type" value="[FMP-ValueListItem]" [FMP-ValueListChecked] onClick="if(this.checked){unCheckSpecials();}">[FMP-ValueListItem] &nbsp;[/FMP-ValueList]</td>

</tr>

<tr>

<td class="td-dark">Title</td>

<td class="td-normal"><input type="text" size="80" name="subject" value="[FMP-field: article_title]"></td>

</tr>

<tr>

<td class="td-dark">Summary</td>

<td class="td-dark">&nbsp;</td>

</tr>

<tr>

<td colspan="2" class="td-dark"><textarea name="summary" rows="10" cols="100">[FMP-field: summary]</textarea></td>

</tr>

</table>

</form>

Posted

It may depend on where the previous page exists. This is because it uses a relative path. Hence, the path:

name="-format" value="summaryforms/summarydetail.html">

will need to vary, depending on the location of the page it is being called from.

All the best.

Garry

Posted

This is sorta of the same problem of not finding the format file.

When a user wants to create a new record in my CDML page, they click "New" which issues a -new action and takes them to a page to fill in the fields.

While at the page to fill in the fields, they can elect to cancel which takes them to a format page.

This cancel actually performs a -delete action which deletes the just newly created record.

For some odd reason unbeknown to me, if they create a "New" (-new) and end up canceling the request (-delete) with no pre existing record, (0 Found Count) I get an error of -format file not found. However if they have preexisting set of records and perform the same action said in the paragraph above, it finds the format file.

I don't know why this is happening. This has completely confused.

Is there something I am missing....

Posted

I'm very new to all this, so I'm probably the one missing something. But if they're at the Format page where they are filling in fields, has the new record actually been created at that point? I was under the impression that the record wouldn't be physically created until the information in the fields was submitted. If so, then there wouldn't be anything to delete.

Hope someone else can take this idea and expand on it.

Ernie

Posted

ErnieG, one can create a new blank record with code such as:

<form method="post" action="fmpro">

<input type="hidden" name="-db" value="mydb.fp5">

<input type="hidden" name="-format" value="apage.htm">

<input type="submit" name="-new" value="Make A New Empty Record">

</form>

Needless to say, such activity can cause self-inflicted problems.

For instance, the ability to delete the record under the approach which macaroni is taking. He has not posted the code he is using to delete, but he may have not made a provision to find the record to be deleted. (guessing)

There are problems with allowing a client delete privileges. Given the holes in Web Companion's security, it may be possible with this permission to delete all the records in the db. I recommend against giving a client a delete privilege.

This topic is 7851 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.