Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved]List and Delete schedule using REST webservices

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved]List and Delete schedule using REST webservices
 Login/Join
 
Platinum Member
posted
Hi,

We are implementing a custom Reportcaster using REST webservices and able to save the schedule successfully.

We are having an issue when we try to do LIST and DELETE a schedule. Have anyone implemented it. Can you able to share your code and experience?

This message has been edited. Last edited by: WFDevConsultant,


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report This Post
Platinum Member
posted Hide Post
You will need to define the development environment that you're using to list or delete a schedule.
.NET? Java?

Efrem
 
Posts: 229 | Location: New York | Registered: July 27, 2004Report This Post
Platinum Member
posted Hide Post
I am not using either .NET or JAVA. Just trying to list it using WebFocus procedure.


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report This Post
Platinum Member
posted Hide Post
What release of WebFOCUS?
 
Posts: 229 | Location: New York | Registered: July 27, 2004Report This Post
Platinum Member
posted Hide Post
WebFocus 8105


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report This Post
Platinum Member
posted Hide Post
When you say List a schedule, do you mean list all the information for a particular schedule or just a Schedule List by Name.

Efrem
 
Posts: 229 | Location: New York | Registered: July 27, 2004Report This Post
Platinum Member
posted Hide Post
I would like get the list of all the schedules I have created. That way I can able to delete the schedules which I don't want.


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report This Post
Platinum Member
posted Hide Post
Here you go.

logon.mas:
FILENAME=M6ILO, SUFFIX=REST , $
SEGMENT=M6ILO, SEGTYPE=S0, $
FIELDNAME=IBIRS_ACTION, ALIAS=IBIRS_action, USAGE=A30, ACTUAL=A30, ACCESS_PROPERTY=(NEED_VALUE),
XDEFAULT='signOn', $
FIELDNAME=USERNAME, ALIAS=IBIRS_userName, USAGE=A30, ACTUAL=A30, ACCESS_PROPERTY=(NEED_VALUE),
XDEFAULT='admin', $
FIELDNAME=PASSWORD, ALIAS=IBIRS_password, USAGE=A30, ACTUAL=A30, ACCESS_PROPERTY=(NEED_VALUE),
XDEFAULT='admin', $
FIELDNAME=__RESPONSE, USAGE=TX80L, ACTUAL=TX, ACCESS_PROPERTY=(INTERNAL), $
SEGMENT=RESPONSE, SEGTYPE=S0, SEGSUF=XML , PARENT=M6ILO, POSITION=__RESPONSE, $
FIELDNAME=IBFSRPC, ALIAS=ibfsrpc, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
PROPERTY=ELEMENT, $
FIELDNAME=IBFSPARAMS, ALIAS=ibfsparams, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ELEMENT, $
FIELDNAME=SIZE, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSPARAMS, PROPERTY=ATTRIBUTE, $
FIELDNAME=PROPERTIES, ALIAS=properties, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=IBFSRPC, PROPERTY=ELEMENT, $
FIELDNAME=SIZE1, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=PROPERTIES, PROPERTY=ATTRIBUTE, $
FIELDNAME=ROOTOBJECT, ALIAS=rootObject, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=IBFSRPC, PROPERTY=ELEMENT, $
FIELDNAME=PROPERTIES1, ALIAS=properties, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=ROOTOBJECT, PROPERTY=ELEMENT, $
FIELDNAME=ENTRY, ALIAS=entry, USAGE=A30, ACTUAL=A30,
REFERENCE=PROPERTIES1, PROPERTY=ELEMENT, $
FIELDNAME=KEY1, ALIAS=key, USAGE=A30, ACTUAL=A30,
REFERENCE=ENTRY, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=ENTRY, PROPERTY=ATTRIBUTE, $
FIELDNAME=SIZE2, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=PROPERTIES1, PROPERTY=ATTRIBUTE, $
FIELDNAME=STATUS, ALIAS=status, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ELEMENT, $
FIELDNAME=_JT, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=STATUS, PROPERTY=ATTRIBUTE, $
FIELDNAME=NAME, ALIAS=name, USAGE=A30, ACTUAL=A30,
REFERENCE=STATUS, PROPERTY=ATTRIBUTE, $
FIELDNAME=GROUPS, ALIAS=groups, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ELEMENT, $
FIELDNAME=_JT1, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=GROUPS, PROPERTY=ATTRIBUTE, $
FIELDNAME=SIZE3, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=GROUPS, PROPERTY=ATTRIBUTE, $
FIELDNAME=PSETLIST, ALIAS=pSetList, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ELEMENT, $
FIELDNAME=_JT2, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=PSETLIST, PROPERTY=ATTRIBUTE, $
FIELDNAME=SIZE4, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=PSETLIST, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT3, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=DESCRIPTION, ALIAS=description, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=DUMMY, ALIAS=dummy, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=EMAIL, ALIAS=email, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=FULLPATH, ALIAS=fullPath, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=HANDLE, ALIAS=handle, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTSIGNIN, ALIAS=lastSignin, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LENGTH, ALIAS=length, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=NAME1, ALIAS=name, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=PASSWORD, ALIAS=password, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=TYPE, ALIAS=type, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT4, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=LANGUAGE, ALIAS=language, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=NAME2, ALIAS=name, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=RETURNCODE, ALIAS=returncode, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=RETURNDESC, ALIAS=returndesc, USAGE=A200, ACTUAL=A200,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=SUBRETURNCODE, ALIAS=subreturncode, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=SUBSYSTEM, ALIAS=subsystem, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=TYPE1, ALIAS=type, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
SEGMENT=ENTRY, SEGTYPE=S0, PARENT=RESPONSE, $
FIELDNAME=ENTRY, ALIAS=entry, USAGE=A30, ACTUAL=A30,
REFERENCE=PROPERTIES, PROPERTY=ELEMENT, $
FIELDNAME=KEY, ALIAS=key, USAGE=A30, ACTUAL=A30,
REFERENCE=ENTRY.ENTRY,
PROPERTY=ATTRIBUTE,ACCEPT='IBI_CSRF_Token_Value', $
FIELDNAME=VALUE, ALIAS=value,USAGE=A100, ACTUAL=A100,
ACCESS_PROPERTY=(AUTHTOKEN),
REFERENCE=ENTRY.ENTRY, PROPERTY=ATTRIBUTE, $

