Some more detail on the no-records problem. The error-console shows:
"Not well-formed" and points to the "A" in "Bundle=A" in the first line below:
- Code: Select all
<datastore>
<row id="Cards?Box=11B&Bundle=A&PDF=1&Page=1">
<CardImage></CardImage>
<Star>HD88189</Star>
<StdStar></StdStar>
<Class>D</Class>
<Notes></Notes>
<CardImage_mimetype>image/jpeg</CardImage_mimetype>
<other></other>
<Box>11B</Box>
<Bundle>A</Bundle>
<PDF>1</PDF>
<Page>1</Page>
</row>
This might be related to my Cards\Cards.php entry of:
- Code: Select all
// combine Box/Bundle/PDF/Page in the selection lists
function getTitle(&$record){
return $record->val('Box').' '.$record->val('Bundle').' '.$record->val('PDF').' '.$record->val('Page');
}
function titleColumn(){
return "CONCAT(Box, ' ', Bundle, ' ', PDF, ' ', Page)";
}
Where Box and Bundle are text (VarChars and PDF and Page are TinyInts and together the 4 fields combine for the Primary Key. I'm thinking this is the problem, combining the chars and the ints.
- Is this right?
- Is there a work around?
- I have no problem with making PDF and Page varchars. Can that be done without destroying the records already in the database? That is, I would need 24 converted to "24". I'll try an experiment on a scratch db.
Thanks
George