相关热门列表中订单项的VF页面。

时间:2015-06-13 18:53:29

标签: jquery salesforce visualforce

我为相关的订单项列表创建了一个VF页面,我正在尝试用该Vf页面替换相关列表。 我很震惊。请帮助我。

1.我有两种记录类型,它们的页面布局有不同的字段显示。我怎么能得到这个?

2.我想在标准版面上向用户显示更多选项。所以当点击它时,它应显示所有产品/订单项。

3.我想在一个字段上给出排序能力。它是自定义排序。 我怎么能得到这个?只使用jquery ??我不知道jquery。请指导我。

4.我创建了带有编辑和del链接的动作标题。但是del链接不起作用。它将我带到URL不再存在。

请帮帮我。

这是我的VF页面:

error: Error: The hook `myhook` is taking too long to load.
Make sure it is triggering its `initialize()` callback, or else set `sails.config.plugins._hookTimeout to a higher value (currently 20000)
    at tooLong [as _onTimeout] (/.../node_modules/sails/lib/app/private/loadHooks.js:92:21)
    at Timer.listOnTimeout (timers.js:110:15) { [Error: The hook `plugins` is taking too long to load.
Make sure it is triggering its `initialize()` callback, or else set `sails.config.plugins._hookTimeout to a higher value (currently 20000)] code: 'E_HOOK_TIMEOUT' }

1 个答案:

答案 0 :(得分:0)

您需要编写一个扩展类来支持您的自定义。

1 /对于recordtype,您需要获取Opportunity.RecordTypeId,然后在Visualforce页面中:

