Skip to Content

PowerDesigner - ShowObjMultiSelection

Hi,

I am trying to find the properties of ShowObjMultiSelection. Do you know how I can catch the Cancel event?

Looking for something like selObj.ShowObjMultiSelection.Cancel ...

Thank you so much,

Michal Skoda

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 26 at 07:31 AM

    Hi George,

    not really. On ShowObjMultiSelection is button Cancel. I am trying to catch the moment when user clicks on Cancel button. Problem is that I cannot find the property. Do you know where I could find that?

    Thank you,

    M.

    Add comment
    10|10000 characters needed characters exceeded

    • I've done a little more experimenting today, and extended yesterday's script to include an example of the more advanced selection dialogue

      ' Create a selection object
      dim Selected, Selected2
      set Selected = ActiveModel.CreateSelection()
      set Selected2 = ActiveModel.CreateSelection() output Selected.Objects.Count & " BEFORE" Selected.AddObjects Selected.Model, PdPDM.cls_Table, False, True
      Selected.ShowObjMultiSelection Selected, "Objects" output Selected.Objects.Count & " AFTER" output "Now listing the tables that weren't selected before"
      output " - note that this dialogue gives more selection and filtering options in the dialogue"
      output Selected2.Objects.Count & " BEFORE" 'ActiveModel.ShowObjMultiSelection ActiveModel, "Tables" selected2.ShowAdvancedObjMultiSelection activemodel, cls_Table, "", Selected.Objects
      'show all tables in ActiveModel, any stereotype,
      'if they were excluded from the original selection output Selected2.Objects.Count & " AFTER"
  • Mar 23 at 04:54 PM

    According to the metamodel help, there is a RemoveObjects method on cls_ObjectSelection. Is that what you need?

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 11 at 08:45 PM

    You can try this

    Assume you have table and column selected.

    result = selObj.ShowObjMultiSelection ( table, "Columns")

    Click Cancel button, result is false.

    Click OK button, result is true.

    Add comment
    10|10000 characters needed characters exceeded