|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > UserInterface > ShowConfirmationDialog |
available from build: 20040608 |
This command shows the default confirmation dialog proposed by DBWorks in many cases for selecting documents
call DBWShell("ShowConfirmationDialog title uidList [ok_del_rec [ok_del_file [silent]]]")
title |
title of the dialog |
|---|---|
uidList |
a comma separated list of the documents unique ids to be listed in the confirmation dialog |
ok_del_rec |
1: delete the records defined in the uidList |
ok_del_file |
1: delete the files of the records defined in the uidList |
silent |
1: all the operations will be done silently, without any user interface |

@UIDLIST |
A comma separated list of the selected documents unique ids |
In the dialog title you have to replace spaces with "|" characters.
Sub Main()
DBWInit(TRUE)
title = "My Confirmation Dialog"
uidList = "71086,70849,70315,69836"
DBWShell("ShowConfirmationDialog " & replace(title," ","|") & " " & uidList & " 1 1 1" )
if okDBW then
uidList = DBWResult("@UIDLIST")
DBWMsgBox "uid list:" & uidList
end if
End Sub
Sub Main()
DBWInit(TRUE)
DBWShell("GetSelection")
if (okDBW) then
selection = DBWResult("@SELECTION")
DBWShell("ShowConfirmationDialog MyDeletedRecords " & selection & " 1 1 1")
DBWShell("Requery")
end if
end sub