Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Multiple update forms 1999-05-11 -- Dennis Evans Just comment out the standard code in the run method
omit('####')
GlobalRequest = Request
UpdateProcedure
ReturnValue = GlobalResponse
###
now add something like the following
GlobalRequest = Request
execute Number
UpdateProc_1
UpdateProc_2
...
end
ReturnValue = GlobalResponse
Now when you want to change update procedures set the BrowseClass AskProcedure
property.
Let's say you want to use a different procedure based on the tab selected. In the
NewSelection embed add
Brwx.AskProcedure = choice(?CurrentTab)
or if you want a different procedure when Field_10 >= 100 in the accepted embed for
the field
if Field_10 >= 100
Brwx.AskProcedure = 2
elsif Field_10 = n
Brwx.AskProcedure = 3
else
...
end
or any other condition you want or need.
Note,
ThisWindow.Run PROCEDURE(USHORT Number,BYTE Request)
the number parameter is the value of the BrowseClass AskProcedure property. That is
what the run method uses to call procedure x .
Today is November 23, 2024, 2:15 am This article has been viewed 35196 times.
|
|