Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Newbies

Greetings,

(fmpro5U, webcompagnion v2, mac os 8.6, netscape 4.72)

With a normal Browse html/cdml page we get an error message from the browser:

"Unexpected error.

Unable to process your request because the server encountered an unexpected condition.

for more detail check error 4"

Our browse page does not contain any fmp-if,

it is in fact very similar to the browse.htm of "shopping cart" (web exemple in fmp4) but it does'nt work...

Now if I dont specifiy a layout to use for that page... no javascript error ! But also no related fields...

Dont know where to look anymore, any suggestion is greatly appreciated.

Nic

progi-media

Could you post your code?

Thanks,

Jeff

  • Author
  • Newbies

Here is my code, sorry if its long,

I'm also affraid that this list will change all tabs to spaces.. ruining the structure...

If it's the case let me know personaly at

[email protected]

and I'll send you those file in attachement

thanks for youe help.

nic progi-media

==============================================

topbar.html

(that's the top bar of the frame set, here I specify the layout to use for the related fields to appear in the browse.html)

==============================================

<html>

<head>

<title>Topbar</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#9999FF">

<table width="95%" border="0" cellspacing="5" cellpadding="5" align="center">

<tr>

<td height="2"> </td>

<td height="2"> </td>

<td height="2"> </td>

</tr>

<tr>

<td>

<div align="center"><font size="5"><b><a href="search.html" target="mainFrame">Rechercher</a></b></font></div>

</td>

<td>

<div align="center"><font size="5"><b>

<a href="FMPro?-db=CraTitre.fp5&-format=browse.html&-lay=Interface de travail-SortField=sectionFR&-SortOrder=descend&-Max=10&-FindAll" target="mainFrame">Consulter</a></b></font></div>

</td>

<td>

<div align="center"><font size="5"><b><a href="ex.html" target="mainFrame">Panier

d'achat</a></b></font></div>

</td>

</tr>

</table>

</body>

</html>

==============================================

Browse.html

(the javascript error4 occurs when trying to load this page using the link in topbar.html)

==============================================

<html>

<head>

<title>Untitled Document</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#CCCCFF">

<table width="95%" border="0" cellspacing="5" cellpadding="5" align="center" height="82">

<tr>

<td height="70">

<div align="center"><font size="7">Consulter</font></div>

</td>

</tr>

</table>

<table width="95%" border="0" cellspacing="5" cellpadding="5" align="center">

<tr>

<td width="38">Qté</td>

<td width="189">Nom</td>

<td width="109">Code </td>

<td width="175">Qt. en inventaire</td>

<td width="99">Prix</td>

</tr>

</table>

<table width="95%" border="1" cellspacing="5" cellpadding="5" align="center" height="35">

[FMP-record]

<TR>

<TD ALIGN=LEFT VALIGN=MIDDLE WIDTH="34" height="45">

<FORM METHOD="POST" ACTION="FMPro" NAME="prodform[FMP-field:code]">

<INPUT TYPE="hidden" NAME="-token" VALUE="[FMP-currenttoken]">

<INPUT TYPE="hidden" NAME="-db" VALUE="CraCoItm.fp5">

<INPUT TYPE="hidden" NAME="-format" VALUE="detail.htm">

<INPUT TYPE="hidden" NAME="-lay" VALUE="1">

<INPUT TYPE="hidden" NAME="code" VALUE="[FMP-field:code]">

<INPUT TYPE="hidden" NAME="code" VALUE="[FMP-currenttoken]">

<INPUT TYPE="hidden" NAME="-new" VALUE="">

<INPUT TYPE="text" SIZE="2" NAME="Quantity" VALUE="1">

</form>

</TD>

<TD ALIGN=LEFT VALIGN=MIDDLE WIDTH="200" height="145"><A HREF="[FMP-linkrecid:layout=Interface de travail, format=detail.html]">

[FMP-field:titreFR]<br>

[FMP-field:titreCAN]<br>

[FMP-field:titreUS</A> </TD>

[/FMP-record]

</table>

</body>

</html>

=============================================

  • Author
  • Newbies

I have the solution !

Turns out that WEB compagnion does'nt accept spaces in the layout name (probably not special chars either).

So I renammed the layout from

"Interface de travail" to "IntTrav"

and it all started to work.... laugh.gif

Thanks to Jeff for considering my problem

Nic

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.