logon.acx:
SEGNAME=M6ILO,
CONNECTION=ibfs,
OBJECT=rs/ibfs,
SERVICETYPE=REST,
HTTPMETHOD=POST,
RESTRESPONSE=XML,
HTTPBODY=ENCODE, $

folderlist.mas:
FILENAME=M6ILO, SUFFIX=REST , $
SEGMENT=M6ILO, SEGTYPE=S0, $
GROUP=HEADER, ALIAS=Header, ELEMENTS=4, $
FIELDNAME=IBIRS_PATH, ALIAS=IBIRS_path, USAGE=A200, ACTUAL=A200, ACCESS_PROPERTY=(NEED_VALUE), $
FIELDNAME=IBIRS_ACTION, ALIAS=IBIRS_action, USAGE=A30, ACTUAL=A30,
XDEFAULT='get', $
FIELDNAME=IBIRS_SERVICE, ALIAS=IBIRS_service, USAGE=A30, ACTUAL=A30,
XDEFAULT='ibfs', $
FIELDNAME=CSRF_TOKEN, ALIAS=IBIWF_SES_AUTH_TOKEN, USAGE=A100, ACTUAL=A100, ACCESS_PROPERTY=(AUTHTOKEN), $
FIELDNAME=__RESPONSE, USAGE=TX80L, ACTUAL=TX, ACCESS_PROPERTY=(INTERNAL), $
SEGMENT=RESPONSE, SEGTYPE=S0, SEGSUF=XML , PARENT=M6ILO, POSITION=__RESPONSE, $
FIELDNAME=IBFSRPC, ALIAS=ibfsrpc, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
PROPERTY=ELEMENT, $
FIELDNAME=IBFSPARAMS, ALIAS=ibfsparams, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ELEMENT, $
FIELDNAME=SIZE, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSPARAMS, PROPERTY=ATTRIBUTE, $
FIELDNAME=ROOTOBJECT, ALIAS=rootObject, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=IBFSRPC, PROPERTY=ELEMENT, $
FIELDNAME=CHILDREN, ALIAS=children, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=ROOTOBJECT, PROPERTY=ELEMENT, $
FIELDNAME=_JT, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=CHILDREN, PROPERTY=ATTRIBUTE, $
FIELDNAME=SIZE1, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=CHILDREN, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT1, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=BINARY1, ALIAS=binary, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=CONTAINER, ALIAS=container, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=CREATEDBY, ALIAS=createdBy, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=CREATEDON, ALIAS=createdOn, USAGE=D20c, ACTUAL=A20,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=DEFAULTLNG, ALIAS=defaultLng, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=DESCRIPTION, ALIAS=description, USAGE=A100, ACTUAL=A100,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=DUMMY, ALIAS=dummy, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=EFFECTIVERSNAME, ALIAS=effectiveRSName, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=EXPIREDATE, ALIAS=expireDate, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=EXTERNALID, ALIAS=externalId, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=FULLPATH, ALIAS=fullPath, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=HANDLE, ALIAS=handle, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTMODIFIED, ALIAS=lastModified, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTACCESSBY, ALIAS=lastaccessBy, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTACCESSON, ALIAS=lastaccessOn, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTMODBY, ALIAS=lastmodBy, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LENGTH, ALIAS=length, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=NAME, ALIAS=name, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=POLICY, ALIAS=policy, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=RETURNEDLNG, ALIAS=returnedLng, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=SUMMARY, ALIAS=summary, USAGE=A200, ACTUAL=A200,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=TYPE, ALIAS=type, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT2, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=LANGUAGE, ALIAS=language, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=NAME1, ALIAS=name, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=RETURNCODE, ALIAS=returncode, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=RETURNDESC, ALIAS=returndesc, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=SUBRETURNCODE, ALIAS=subreturncode, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=SUBSYSTEM, ALIAS=subsystem, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=TYPE1, ALIAS=type, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
SEGMENT=ITEM, SEGTYPE=S0, PARENT=RESPONSE, $
FIELDNAME=ITEM, ALIAS=item, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=CHILDREN, PROPERTY=ELEMENT, $
FIELDNAME=NLSVALUES, ALIAS=nlsValues, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=ITEM, PROPERTY=ELEMENT, $
FIELDNAME=ENTRY, ALIAS=entry, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=NLSVALUES, PROPERTY=ELEMENT, $
FIELDNAME=KEY1, ALIAS=key, USAGE=A30, ACTUAL=A30,
REFERENCE=ENTRY, PROPERTY=ELEMENT, $
FIELDNAME=_JT3, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=KEY1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=KEY1, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT4, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=KEY1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE1, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=KEY1, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT5, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=KEY1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE2, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=KEY1, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT6, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=KEY1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE3, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=KEY1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE4, ALIAS=value, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=ENTRY, PROPERTY=ELEMENT, $
FIELDNAME=_JT7, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=VALUE4, PROPERTY=ATTRIBUTE, $
FIELDNAME=SIZE2, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=VALUE4, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT8, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=NLSVALUES, PROPERTY=ATTRIBUTE, $
FIELDNAME=LOADFACTOR, ALIAS=loadFactor, USAGE=A30, ACTUAL=A30,
REFERENCE=NLSVALUES, PROPERTY=ATTRIBUTE, $
FIELDNAME=THRESHOLD, ALIAS=threshold, USAGE=A30, ACTUAL=A30,
REFERENCE=NLSVALUES, PROPERTY=ATTRIBUTE, $
FIELDNAME=PROPERTIES, ALIAS=properties, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ELEMENT, $
FIELDNAME=SIZE3, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=PROPERTIES, PROPERTY=ATTRIBUTE, $
FIELDNAME=SIZE4, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=PROPERTIES, PROPERTY=ATTRIBUTE, $
FIELDNAME=SIZE5, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=PROPERTIES, PROPERTY=ATTRIBUTE, $
FIELDNAME=SIZE6, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=PROPERTIES, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT9, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=BINARY2, ALIAS=binary, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=CONTAINER1, ALIAS=container, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=CREATEDBY1, ALIAS=createdBy, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=CREATEDON1, ALIAS=createdOn, USAGE=D20c, ACTUAL=A20,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=DEFAULTLNG1, ALIAS=defaultLng, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=DESCRIPTION1, ALIAS=description, USAGE=A200, ACTUAL=A200,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=DUMMY1, ALIAS=dummy, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=EFFECTIVERSNAME1, ALIAS=effectiveRSName, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=EXPIREDATE1, ALIAS=expireDate, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=EXTERNALID1, ALIAS=externalId, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=FULLPATH1, ALIAS=fullPath, USAGE=A200, ACTUAL=A200,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=HANDLE1, ALIAS=handle, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=INDEX1, ALIAS=index, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTMODIFIED1, ALIAS=lastModified, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTACCESSBY1, ALIAS=lastaccessBy, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTACCESSON1, ALIAS=lastaccessOn, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTMODBY1, ALIAS=lastmodBy, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=LENGTH1, ALIAS=length, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=NAME2, ALIAS=name, USAGE=A50, ACTUAL=A50,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=PARENT, ALIAS=parent, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=POLICY1, ALIAS=policy, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=RETURNEDLNG1, ALIAS=returnedLng, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=SUMMARY1, ALIAS=summary, USAGE=A500, ACTUAL=A500,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=TYPE2, ALIAS=type, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=OWNERID, ALIAS=ownerId, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=OWNERNAME, ALIAS=ownerName, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=OWNERTYPE, ALIAS=ownerType, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
SEGMENT=ITEM1, SEGTYPE=S0, PARENT=ITEM, $
FIELDNAME=ITEM1, ALIAS=item, USAGE=A30, ACTUAL=A30,
REFERENCE=VALUE4, PROPERTY=ELEMENT, $
FIELDNAME=_JT10, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=INDEX2, ALIAS=index, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE5, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT11, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=INDEX3, ALIAS=index, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE6, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT12, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=INDEX4, ALIAS=index, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE7, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT13, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=INDEX5, ALIAS=index, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE8, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT14, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=INDEX6, ALIAS=index, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE9, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT15, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=INDEX7, ALIAS=index, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE10, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT16, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=INDEX8, ALIAS=index, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE11, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT17, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=INDEX9, ALIAS=index, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE12, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM1, PROPERTY=ATTRIBUTE, $

