Replies
This work-around works well. Thanks!! Sorry- I thought I already replied last week. I've already used it a couple of times for two different buttons.
Thanks!
It's more complicated than that. The button launches a dialog window where you select a service and then after clicking OK on that window, the value of the cell adjoining to it changes to that service.
Here is what I have in my script. This is essentially what got recorded except of course for the commented out line.
SwfWindow("SwIFT").SwfTreeView("_AttributesEditorUltraTree").SetFocus
SwfWindow("SwIFT").SwfTreeView("_AttributesEditorUltraTree").Select "\Services\Customer Location Access1 (1332)"SwfWindow("SwIFT").SwfTreeView("_AttributesEditorUltraTree").ActivateCell "\3\1", "Value"
'SwfWindow("SwIFT").SwfTreeView("_AttributesEditorUltraTree").Nodes("\3\1").Cells("Value").EditorResolved.ButtonsLeft(0).Click
SwfWindow("SwIFT").SwfWindow("Share Services").SwfButton("Cancel").SetFocus
SwfWindow("SwIFT").SwfWindow("Share Services").SwfListView("_AvailableServicesUltraListVie").SetFocus
SwfWindow("SwIFT").SwfWindow("Share Services").SwfListView("_AvailableServicesUltraListVie").Activate "Customer Location Access ([UNI Type],[Port Bandwidth]){951}"
SwfWindow("SwIFT").SwfWindow("Share Services").SwfListView("_AvailableServicesUltraListVie").SelectItems micNewSelection, "Customer Location Access ([UNI Type],[Port Bandwidth]){951}"
SwfWindow("SwIFT").SwfWindow("Share Services").SwfButton("Change to Use Selected").SetFocus
SwfWindow("SwIFT").SwfWindow("Share Services").SwfButton("Change to Use Selected").Click
SwfWindow("SwIFT").SwfWindow("Share Services").SwfWindow("Action Confirmation").SwfObject("SwfObject").ClickButton msgbxYes
SwfWindow("SwIFT").SwfWindow("Share Services").SwfButton("Change to Use Selected").SetFocus
I had spoken with the developer about launching the dialog window separately but that window needs the context of the button to update the value (the service selected) in the right place.
Thanks,
Rebecca
As a follow up, the developer told me that the EditorResolved (CellEditor) is an EmeddableEditorBase. For cells with buttons. it is an EmbeddableEditorButtonBase which contains 2 collections of EditorButton (ButtonsLeft and ButtonsRight).
Hope this helps. Let me know if you need more information.