Rap: Excel Upload and Download Excel using Rap only
Step 1. Database tables
Step [Link] views(parent and child)
Step 3. Consumption views
Step 4. Metadata Extension.
Step 5. Service definition.
Step 6. Service Binding.
Note : After the output is displayed, no data appears.
since we don't have any records for now , so No data found is being displayed
here.
Step [Link] definition on Parent Interface view.
Step 8 . Implementation class.
Global behavior class.
Local handler class.
Method Implementation.
Method download excel.
METHOD Upload Excel Data.
METHOD Fill file status and fill selected status.
Global Feature Instance
to enable upload / download and create buttons dynamically
now our app is ready . Lets create one record and see
we can see initially that Template is absent and no file is selected.
Lets Download Template . We can see [Link] now exists in attachment and
template status changes to Present and download excel button disappears as
template exist . Remove the the template and you can see download button again .
Also file not selected as this is empty file . If you remove and upload it again , status
will change to File selected.
Download Template with predefined header.
Fill the excel . Make sure user id and development id should match with the record
where you will upload data. Other wise it will throw error.
Choose the filled file and you can see upload excel button appears.
Press upload and data will be reflected.