Tuesday, September 8, 2015

Custom Web ADI (Download)

Here I will go through the steps to create a custom Web ADI to download the data from a custom table.


For introduction you can refer below post:


Responsibility: Desktop Integration Manager

 > Create Integrator
XXAK: Test Download ADI
XXAKTESTDWNADI

Check the box for ‘Display in Create Document Page’

Add these three functions

Code:
BNE_ADI_DEFINE_MAPPING
BNE_CREATE_DOCUMENT
BNE_ADI_CREATE_DOCUMENT



Interface type here would be ‘Table’

To get your custom table here, you need to register it first.
Please follow below link(s)




Apply


Create Content

Content type would be ‘SQL Query’
Query : SELECT order_number
      ,start_date
      ,end_date
      ,business_area
  FROM XXAK_WEB_ADI_DOWNLAOD_TBL

Test Query

Apply

Create Uploader – Not Required
Submit

Create Layout


Responsibility: Desktop Integrator

> Define Layout

Change the placement as ‘Line’





Select ‘Protect Sheet’, ‘Apply Filters’ and ‘Data Entry Rows’ as required








Create Mapping

Responsibility: Desktop Integrator

 > Define Mapping

Mapping for ‘Interface’ and ‘Content’ data











Source Columns are referencing SQL Query (Content)
Target Columns are referencing the table (Interface)


Apply





Completed


Add a form function and add to the specified responsibility menu

Responsibility: Application Developer
          > Application > Function


Type: SSWA servlet function
HTML_call : BneApplicationService
Parameter: bne:page=BneCreateDoc&bne:integrator=20003:XXAKTESTDWNADI_XINTG&bne:layout=20003:XXAKTESTDWNADI


select integrator_app_id || ':' || integrator_code integrator
        , application_id || ':' || layout_code layouts
  from bne_layouts_b
 where integrator_code like 'XXAK%'










Before you run the ADI you need to amend some Excel settings, please follow below link


Select appropriate ‘Viewer’, ‘Layout’, and ’Content’













Done!

13 comments:

  1. Hi ,

    Thank you !

    It is very helpful.

    Can you tell me how to do for download and upload in single
    ADI Sheet.

    Ex... If I want to update email address of employees I need to see the existing email address and I have to correct the email address. In this case I am able to download the data but while uploading It is showing as processed but it is not processing.

    Can you suggest me.

    ReplyDelete
  2. Hi Anandbabu,

    Please check this article

    http://abhayappssolution.blogspot.co.uk/2015/09/custom-web-adi-downloadupload.html

    ReplyDelete
  3. Hi,
    Thank you very much for this simple article.
    Hope to publish more article..
    Thanks

    ReplyDelete
  4. HI,

    is it possible to download the data with parameter.
    I am using below sample query in content
    "Select Col_a,colb from table where col_a=$param$.col_a"
    But while generating create document nothing showing about parameter. can you please help me.
    Thanks,
    Hari.

    ReplyDelete
  5. HI,

    is it possible to download the data with parameter.
    I am using below sample query in content
    "Select Col_a,colb from table where col_a=$param$.col_a"
    But while generating create document nothing showing about parameter. can you please help me.
    Thanks,
    Hari.

    ReplyDelete
    Replies
    1. Hi Hari,

      Even I have got the same requirement .., It will be great help if anybody could share the solution
      to download data based on parameter

      Thanks

      Delete
    2. Hey, Problem could be the view BNE_PARAM_DEFNS_VL .

      check for your PARAM_DEFN_CODE in BNE_PARAM_DEFNS_VL table, if it is no there check the BNE_PARAM_DEFNS_TL whether this exists with which language and source_lang.
      updata BNE_PARAM_DEFNS_TL with correct language and source_lang as 'US' ,then check now the view BNE_PARAM_DEFNS_VL .

      Check the Download Parameters now in Integrator ,it should bring the parameters.

      Regards,
      John

      Delete
  6. Hi,

    Is it possible to create dependent parameter list?

    Thanks,
    Ayushi

    ReplyDelete
    Replies
    1. Hi,

      Were you able to create dependent parameter list?. Please let me know if you were able to. I have this requirement. You help would be greatly appreciated

      Delete
    2. Hi,


      Even we have the same requirement for Dependent Parameter list in Content Parameters. Please let me know if anyone did the same.

      Regards,
      Lavanya

      Delete
  7. Hi,

    Could any one help me ,how to download data based on user input parameter in webadi

    ReplyDelete
    Replies
    1. Hi Abdul,

      Hope u have found a solution , I have same requirement ..
      Could u plz help me , Thank u in advance

      Regards
      Ashraya

      Delete
  8. really helpful post Abhay .. Thanks for sharing

    @ Hari babu / Abhay , even I have got same requirement to download the data based on a particular parameter..
    Please let me know how it can be achieved

    Thank you in advance :)

    Regards
    Ashray

    ReplyDelete