Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pop-up subform
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Titre:
Divers
Thread ID:
00696344
Message ID:
00696352
Vues:
21
>Could someone point me to a resource on how to make a pop-up subform and how to return a value from it? I am creating a find dialog, that allows a person to input a value, then returns the primary key associated with that value. Similar to the inputbox control in VFP7.

You can do this using JScript.

Here is a code that opens up a new window..
function createWindow(cWindName,nHeight,nWidth) 
{
	window.open("",cWindName,"height=" + nHeight + ",width=" + nWidth + ",top=35,left=35,toolbar=no,menubar=no,resizable=yes,scrollbars=yes") ;
}	
The following fn is called from Command Button that returns selected value and closes the form.
function SelectPOValue(toPO)
{
  loCurrentRow = toPO.parentNode.parentNode;
  window.opener.document.OpenOrder.txtPO.value = loCurrentRow.cells(0).firstChild.nodeValue;
		window.close();
	}
- Jayesh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform