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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Maintain
 Login/Join
 
Silver Member
posted
I have a maintain that is calling a Web Link to a report. This report has variables that are being passed. The user can filter to make the selection smaller or leave the input box empty to select all. However, right now, I'm being asked to enter a value for all the input boxes rathen than assigning the box with blank or simply ignoring it. How to i make this work so that it only filters on the values I put into to the box


7.61, nt
Output: excel, pdf, html,
 
Posts: 33 | Registered: January 10, 2008Report This Post
Expert
posted Hide Post
jbond, can you please post some more info.

I do have a feeling that the issue is with WebFOCUS Autoprompt, that is purely a guess.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
If the requests for the amper variables are coming from the TABLE then just use:
-DEFAULT &VAR = '';
Where &VAR is the name of your variables. This way, if a value is not supplied the default blank value will be used.

If the problem is coming from the Maintain side, preset the variables with a blank (" ") and just ignore it in the Table. If neither suggestion help, please post your code.

Thanks
Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Silver Member
posted Hide Post
Mark,

I have a button on a form that calls the following

Web Link OnBtnPrint_Click
printrec
End

In this form, the user call filter selection to narrow the search. I have set the parameters using the tool and pointing it the value on the form.

I then set the variables to the following fex:


-SET &WHR_SCD1 = 'WHERE (PSORT EQ ' | &SORT || ' ) ' ;
-SET &WHR_SCD2 = ' OR (ISORT EQ ' | &SORT || ' ) ;' ;
-SET &WHR_SCD = &WHR_SCD1 || &WHR_SCD2 ;
-GET_NEXT2
-DEFAULT &1=' '
-* &2 DOC NUMBER
-DEFAULT &2=' '
-* &3 FORM NAME
-DEFAULT &3=''
-* &4 VENDOR NAME
-DEFAULT &4=' '
-* &5 PURCHASER
-DEFAULT &5=' '
-* &6 INVOICE NUMBER
-DEFAULT &6=' '
-* &7 FISCAL YEAR
-DEFAULT &7=' '
-* &8 INDEX
-DEFAULT &8=' '
-* &9 OBJECT
-DEFAULT &9=' '
-* &10 PCA
-DEFAULT &10=' '
-* &11 PROJ/WP
-DEFAULT &11=' '
-* &12 SUMMARY AMT FROM
-DEFAULT &12=' '
-* &13 SUMMARY AMT TO
-DEFAULT &13=' '
-* &14 PARK UNIT
-DEFAULT &14=' '
-* &15 FUNCTION
-DEFAULT &15=' '
-* &16 DETAIL AMT FROM
-DEFAULT &16=' '
-* &17 DETAIL AMT TO
-DEFAULT &17=' '
-DEFAULT &18=' '
-* &17 DETAIL AMT TO
-DEFAULT &19=' '
-DEFAULT &20=' '
-DEFAULT &21=' '
-* &18 RECORDLIMIT
-DEFAULT &22=500
-* &19 SCREEN FLAG
-DEFAULT &23='EXP'
-* &20 SORT CODE
-DEFAULT &24='BH'
SET ALL=ON
-SET &FILE001=&23 || '001';
-SET &FILE002=&23 || '002';
-SET &FILE003=&23 || '003';
-SET &FILE001P=&23 || '001.';
-SET &FILE002P=&23 || '002.';
-SET &FILE003P=&23 || '003.';
-SET &WHR_RECNBR = IF &1 NE ' ' THEN 'WHERE RECNOZ LIKE ' | '''' | &1 | ''''| ' ;' ELSE ' ' ;
-SET &WHR_DOCNBR = IF &2 NE ' ' THEN 'WHERE DOCNO LIKE ' | '''' | &2 | ''''| ' ;' ELSE ' ' ;


But, when I click on the button, I'm being prompted to provide a value to the input box. I need it to ignore it when
I don't select anything.



jd


7.61, nt
Output: excel, pdf, html,
 
Posts: 33 | Registered: January 10, 2008Report This Post
Master
posted Hide Post
Ok. I am assuming that the field that you are being prompted has IBIValidation set on. If you don't need it on, set it to 0 - No.

What I tell users to do in the JavaScript triggers is:
Form.Field_Edit.value=' ';

The issue is, you can't do that before a URL trigger. You could change the URL call to a:
window.open(url) call, and substitute the url here. That would allow you to set a temp value to the input field AND call the report.

Do either of these techniques work for you?

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Expert
posted Hide Post
Mark, good pickup, IBIValidation is one of those things that is hidden away until.

I agree with you with the URL call, but would be wary of just calling a URL, security wise, as the call will go into the history.

Is this sensitive info ?

You may want to submit a form and post the info.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders