legacy-knowledge-base
Publicado Jul. 25, 2002

How to Export a Single Form as a LAR File

written-by

Phil Chapman

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • How can I export a single form in LAR format?

Environment

  • DXP 7.3   DXP 7.4

Resolution

During the export process, there are options that allow for the inclusion/exclusion of data. In this example, we'll use the date range function.

Below we have 4 forms, 3 were created 2 hours ago and the other seconds ago.

1.png

Here's how to export Form 4 only.

1. Click the (⋮) button on the top-right to access the Export / Import options

Screen_Shot_2022-04-19_at_15.25.32.png


2. Scroll down the Export tab to Content and select Date Range.
Note that currently, all 4 Forms are within the specified range as denoted under the Content section:

  • Dynamic Data Mapping Data Provider (2), Forms (4) Change

3. Amend the date range and time to when Form 4 was created. This then isolates it from the 3 other entries:
Screen_Shot_2022-04-19_at_15.27.05.png

To check if Form 4 is isolated we can click Refresh Counts

Content
now shows:

  • Forms (1) Change

4. Click the Export button

5. The export process shows as Successful

4.png

Click the small arrow to download the LAR file.

6. Further confirmation that only Form 4 is present, can be seen when the LAR is imported into a new site. 

Screen_Shot_2022-04-19_at_16.00.35.png

Important: When working with LAR files, the same patch level needs to be used in both the origin and target sites.

Additional Information

did-this-article-resolve-your-issue

legacy-knowledge-base