Jump to content

Recommended Posts

Posted

Has anyone leveraged JavaScript within the WebFOCUS Designer tool (9.x) and is there any good documentation?  IBI directs me to the documentation.  I point out that it isn't good and there are no solid examples.  They tell me they will pass along the feedback to their leadership.  The WebFOCUS webinars mention that JavaScript can be used but never spend any time speaking about it?  I am just curious if anyone is using it.

  • Like 2
Posted

Hi @J. J. not sure which documentation you already checked out?

I prefer the online help contains samples as well as a more detailed documentation -  if you only checked the PDF doc - this is very basic

Here's the link to start with:
https://docs.tibco.com/webfocus/924/doc/html/index.jsp?topic=%2Fcom.ibi.help.intro%2Fsource%2FCSS_and_JS_8207.htm&cp%3D6_3_1_1

In addition WebFOCUS contains a built in documentation of classes for Javascript 
http://webfocus.local:8080/ibi_apps/web_resource/doc/automation/index.html

just replace http://webfocus.local:8080/ibi_apps with your machine URL

If you are using a very recent version of WebFOCUS take a look at Interactions as they are quite handy for JavaScript implementation

https://docs.tibco.com/pub/wf-wf/9.3.0/doc/pdf/IBI_wf-wf_9.3.0_users-guide.pdf - Page 881 

 

  • Like 1
  • 1 month later...
Posted

Hi @Patrick Huebgen,

Thank you for this feedback.  This has been helpful.  We are trying to load specific content once the page loads.  We found that the following function will do it.

panelContainer.ibaObject.addContent('IBFS:/WFC/Repository/<workspace>/<content>', 'Title', true);

However, using this will prevent filters from loading.  We reached out to IBI Support to get their feedback.  They indicated that any JavaScript, even the documented API, is not supported by IBI.  Have you ever used JavaScript to load content on a page?

Posted

Some "dashboards" are data intensive and we do not want to run automatically.  Also, our customers want us to provide rich text instructions or details on some dashboards.  The Designer tool Text option does not support rich formatting so we do this in an HTML file.  Unfortunately, when we uncheck the auto load feature, it does not load the HTML instructions/details page.  We looked at using an Interaction, but it does not an option to trigger content load based on the "page loaded" event.  We are now trying to leverage JavaScript to load the HTML content in a container while leaving the data output blank until the submit event.  We found that adding the  panelContainer.ibaObject.addContent('IBFS:/WFC/Repository/<workspace>/<content>', 'Title', true); works, but stops the filters from appearing on the page.

  • Sad 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...