[CLOSED] create URL using webFOCUS RESTful webservices
I am trying to create an URL using webFOCUS RESTful webservices. Below is the code,But it ends up in some error always. Can someone tell me where i am going wrong.
when i paste the individual components in the test page and run it works properly.
function button1_onclick(event) {
var eventObject = event ? event : window.event;
var ctrl = eventObject.target ? eventObject.target : eventObject.srcElement;
// TODO: Add your event handler code here
var val = IbComposer_getAllAmpersValues();
var url = "/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_LAUNCH&BIP_folder=IBFS%253A%252FWFC%252FRepository%252FTraining%252FISOS%252F&BIP_item=HtmlPage1.htm";
var encodedData = window.btoa(url);
console.log(url);
var url1 = '/ibi_apps/rs/ibfs/WFC/Repository/Training/my.url?IBIRS_action=put&IBIRS_object=&IBIRS_object=rootObject _jt="IBFSMRObject" description="Yahoo" type="URLFile">encodedData';
When i do the same in webFOCUS RESTful webservices test page it works fine.
WF 8202 windows 10This message has been edited. Last edited by: FP Mod Chuck,
February 13, 2019, 08:01 AM
dhagen
Turn on the browser debugger when you run the test page. If you have performed the logon, then the cookie should be there, but I believe you are missing a required header.
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott