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.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] MAINTAIN - Mixing maintain code and javascript in an event

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] MAINTAIN - Mixing maintain code and javascript in an event
 Login/Join
 
Guru
posted
I am trying to create an alert in an event and then have it perform a CASE. I know how to create a CASE in an event to do my PERFORM and I know how to create a function in my evnet, But I do not know how to do both at the same time or switch back and forth in the same event. Any suggestions?

This message has been edited. Last edited by: Jay Potter,


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Silver Member
posted Hide Post
Hi Jay,
You can check the link below in which the case can be called in the javascript function.


WebFOCUS 8.0.08 - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
Windows, All Outputs
 
Posts: 40 | Registered: April 02, 2014Report This Post
Guru
posted Hide Post
Sorry, but I do not see a link.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Silver Member
posted Hide Post
http://forums.informationbuild...847067206#7847067206


WebFOCUS 8.0.08 - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
Windows, All Outputs
 
Posts: 40 | Registered: April 02, 2014Report This Post
Virtuoso
posted Hide Post
That approach is a little bit of overkill for what I think you need.

A base Maintain, form contains 2 buttons, deleteButton and exitButton:
MAINTAIN FILE car

$$Declarations
Declare (referrer/a0;);


Case Top
  referrer   = '../../approot/baseapp/maintain_end.htm';

  getData();

Winform Show MainForm; 

EndCase

Case getData


EndCase

Case deleteData


EndCase

Case ExitMaintain
  document.referrer = referrer;
  MainForm.WinExit();
EndCase

END

with the following event handlers:
function OnexitButton_Click ( )  {
alert("you are now exiting this process");
IWCTrigger("ExitMaintain");
}

function OndeleteButton_Click ( )  {
var checkDelete = confirm("Are you sure you want to delete\n Press OK to delete, Cancel to return to form");
if (checkDelete) IWCTrigger("deleteData"); else return false;
}

This message has been edited. Last edited by: Alan B,


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Guru
posted Hide Post
Thanks! This what I was looking for.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report 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] MAINTAIN - Mixing maintain code and javascript in an event

Copyright © 1996-2020 Information Builders