I would create a server side method on your ZEN page that then makes the call to the MV Basic subroutine. For example
Method GetSomeInfo(TripDate,NumPassengers,NumNights) As %String [ Language = mvbasic, ZenMethod ]
{
Call MyGetInfoSub(TripDate,NumPassengers,NumNights,Info)
Return Info
* or if this is not a callable subroutine
DATA TripDate
DATA NumPassengers
DATA NumNights
Execute “GetInfoProgram” capturing ouput
* parse output to get the Info
Return Info
}
If this was something you had to do on a regular basis then I would put this in a Utility Class that extends ZENPage and add that class to the inheritance of the zenpage you are working on. Alternative you could use this utility class as a template for your web pages. You can read up on Zen page templates in the documentation.
Richard S Taylor
Sales Engineer
InterSystems Corporation
Office: 443-340-8614
FAX: 440-815-5805
![]()
--
I'm not sure if this will work with passing from MV or not but you could try returning the variable to Zen as %ArrayOfDataTypes this would allows you to loop through the attributes something like:
For i=1:1:cboxes.Count() {
d rec.Classes.InsertAt(cboxes.GetAt(i),i)
}
From: ChrisB [mailto:cba...@blueyonder.co.uk]
Sent: Friday, October 19, 2012 1:09 PM
To: InterSy...@googlegroups.com
--
Chris,
Here is a link to a Caché tip we released some time ago that my help you with this.
https://sites.google.com/site/intersystemsmv/home/a-cache-of-tips/workingwithmultivaluefieldsinzen
You can access the entire library of tips at:
https://sites.google.com/site/intersystemsmv/home/a-cache-of-tips
From: intersy...@googlegroups.com [mailto:intersy...@googlegroups.com] On Behalf Of ChrisB
Sent: Friday, October 19, 2012 1:09 PM
To: InterSy...@googlegroups.com
--