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

Using a form to edit a related record


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

Recommended Posts

Posted

Can someone tell me why this does not work?

I want to insert a form within a relatedset record (records from the table "items") which allows the user to edit the "quantity" field.

I am getting error code="101" (record is missing).

<xsl:for-each select="/fmrs:fmresultset/fmrs:resultset/fmrs:record">

<xsl:for-each select="fmrs:relatedset[@table='items']/fmrs:record">

<table border="0">

<tr>

<td><xsl:value-of select="./fmrs:field[@name='items::item_name']/fmrs:data"/></td>

<td>

<form method="post">

<xsl:attribute name="action">item-edit.xsl</xsl:attribute>

<input name="-db" type="hidden" value="abc"/>

<input name="-lay" type="hidden" value="items"/>

<input name="-grammar" type="hidden" value="fmresultset"/>

<input name="-recid" type="hidden" value="{fmrs:relatedset[@table='items']/fmrs:record/@record-id}"/>

<input name="item_quantity" type="text" value="{fmrs:field[@name='items::item_quantity']/fmrs:data}"/>

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

<xsl:attribute name="value">edit</xsl:attribute>

</input>

</form>

</td>

</tr>

</table>

</xsl:for-each>

</xsl:for-each>

Thanks!

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