Is it possible to update the backend so that when we run reports we get "PC Owner" instead of "Custom1" etc?
I've tried the following so far.
We edit Custom1 to reflect "Pc Owner" in the "it-extrainfo.aspx" file:
<tr>
<td align="right" class="lijntje"><strong>PC Owner: </strong></td>
<td class="lijntje"><input name="Custom1" class="in" type="text" id="Custom1" value="<%# dscustom.FieldValue("Custom1", Container) %>" /></td>
</tr>
Doing the above works great and the web page displays what we want, so now to change the backend.
I've tried replacing the "Custom1" entries in "it-extrainfo.aspx" as follows:
<tr>
<td align="right" class="lijntje"><strong>PC Owner: </strong></td>
<td class="lijntje"><input name="PcOwner" class="in" type="text" id="PcOwner" value="<%# dscustom.FieldValue("PcOwner", Container) %>" /></td>
</tr>
and then updating the colums in the database as follows:
From :
[BarCode] [nvarchar](100) NULL,
[Custom1] [nvarchar](255) NULL,
[Custom2] [nvarchar](255) NULL,
[Custom3] [nvarchar](255) NULL,
[Custom4] [nvarchar](255) NULL,
To :
[BarCode] [nvarchar](100) NULL,
[PcOwner] [nvarchar](255) NULL,
[Custom2] [nvarchar](255) NULL,
[Custom3] [nvarchar](255) NULL,
[Custom4] [nvarchar](255) NULL,
Then all looks fine on the web page and in the reports.
The problem comes in when you then try and update any data.
I then get the following error from the website next to the update button :
Column 'Custom1' does not belong to table mytable.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Column 'Custom1' does not belong to table mytable.
Are there any other pages that I have to update to reflect the new value for "Custom1" which is now "PcOwner"?
If I am on the wrong track here what should I be doing and where?
It is important for the reports so they can be automated.
Regards
Nick