saving customised data for import as demo data?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

saving customised data for import as demo data?

ryan-116
Somewhere in the docs and tutorials I thought I had seen a description
of how to re-integrate one's customisations of the demo data back into
the build/run-install process.  I cannot seem to find that info again now.

Is there a succinct procedure to
* export the customised demo data
* re-import this data into a clean install?

regards,
-Ryan
Reply | Threaded
Open this post in threaded view
|

Re: saving customised data for import as demo data?

ryan-116
I should rephrase this: how do you re-import from within the build-file
or from the cli? i can successfully re-import using the Entity
Maintenance UI....

Ryan Sweet wrote:

> Somewhere in the docs and tutorials I thought I had seen a description
> of how to re-integrate one's customisations of the demo data back into
> the build/run-install process.  I cannot seem to find that info again
> now.
>
> Is there a succinct procedure to
> * export the customised demo data
> * re-import this data into a clean install?
>
> regards,
> -Ryan

Reply | Threaded
Open this post in threaded view
|

Re: saving customised data for import as demo data?

rajsaini
In reply to this post by ryan-116
Add a entity-resource entry  of type "data" and reader-name as "ext" in
ofbiz-components.xml  of your application. For example:

<entity-resource type="data" reader-name="ext" loader="main"
location="data/GeoData_IN.xml"/>

And run the "run-install-extseed" ant target instead of "run-install".

This should load your modified data along with the seed data and without
any demo data.

Hope this helps.


Raj

Ryan Sweet wrote:

> Somewhere in the docs and tutorials I thought I had seen a description
> of how to re-integrate one's customisations of the demo data back into
> the build/run-install process.  I cannot seem to find that info again
> now.
>
> Is there a succinct procedure to
> * export the customised demo data
> * re-import this data into a clean install?
>
> regards,
> -Ryan
>

Reply | Threaded
Open this post in threaded view
|

Re: saving customised data for import as demo data?

ryan-116
Thanks, that works great!

Raj Saini wrote:

> Add a entity-resource entry  of type "data" and reader-name as "ext"
> in ofbiz-components.xml  of your application. For example:
>
> <entity-resource type="data" reader-name="ext" loader="main"
> location="data/GeoData_IN.xml"/>
>
> And run the "run-install-extseed" ant target instead of "run-install".
>
> This should load your modified data along with the seed data and
> without any demo data.
>
> Hope this helps.
>
>
> Raj
>
> Ryan Sweet wrote:
>> Somewhere in the docs and tutorials I thought I had seen a
>> description of how to re-integrate one's customisations of the demo
>> data back into the build/run-install process.  I cannot seem to find
>> that info again now.
>>
>> Is there a succinct procedure to
>> * export the customised demo data
>> * re-import this data into a clean install?
>>
>> regards,
>> -Ryan
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: saving customised data for import as demo data?

Jacques Le Roux
Administrator
In reply to this post by rajsaini
Thanks Raj,

I put your advice as a tip in http://docs.ofbiz.org/pages/editpage.action?pageId=1379#FAQ-Tips-Tricks-Cookbook-HowTo-DataBase

Jacques

From: "Raj Saini" <[hidden email]>

> Add a entity-resource entry  of type "data" and reader-name as "ext" in
> ofbiz-components.xml  of your application. For example:
>
> <entity-resource type="data" reader-name="ext" loader="main"
> location="data/GeoData_IN.xml"/>
>
> And run the "run-install-extseed" ant target instead of "run-install".
>
> This should load your modified data along with the seed data and without
> any demo data.
>
> Hope this helps.
>
>
> Raj
>
> Ryan Sweet wrote:
>> Somewhere in the docs and tutorials I thought I had seen a description
>> of how to re-integrate one's customisations of the demo data back into
>> the build/run-install process.  I cannot seem to find that info again
>> now.
>>
>> Is there a succinct procedure to
>> * export the customised demo data
>> * re-import this data into a clean install?
>>
>> regards,
>> -Ryan
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: saving customised data for import as demo data?

rajsaini
Thanks Jacques for putting it on Wiki.

Raj

Jacques Le Roux wrote:

> Thanks Raj,
>
> I put your advice as a tip in
> http://docs.ofbiz.org/pages/editpage.action?pageId=1379#FAQ-Tips-Tricks-Cookbook-HowTo-DataBase 
>
>
> Jacques
>
> From: "Raj Saini" <[hidden email]>
>> Add a entity-resource entry  of type "data" and reader-name as "ext"
>> in ofbiz-components.xml  of your application. For example:
>>
>> <entity-resource type="data" reader-name="ext" loader="main"
>> location="data/GeoData_IN.xml"/>
>>
>> And run the "run-install-extseed" ant target instead of "run-install".
>>
>> This should load your modified data along with the seed data and
>> without any demo data.
>>
>> Hope this helps.
>>
>>
>> Raj
>>
>> Ryan Sweet wrote:
>>> Somewhere in the docs and tutorials I thought I had seen a
>>> description of how to re-integrate one's customisations of the demo
>>> data back into the build/run-install process.  I cannot seem to find
>>> that info again now.
>>>
>>> Is there a succinct procedure to
>>> * export the customised demo data
>>> * re-import this data into a clean install?
>>>
>>> regards,
>>> -Ryan
>>>
>>
>