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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Appstudio
 Login/Join
 
Member
posted
Can any one post sample code block in appstudio which calls an external API

WF 8.1.03
APPSTUDIO 8.103
Linux

This message has been edited. Last edited by: <Emily McAllister>,


Webfocus 8 Linux
 
Posts: 6 | Registered: May 29, 2014Report This Post
Platinum Member
posted Hide Post
quote:
Can any one post sample code block in appstudio which calls an external API

do you want to add external JS and CSS file?


WebFocus 8104,8204
Excel/PDF/HTML/HTMLTABLE/XML/ALPHA/GIF file/GRAPH/Active technologies
 
Posts: 186 | Location: INDIA | Registered: July 11, 2013Report This Post
Master
posted Hide Post
quote:
Can any one post sample code block in appstudio which calls an external API


What do you mean by External API? Calling a Web/Rest Service?



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Silver Member
posted Hide Post
HI

var jobcode = document.getElementById('listbox8').value;
var yearmonth = y+'/'+m+'/01';
var hiredate = IbComposer_getCurrentSelection('calendar1');
var termdate = IbComposer_getCurrentSelection('calendar2');
if (termdate == 'FOC_NOSELECTION' ){termdate = '9999-12-31';}
var getRandomNum = Math.random();


var url = "http://" + window.location.hostname + "/ibi_apps/WFServlet" + "?";
url = url + "IBIF_ex=pbj/addhours_v2.fex" + "&" + "VendorID=" + vender + "&" + "EmployeeID=" + emp + "&" + "FacilityCode=" + facility;
url = url + "&" + "yearmonth=" + yearmonth + "&" + "updString=" + updString + "&" + "HireDate=" + hiredate + "&" + "TermDate=" + termdate;
url = url + "&" + "tamp=" + getRandomNum + "&" + "JobCode=" + jobcode + "&" + "EmployeeCompType=" + empcompstatus;
alert(url);
xmlHttp.open("GET", url, true);
xmlHttp.send(null);
}
Hope this helps


WebFOCUS 8
Windows, All Outputs
 
Posts: 34 | Registered: September 08, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders