Hi Max/Bob,
1. I followed http://www.chronoengine.com/faqs/70-cfv5/5251-how-can-i-build-a-product-list.html to create a json coded string and saved it to text field (namely items) of a table:
It is a valid json validated through http://jsonlint.com/
2. Then I followed http://www.chronoengine.com/faqs/72-ccv5/5207-view-and-edit-actions.html to create a display list of the item s through chronoconnectivity as follows:
Offer ID Buyer User ID Cash Supplement Buyer Remarks Date Submitted Offer Status
48 730 200.00 remarks 2015-06-16 23:49:12 Open
Offer id is the primary key and is set view linkable. Upon click, the content of the items field is to be shown on a new page.
Per the How-To guide, value of the database field is displayed by {items}.
However, I need to do json_decode so I can restore the item list.
On Front List - Actions, I did the following:
3. I changed the parm to a "true" and followed some google search suggestion but still always get a null.
Would you please advise what I have missed at your earliest convenience?
Thanks,
kwok
1. I followed http://www.chronoengine.com/faqs/70-cfv5/5251-how-can-i-build-a-product-list.html to create a json coded string and saved it to text field (namely items) of a table:
[{"buyerItem":"9","categoryID":"6","menuItem":"533","itemName":"Audi A6"},{"buyerItem":"11","categoryID":"7","menuItem":"533","itemName":"Mercedes CLS"}]
It is a valid json validated through http://jsonlint.com/
[
{
"buyerItem": "9",
"categoryID": "6",
"menuItem": "533",
"itemName": "Audi A6"
},
{
"buyerItem": "11",
"categoryID": "7",
"menuItem": "533",
"itemName": "Mercedes CLS"
}
]
2. Then I followed http://www.chronoengine.com/faqs/72-ccv5/5207-view-and-edit-actions.html to create a display list of the item s through chronoconnectivity as follows:
Offer ID Buyer User ID Cash Supplement Buyer Remarks Date Submitted Offer Status
48 730 200.00 remarks 2015-06-16 23:49:12 Open
Offer id is the primary key and is set view linkable. Upon click, the content of the items field is to be shown on a new page.
Per the How-To guide, value of the database field is displayed by {items}.
However, I need to do json_decode so I can restore the item list.
On Front List - Actions, I did the following:
<?php
$json="{swapOffers.buyer_items}";
echo $json;
$restore = json_decode($json, false);
var_dump($restore);
?>
The result is:[{"buyerItem":"9","categoryID":"6","menuItem":"533","itemName":"Audi A6"},{"buyerItem":"11","categoryID":"7","menuItem":"533","itemName":"Mercedes CLS"}]
NULL
3. I changed the parm to a "true" and followed some google search suggestion but still always get a null.
Would you please advise what I have missed at your earliest convenience?
Thanks,
kwok