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.
javascript for OnGrid1_OnRowChange: var DynamList=document.frmDetail.EditBox1.value; // Replace the "," with "\n" var myRegExp = /,/gi; DynamList=DynamList.replace(myRegExp,"\n"); document.frmDetail.Grid1.GetCell(2,newRow); document.frmDetail.Grid1.QuickSetCellType(2, newRow, 1); document.frmDetail.Grid1.QuickSetLabel (2, newRow, DynamList);
List1 is correctly bound to an editbox on my form. To debug the javascript, I placed alerts after each line. The javascript appears to work until it reaches document.frmDetail.Grid1.GetCell(2,newRow); when it stops returning the alert statements.
Any clues on how to get the drop-down list to overlay the grid?
Thank you, DeanaThis message has been edited. Last edited by: Deana,
WebFOCUS 7.6.8 and 7.7.03; Windows Server 2003 R2 and Windows Server 2008 R2, respectively; Development environments - Windows Server 2003 R2 and Windows 7 Professional, respectively; excel, html, pdf
Deana This technique uses HTML to create the drop down list in the JS Grid. This is a static list but we could create a dynamic list as well.
Notice that when a selection is made, we perform a JS function called getval. I have included that function at the end of the code. It copies the selection into the answer field.
Your JS Grid should have a column called app that is Content Type HTML and another column, Answer, for the selection to reside.
My example has App in column 2 and Answer in column 3. If you move the columns you will have to adjust saver / getval. If you would like this example please send me your email and I will send it to you.
Mark
MAINTAIN FILE empdata
$$Declarations
Case Top for 10 next pin into stk compute i/i2=1; repeat stk.foccount
The code samples you sent worked great. I am looking forward to using this functionality as I move forward with my project.
Thank you, Deana
WebFOCUS 7.6.8 and 7.7.03; Windows Server 2003 R2 and Windows Server 2008 R2, respectively; Development environments - Windows Server 2003 R2 and Windows 7 Professional, respectively; excel, html, pdf