Page 1 of 1
Dialog without defining an RPG binding
Posted: Mon Jun 21, 2010 2:01 am
by grmarks
I can drag and drop a dialog panel onto another panel and use java script to make it visible on a mouseover event of another widget but I can't add fields to it. Is there a simple way ?
The idea is to increase screen realestate by having various bits of the screen appear on a mouseover event. This would be ideal in a subfile record as well.
Re: Dialog without defining an RPG binding
Posted: Tue Jun 22, 2010 9:45 am
by David
Unfortunatley, the panels and widgets are not "true" containers as of yet -- meaning that hiding them will not hide fields that are "inside" of them. However, there are some ways that you can do what you are describing without too much trouble.
I would recommend using the "id" property (this is the actual DOM id) to name all the fields in a section the same with a numeric suffix. As in custFields1, custFields2, custFields3, etc. You might then give the panel the id 'custFields'. On mouse over of the panel, you can grab its id and then a simple loop can be used to find the rest of the fields and hide them by incrementing a counter and checking the DOM until no more fields are found.