folderlist.acx:
SEGNAME=M6ILO, CONNECTION=ibfs, OBJECT=rs, HEADER=HEADER,
SERVICETYPE=REST, HTTPMETHOD=GET, RESTRESPONSE=XML, $

folderlist.fex:
TABLE FILE LOGON
PRINT
ENTRY.VALUE
RETURNCODE NOPRINT
RETURNDESC NOPRINT
IF USERNAME EQ 'admin'
IF PASSWORD EQ 'admin'
IF ENTRY.KEY EQ 'IBI_CSRF_Token_Value'
ON TABLE HOLD AS CSRFTOKEN
END
-RUN

-READ CSRFTOKEN &&CSRFTOKEN.A100.

DEFINE FILE FOLDERLIST
BASEDATE_HYYMDS/HYYMDS=HINPUT(19, '1970-01-01 00:00:00', 8, 'HYYMDS');
CREATEDON1_HYYMDS/HYYMDS=HADD(BASEDATE_HYYMDS, 'SECONDS', CREATEDON1/1000 , 8, 'HYYMDS');
END

TABLE FILE FOLDERLIST
PRINT
NAME2 AS 'Item Name'
DESCRIPTION1 AS 'Item Description'
SUMMARY1 AS 'Item Summary'
FULLPATH1 AS 'Item Path'
CREATEDON1_HYYMDS AS 'Date Created'
BY TYPE2 AS 'Item Type'
WHERE IBIRS_PATH EQ '&IBIRS_PATH'
WHERE TYPE2 EQ 'CasterSchedule'
WHERE CSRF_TOKEN EQ '&&CSRFTOKEN'
HEADING
"Schedule List for &IBIRS_PATH "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
ENDSTYLE
END
 
