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] Dynamic dropdown in maintain.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Dynamic dropdown in maintain.
 Login/Join
 
Guru
posted
Hi All,
I have a Read/Write grid in maintain in which one column is linked to other screen. i.e, On clicking the value in that column user is forwarded to detailed screen. The function OnGrid1_OnLClicked is as below:


  
function OnGrid1_OnLClicked ( int col, long row, boolean updn, boolean processed)  {

if (col == 1)
{
ClientRef.Grid1.GetCell(1,row);
var StrCellGet = ClientRef.Grid1.CellGetText;
//alert(StrCellGet);
IWCTrigger("GetAddClient",StrCellGet);
}
}


Now, In detailed screen, I have to populate a currency dropdown based on the value clicked on previous screen. i.e, suppose user clicks on a value and associated currency is 'USD' then currency dropdown should have value 'USD' selected in detailed screen from dynamic set of values in dropdown. I have tried to write below function for this :

 
Case GetAddClient

compute acctNum = ClientRef.Triggervalue;

Infer solv_client_setup_view.SOLV_CLIENT_SETUP_VIEW.ACCOUNT_NO into AddClientStk;

Reposition solv_client_setup_view.SOLV_CLIENT_SETUP_VIEW.ACCOUNT_NO ;
Stack clear AddClientStk ;
For all next solv_client_setup_view.SOLV_CLIENT_SETUP_VIEW.ACCOUNT_NO into AddClientStk 
Where (ACCOUNT_NO EQ acctNum );

compute curr/a3 = AddClientStk.CURRENCY;
$*
if (curr= 'USD')
then
begin
COMPUTE AddClient.ComboBox17.ListItems.FocIndex = 1;
endbegin
else if (curr = 'EUR')
then
begin
COMPUTE AddClient.ComboBox17.ListItems.FocIndex = 2;
endbegin
else if (curr = 'INR')
then
begin
COMPUTE AddClient.ComboBox17.ListItems.FocIndex = 3;

endbegin
*$

Winform Show AddClient;
-* Replace the Winform Show command with the following code
-* to display your form in a non-persistent state
-* Winform Show_And_Exit AddClient;

Endcase
 


As in above function I have value of currency in variable 'curr' which I associated with currency dropdown but on running,it contains the first value of drodown not the value in 'curr' variable. Then I also tried to dynamically populate it (using the commented code) but it did not help too and also this cant be done as I don’t have static set of values for currency.


Can you please help me with the way to achieve this scenario and let me know in case you require further input form my side.

Thanks in advance.

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


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Master
posted Hide Post
In order to operate on a form before it is displayed, you should issue a WINFORM SHOW_INACTIVE command. Even here were you are just presetting the index of the combo box you need to do it. So at the top of the case GetAddClient add:
WINFORM SHOW_INACTIVE AddClient
and that should do it.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Guru
posted Hide Post
Thanks a lot Mark. it worked.

Best Regards.


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report 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] Dynamic dropdown in maintain.

Copyright © 1996-2020 Information Builders