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]Overlaying a read/write grid with a drop

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Overlaying a read/write grid with a drop
 Login/Join
 
Guru
posted
Is it possible to put a drop or a listbox on top of a read/write grid in Maintain (7.6.4)? Maybe I'm doing something wrong, but even if I set the z-index of the grid to -1 and the z-index of the listbox to 99, the grid is on top of the listbox. Any clues?

Tia
Håkan

This message has been edited. Last edited by: Håkan,


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Expert
posted Hide Post
Hi Hakan,

Please take a look at the following presentation, which has what you are asking for and some additional tips/techniques:
WebFOCUS Maintain - Enhancing Objects with JavaScript

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Virtuoso
posted Hide Post
I'll add the following -- the Maintain Grid is an ActiveX control based on the UltimateGrid widget. There is a lot of additional UltimateGrid capability that is not documented in WF. It's reference material is here --> http://www.codeproject.com/KB/...he%20Ultimate%20Grid

My best guess is that IB will not bless all of the functions the widget presents, but a LOT of them work and make your look and feel much more capable. It's well worth your time to have that url in your back pocket.

For what it's worth that drop-down box is new to me. I would have loved to have known about it eight months ago.

J.



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
Master
posted Hide Post
Håkan

I hope my presentation was helpful. The Active X grid is always on top. As you found out, setting the z-index doesn't help. However, it's pretty easy to add the List box (and even a radio button) to a grid cell. Let me know if you have any questions.

We are in the process of putting the finishing touches on a JavaScript Grid. The NICE thing is that it will run on all browsers and not have security issues like the Active X grid. However it does not yet have all the current bells and whistles.

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

the listbox in the grid is neat, but how do you populate the list from a table? One other thing, what's the time frame for the JavaScript grid?

Håkan


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Master
posted Hide Post
Ok - To create a dynamic list in a grid list, you need to get the values and place them as a deliminated list in an edit box on the form. You can then grab them and place them in the drop down box.

Build a DataStk dynamically as:
- EXEC procedure INTO DataStk;

Then create the DynamList:

Create an invisible box "List1" on the form and compute all the dynamic codes into STRING with "," separating each value:

Compute R=1;
Compute List1/A25= ' ';
 repeat DataStk.FocCount
 compute List1 = List1 || DataStk(R).value | ',';
 compute R=R+1;
 endrepeat
Reason for ',' is that in FOCUS/HTML cannot use "\n" (carriage control).
*** Note - this limitation may have changed. You may just want to try \n
 
 
function OnGrid1_OnRowChange ( long row, long newRow)  {
 
var DynamList=document.Form1.List1_Edit.value;
// Replace the "," with "\n"
var myRegExp = /,/gi;
DynamList=DynamList.replace(myRegExp,"\n");
Form1.Grid1.GetCell(2,newRow);
Form1.Grid1.QuickSetCellType(2, newRow, 1);
Form1.Grid1.QuickSetLabel (2, newRow, DynamList);
}    

Remember, you will have to do this for the focus trigger as well. I hope this helps.

The JavaScript grid is scheduled for 7.7 which is early 2010, but it will only have basic functionality at that time.

Mark 
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Guru
posted Hide Post
Thanx Mark, I'll try it when I get the time. However, I do think I'll prefer the JS grid to become more browser independent.


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report 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]Overlaying a read/write grid with a drop

Copyright © 1996-2020 Information Builders