Posts: 229 | Location: New York | Registered: July 27, 2004Report This Post
Platinum Member
posted Hide Post
Forgot one line:
-SET &IBIRS_PATH = '/WFC/Repository/RESTful_Web_Services/Car_Reports';
 
Posts: 229 | Location: New York | Registered: July 27, 2004Report This Post
Platinum Member
posted Hide Post
Thanks Efrem.

Let me try this and get back to you.

Do you have one for DELETE?


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report This Post
Platinum Member
posted Hide Post
deletefolder.mas:
FILENAME=M6ILO, SUFFIX=REST , $
SEGMENT=M6ILO, SEGTYPE=S0, $
FIELDNAME=IBIRS_PATH, ALIAS=IBIRS_path, USAGE=A200, ACTUAL=A200, ACCESS_PROPERTY=(NEED_VALUE), $
FIELDNAME=IBIRS_ACTION, ALIAS=IBIRS_action, USAGE=A30, ACTUAL=A30, ACCESS_PROPERTY=(NEED_VALUE),
XDEFAULT='delete', $
FIELDNAME=IBIRS_SERVICE, ALIAS=IBIRS_service, USAGE=A30, ACTUAL=A30, ACCESS_PROPERTY=(NEED_VALUE),
XDEFAULT='ibfs', $
FIELDNAME=CSRF_TOKEN, ALIAS=IBIWF_SES_AUTH_TOKEN, USAGE=A100, ACTUAL=A100, ACCESS_PROPERTY=(AUTHTOKEN), $
FIELDNAME=__RESPONSE, USAGE=TX80L, ACTUAL=TX, ACCESS_PROPERTY=(INTERNAL), $
SEGMENT=RESPONSE, SEGTYPE=S0, SEGSUF=XML , PARENT=M6ILO, POSITION=__RESPONSE, $
FIELDNAME=IBFSRPC, ALIAS=ibfsrpc, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
PROPERTY=ELEMENT, $
FIELDNAME=IBFSPARAMS, ALIAS=ibfsparams, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=IBFSRPC, PROPERTY=ELEMENT, $
FIELDNAME=SIZE, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSPARAMS, PROPERTY=ATTRIBUTE, $
FIELDNAME=ROOTOBJECT, ALIAS=rootObject, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=IBFSRPC, PROPERTY=ELEMENT, $
FIELDNAME=PROPERTIES, ALIAS=properties, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ELEMENT, $
FIELDNAME=SIZE1, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=PROPERTIES, PROPERTY=ATTRIBUTE, $
FIELDNAME=NLSVALUES, ALIAS=nlsValues, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=ROOTOBJECT, PROPERTY=ELEMENT, $
FIELDNAME=ENTRY, ALIAS=entry, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=NLSVALUES, PROPERTY=ELEMENT, $
FIELDNAME=KEY1, ALIAS=key, USAGE=A30, ACTUAL=A30,
REFERENCE=ENTRY, PROPERTY=ELEMENT, $
FIELDNAME=_JT, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=KEY1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=KEY1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE1, ALIAS=value, USAGE=A1, ACTUAL=A1, ACCESS_PROPERTY=(INTERNAL),
REFERENCE=ENTRY, PROPERTY=ELEMENT, $
FIELDNAME=_JT1, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=VALUE1, PROPERTY=ATTRIBUTE, $
FIELDNAME=SIZE2, ALIAS=size, USAGE=A30, ACTUAL=A30,
REFERENCE=VALUE1, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT2, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=NLSVALUES, PROPERTY=ATTRIBUTE, $
FIELDNAME=LOADFACTOR, ALIAS=loadFactor, USAGE=A30, ACTUAL=A30,
REFERENCE=NLSVALUES, PROPERTY=ATTRIBUTE, $
FIELDNAME=THRESHOLD, ALIAS=threshold, USAGE=A30, ACTUAL=A30,
REFERENCE=NLSVALUES, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT3, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=BINARY1, ALIAS=binary, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=CONTAINER, ALIAS=container, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=CREATEDBY, ALIAS=createdBy, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=CREATEDON, ALIAS=createdOn, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=DEFAULTLNG, ALIAS=defaultLng, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=DESCRIPTION, ALIAS=description, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=DUMMY, ALIAS=dummy, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=EFFECTIVERSNAME, ALIAS=effectiveRSName, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=FULLPATH, ALIAS=fullPath, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=HANDLE, ALIAS=handle, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTMODIFIED, ALIAS=lastModified, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTACCESSBY, ALIAS=lastaccessBy, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTACCESSON, ALIAS=lastaccessOn, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LASTMODBY, ALIAS=lastmodBy, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=LENGTH, ALIAS=length, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=NAME, ALIAS=name, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=OWNERID, ALIAS=ownerId, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=OWNERNAME, ALIAS=ownerName, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=OWNERPATH, ALIAS=ownerPath, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=OWNERTYPE, ALIAS=ownerType, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=POLICY, ALIAS=policy, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=RETURNEDLNG, ALIAS=returnedLng, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=RSPATH, ALIAS=rsPath, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=SUMMARY, ALIAS=summary, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=TYPE, ALIAS=type, USAGE=A30, ACTUAL=A30,
REFERENCE=ROOTOBJECT, PROPERTY=ATTRIBUTE, $
FIELDNAME=_JT4, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=LANGUAGE, ALIAS=language, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=NAME1, ALIAS=name, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=RETURNCODE, ALIAS=returncode, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=RETURNDESC, ALIAS=returndesc, USAGE=A100, ACTUAL=A100,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=SUBRETURNCODE, ALIAS=subreturncode, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=SUBSYSTEM, ALIAS=subsystem, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
FIELDNAME=TYPE1, ALIAS=type, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSRPC, PROPERTY=ATTRIBUTE, $
SEGMENT=ENTRY, SEGTYPE=S0, PARENT=RESPONSE, $
FIELDNAME=ENTRY1, ALIAS=entry, USAGE=A30, ACTUAL=A30,
REFERENCE=IBFSPARAMS, PROPERTY=ELEMENT, $
FIELDNAME=KEY2, ALIAS=key, USAGE=A30, ACTUAL=A30,
REFERENCE=ENTRY1, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE2, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=ENTRY1, PROPERTY=ATTRIBUTE, $
SEGMENT=ITEM, SEGTYPE=S0, PARENT=RESPONSE, $
FIELDNAME=ITEM, ALIAS=item, USAGE=A30, ACTUAL=A30,
REFERENCE=VALUE1, PROPERTY=ELEMENT, $
FIELDNAME=_JT5, ALIAS=_jt, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=INDEX1, ALIAS=index, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $
FIELDNAME=VALUE3, ALIAS=value, USAGE=A30, ACTUAL=A30,
REFERENCE=ITEM, PROPERTY=ATTRIBUTE, $

