Author: jleroux
Date: Sun Jul 31 12:18:16 2016 New Revision: 1754657 URL: http://svn.apache.org/viewvc?rev=1754657&view=rev Log: A patch from Florian Montalbano for "Improve the Marketing Demo data" https://issues.apache.org/jira/browse/OFBIZ-7923 In the following issue : OFBIZ-7922, there was a problem with the pagination of the Marketing Campaign list. Because there is not enough data in the demo, it was more difficult to find this bug. To help the testing of this component, this adds some Marketing Campaign in the demo data (at least enough to unlock a second page of search). jleroux: Actually you don't even have to add more data. The size of the list is defined by this property in widget.properties # Default number of items to be displayed per page in a list form widget.form.defaultViewSize=20 Locally you can change that by hand, clear caches, et voilĂ . Now if we would like to have the same on demos we would need to have this property in the DB and use EntityUtilProperties.getPropertyNumber() to retrieve where it's done at the moment. Unfortunately EntityUtilProperties.getPropertyNumber() simply uses for the moment UtilProperties.getPropertyNumber() so it means more work than adding those data. But once done, it's for all (though you would still have to replace the calls where UtilProperties is used instead of EntityUtilProperties. I don't remember if we have an umbrella task ans subtasks for that. It seems though a long term work, because we have much properties likely to benefit from this possibility. Another KISS option: maybe simply testing locally is sufficient ;) Modified: ofbiz/trunk/specialpurpose/ecommerce/data/DemoMarketing.xml Modified: ofbiz/trunk/specialpurpose/ecommerce/data/DemoMarketing.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/data/DemoMarketing.xml?rev=1754657&r1=1754656&r2=1754657&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ecommerce/data/DemoMarketing.xml (original) +++ ofbiz/trunk/specialpurpose/ecommerce/data/DemoMarketing.xml Sun Jul 31 12:18:16 2016 @@ -19,7 +19,18 @@ under the License. --> <entity-engine-xml> - <MarketingCampaign statusId="MKTG_CAMP_INPROGRESS" marketingCampaignId="9000" parentCampaignId="" campaignName="eCommerce Site Internal Campaign" campaignSummary=""/> + <MarketingCampaign marketingCampaignId="FirstMarkCamp" statusId="MKTG_CAMP_INPROGRESS" campaignName="My First Marketing Campaign" campaignSummary="This campaign is the first of the Company. It will be the parent campaign of 'My Second Marketing Campaign'." budgetedCost="10000.00" actualCost="8900.00" estimatedCost="10000.00" currencyUomId="USD" fromDate="2016-07-22 00:00:00.0" thruDate="2016-07-30 00:00:00.0" isActive="Y" convertedLeads="15" expectedResponsePercent="33.0" expectedRevenue="25000.00" numSent="1000" startDate="2016-07-23 00:00:00.0"/> + <MarketingCampaign marketingCampaignId="SecondMarkCamp" parentCampaignId="FirstMarkCamp" statusId="MKTG_CAMP_PLANNED" campaignName="My Second Marketing Campaing" campaignSummary="This is the next step of 'My First Marketing Campaing'." budgetedCost="20000.00" actualCost="22000.00" estimatedCost="20000.00" currencyUomId="USD" fromDate="2016-07-31 00:00:00.0" thruDate="2016-08-31 00:00:00.0" isActive="Y" expectedResponsePercent="50.0" expectedRevenue="50000.00" numSent="2000" startDate="2016-07-31 00:00:00.0"/> + <MarketingCampaign marketingCampaignId="SmallCampaign1" statusId="MKTG_CAMP_PLANNED" campaignName="A small campaign" campaignSummary="This is a little marketing campaign." budgetedCost="500.00" actualCost="470.00" estimatedCost="400.00" currencyUomId="USD" fromDate="2016-07-28 00:00:00.0" thruDate="2016-08-30 00:00:00.0" isActive="Y" expectedResponsePercent="75.0" expectedRevenue="1000.00" numSent="100" startDate="2016-07-29 00:00:00.0"/> + <MarketingCampaign marketingCampaignId="SmallCampaign2" statusId="MKTG_CAMP_PLANNED" campaignName="Another small campaign" campaignSummary="This is another little marketing campaign." budgetedCost="200.00" actualCost="200.00" estimatedCost="200.00" currencyUomId="USD" fromDate="2016-08-02 00:00:00.0" thruDate="2016-08-03 00:00:00.0" isActive="Y" expectedResponsePercent="80.0" expectedRevenue="500.00" numSent="75" startDate="2016-08-02 00:00:00.0"/> + <MarketingCampaign marketingCampaignId="BigCampaign" statusId="MKTG_CAMP_PLANNED" campaignName="A large marketing campaign" campaignSummary="This is a large marketing campaign." budgetedCost="150000.00" actualCost="180000.00" estimatedCost="175000.00" currencyUomId="USD" fromDate="2016-09-01 00:00:00.0" thruDate="2016-11-01 00:00:00.0" isActive="Y" expectedResponsePercent="66.0" expectedRevenue="200000.00" numSent="1000000" startDate="2016-08-02 00:00:00.0"/> + <MarketingCampaign marketingCampaignId="OnlineCampaign" statusId="MKTG_CAMP_APPROVED" campaignName="An online campaign" campaignSummary="This is a marketing campaign done online. A form is displayed to customer, the results will undergo furthre analysis." budgetedCost="250.00" actualCost="250.00" currencyUomId="USD" fromDate="2016-08-05 00:00:00.0" thruDate="2016-08-10 00:00:00.0" isActive="Y" expectedResponsePercent="20.0" startDate="2016-08-06 00:00:00.0"/> + <MarketingCampaign marketingCampaignId="PosterCampaign" statusId="MKTG_CAMP_CANCELLED" campaignName="A campaign with Poster" campaignSummary="This is campaign with poster to display in the town." estimatedCost="75000.00" currencyUomId="USD" fromDate="2016-10-01 00:00:00.0" thruDate="2016-11-01 00:00:00.0" isActive="Y" expectedResponsePercent="12.5" expectedRevenue="20000.00" numSent="10" startDate="2016-10-01 00:00:00.0"/> + <MarketingCampaign marketingCampaignId="VendorCampaign" statusId="MKTG_CAMP_PLANNED" campaignName="Vendor will do the campaign" campaignSummary="Vendors are to promote a product of their choice when successfully selling a good." budgetedCost="0.00" actualCost="120.00" estimatedCost="0.00" currencyUomId="USD" fromDate="2016-08-01 00:00:00.0" thruDate="2016-12-31 00:00:00.0" isActive="Y" expectedResponsePercent="40.0" startDate="2016-09-01 00:00:00.0"/> + <MarketingCampaign marketingCampaignId="SocialMediaCamp" statusId="MKTG_CAMP_INPROGRESS" campaignName="Social Media Campaign" campaignSummary="This campaign uses the social media to promote our products." budgetedCost="10000.00" estimatedCost="10000.00" currencyUomId="USD" fromDate="2016-07-01 00:00:00.0" isActive="Y" expectedResponsePercent="7.0" startDate="2016-07-10 00:00:00.0"/> + <MarketingCampaign marketingCampaignId="CatchWord" statusId="MKTG_CAMP_COMPLETED" campaignName="CatchWord" campaignSummary="This campaign will try our new CatchWord." budgetedCost="50000.00" actualCost="60000.00" estimatedCost="55000.00" currencyUomId="USD" fromDate="2016-06-01 00:00:00.0" thruDate="2016-07-30 00:00:00.0" isActive="Y" convertedLeads="10000" expectedResponsePercent="33.0" startDate="2016-06-05 00:00:00.0"/> + <MarketingCampaign marketingCampaignId="SearchEngineHelp" statusId="MKTG_CAMP_PLANNED" campaignName="Improve Search Engine visibility" campaignSummary="This campaign aims to improve the visibility of our internet website by boosting the website rank in some Seach Engine." budgetedCost="30000.00" estimatedCost="30000.00" currencyUomId="USD" fromDate="2016-12-01 00:00:00.0" thruDate="2016-12-31 00:00:00.0" isActive="Y" expectedRevenue="100000.00" startDate="2016-12-02 00:00:00.0"/> + <MarketingCampaign marketingCampaignId="9000" statusId="MKTG_CAMP_INPROGRESS" parentCampaignId="" campaignName="eCommerce Site Internal Campaign" campaignSummary=""/> <ContactList contactListId="9000" contactListTypeId="ANNOUNCEMENT" contactMechTypeId="EMAIL_ADDRESS" marketingCampaignId="9000" contactListName="New Product Announcements" description="New Product Announcements Mailing List (email)" comments="" isPublic="Y" ownerPartyId="Company" |
Free forum by Nabble | Edit this page |