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]IBComposer Functions in App Studio

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]IBComposer Functions in App Studio
 Login/Join
 
Guru
posted
I am noticing that the IBComposer functions do not work in App Studio (both 8.00.8 and 8.1.4). I try and use these functions as much as possible due to the statement in the help. I can get values, but I cannot use them in my "if" statement. If I use normal JS it works fine.


Anyone else seen this or has something changed that I need to know about?

Thanks,

Matt


The Help file statement:

"Although HTML Composer is fully integrated with JavaScript, it is suggested that you do not create custom JavaScript that manipulates HTML Composer generated controls, as WebFOCUS cannot support such custom JavaScript code. Additionally, there is no guarantee that the JavaScript code will work correctly in future releases."


 

//Begin function filterlist2_onchange
function filterlist2_onchange(event) {

var Filter2Val = IbComposer_getCurrentSelection('filterlist2');
var Filter1Val = IbComposer_getCurrentSelection('filterlist1');

//var Filter2Val = document.getElementById("filterlist2").value;
//var Filter1Val = document.getElementById("filterlist1").value;


   //alert (Filter2Val);
   //alert (Filter1Val);

if (Filter1Val == Filter2Val)
  {
    alert ('You cannot select the same filter type');
    IbComposer_setCurrentSelection('filterlist2', 0, false);
   //document.getElementById("filterlist2").value = 0;
  }

}

//End function filterlist2_onchange
 

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


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Guru
posted Hide Post
Well....

When you get the the values using these functions, it puts them into an array. I have never compared values using these functions.

Using this works

if (Filter1Val[0] == Filter2Val[0])
  


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report 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]IBComposer Functions in App Studio

Copyright © 1996-2020 Information Builders