deletefolder.acx:
SEGNAME=M6ILO,
CONNECTION=ibfs,
OBJECT=rs,
SERVICETYPE=REST,
HTTPMETHOD=POST,
RESTRESPONSE=XML,
HTTPBODY=ENCODE, $

deletefolder.fex;
-SET &IBIRS_PATH = 'IBFS:/WFC/Repository/RESTful_Web_Services/Car_Reports/Sales_for_a_Specific_Country.sch';

TABLE FILE LOGON
PRINT
ENTRY.VALUE
RETURNCODE NOPRINT
RETURNDESC NOPRINT
IF USERNAME EQ 'admin'
IF PASSWORD EQ 'admin'
IF ENTRY.KEY EQ 'IBI_CSRF_Token_Value'
ON TABLE HOLD AS CSRFTOKEN
END
-RUN

-READ CSRFTOKEN &&CSRFTOKEN.A100.

TABLE FILE DELETEFOLDER
PRINT
RETURNCODE AS 'Return Code'
RETURNDESC AS 'Return Description'
WHERE IBIRS_PATH EQ '&IBIRS_PATH'
WHERE CSRF_TOKEN EQ '&&CSRFTOKEN'
HEADING
"Deleted Schedule: &IBIRS_PATH "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
ENDSTYLE
END
 
Posts: 229 | Location: New York | Registered: July 27, 2004Report This Post
Platinum Member
posted Hide Post
Thank you very much.

Let me check this and get back to you.


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report This Post
Platinum Member
posted Hide Post
Both LIST and DELETE works well. Thanks Efrem.

One more quick question, how can I get the Recurrence information (Frequency, IntervalType, Weekdays/MonthName)?


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report This Post
Platinum Member
posted Hide Post
To get the frequency, interval, Time Type is a little more involved.

There would need to be metadata to read the Time definition of each schedule.

Below is part of the XML that WebFOCUS RESTful Web Services produces for a Monthly schedule:


Unfortunately, I don't have an example.

Efrem
 
Posts: 229 | Location: New York | Registered: July 27, 2004Report This Post
Platinum Member
posted Hide Post
 <timeInfoList _jt="array" itemsClass="CasterScheduleTimeInfo" size="1"><item class="ibi.broker.api.data.schedule.TimeInfoMonth" dayOfWeek="2" dayOfWeekEnabled="false" description="" disabled="false" frequency="1" id="I9fa80cb4i76ddi48e7ia294i946905c59c61" index="0" lastDayOfMonth="false" name="" type="5" weekOfMonth="0"><nextRunTime _jt="calendar" time="1504461600000" timeZone="America/New_York"/><startTime _jt="calendar" time="1503252000000" timeZone="America/New_York"/><endTime _jt="calendar" time="4102462740000" timeZone="America/New_York"/><daysOfMonth _jt="array" itemsClass="boolean" size="31"><item _jt="boolval" index="0" value="false"/><item _jt="boolval" index="1" value="false"/><item _jt="boolval" index="2" value="true"/><item _jt="boolval" index="3" value="false"/><item _jt="boolval" index="4" value="false"/><item _jt="boolval" index="5" value="false"/><item _jt="boolval" index="6" value="false"/><item _jt="boolval" index="7" value="false"/><item _jt="boolval" index="8" value="false"/><item _jt="boolval" index="9" value="true"/><item _jt="boolval" index="10" value="false"/><item _jt="boolval" index="11" value="false"/><item _jt="boolval" index="12" value="false"/><item _jt="boolval" index="13" value="false"/><item _jt="boolval" index="14" value="false"/><item _jt="boolval" index="15" value="false"/><item _jt="boolval" index="16" value="false"/><item _jt="boolval" index="17" value="false"/><item _jt="boolval" index="18" value="true"/><item _jt="boolval" index="19" value="false"/><item _jt="boolval" index="20" value="false"/><item _jt="boolval" index="21" value="false"/><item _jt="boolval" index="22" value="false"/><item _jt="boolval" index="23" value="false"/><item _jt="boolval" index="24" value="false"/><item _jt="boolval" index="25" value="false"/><item _jt="boolval" index="26" value="false"/><item _jt="boolval" index="27" value="false"/><item _jt="boolval" index="28" value="false"/><item _jt="boolval" index="29" value="false"/><item _jt="boolval" index="30" value="false"/></daysOfMonth></item></timeInfoList> 
 
Posts: 229 | Location: New York | Registered: July 27, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved]List and Delete schedule using REST webservices

Copyright © 1996-2020 Information Builders