cluettr
5 Jul 2007, 4:45 PM
This may have already been covered, but....
I wanted to post this to hopefully save someone the trouble I went through today. When populating a grid with data keep in mind that at least one character may cause issues.
Today I was cycling through my paging grid and it would stop on particular pages. I changed my limits to something very small (5 records) and using Firefox I examined the request response when it died. It turns out that anytime you have an '&' it will die. Encoding it as %26 is not what you want since this isn't URL encoding. & obviosuly will not work either. I'm not entirely sure what the resolution here is here. There may even be some method which might correct this and I'm sure one of the Experts will let us know. I merely removed them from all records.
Below is an example... see character in <title>6506 MOD 2 & 16 RESETTING</title>
<?xml version="1.0"?>
<Items>
<Request>
<IsValid></IsValid>
<ItemSearchRequest>
<Author>##### #. #####, ##### ##### ##### #####</Author>
<Location>######, Massachusetts</Location>
<Phone>(617) ### - ###</Phone>
</ItemSearchRequest>
</Request>
<TotalResults>424</TotalResults>
<TotalPages>data here</TotalPages>
<Item>
<RMA>81843411</RMA>
<DetailPageURL>none</DetailPageURL>
<ItemAttributes>
<createdate>2007-06-18 14:03:23</createdate>
<rma_number>81843411</rma_number>
<service_request>606231775</service_request>
<device></device>
<title>SVO :: r1318711 :: CYVLMDAIZ-UCD10S1 POWER SUPPLY 2 PROBLEM DETECTED ON BROWSER</title>
</ItemAttributes>
</Item>
<Item>
<RMA>81843231</RMA>
<DetailPageURL>none</DetailPageURL>
<ItemAttributes>
<createdate>2007-06-18 12:12:05</createdate>
<rma_number>81843231</rma_number>
<service_request>606230757</service_request>
<device></device>
<title>SVO 06/18/2007</title>
</ItemAttributes>
</Item>
<Item>
<RMA>81842262</RMA>
<DetailPageURL>none</DetailPageURL>
<ItemAttributes>
<createdate>2007-06-16 16:04:59</createdate>
<rma_number>81842262</rma_number>
<service_request>606226791</service_request>
<device></device>
<title>SVO 06/16/2007</title>
</ItemAttributes>
</Item>
<Item>
<RMA>81841648</RMA>
<DetailPageURL>none</DetailPageURL>
<ItemAttributes>
<createdate>2007-06-15 18:08:56</createdate>
<rma_number>81841648</rma_number>
<service_request>606205681</service_request>
<device>DRHMNCRRZ-D6601S1</device>
<title>6506 MOD 2 & 16 RESETTING</title>
</ItemAttributes>
</Item>
<Item>
<RMA>81841141</RMA>
<DetailPageURL>none</DetailPageURL>
<ItemAttributes>
<createdate>2007-06-15 13:13:46</createdate>
<rma_number>81841141</rma_number>
<service_request>606220305</service_request>
<device></device>
<title>MRBOMALDZ-UCD01S1 Faulty PS</title>
</ItemAttributes>
</Item>
</Items>
I wanted to post this to hopefully save someone the trouble I went through today. When populating a grid with data keep in mind that at least one character may cause issues.
Today I was cycling through my paging grid and it would stop on particular pages. I changed my limits to something very small (5 records) and using Firefox I examined the request response when it died. It turns out that anytime you have an '&' it will die. Encoding it as %26 is not what you want since this isn't URL encoding. & obviosuly will not work either. I'm not entirely sure what the resolution here is here. There may even be some method which might correct this and I'm sure one of the Experts will let us know. I merely removed them from all records.
Below is an example... see character in <title>6506 MOD 2 & 16 RESETTING</title>
<?xml version="1.0"?>
<Items>
<Request>
<IsValid></IsValid>
<ItemSearchRequest>
<Author>##### #. #####, ##### ##### ##### #####</Author>
<Location>######, Massachusetts</Location>
<Phone>(617) ### - ###</Phone>
</ItemSearchRequest>
</Request>
<TotalResults>424</TotalResults>
<TotalPages>data here</TotalPages>
<Item>
<RMA>81843411</RMA>
<DetailPageURL>none</DetailPageURL>
<ItemAttributes>
<createdate>2007-06-18 14:03:23</createdate>
<rma_number>81843411</rma_number>
<service_request>606231775</service_request>
<device></device>
<title>SVO :: r1318711 :: CYVLMDAIZ-UCD10S1 POWER SUPPLY 2 PROBLEM DETECTED ON BROWSER</title>
</ItemAttributes>
</Item>
<Item>
<RMA>81843231</RMA>
<DetailPageURL>none</DetailPageURL>
<ItemAttributes>
<createdate>2007-06-18 12:12:05</createdate>
<rma_number>81843231</rma_number>
<service_request>606230757</service_request>
<device></device>
<title>SVO 06/18/2007</title>
</ItemAttributes>
</Item>
<Item>
<RMA>81842262</RMA>
<DetailPageURL>none</DetailPageURL>
<ItemAttributes>
<createdate>2007-06-16 16:04:59</createdate>
<rma_number>81842262</rma_number>
<service_request>606226791</service_request>
<device></device>
<title>SVO 06/16/2007</title>
</ItemAttributes>
</Item>
<Item>
<RMA>81841648</RMA>
<DetailPageURL>none</DetailPageURL>
<ItemAttributes>
<createdate>2007-06-15 18:08:56</createdate>
<rma_number>81841648</rma_number>
<service_request>606205681</service_request>
<device>DRHMNCRRZ-D6601S1</device>
<title>6506 MOD 2 & 16 RESETTING</title>
</ItemAttributes>
</Item>
<Item>
<RMA>81841141</RMA>
<DetailPageURL>none</DetailPageURL>
<ItemAttributes>
<createdate>2007-06-15 13:13:46</createdate>
<rma_number>81841141</rma_number>
<service_request>606220305</service_request>
<device></device>
<title>MRBOMALDZ-UCD01S1 Faulty PS</title>
</ItemAttributes>
</Item>
</Items>