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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] webFOCUS RESTful webServices

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] webFOCUS RESTful webServices
 Login/Join
 
Platinum Member
posted
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"><content _jt="IBFSByteContent" char_set="Cp1252">encodedData</content><properties size="1"><entry key="tool" value="url"/></properties></rootObject>';

window.open(url1); 

 

}  



WF8204
Windows 10

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 181 | Registered: October 25, 2017Report This Post
Guru
posted Hide Post
Which error do you get?


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Platinum Member
posted Hide Post
The attachment is the error. Error


webFOCUS 8206
Windows 10
 
Posts: 181 | Registered: October 25, 2017Report This Post
Platinum Member
posted Hide Post
Also i ran it from the IBI web Services Test page and it created the URL successfully


webFOCUS 8206
Windows 10
 
Posts: 181 | Registered: October 25, 2017Report 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     [CLOSED] webFOCUS RESTful webServices

Copyright © 1996-2020 Information Builders