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     [CLOSED] Foc_Null in webfocus 8.005

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Foc_Null in webfocus 8.005
 Login/Join
 
Platinum Member
posted
Hello,
I have a .fex file that has the following code:
-SET &BEGINEQUIP = IF &BEGINEQUIP.LENGTH GT 2 THEN &BEGINEQUIP ELSE '_FOC_NULL';

-SET &ENDEQUIP = IF &ENDEQUIP.LENGTH GT 2 THEN &ENDEQUIP ELSE '_FOC_NULL';

I then have an .htm (composer) file that I created to use on our dashboard. If the user does not enter a begin or end equipment number then I want to pass just NULL into the .fex. I have my parameters set up to have a text box that will accpet the begin and end equipment numbers.

This worked from our old 7706 version just fine.

Thanks,
Kelly

This message has been edited. Last edited by: <Kathryn Henning>,


Prod: WebFOCUS 8.2.0.4
OS: Windows
Outputs: HTML, PDF, Excel, PPT
In Focus since 2005
 
Posts: 121 | Registered: November 17, 2005Report This Post
Gold member
posted Hide Post
What about setting (hidden) variables initially with:

-DEFAULTH &BEGINEQUIP = '_FOC_NULL';
-DEFAULTH &ENDEQUIP = '_FOC_NULL';

Then your SET:

-SET &S_BEGIN = IF &BEGINEQUIP EQ '_FOC_NULL' THEN 'NULL' ELSE &BEGINEQUIP;
-SET &S_ENDEQUIP = IF &ENDEQUIP EQ '_FOC_NULL' THEN 'NULL' ELSE &BEGINEQUIP;

??

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


8.0.02M, Oracle 11.2 (AIX), Windows 2008R2, HTML, PDF, Excel
 
Posts: 72 | Registered: November 12, 2012Report This Post
Platinum Member
posted Hide Post
Hello,

I tried the -DEFAULTH however i'm then getting an error on my .fex because it is expecting either a number or NULL value.

The Defaulth is a hidden variable and on my dashboard the equipmentnumbers are not hidden.

What happens is if I leave the equipment numbers blank from my dashboard the parameters window opens (when it just have just passed in the null value).

Thanks
Kelly


Prod: WebFOCUS 8.2.0.4
OS: Windows
Outputs: HTML, PDF, Excel, PPT
In Focus since 2005
 
Posts: 121 | Registered: November 17, 2005Report This Post
Platinum Member
posted Hide Post
Smiler

Ok globalwm that DID work. My Bad I missed the -set that you had changed from what I initally had.

Thanks so much for the help


Prod: WebFOCUS 8.2.0.4
OS: Windows
Outputs: HTML, PDF, Excel, PPT
In Focus since 2005
 
Posts: 121 | Registered: November 17, 2005Report This Post
Gold member
posted Hide Post
Fantastic! Smiler
 
Posts: 72 | Registered: November 12, 2012Report This Post
Platinum Member
posted Hide Post
Hi globalwm,

I have another report that i do the same thing with. Can you please help me with this one also?

-SET &DATEPRINT=IF &WHICHDATE EQ 'Pickup Scheduled Date' THEN PUSCHEDULEDDATE ELSE IF &WHICHDATE EQ 'Pickup Actual Date' THEN PUACTUALDATE ELSE IF &WHICHDATE EQ 'Pickup Released Date' THEN PURELEASEDDATE ELSE IF &WHICHDATE EQ 'Delivery Scheduled Date' THEN DELSCHEDULEDDATE ELSE IF &WHICHDATE EQ 'Delivery Actual Date' THEN DELACTUALDATE ELSE IF &WHICHDATE EQ 'Delivery Released Date' THEN DELRELEASEDDATE ELSE '_FOC_NULL';


Basically with this one I have a drop down list box that has the Pickup Scheduled Date, Pickup Actual Date, Pickup Released Date, Delivery Scheduled Date, Delivery Actual Date, and Delivery Released Date in.

The user can select one of those options and then they fill in the a begin date and end date box.

Thanks,
Kelly


Prod: WebFOCUS 8.2.0.4
OS: Windows
Outputs: HTML, PDF, Excel, PPT
In Focus since 2005
 
Posts: 121 | Registered: November 17, 2005Report 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     [CLOSED] Foc_Null in webfocus 8.005

Copyright © 1996-2020 Information Builders