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]Action/Submit Button on Calendar not working

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Action/Submit Button on Calendar not working
 Login/Join
 
Gold member
posted
Hello,

I have created a action/submit button for a calendar and it is not working.

Could some one please inform me of where to look. The reset button works and resets all the fields and the page. Lastly, I set some default fields for the calendar and they are seen in my query but not shown in the data field box.

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 96 | Registered: October 13, 2014Report This Post
Virtuoso
posted Hide Post
Hi,

What do you mean by create an action/submit button for a calendar ?
The calendar is a control by itself so doesn't need an action for it.
Is it that you provide a default value for the calendar but when you reset the page the calendar is not reset to the default value ? If so, where the default value is coming from ? A variable, a fex, ...

Be more detailed and parse your code, it may help...


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Gold member
posted Hide Post
The calendar is coming from a .htm file. After checking the Parameters tab. The binding do not seem to be correct. How do I create bindings.
I need to bind the calendar1 to the STARTDATE and calendar2 To the ENDDATE


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 96 | Registered: October 13, 2014Report This Post
Gold member
posted Hide Post
  -* File District_Org_Chart.fex
-SET &ECHO=ALL;
-*
-DEFAULT &STARTDATE = '2014/06/08';
-DEFAULT &ENDDATE = '2014/06/14';
-*-DEFAULT &DIVISION = '1D' ;
-*-DEFAULT &SUB_ASG = 'SHIFT 1' ;
-TYPE STARTDATE = &STARTDATE
-TYPE ENDDATE = &ENDDATE

-SET &BEG_DATE_ISSUED = &STARTDATE | ' 00:00:00.000';
-SET &END_DATE_ISSUED = &ENDDATE | ' 00:00:00.000';

ENGINE SQLORA SET CONNECTION_ATTRIBUTES EJSWAR
SQL SQLORA
select distinct INCIDENT_SUPPLEMENTS.APPROVAL_DATE, INCIDENTS.INC_REPORT_NUMBER,
INCIDENT_SUPPLEMENTS.CREATOR_ID, INCIDENT_TYPE_CODES.DESCRIPTION, OFFENSES.OFFNSE_CD_OFFENSE_STATUS_CODE,
INCIDENT_SUPPLEMENTS.ISC_STATUS_CODE, INCIDENTS.INCIDENT_ID, INCIDENTS.ITC_CODE,
OFFENSES.INC_INCIDENT_ID, EMPLOYEES.LOGIN_ID, EMP_SERVICE_HISTORIES.EJS_EMP_ID, EMPLOYEES.EJS_EMP_ID,
EMP_SERVICE_HISTORIES.SRV_ASSIGN_CODE , EMPLOYEES.OFFICER_ID,OFFICERS.CAD_EMP_ID
from EMPLOYEES, EMP_SERVICE_HISTORIES, INCIDENTS, INCIDENT_SUPPLEMENTS, INCIDENT_TYPE_CODES, OFFENSES , OFFICERS
where INCIDENTS.INCIDENT_ID=INCIDENT_SUPPLEMENTS.INC_INCIDENT_ID and
INCIDENTS.INCIDENT_ID=OFFENSES.INC_INCIDENT_ID and
EMPLOYEES.EJS_EMP_ID=EMP_SERVICE_HISTORIES.EJS_EMP_ID and
INCIDENT_TYPE_CODES.CODE=INCIDENTS.ITC_CODE and
INCIDENT_SUPPLEMENTS.CREATOR_ID = EMPLOYEES.LOGIN_ID and
INCIDENTS.ITC_CODE = INCIDENT_TYPE_CODES.CODE AND
offenses.OFFNSE_CD_OFFENSE_STATUS_CODE = '03' and
INCIDENT_SUPPLEMENTS.ISC_STATUS_CODE = 'A'
and INCIDENT_SUPPLEMENTS.APPROVAL_DATE >= trunc(sysdate) -2 and INCIDENT_SUPPLEMENTS.APPROVAL_DATE < trunc[sysdate)
AND OFFICERS.OFFICER_ID=EMPLOYEES.OFFICER_ID
group by EMPLOYEES.LNAME,INCIDENT_SUPPLEMENTS.APPROVAL_DATE, INCIDENTS.INC_REPORT_NUMBER,
INCIDENT_SUPPLEMENTS.CREATOR_ID, INCIDENT_TYPE_CODES.DESCRIPTION, OFFENSES.OFFNSE_CD_OFFENSE_STATUS_CODE,
INCIDENT_SUPPLEMENTS.ISC_STATUS_CODE, INCIDENTS.INCIDENT_ID, INCIDENTS.ITC_CODE, EMPLOYEES.FNAME,
OFFENSES.INC_INCIDENT_ID, EMPLOYEES.LOGIN_ID, EMP_SERVICE_HISTORIES.EJS_EMP_ID, EMPLOYEES.EJS_EMP_ID,
EMP_SERVICE_HISTORIES.SRV_ASSIGN_CODE , EMPLOYEES.OFFICER_ID,OFFICERS.CAD_EMP_ID;
-*and ROWNUM <= 10;



-*TABLE FILE SQLOUT
-*PRINT *
-*ON TABLE HOLD FORMAT ALPHA
-*END

TABLE
ON TABLE HOLD AS OFFNSDAT
END

-*RUN


-*EXIT

-RUN

-*?FF HOLD
-*-EXIT

-*-SET &LASTDT2= AYMD (&YYMD, -2, 'I8YYMD');


TABLE FILE OFFNSDAT
SUM
APPROVAL_DATE
INC_REPORT_NUMBER
CREATOR_ID
DESCRIPTION
OFFNSE_CD_OFFENSE_STATUS_CODE
ISC_STATUS_CODE
INCIDENT_ID
ITC_CODE
INC_INCIDENT_ID
LOGIN_ID
EJS_EMP_ID
EJS_EMP_ID
SRV_ASSIGN_CODE
OFFICER_ID
BY CAD_EMP_ID
-*WHERE INCIDENT_SUPPLEMENTS.APPROVAL_DATE GE &LASTDT2;
ON TABLE HOLD AS OFFNSDAT FORMAT FOCUS INDEX CAD_EMP_ID
END
-RUN



SET ALL=ON
-*JOIN CAD_EMP_ID IN OFFNSDAT TO ALL PerID IN TELESTAFFROSTER AS J1
JOIN PerID IN TELESTAFFROSTER TO CAD_EMP_ID IN OFFNSDAT AS J1

DEFINE FILE TELESTAFFROSTER
APPROVAL_DATE1/YYMD = HDATE(APPROVAL_DATE,'YYMD');


-*CURRDATE/YYMD=&YYMD;
-*TWODAYSPRIOR/YYMD=CURRDATE-2;
-*DISPLAYDATE/YYMD=IF APPROVAL_DATE1 GE TWODAYSPRIOR THEN APPROVAL_DATE1 ELSE '';
DISPLAYDATE/YYMD=APPROVAL_DATE1;



END



TABLE FILE  TELESTAFFROSTER
-*TABLE FILE  TELESTAFFROSTER
HEADING CENTER
"&SUB_ASG"

PRINT UPLASTNAME AS ''


DISPLAYDATE AS 'DATE CLOSED'

INC_REPORT_NUMBER AS 'CASE #'

DESCRIPTION
INCIDENT_ID NOPRINT

-*COMPUTE DATEISSUED/YYMD = HDATE(DATE_ISSUED,'YYMD'); AS 'DATE,ISSUED'


BY RANK_ORDER NOPRINT
BY RANK_ABRV AS ''
WHERE TSDIVISION EQ '&DIVISION';
WHERE SUB_ASSIGNMENT EQ '&SUB_ASG';
WHERE RANK_ABRV NE 'CPT' OR 'LT';

-*WHERE APPROVAL_DATE FROM '&BEG_DATE_ISSUED.EVAL' TO '&END_DATE_ISSUED.EVAL';


