Forum Stats

  • 3,782,434 Users
  • 2,254,645 Discussions
  • 7,880,078 Comments

Discussions

FLD_DELETE service is not working.

Jack Issac
Jack Issac Member Posts: 77
edited Jul 11, 2016 3:40AM in WebCenter Content

Hi everyone,

I am using JDEV 11.1.1.7 and Content Server version is 11.1.1.7

I want delete folder from content server; but I cant't execue this action.

All services are working, like FLD_BROWSE, UPDATE_DOCINFO, DELETE_DOC; but FLD_DELETE is not working.

I am not getting any error from server, response is OK. When I check the folder on content server, it there still and server didn't delete it.

When I check FodlerGUID or like folder path, they are true.


I tried 2 function for this action; but failed.


Function 1

_________

            DataBinder requestData2 = idcClient.createBinder();

            requestData2.putLocal("IdcService", "FLD_DELETE");

          

            requestData2.putLocal("path", parentFolderPath);

            requestData2.putLocal("fFolderGUID", fodlerGUID);

            // Get service response

            ServiceResponse serviceResponse2 = null;

            try {

                serviceResponse2 =

                        idcClient.sendRequest(idcContext, requestData2);

            } catch (IdcClientException e) {

                e.printStackTrace();

                return false;

            }

Function 2

________

    pblic Boolean deleteFolder(String parentFolderPath) {

        try {

            String fodlerGUID = getFolderGUID(parentFolderPath);

            // Set service request parameters

                DataBinder requestData = idcClient.createBinder();

            requestData.putLocal("IdcService", "FLD_DELETE");

            requestData.putLocal("path", "path:/"+parentFolderPath);

            requestData.putLocal("fFolderGUID", "fFolderGUID:"+fodlerGUID);

            // Get service response

            ServiceResponse serviceResponse = null;

            try {

                serviceResponse =

                        idcClient.sendRequest(idcContext, requestData);

            } catch (IdcClientException e) {

                e.printStackTrace();

                return false;

            }

            return true;

        } catch (Exception ex) {

            ex.printStackTrace();

            return false;

        }

    }

So, why this action is not executing by content server or why folder is not deleting by content server?

Thanks,

Regards.

Tagged:

Best Answer

  • pradeep.mahajan
    pradeep.mahajan Member Posts: 48
    edited Jun 30, 2016 8:50PM Accepted Answer

    Learned the hard way post few hours of debugging, but this is the gist of it.

                rootBinder1.putLocal("IdcService", "FLD_DELETE");

                rootBinder1.putLocal("item1", "fFolderGUID:"+folderid);

    "item1" , use this text as is, itll work just fine

    replace the folderid with relevant guid.

    regards,

    Pradeep Mahajan.

    http://ucmchronicles.wordpress.com

Answers

This discussion has been closed.