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} wf8 Content/MRE IBI.AMP variables

Read-Only Read-Only Topic
Go
Search
Notify
Tools
{SOLVED} wf8 Content/MRE IBI.AMP variables
 Login/Join
 
Guru
posted
I was taught by an IB developer to use !IBI.AMP.ITEM_NO type variables when passing parameters to a HTML page. When creating a brand new HTML page and putting the !IBI.AMP.ITEM_NO; in a text object value property. It will not stay saves. I save it and I go right back in and it is not there. Are we not allowed to use this concept anymore?

I was reminded that this is not supported by IB, but it does work if I enter in IBI.AMP.ITEM_NO; via the 'Properties and settings' dialog instead of the value property.

Thanks IRA

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
Guru
posted Hide Post
It looks like it does work. However, if you have any hidden boxes with values, it appears those are not kept (at least doing it this way).

An alternative method that will work without the !IBIAMP method would to be to:

-first create a textbox and populate it with the same value as you would if you were using the !IBI variable
-second create the control you are wishing to preselect the value with.
-add an onbeforeload event handler to that control. If the control is a combobox it would look something like this:
 
function combobox1_onbeforeload(ctrl,arrValuesToLoad) {
        var preselection = IbComposer_getCurrentSelection('edit1');
	for(var i=0; i<arrValuesToLoad.length; i++) { 
		if(arrValuesToLoad[i].value==preselection) {
			arrValuesToLoad[i].selected=true;
		}
		else{
			arrValuesToLoad[i].selected=false;
		}
	}
 


No pre-fex is needed and it works with save selection. The only downside (especially since we cannot modify the code) is that the edit1 control must be created before the combobox1 control so that it has a value before combobox1 does.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
 
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012Report 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} wf8 Content/MRE IBI.AMP variables

Copyright © 1996-2020 Information Builders