ON TABLE HOLD FORMAT HTMTABLE AS 'X1'
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = overtime_blue.sty,
	 TOPMARGIN=0.0,
	 LEFTMARGIN=0.0,
	 RIGHTMARGIN=0.0,
	 BOTTOMMARGIN=0.0,
$
TYPE=HEADING,
     STYLE=BOLD,
$
TYPE=DATA,
     COLUMN=INC_REPORT_NUMBER,
     TARGET='_blank',
     URL=http://ejsp-prp:7778/reports/rwservlet?( \
     P_INC_ID=INCIDENT_ID \
     server='REP_EJSP01-PRP_OracleAS1012' \
     report='INCFULL.rep' \
     desformat='PDF' \
     destype='CACHE' \
     PARAMFORM='NO' \
     ENVID='V93' \
     userid='@EJSP' \
     ),
    ALT='Get Incident Report',

$

TYPE=REPORT,
  BACKCOLOR=RGB(153 204 255),
  FONT=ARIAL,
$
TYPE=REPORT
    COLUMN=3,
	WIDTH=1.2,
	WRAP=1.2,
	SIZE=9,
$
END

-HTMLFORM BEGIN
<html>
<body style="background-color:#99CCFF;")>
<div valign="top" style="width:150px;">
!IBI.FIL.X1;
</div>
</body>
</html>
-HTMLFORM END


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 96 | Registered: October 13, 2014Report This Post
Virtuoso
posted Hide Post
To bind a control to a variable you must have:
1- a control :-)
2- a variable (&VAR) that comes from a fex
3- a fex (which can be a report or a graph) which is launch from an iFrame or Run button that it's included into the same HTML page from where the control is. When you attach the fex to the iFrame or Button, it will prompt you to add the control on the page this is the first place where you can bind them or in the parameters tab from the HTML Composer

4- YOU DO NEED TO HAVE WF TRAINING !!

This is difficult to explain here where a training will SHOW you how to do it in a minute !!!!


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Guru
posted Hide Post
Good rule of thumb here:

Always have your procedure with all your variables defaulted before you begin your HTML in HTML Composer.

Now there are many ways to do this, so opinions will vary, but I do that first, then when I create a new HTML with a new form, when I link the procedure it creates the controls and links the controls to the variables.

This will also be your bestfriend (next to Google of course)


 -*-? &
-*-EXIT
 



Before any of my code logic begins, I want to see what my HTML is passing to my procedure.

The fun part comes when you have to add more controls after you have done your initial procedure linkage.


Good luck!


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Gold member
posted Hide Post
quote:
parameters tab from the HTML Composer



For some reason my control is not binding to my variable in the paramaters tab in the HTML Composer. Is this a glitch. I have WebFocus 8008. Could someone walk me through this process please. Thank you.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 96 | Registered: October 13, 2014Report This Post
Virtuoso
posted Hide Post
Depending on how you've included the variables and the controls, they may not bind automatically, do it manually : click on a control and drag it through the its proper variable.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Gold member
posted Hide Post
quote:
Originally posted by MartinY:
Depending on how you've included the variables and the controls, they may not bind automatically, do it manually : click on a control and drag it through the its proper variable.


That worked. I was beating my head on this all day and all I had to do was drag one to the other. Thank you!!!


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 96 | Registered: October 13, 2014Report This Post
Gold member
posted Hide Post
Ok, they are binding together now. But how come when I click the play/submit button nothing happens I thought after you "bound" them this should create an "action". How do you now make the play/submit button work.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 96 | Registered: October 13, 2014Report This Post
Guru
posted Hide Post
Did you link your run button to an external procedure?


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Gold member
posted Hide Post
quote:
Originally posted by MattC:
Did you link your run button to an external procedure?


Does this need to be done from the code or the HTM GUI. Please advise


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 96 | Registered: October 13, 2014Report This Post
Gold member
posted Hide Post
I got it to work!!


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 96 | Registered: October 13, 2014Report 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]Action/Submit Button on Calendar not working

Copyright © 1996-2020 Information Builders