{
    "ListOfServiceRequest": {
        "ServiceRequest": [
            {
                "AddressVerified": "Y",
                "SRNumber": "1-22958901",
                "ListOfLa311BulkyItem": {
                    "BulkyItem": [
                        {
                            "BulkyItemCount": "1",
                            "BulkyItemType": "Carpet",
                            "CollectionLocation": "",
                            "IllegallyDumped": "Y",
                            "OtherBulkyItem": "",
                            "Type": "Bulky Items",
                            "SpecialRule": "",
                            "GatedCommunityMultifamilyDwelling": "",
                            "MobileHomeSpace": "",
                            "IllegalDumpCollectionLoc": "Alley",
                            "LastUpdatedBy": "MYLA-SAN1",
                            "DriverFirstName": "",
                            "DriverLastName": "",
                            "ServiceDateRendered": "",
                            "TruckNo": "",
                            "ActiveStatus": "Y",
                            "IllegalBulkyItemType": "",
                            "PurposeofSR": "",
                            "ContactFirstName": "CSR",
                            "ContactLastName": "BOS",
                            "Name": "070620151727112061"
                        },
                        {
                            "BulkyItemCount": "1",
                            "BulkyItemType": "Mattress",
                            "CollectionLocation": "",
                            "IllegallyDumped": "Y",
                            "OtherBulkyItem": "",
                            "Type": "Bulky Items",
                            "SpecialRule": "",
                            "GatedCommunityMultifamilyDwelling": "",
                            "MobileHomeSpace": "",
                            "IllegalDumpCollectionLoc": "Dead End",
                            "LastUpdatedBy": "MYLA-SAN1",
                            "DriverFirstName": "",
                            "DriverLastName": "",
                            "ServiceDateRendered": "",
                            "TruckNo": "",
                            "ActiveStatus": "Y",
                            "IllegalBulkyItemType": "",
                            "PurposeofSR": "",
                            "ContactFirstName": "CSR",
                            "ContactLastName": "BOS",
                            "Name": "070620151727112072"
                        },
                        {
                            "BulkyItemCount": "1",
                            "BulkyItemType": "Wood Bundles",
                            "CollectionLocation": "",
                            "IllegallyDumped": "Y",
                            "OtherBulkyItem": "",
                            "Type": "Bulky Items",
                            "SpecialRule": "",
                            "GatedCommunityMultifamilyDwelling": "",
                            "MobileHomeSpace": "",
                            "IllegalDumpCollectionLoc": "Side Street",
                            "LastUpdatedBy": "MYLA-SAN1",
                            "DriverFirstName": "",
                            "DriverLastName": "",
                            "ServiceDateRendered": "",
                            "TruckNo": "",
                            "ActiveStatus": "Y",
                            "IllegalBulkyItemType": "",
                            "PurposeofSR": "",
                            "ContactFirstName": "CSR",
                            "ContactLastName": "BOS",
                            "Name": "070620151727112083"
                        }
                    ]
                },
                "AddressVerified": "Y",
                "SRNumber": "1-22396541",
                "ListOfLa311BulkyItem": {
                    "BulkyItem": [
                        {
                            "BulkyItemCount": "2",
                            "BulkyItemType": "Bookcase",
                            "CollectionLocation": "",
                            "IllegallyDumped": "Y",
                            "OtherBulkyItem": "",
                            "Type": "Bulky Items",
                            "SpecialRule": "",
                            "GatedCommunityMultifamilyDwelling": "",
                            "MobileHomeSpace": "",
                            "IllegalDumpCollectionLoc": "Curb",
                            "LastUpdatedBy": "49448",
                            "DriverFirstName": "",
                            "DriverLastName": "",
                            "ServiceDateRendered": "",
                            "TruckNo": "",
                            "ActiveStatus": "Y",
                            "IllegalBulkyItemType": "",
                            "PurposeofSR": "",
                            "ContactFirstName": "Charles",
                            "ContactLastName": "Campbell",
                            "Name": "063020151340347731"
                        }
                    ]
                },
                "AddressVerified": "Y",
                "SRNumber": "1-22888701",
                "ListOfLa311BarricadeRemoval": {

                },
                "ListOfLa311BulkyItem": {
                    "BulkyItem": [
                        {
                            "BulkyItemCount": "100",
                            "BulkyItemType": "Basketball Set",
                            "CollectionLocation": "Curb",
                            "IllegallyDumped": "N",
                            "OtherBulkyItem": "",
                            "Type": "Bulky Items",
                            "SpecialRule": "",
                            "GatedCommunityMultifamilyDwelling": "",
                            "MobileHomeSpace": "",
                            "IllegalDumpCollectionLoc": "",
                            "LastUpdatedBy": "MYLA-SAN2",
                            "DriverFirstName": "",
                            "DriverLastName": "",
                            "ServiceDateRendered": "",
                            "TruckNo": "",
                            "ActiveStatus": "Y",
                            "IllegalBulkyItemType": "",
                            "PurposeofSR": "",
                            "ContactFirstName": "CSR Supervisor",
                            "ContactLastName": "BOS",
                            "Name": "070520152329321221"
                        },
                        {
                            "BulkyItemCount": "500",
                            "BulkyItemType": "Bed Frame (wood)",
                            "CollectionLocation": "Curb",
                            "IllegallyDumped": "N",
                            "OtherBulkyItem": "",
                            "Type": "Bulky Items",
                            "SpecialRule": "Y",
                            "GatedCommunityMultifamilyDwelling": "",
                            "MobileHomeSpace": "",
                            "IllegalDumpCollectionLoc": "",
                            "LastUpdatedBy": "MYLA-SAN2",
                            "DriverFirstName": "",
                            "DriverLastName": "",
                            "ServiceDateRendered": "",
                            "TruckNo": "",
                            "ActiveStatus": "Y",
                            "IllegalBulkyItemType": "",
                            "PurposeofSR": "",
                            "ContactFirstName": "CSR Supervisor",
                            "ContactLastName": "BOS",
                            "Name": "070520152329321222"
                        },
                        {
                            "BulkyItemCount": "400",
                            "BulkyItemType": "Bicycle",
                            "CollectionLocation": "Curb",
                            "IllegallyDumped": "N",
                            "OtherBulkyItem": "",
                            "Type": "Bulky Items",
                            "SpecialRule": "",
                            "GatedCommunityMultifamilyDwelling": "",
                            "MobileHomeSpace": "",
                            "IllegalDumpCollectionLoc": "",
                            "LastUpdatedBy": "MYLA-SAN2",
                            "DriverFirstName": "",
                            "DriverLastName": "",
                            "ServiceDateRendered": "",
                            "TruckNo": "",
                            "ActiveStatus": "Y",
                            "IllegalBulkyItemType": "",
                            "PurposeofSR": "",
                            "ContactFirstName": "CSR Supervisor",
                            "ContactLastName": "BOS",
                            "Name": "070520152329321233"
                        },
                        {
                            "BulkyItemCount": "370",
                            "BulkyItemType": "Bird Cage (Plastic)",
                            "CollectionLocation": "Curb",
                            "IllegallyDumped": "N",
                            "OtherBulkyItem": "",
                            "Type": "Bulky Items",
                            "SpecialRule": "",
                            "GatedCommunityMultifamilyDwelling": "",
                            "MobileHomeSpace": "",
                            "IllegalDumpCollectionLoc": "",
                            "LastUpdatedBy": "MYLA-SAN2",
                            "DriverFirstName": "",
                            "DriverLastName": "",
                            "ServiceDateRendered": "",
                            "TruckNo": "",
                            "ActiveStatus": "Y",
                            "IllegalBulkyItemType": "",
                            "PurposeofSR": "",
                            "ContactFirstName": "CSR Supervisor",
                            "ContactLastName": "BOS",
                            "Name": "070520152329321244"
                        }
                    ]
                },
                "AddressVerified": "Y",
                "SRNumber": "1-22666161",
                "ListOfLa311BulkyItem": {
                    "BulkyItem": [
                        {
                            "BulkyItemCount": "1",
                            "BulkyItemType": "Bicycle",
                            "CollectionLocation": "",
                            "IllegallyDumped": "Y",
                            "OtherBulkyItem": "",
                            "Type": "Bulky Items",
                            "SpecialRule": "",
                            "GatedCommunityMultifamilyDwelling": "",
                            "MobileHomeSpace": "",
                            "IllegalDumpCollectionLoc": "Alley",
                            "LastUpdatedBy": "MYLA-SAN2",
                            "DriverFirstName": "",
                            "DriverLastName": "",
                            "ServiceDateRendered": "",
                            "TruckNo": "",
                            "ActiveStatus": "Y",
                            "IllegalBulkyItemType": "",
                            "PurposeofSR": "",
                            "ContactFirstName": "CSR Supervisor",
                            "ContactLastName": "BOS",
                            "Name": "070320150729351771"
                        }
                    }
                ]
            }
        }

2 /要显示“all”具有指向新visualforce页面的输出链接,请传递OpportunityId并显示该页面上的所有订单项

3 /使用this增强器进行排序 - 非常有用。

4 /无法说明为什么删除不起作用,订单项是否已删除?