<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>CodeTrigger - General - Lookup tables result in no edit code functionality - Messages</title>
<link>https://www.codetrigger.com/forum/topic27-lookup-tables-result-in-no-edit-code-functionality.aspx</link>
<description>CodeTrigger - General - Lookup tables result in no edit code functionality - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Jitbit AspNetForum</generator>
<pubDate>Mon, 04 Dec 2017 14:58:46 GMT</pubDate>
<lastBuildDate>Mon, 04 Dec 2017 14:58:46 GMT</lastBuildDate>
<item>
<link>https://www.codetrigger.com/forum/topic27-lookup-tables-result-in-no-edit-code-functionality.aspx</link>
<title>Message from migrator</title>
<description><![CDATA[<span style="font-family:Tahoma, "Sans Serif", Arial">Hi, </span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">This can be resolved by changing the db schema in one or both of the following ways, and re-running the code generation:</span><br/><br/><span style="font-family:Tahoma, "Sans Serif", Arial">(1) Creating a new single column on the table as the primary key, perhaps an auto incrementing identity column</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">(2) In the case of a lookup table that only has reference columns eg TABLE (FK1, FK2), try making adding an extra non-reference column eg TABLE (FK1, FK2, [DESC])</span><br/><br/><span style="font-family:Tahoma, "Sans Serif", Arial">Then re-run code generation, and the issue will be resolved.</span><br/><br/><br/><span style="font-family:Tahoma, "Sans Serif", Arial">If you are not authorised to change the db schema for some reason, then you will have to manually extend the generated classes, by creating extension partial classes to the DAO and BO classes, with edit methods.</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">This should not require you to make changes to the actual files generated by CodeTrigger, as your extended partial class code will be in extra files, perhaps in an 'extension' folder. However if you do change the code in the generated files,</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">make sure you 'escape' those files in the advanced options 'escaped files' list, so that your changes are not overwritten.</span>]]></description>
<pubDate>Mon, 04 Dec 2017 14:58:46 GMT</pubDate>
</item>
<item>
<link>https://www.codetrigger.com/forum/topic27-lookup-tables-result-in-no-edit-code-functionality.aspx</link>
<title>Message from migrator</title>
<description><![CDATA[<span style="font-family:Tahoma, "Sans Serif", Arial">Thanks for your quick response. I just checked and yes, one had two pk columns. Do you have a sample code or suggested way to go about generating the code for these multi-key tables? Or do I just have to modify it myself manually? Thanks again.</span>]]></description>
<pubDate>Mon, 04 Dec 2017 14:58:20 GMT</pubDate>
</item>
<item>
<link>https://www.codetrigger.com/forum/topic27-lookup-tables-result-in-no-edit-code-functionality.aspx</link>
<title>Message from migrator</title>
<description><![CDATA[<span style="font-family:Tahoma, "Sans Serif", Arial">Hi, Edit Links/code is/are generated when a table has a simple primary key, and NOT ALL the columns in the table are in the primary key. For example, lookup tables which contain two columns, but both of the columns are part of the primary key, will not be treated as editable, by the generated UI code</span>]]></description>
<pubDate>Mon, 04 Dec 2017 14:58:03 GMT</pubDate>
</item>
<item>
<link>https://www.codetrigger.com/forum/topic27-lookup-tables-result-in-no-edit-code-functionality.aspx</link>
<title>Message from migrator</title>
<description><![CDATA[<span style="font-family:Tahoma, "Sans Serif", Arial">Hi I just generated code for two simple tables and one came out with edit,delete links per row but the other one did not. What determines when these update links show. Both tables have PK columns defined. Thanks, José</span>]]></description>
<pubDate>Mon, 04 Dec 2017 14:57:01 GMT</pubDate>
</item>
</channel>
</rss>
