Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you want a batch processing wizard to operate on a set of records returned by a prompt view with the current user input, then your wizard's DoAction function should include the following code to support results from a prompt view: SQL Code:If

Code Block
languagesql
If m_oApp.Command.Parameters.IndexOf("ViewSQL") < 0 Then

...


   sViewSQL = m_oApp.View(lViewID).ViewSQL

...


Else
   sViewSQL = m_oApp.Command.Parameters.Item("ViewSQL").ToString()

...


End If 

 

Note that in the above code sample, _m_oApp_ is a reference to the current instance of the Application Object.